diff --git a/.gitignore b/.gitignore index 52557fc9..9dfe4f97 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ yarn-error.log* # turbo .turbo + +.npmrc diff --git a/CHANGELOG.md b/CHANGELOG.md index ff087e0e..3625f38e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## `v0.0.71` + +### Features + +- Add optional `label` field to `ConnectedWallet` instances, which contains the user-defined label of the wallet + +### Fixes + +- Handle more wallet errors in the `wrap` function + +## `v0.0.70` + +### Features + +- Add legacy amino type to `MsgSend` model +- Add `MsgMigrateContract`, `MsgStoreCode`, `MsgBeginRedelegate`, `MsgDelegate`, `MsgUndelegate`, `MsgWithdrawDelegatorRewards`, `MsgWithdrawValidatorCommission` models +- Add ed25519 signature type + +### Fixes + +- Add Keplr default sign options to `WalletConnectV2` + ## `v0.0.69` ### Chore diff --git a/examples/solid-vite/src/App.tsx b/examples/solid-vite/src/App.tsx index c2c094dc..49497d37 100644 --- a/examples/solid-vite/src/App.tsx +++ b/examples/solid-vite/src/App.tsx @@ -39,7 +39,7 @@ const CHAINS: Record = { const WALLETS: Record = { [WalletName.KEPLR]: "Keplr", [WalletName.COSMOSTATION]: "Cosmostation", - [WalletName.STATION]: "Terra Station", + [WalletName.STATION]: "Station", [WalletName.LEAP]: "Leap", [WalletName.COMPASS]: "Compass", [WalletName.METAMASK_INJECTIVE]: "MetaMask", @@ -325,13 +325,13 @@ const App: Component = () => { Broadcast Tx -
- CONNECTED WALLETS +
+
Connected Wallets
{(wallet) => ( - {wallet.address.slice(0, 10)} - ...{wallet.address.slice(-5)} | {WALLETS[wallet.id]} + {wallet.address.slice(0, 10)}…{wallet.address.slice(-5)} [ + {WALLETS[wallet.id]}: {wallet.label ?? "-"}] )} diff --git a/package.json b/package.json index 2f6cecec..5e25cb90 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { - "name": "cosmes", - "version": "0.0.69", + "name": "@beal2912/cosmes", + "version": "0.0.101", "private": false, + "publishConfig": { + "access": "public" + }, "packageManager": "pnpm@8.3.0", "sideEffects": false, "type": "module", @@ -44,36 +47,36 @@ "@bufbuild/protobuf": "1.2.0", "@bufbuild/protoc-gen-es": "1.2.0", "@bufbuild/protoplugin": "1.2.0", - "@keplr-wallet/types": "^0.11.62", + "@keplr-wallet/types": "^0.11.64", "@metamask/providers": "^14.0.2", - "@noble/hashes": "^1.3.2", - "@noble/secp256k1": "^2.0.0", - "@scure/base": "^1.1.3", - "@scure/bip32": "^1.3.2", - "@scure/bip39": "^1.2.1", - "@types/degit": "^2.8.3", - "@types/lodash-es": "^4.17.7", - "@typescript-eslint/eslint-plugin": "^5.59.5", - "@typescript-eslint/parser": "^5.59.5", + "@noble/hashes": "^1.4.0", + "@noble/secp256k1": "^2.1.0", + "@scure/base": "^1.1.7", + "@scure/bip32": "^1.4.0", + "@scure/bip39": "^1.3.0", + "@types/degit": "^2.8.6", + "@types/lodash-es": "^4.17.12", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", "@walletconnect/legacy-client": "^2.0.0", "@walletconnect/legacy-types": "^2.0.0", "@walletconnect/sign-client": "2.8.6", "@walletconnect/types": "2.8.6", - "autoprefixer": "^10.4.14", - "concurrently": "^8.0.1", + "autoprefixer": "^10.4.19", + "concurrently": "^8.2.2", "degit": "^2.8.4", - "eslint": "^8.40.0", - "eslint-config-prettier": "^8.8.0", - "glob": "^10.2.3", - "json-schema-to-typescript": "^13.1.1", + "eslint": "^8.57.0", + "eslint-config-prettier": "^8.10.0", + "glob": "^10.4.5", + "json-schema-to-typescript": "^13.1.2", "lodash-es": "^4.17.21", - "postcss": "^8.4.23", + "postcss": "^8.4.40", "prettier": "^2.8.8", "prettier-plugin-tailwindcss": "^0.2.8", - "rimraf": "^5.0.0", - "tsc-alias": "^1.8.6", - "tsx": "^3.12.7", - "typescript": "^5.0.4", - "vitest": "^0.31.0" + "rimraf": "^5.0.9", + "tsc-alias": "^1.8.10", + "tsx": "^3.14.0", + "typescript": "^5.5.4", + "vitest": "^0.31.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e9cebd6..021092ab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,38 +18,38 @@ devDependencies: specifier: 1.2.0 version: 1.2.0 '@keplr-wallet/types': - specifier: ^0.11.62 + specifier: ^0.11.64 version: 0.11.64 '@metamask/providers': specifier: ^14.0.2 version: 14.0.2 '@noble/hashes': - specifier: ^1.3.2 + specifier: ^1.4.0 version: 1.4.0 '@noble/secp256k1': - specifier: ^2.0.0 + specifier: ^2.1.0 version: 2.1.0 '@scure/base': - specifier: ^1.1.3 - version: 1.1.6 + specifier: ^1.1.7 + version: 1.1.7 '@scure/bip32': - specifier: ^1.3.2 + specifier: ^1.4.0 version: 1.4.0 '@scure/bip39': - specifier: ^1.2.1 + specifier: ^1.3.0 version: 1.3.0 '@types/degit': - specifier: ^2.8.3 + specifier: ^2.8.6 version: 2.8.6 '@types/lodash-es': - specifier: ^4.17.7 + specifier: ^4.17.12 version: 4.17.12 '@typescript-eslint/eslint-plugin': - specifier: ^5.59.5 - version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.57.0)(typescript@5.4.5) + specifier: ^5.62.0 + version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/parser': - specifier: ^5.59.5 - version: 5.62.0(eslint@8.57.0)(typescript@5.4.5) + specifier: ^5.62.0 + version: 5.62.0(eslint@8.57.0)(typescript@5.5.4) '@walletconnect/legacy-client': specifier: ^2.0.0 version: 2.0.0 @@ -63,32 +63,32 @@ devDependencies: specifier: 2.8.6 version: 2.8.6 autoprefixer: - specifier: ^10.4.14 - version: 10.4.19(postcss@8.4.38) + specifier: ^10.4.19 + version: 10.4.19(postcss@8.4.40) concurrently: - specifier: ^8.0.1 + specifier: ^8.2.2 version: 8.2.2 degit: specifier: ^2.8.4 version: 2.8.4 eslint: - specifier: ^8.40.0 + specifier: ^8.57.0 version: 8.57.0 eslint-config-prettier: - specifier: ^8.8.0 + specifier: ^8.10.0 version: 8.10.0(eslint@8.57.0) glob: - specifier: ^10.2.3 - version: 10.3.12 + specifier: ^10.4.5 + version: 10.4.5 json-schema-to-typescript: - specifier: ^13.1.1 + specifier: ^13.1.2 version: 13.1.2 lodash-es: specifier: ^4.17.21 version: 4.17.21 postcss: - specifier: ^8.4.23 - version: 8.4.38 + specifier: ^8.4.40 + version: 8.4.40 prettier: specifier: ^2.8.8 version: 2.8.8 @@ -96,30 +96,25 @@ devDependencies: specifier: ^0.2.8 version: 0.2.8(prettier@2.8.8) rimraf: - specifier: ^5.0.0 - version: 5.0.5 + specifier: ^5.0.9 + version: 5.0.9 tsc-alias: - specifier: ^1.8.6 - version: 1.8.8 + specifier: ^1.8.10 + version: 1.8.10 tsx: - specifier: ^3.12.7 + specifier: ^3.14.0 version: 3.14.0 typescript: - specifier: ^5.0.4 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 vitest: - specifier: ^0.31.0 + specifier: ^0.31.4 version: 0.31.4 packages: - /@aashutoshrathi/word-wrap@1.2.6: - resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} - engines: {node: '>=0.10.0'} - dev: true - - /@babel/runtime@7.24.4: - resolution: {integrity: sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==} + /@babel/runtime@7.25.0: + resolution: {integrity: sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 @@ -227,7 +222,7 @@ packages: resolution: {integrity: sha512-TX0mEk+LdIbpK2xr5RqeUswR8jGZs6uCX6Cq8azADj8hhiUr7Xty8agEOU/zR+J71D4dV5SnyEPYyw0nGJ6dGQ==} dependencies: '@bufbuild/protobuf': 1.2.0 - '@typescript/vfs': 1.5.0 + '@typescript/vfs': 1.6.0(typescript@4.5.2) typescript: 4.5.2 transitivePeerDependencies: - supports-color @@ -441,8 +436,8 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.10.0: - resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} + /@eslint-community/regexpp@4.11.0: + resolution: {integrity: sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true @@ -451,7 +446,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.4 + debug: 4.3.6 espree: 9.6.1 globals: 13.24.0 ignore: 5.3.1 @@ -488,7 +483,7 @@ packages: '@ethereumjs/common': 3.2.0 '@ethereumjs/rlp': 4.0.1 '@ethereumjs/util': 8.1.0 - ethereum-cryptography: 2.1.3 + ethereum-cryptography: 2.2.1 dev: true /@ethereumjs/util@8.1.0: @@ -496,16 +491,17 @@ packages: engines: {node: '>=14'} dependencies: '@ethereumjs/rlp': 4.0.1 - ethereum-cryptography: 2.1.3 + ethereum-cryptography: 2.2.1 micro-ftch: 0.3.1 dev: true /@humanwhocodes/config-array@0.11.14: resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.4 + debug: 4.3.6 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -518,6 +514,7 @@ packages: /@humanwhocodes/object-schema@2.0.3: resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + deprecated: Use @eslint/object-schema instead dev: true /@isaacs/cliui@8.0.2: @@ -532,8 +529,8 @@ packages: wrap-ansi-cjs: /wrap-ansi@7.0.0 dev: true - /@jridgewell/sourcemap-codec@1.4.15: - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + /@jridgewell/sourcemap-codec@1.5.0: + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} dev: true /@jsdevtools/ono@7.1.3: @@ -553,9 +550,9 @@ packages: resolution: {integrity: sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==} engines: {node: '>=16.0.0'} dependencies: - '@metamask/rpc-errors': 6.2.1 + '@metamask/rpc-errors': 6.3.1 '@metamask/safe-event-emitter': 3.1.1 - '@metamask/utils': 8.4.0 + '@metamask/utils': 8.5.0 transitivePeerDependencies: - supports-color dev: true @@ -574,9 +571,9 @@ packages: dependencies: '@metamask/json-rpc-engine': 7.3.3 '@metamask/object-multiplex': 2.0.0 - '@metamask/rpc-errors': 6.2.1 + '@metamask/rpc-errors': 6.3.1 '@metamask/safe-event-emitter': 3.1.1 - '@metamask/utils': 8.4.0 + '@metamask/utils': 8.5.0 detect-browser: 5.3.0 extension-port-stream: 3.0.0 fast-deep-equal: 3.1.3 @@ -588,11 +585,11 @@ packages: - supports-color dev: true - /@metamask/rpc-errors@6.2.1: - resolution: {integrity: sha512-VTgWkjWLzb0nupkFl1duQi9Mk8TGT9rsdnQg6DeRrYEFxtFOh0IF8nAwxM/4GWqDl6uIB06lqUBgUrAVWl62Bw==} + /@metamask/rpc-errors@6.3.1: + resolution: {integrity: sha512-ugDY7cKjF4/yH5LtBaOIKHw/AiGGSAmzptAUEiAEGr/78LwuzcXAxmzEQfSfMIfI+f9Djr8cttq1pRJJKfTuCg==} engines: {node: '>=16.0.0'} dependencies: - '@metamask/utils': 8.4.0 + '@metamask/utils': 9.1.0 fast-safe-stringify: 2.1.1 transitivePeerDependencies: - supports-color @@ -603,40 +600,51 @@ packages: engines: {node: '>=12.0.0'} dev: true - /@metamask/utils@8.4.0: - resolution: {integrity: sha512-dbIc3C7alOe0agCuBHM1h71UaEaEqOk2W8rAtEn8QGz4haH2Qq7MoK6i7v2guzvkJVVh79c+QCzIqphC3KvrJg==} + /@metamask/superstruct@3.1.0: + resolution: {integrity: sha512-N08M56HdOgBfRKkrgCMZvQppkZGcArEop3kixNEtVbJKm6P9Cfg0YkI6X0s1g78sNrj2fWUwvJADdZuzJgFttA==} + engines: {node: '>=16.0.0'} + dev: true + + /@metamask/utils@8.5.0: + resolution: {integrity: sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==} engines: {node: '>=16.0.0'} dependencies: '@ethereumjs/tx': 4.2.0 + '@metamask/superstruct': 3.1.0 '@noble/hashes': 1.4.0 - '@scure/base': 1.1.6 + '@scure/base': 1.1.7 '@types/debug': 4.1.12 - debug: 4.3.4 + debug: 4.3.6 pony-cause: 2.1.11 - semver: 7.6.0 - superstruct: 1.0.4 + semver: 7.6.3 uuid: 9.0.1 transitivePeerDependencies: - supports-color dev: true - /@noble/curves@1.3.0: - resolution: {integrity: sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==} + /@metamask/utils@9.1.0: + resolution: {integrity: sha512-g2REf+xSt0OZfMoNNdC4+/Yy8eP3KUqvIArel54XRFKPoXbHI6+YjFfrLtfykWBjffOp7DTfIc3Kvk5TLfuiyg==} + engines: {node: '>=16.0.0'} dependencies: - '@noble/hashes': 1.3.3 + '@ethereumjs/tx': 4.2.0 + '@metamask/superstruct': 3.1.0 + '@noble/hashes': 1.4.0 + '@scure/base': 1.1.7 + '@types/debug': 4.1.12 + debug: 4.3.6 + pony-cause: 2.1.11 + semver: 7.6.3 + uuid: 9.0.1 + transitivePeerDependencies: + - supports-color dev: true - /@noble/curves@1.4.0: - resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==} + /@noble/curves@1.4.2: + resolution: {integrity: sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==} dependencies: '@noble/hashes': 1.4.0 dev: true - /@noble/hashes@1.3.3: - resolution: {integrity: sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==} - engines: {node: '>= 16'} - dev: true - /@noble/hashes@1.4.0: resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} engines: {node: '>= 16'} @@ -753,7 +761,7 @@ packages: engines: {node: '>= 10.0.0'} dependencies: is-glob: 4.0.3 - micromatch: 4.0.5 + micromatch: 4.0.7 dev: true bundledDependencies: - napi-wasm @@ -791,8 +799,8 @@ packages: dependencies: detect-libc: 1.0.3 is-glob: 4.0.3 - micromatch: 4.0.5 - node-addon-api: 7.1.0 + micromatch: 4.0.7 + node-addon-api: 7.1.1 optionalDependencies: '@parcel/watcher-android-arm64': 2.4.1 '@parcel/watcher-darwin-arm64': 2.4.1 @@ -815,38 +823,23 @@ packages: dev: true optional: true - /@scure/base@1.1.6: - resolution: {integrity: sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g==} - dev: true - - /@scure/bip32@1.3.3: - resolution: {integrity: sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==} - dependencies: - '@noble/curves': 1.3.0 - '@noble/hashes': 1.3.3 - '@scure/base': 1.1.6 + /@scure/base@1.1.7: + resolution: {integrity: sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==} dev: true /@scure/bip32@1.4.0: resolution: {integrity: sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==} dependencies: - '@noble/curves': 1.4.0 + '@noble/curves': 1.4.2 '@noble/hashes': 1.4.0 - '@scure/base': 1.1.6 - dev: true - - /@scure/bip39@1.2.2: - resolution: {integrity: sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==} - dependencies: - '@noble/hashes': 1.3.3 - '@scure/base': 1.1.6 + '@scure/base': 1.1.7 dev: true /@scure/bip39@1.3.0: resolution: {integrity: sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==} dependencies: '@noble/hashes': 1.4.0 - '@scure/base': 1.1.6 + '@scure/base': 1.1.7 dev: true /@stablelib/aead@1.0.1: @@ -968,11 +961,11 @@ packages: /@types/chai-subset@1.3.5: resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} dependencies: - '@types/chai': 4.3.14 + '@types/chai': 4.3.16 dev: true - /@types/chai@4.3.14: - resolution: {integrity: sha512-Wj71sXE4Q4AkGdG9Tvq1u/fquNz9EdG4LIJMwVVII7ashjD/8cf8fyIfJAjRr6YcsXnSE8cOGQPq1gqeR8z+3w==} + /@types/chai@4.3.16: + resolution: {integrity: sha512-PatH4iOdyh3MyWtmHVFXLWCCIhUbopaltqddG9BzB+gMIzee2MJrvd+jouii9Z3wzQJruGWAm7WOMjgfG8hQlQ==} dev: true /@types/debug@4.1.12: @@ -989,7 +982,7 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.12.7 + '@types/node': 22.0.0 dev: true /@types/json-schema@7.0.15: @@ -999,11 +992,11 @@ packages: /@types/lodash-es@4.17.12: resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} dependencies: - '@types/lodash': 4.17.0 + '@types/lodash': 4.17.7 dev: true - /@types/lodash@4.17.0: - resolution: {integrity: sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA==} + /@types/lodash@4.17.7: + resolution: {integrity: sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==} dev: true /@types/minimatch@5.1.2: @@ -1014,10 +1007,10 @@ packages: resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} dev: true - /@types/node@20.12.7: - resolution: {integrity: sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==} + /@types/node@22.0.0: + resolution: {integrity: sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==} dependencies: - undici-types: 5.26.5 + undici-types: 6.11.1 dev: true /@types/prettier@2.7.3: @@ -1028,7 +1021,7 @@ packages: resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} dev: true - /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.57.0)(typescript@5.4.5): + /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.57.0)(typescript@5.5.4): resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1039,24 +1032,24 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 5.62.0(eslint@8.57.0)(typescript@5.4.5) + '@eslint-community/regexpp': 4.11.0 + '@typescript-eslint/parser': 5.62.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/scope-manager': 5.62.0 - '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.0)(typescript@5.4.5) - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.4.5) - debug: 4.3.4 + '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.5.4) + debug: 4.3.6 eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare-lite: 1.4.0 - semver: 7.6.0 - tsutils: 3.21.0(typescript@5.4.5) - typescript: 5.4.5 + semver: 7.6.3 + tsutils: 3.21.0(typescript@5.5.4) + typescript: 5.5.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.4.5): + /@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.4): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1068,10 +1061,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.4.5) - debug: 4.3.4 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.4) + debug: 4.3.6 eslint: 8.57.0 - typescript: 5.4.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color dev: true @@ -1084,7 +1077,7 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/type-utils@5.62.0(eslint@8.57.0)(typescript@5.4.5): + /@typescript-eslint/type-utils@5.62.0(eslint@8.57.0)(typescript@5.5.4): resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1094,12 +1087,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.4.5) - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.4.5) - debug: 4.3.4 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.4) + '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.5.4) + debug: 4.3.6 eslint: 8.57.0 - tsutils: 3.21.0(typescript@5.4.5) - typescript: 5.4.5 + tsutils: 3.21.0(typescript@5.5.4) + typescript: 5.5.4 transitivePeerDependencies: - supports-color dev: true @@ -1109,7 +1102,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree@5.62.0(typescript@5.4.5): + /@typescript-eslint/typescript-estree@5.62.0(typescript@5.5.4): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1120,17 +1113,17 @@ packages: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.3.4 + debug: 4.3.6 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.6.0 - tsutils: 3.21.0(typescript@5.4.5) - typescript: 5.4.5 + semver: 7.6.3 + tsutils: 3.21.0(typescript@5.5.4) + typescript: 5.5.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@5.62.0(eslint@8.57.0)(typescript@5.4.5): + /@typescript-eslint/utils@5.62.0(eslint@8.57.0)(typescript@5.5.4): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1141,10 +1134,10 @@ packages: '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.4) eslint: 8.57.0 eslint-scope: 5.1.1 - semver: 7.6.0 + semver: 7.6.3 transitivePeerDependencies: - supports-color - typescript @@ -1158,10 +1151,13 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript/vfs@1.5.0: - resolution: {integrity: sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==} + /@typescript/vfs@1.6.0(typescript@4.5.2): + resolution: {integrity: sha512-hvJUjNVeBMp77qPINuUvYXj4FyWeeMMKZkxEATEU3hqBAQ7qdTBCUFT7Sp0Zu0faeEtFf+ldXxMEDr/bk73ISg==} + peerDependencies: + typescript: '*' dependencies: - debug: 4.3.4 + debug: 4.3.6 + typescript: 4.5.2 transitivePeerDependencies: - supports-color dev: true @@ -1175,7 +1171,7 @@ packages: dependencies: '@vitest/spy': 0.31.4 '@vitest/utils': 0.31.4 - chai: 4.4.1 + chai: 4.5.0 dev: true /@vitest/runner@0.31.4: @@ -1190,7 +1186,7 @@ packages: /@vitest/snapshot@0.31.4: resolution: {integrity: sha512-LemvNumL3NdWSmfVAMpXILGyaXPkZbG5tyl6+RQSdcHnTj6hvA49UAI8jzez9oQyE/FWLKRSNqTGzsHuk89LRA==} dependencies: - magic-string: 0.30.9 + magic-string: 0.30.11 pathe: 1.1.2 pretty-format: 27.5.1 dev: true @@ -1219,7 +1215,7 @@ packages: '@walletconnect/jsonrpc-ws-connection': 1.0.14 '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.1.2 - '@walletconnect/relay-api': 1.0.9 + '@walletconnect/relay-api': 1.0.10 '@walletconnect/relay-auth': 1.0.4 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 @@ -1302,11 +1298,18 @@ packages: tslib: 1.14.1 dev: true + /@walletconnect/jsonrpc-types@1.0.4: + resolution: {integrity: sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==} + dependencies: + events: 3.3.0 + keyvaluestorage-interface: 1.0.0 + dev: true + /@walletconnect/jsonrpc-utils@1.0.8: resolution: {integrity: sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==} dependencies: '@walletconnect/environment': 1.0.1 - '@walletconnect/jsonrpc-types': 1.0.3 + '@walletconnect/jsonrpc-types': 1.0.4 tslib: 1.14.1 dev: true @@ -1316,7 +1319,7 @@ packages: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/safe-json': 1.0.2 events: 3.3.0 - ws: 7.5.9 + ws: 7.5.10 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1367,7 +1370,7 @@ packages: /@walletconnect/legacy-types@2.0.0: resolution: {integrity: sha512-sOVrA7HUdbI1OwKyPOQU0/DdvTSVFlsXWpAk2K2WvP2erTkBWPMTJq6cv2BmKdoJ3p6gLApT7sd+jHi3OF71uw==} dependencies: - '@walletconnect/jsonrpc-types': 1.0.3 + '@walletconnect/jsonrpc-types': 1.0.4 dev: true /@walletconnect/legacy-utils@2.0.0: @@ -1399,11 +1402,10 @@ packages: tslib: 1.14.1 dev: true - /@walletconnect/relay-api@1.0.9: - resolution: {integrity: sha512-Q3+rylJOqRkO1D9Su0DPE3mmznbAalYapJ9qmzDgK28mYF9alcP3UwG/og5V7l7CFOqzCLi7B8BvcBUrpDj0Rg==} + /@walletconnect/relay-api@1.0.10: + resolution: {integrity: sha512-tqrdd4zU9VBNqUaXXQASaexklv6A54yEyQQEXYOCr+Jz8Ket0dmPBDyg19LVSNUN2cipAghQc45/KVmfFJ0cYw==} dependencies: '@walletconnect/jsonrpc-types': 1.0.3 - tslib: 1.14.1 dev: true /@walletconnect/relay-auth@1.0.4: @@ -1425,6 +1427,7 @@ packages: /@walletconnect/sign-client@2.8.6: resolution: {integrity: sha512-rOFTKTHP7oJfXgYHX7+SdB8VbcsEE3ZFG/bMdmZboWaBim1mrY3vUyDdKrNr0VgI3AwBiEQezQDfKxBX0pMSQQ==} + deprecated: Reliability and performance greatly improved - please see https://github.com/WalletConnect/walletconnect-monorepo/releases dependencies: '@walletconnect/core': 2.8.6 '@walletconnect/events': 1.0.1 @@ -1494,7 +1497,7 @@ packages: '@stablelib/random': 1.0.2 '@stablelib/sha256': 1.0.1 '@stablelib/x25519': 1.0.3 - '@walletconnect/relay-api': 1.0.9 + '@walletconnect/relay-api': 1.0.10 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.8.6 @@ -1533,21 +1536,23 @@ packages: tslib: 1.14.1 dev: true - /acorn-jsx@5.3.2(acorn@8.11.3): + /acorn-jsx@5.3.2(acorn@8.12.1): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.11.3 + acorn: 8.12.1 dev: true - /acorn-walk@8.3.2: - resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} + /acorn-walk@8.3.3: + resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} engines: {node: '>=0.4.0'} + dependencies: + acorn: 8.12.1 dev: true - /acorn@8.11.3: - resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} + /acorn@8.12.1: + resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} engines: {node: '>=0.4.0'} hasBin: true dev: true @@ -1626,19 +1631,19 @@ packages: engines: {node: '>=8.0.0'} dev: true - /autoprefixer@10.4.19(postcss@8.4.38): + /autoprefixer@10.4.19(postcss@8.4.40): resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==} engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: postcss: ^8.1.0 dependencies: - browserslist: 4.23.0 - caniuse-lite: 1.0.30001610 + browserslist: 4.23.2 + caniuse-lite: 1.0.30001643 fraction.js: 4.3.7 normalize-range: 0.1.2 - picocolors: 1.0.0 - postcss: 8.4.38 + picocolors: 1.0.1 + postcss: 8.4.40 postcss-value-parser: 4.2.0 dev: true @@ -1677,22 +1682,22 @@ packages: balanced-match: 1.0.2 dev: true - /braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + /braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} dependencies: - fill-range: 7.0.1 + fill-range: 7.1.1 dev: true - /browserslist@4.23.0: - resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==} + /browserslist@4.23.2: + resolution: {integrity: sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001610 - electron-to-chromium: 1.4.737 - node-releases: 2.0.14 - update-browserslist-db: 1.0.13(browserslist@4.23.0) + caniuse-lite: 1.0.30001643 + electron-to-chromium: 1.5.2 + node-releases: 2.0.18 + update-browserslist-db: 1.1.0(browserslist@4.23.2) dev: true /buffer-from@1.1.2: @@ -1713,21 +1718,21 @@ packages: engines: {node: '>=6'} dev: true - /caniuse-lite@1.0.30001610: - resolution: {integrity: sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==} + /caniuse-lite@1.0.30001643: + resolution: {integrity: sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==} dev: true - /chai@4.4.1: - resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} + /chai@4.5.0: + resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==} engines: {node: '>=4'} dependencies: assertion-error: 1.1.0 check-error: 1.0.3 - deep-eql: 4.1.3 + deep-eql: 4.1.4 get-func-name: 2.0.2 loupe: 2.3.7 pathval: 1.1.1 - type-detect: 4.0.8 + type-detect: 4.1.0 dev: true /chalk@4.1.2: @@ -1749,7 +1754,7 @@ packages: engines: {node: '>= 8.10.0'} dependencies: anymatch: 3.1.3 - braces: 3.0.2 + braces: 3.0.3 glob-parent: 5.1.2 is-binary-path: 2.1.0 is-glob: 4.0.3 @@ -1772,8 +1777,8 @@ packages: d: 1.0.2 es5-ext: 0.10.64 es6-iterator: 2.0.3 - memoizee: 0.4.15 - timers-ext: 0.1.7 + memoizee: 0.4.17 + timers-ext: 0.1.8 dev: true /clipboardy@4.0.0: @@ -1831,7 +1836,7 @@ packages: js-string-escape: 1.0.1 lodash: 4.17.21 md5-hex: 3.0.1 - semver: 7.6.0 + semver: 7.6.3 well-known-symbols: 2.0.0 dev: true @@ -1851,13 +1856,17 @@ packages: yargs: 17.7.2 dev: true + /confbox@0.1.7: + resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==} + dev: true + /consola@3.2.3: resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==} engines: {node: ^14.18.0 || >=16.10.0} dev: true - /cookie-es@1.1.0: - resolution: {integrity: sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw==} + /cookie-es@1.2.2: + resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==} dev: true /crc-32@1.2.2: @@ -1889,14 +1898,14 @@ packages: engines: {node: '>=0.12'} dependencies: es5-ext: 0.10.64 - type: 2.7.2 + type: 2.7.3 dev: true /date-fns@2.30.0: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': 7.24.4 + '@babel/runtime': 7.25.0 dev: true /date-time@3.1.0: @@ -1906,8 +1915,8 @@ packages: time-zone: 1.0.0 dev: true - /debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + /debug@4.3.6: + resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1923,11 +1932,11 @@ packages: engines: {node: '>=0.10'} dev: true - /deep-eql@4.1.3: - resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} + /deep-eql@4.1.4: + resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} engines: {node: '>=6'} dependencies: - type-detect: 4.0.8 + type-detect: 4.1.0 dev: true /deep-is@0.1.4: @@ -1990,8 +1999,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /electron-to-chromium@1.4.737: - resolution: {integrity: sha512-QvLTxaLHKdy5YxvixAw/FfHq2eWLUL9KvsPjp0aHK1gI5d3EDuDgITkvj0nFO2c6zUY3ZqVAJQiBYyQP9tQpfw==} + /electron-to-chromium@1.5.2: + resolution: {integrity: sha512-kc4r3U3V3WLaaZqThjYz/Y6z8tJe+7K0bbjUVo3i+LWIypVdMx5nXCkwRe6SWbY6ILqLdc1rKcKmr3HoH7wjSQ==} dev: true /emoji-regex@8.0.0: @@ -2120,7 +2129,7 @@ packages: hasBin: true dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.10.0 + '@eslint-community/regexpp': 4.11.0 '@eslint/eslintrc': 2.1.4 '@eslint/js': 8.57.0 '@humanwhocodes/config-array': 0.11.14 @@ -2130,13 +2139,13 @@ packages: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.4 + debug: 4.3.6 doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 - esquery: 1.5.0 + esquery: 1.6.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 file-entry-cache: 6.0.1 @@ -2154,7 +2163,7 @@ packages: lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 - optionator: 0.9.3 + optionator: 0.9.4 strip-ansi: 6.0.1 text-table: 0.2.0 transitivePeerDependencies: @@ -2168,20 +2177,20 @@ packages: d: 1.0.2 es5-ext: 0.10.64 event-emitter: 0.3.5 - type: 2.7.2 + type: 2.7.3 dev: true /espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) eslint-visitor-keys: 3.4.3 dev: true - /esquery@1.5.0: - resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} + /esquery@1.6.0: + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} dependencies: estraverse: 5.3.0 @@ -2209,13 +2218,13 @@ packages: engines: {node: '>=0.10.0'} dev: true - /ethereum-cryptography@2.1.3: - resolution: {integrity: sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA==} + /ethereum-cryptography@2.2.1: + resolution: {integrity: sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==} dependencies: - '@noble/curves': 1.3.0 - '@noble/hashes': 1.3.3 - '@scure/bip32': 1.3.3 - '@scure/bip39': 1.2.2 + '@noble/curves': 1.4.2 + '@noble/hashes': 1.4.0 + '@scure/bip32': 1.4.0 + '@scure/bip39': 1.3.0 dev: true /event-emitter@0.3.5: @@ -2248,7 +2257,7 @@ packages: /ext@1.7.0: resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} dependencies: - type: 2.7.2 + type: 2.7.3 dev: true /extension-port-stream@3.0.0: @@ -2275,7 +2284,7 @@ packages: '@nodelib/fs.walk': 1.2.8 glob-parent: 5.1.2 merge2: 1.4.1 - micromatch: 4.0.5 + micromatch: 4.0.7 dev: true /fast-json-stable-stringify@2.1.0: @@ -2308,8 +2317,8 @@ packages: flat-cache: 3.2.0 dev: true - /fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + /fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} dependencies: to-regex-range: 5.0.1 @@ -2351,8 +2360,8 @@ packages: optional: true dev: true - /foreground-child@3.1.1: - resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + /foreground-child@3.2.1: + resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} engines: {node: '>=14'} dependencies: cross-spawn: 7.0.3 @@ -2407,8 +2416,8 @@ packages: engines: {node: '>=16'} dev: true - /get-tsconfig@4.7.3: - resolution: {integrity: sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==} + /get-tsconfig@4.7.6: + resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} dependencies: resolve-pkg-maps: 1.0.0 dev: true @@ -2437,20 +2446,21 @@ packages: glob: 7.2.3 dev: true - /glob@10.3.12: - resolution: {integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==} - engines: {node: '>=16 || 14 >=14.17'} + /glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true dependencies: - foreground-child: 3.1.1 - jackspeak: 2.3.6 - minimatch: 9.0.4 - minipass: 7.0.4 - path-scurry: 1.10.2 + foreground-child: 3.2.1 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.0 + path-scurry: 1.11.1 dev: true /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -2483,19 +2493,19 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true - /h3@1.11.1: - resolution: {integrity: sha512-AbaH6IDnZN6nmbnJOH72y3c5Wwh9P97soSVdGSBbcDACRdkC0FEWf25pzx4f/NuOCK6quHmW18yF2Wx+G4Zi1A==} + /h3@1.12.0: + resolution: {integrity: sha512-Zi/CcNeWBXDrFNlV0hUBJQR9F7a96RjMeAZweW/ZWkR9fuXrMcvKnSA63f/zZ9l0GgQOZDVHGvXivNN9PWOwhA==} dependencies: - cookie-es: 1.1.0 + cookie-es: 1.2.2 crossws: 0.2.4 defu: 6.1.4 destr: 2.0.3 - iron-webcrypto: 1.1.0 + iron-webcrypto: 1.2.1 ohash: 1.1.3 radix3: 1.1.2 - ufo: 1.5.3 + ufo: 1.5.4 uncrypto: 0.1.3 - unenv: 1.9.0 + unenv: 1.10.0 transitivePeerDependencies: - uWebSockets.js dev: true @@ -2546,6 +2556,7 @@ packages: /inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. dependencies: once: 1.4.0 wrappy: 1.0.2 @@ -2555,8 +2566,8 @@ packages: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: true - /iron-webcrypto@1.1.0: - resolution: {integrity: sha512-5vgYsCakNlaQub1orZK5QmNYhwYtcllTkZBp5sfIaCqY93Cf6l+v2rtE+E4TMbcfjxDMCdrO8wmp7+ZvhDECLA==} + /iron-webcrypto@1.2.1: + resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==} dev: true /is-binary-path@2.1.0: @@ -2643,17 +2654,16 @@ packages: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true - /jackspeak@2.3.6: - resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} - engines: {node: '>=14'} + /jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} dependencies: '@isaacs/cliui': 8.0.2 optionalDependencies: '@pkgjs/parseargs': 0.11.0 dev: true - /jiti@1.21.0: - resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} + /jiti@1.21.6: + resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==} hasBin: true dev: true @@ -2679,7 +2689,7 @@ packages: dependencies: '@metamask/json-rpc-engine': 7.3.3 '@metamask/safe-event-emitter': 3.1.1 - '@metamask/utils': 8.4.0 + '@metamask/utils': 8.5.0 readable-stream: 3.6.2 transitivePeerDependencies: - supports-color @@ -2692,7 +2702,7 @@ packages: dependencies: '@bcherny/json-schema-ref-parser': 10.0.5-fork '@types/json-schema': 7.0.15 - '@types/lodash': 4.17.0 + '@types/lodash': 4.17.7 '@types/prettier': 2.7.3 cli-color: 2.0.4 get-stdin: 8.0.0 @@ -2714,10 +2724,6 @@ packages: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} dev: true - /jsonc-parser@3.2.1: - resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==} - dev: true - /keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} dependencies: @@ -2748,14 +2754,14 @@ packages: crossws: 0.2.4 defu: 6.1.4 get-port-please: 3.1.2 - h3: 1.11.1 + h3: 1.12.0 http-shutdown: 1.2.2 - jiti: 1.21.0 - mlly: 1.6.1 + jiti: 1.21.6 + mlly: 1.7.1 node-forge: 1.3.1 pathe: 1.1.2 std-env: 3.7.0 - ufo: 1.5.3 + ufo: 1.5.4 untun: 0.1.3 uqr: 0.1.2 transitivePeerDependencies: @@ -2800,16 +2806,8 @@ packages: get-func-name: 2.0.2 dev: true - /lru-cache@10.2.0: - resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} - engines: {node: 14 || >=16.14} - dev: true - - /lru-cache@6.0.0: - resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} - engines: {node: '>=10'} - dependencies: - yallist: 4.0.0 + /lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} dev: true /lru-queue@0.1.0: @@ -2818,11 +2816,10 @@ packages: es5-ext: 0.10.64 dev: true - /magic-string@0.30.9: - resolution: {integrity: sha512-S1+hd+dIrC8EZqKyT9DstTH/0Z+f76kmmvZnkfQVmOpDEF9iVgdYif3Q/pIWHmCoo59bQVGW0kVL3e2nl+9+Sw==} - engines: {node: '>=12'} + /magic-string@0.30.11: + resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 dev: true /md5-hex@3.0.1: @@ -2832,8 +2829,9 @@ packages: blueimp-md5: 2.19.0 dev: true - /memoizee@0.4.15: - resolution: {integrity: sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==} + /memoizee@0.4.17: + resolution: {integrity: sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==} + engines: {node: '>=0.12'} dependencies: d: 1.0.2 es5-ext: 0.10.64 @@ -2842,7 +2840,7 @@ packages: is-promise: 2.2.2 lru-queue: 0.1.0 next-tick: 1.1.0 - timers-ext: 0.1.7 + timers-ext: 0.1.8 dev: true /merge-stream@2.0.0: @@ -2858,11 +2856,11 @@ packages: resolution: {integrity: sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==} dev: true - /micromatch@4.0.5: - resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + /micromatch@4.0.7: + resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} engines: {node: '>=8.6'} dependencies: - braces: 3.0.2 + braces: 3.0.3 picomatch: 2.3.1 dev: true @@ -2899,8 +2897,8 @@ packages: brace-expansion: 1.1.11 dev: true - /minimatch@9.0.4: - resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} + /minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} dependencies: brace-expansion: 2.0.1 @@ -2910,8 +2908,8 @@ packages: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: true - /minipass@7.0.4: - resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} + /minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} dev: true @@ -2921,13 +2919,13 @@ packages: hasBin: true dev: true - /mlly@1.6.1: - resolution: {integrity: sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==} + /mlly@1.7.1: + resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} dependencies: - acorn: 8.11.3 + acorn: 8.12.1 pathe: 1.1.2 - pkg-types: 1.0.3 - ufo: 1.5.3 + pkg-types: 1.1.3 + ufo: 1.5.4 dev: true /mri@1.2.0: @@ -2974,9 +2972,8 @@ packages: resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} dev: true - /node-addon-api@7.1.0: - resolution: {integrity: sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==} - engines: {node: ^16 || ^18 || >= 20} + /node-addon-api@7.1.1: + resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} dev: true /node-fetch-native@1.6.4: @@ -2988,8 +2985,8 @@ packages: engines: {node: '>= 6.13.0'} dev: true - /node-releases@2.0.14: - resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + /node-releases@2.0.18: + resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} dev: true /normalize-path@3.0.0: @@ -3019,7 +3016,7 @@ packages: dependencies: destr: 2.0.3 node-fetch-native: 1.6.4 - ufo: 1.5.3 + ufo: 1.5.4 dev: true /ohash@1.1.3: @@ -3043,16 +3040,16 @@ packages: mimic-fn: 4.0.0 dev: true - /optionator@0.9.3: - resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} + /optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} dependencies: - '@aashutoshrathi/word-wrap': 1.2.6 deep-is: 0.1.4 fast-levenshtein: 2.0.6 levn: 0.4.1 prelude-ls: 1.2.1 type-check: 0.4.0 + word-wrap: 1.2.5 dev: true /p-limit@3.1.0: @@ -3066,7 +3063,7 @@ packages: resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - yocto-queue: 1.0.0 + yocto-queue: 1.1.1 dev: true /p-locate@5.0.0: @@ -3076,6 +3073,10 @@ packages: p-limit: 3.1.0 dev: true + /package-json-from-dist@1.0.0: + resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==} + dev: true + /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -3103,12 +3104,12 @@ packages: engines: {node: '>=12'} dev: true - /path-scurry@1.10.2: - resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} - engines: {node: '>=16 || 14 >=14.17'} + /path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} dependencies: - lru-cache: 10.2.0 - minipass: 7.0.4 + lru-cache: 10.4.3 + minipass: 7.1.2 dev: true /path-type@4.0.0: @@ -3124,8 +3125,8 @@ packages: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true - /picocolors@1.0.0: - resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + /picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} dev: true /picomatch@2.3.1: @@ -3161,11 +3162,11 @@ packages: thread-stream: 0.15.2 dev: true - /pkg-types@1.0.3: - resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} + /pkg-types@1.1.3: + resolution: {integrity: sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==} dependencies: - jsonc-parser: 3.2.1 - mlly: 1.6.1 + confbox: 0.1.7 + mlly: 1.7.1 pathe: 1.1.2 dev: true @@ -3185,12 +3186,12 @@ packages: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} dev: true - /postcss@8.4.38: - resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} + /postcss@8.4.40: + resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.7 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.2.0 dev: true @@ -3368,17 +3369,18 @@ packages: /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true dependencies: glob: 7.2.3 dev: true - /rimraf@5.0.5: - resolution: {integrity: sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==} - engines: {node: '>=14'} + /rimraf@5.0.9: + resolution: {integrity: sha512-3i7b8OcswU6CpU8Ej89quJD4O98id7TtVM5U4Mybh84zQXdrFmDLouWBEEaD/QfO3gDDfH+AGFCGsR7kngzQnA==} + engines: {node: 14 >=14.20 || 16 >=16.20 || >=18} hasBin: true dependencies: - glob: 10.3.12 + glob: 10.4.5 dev: true /rollup@3.29.4: @@ -3398,7 +3400,7 @@ packages: /rxjs@7.8.1: resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} dependencies: - tslib: 2.6.2 + tslib: 2.6.3 dev: true /safe-buffer@5.2.1: @@ -3410,12 +3412,10 @@ packages: engines: {node: '>=10'} dev: true - /semver@7.6.0: - resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} + /semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} engines: {node: '>=10'} hasBin: true - dependencies: - lru-cache: 6.0.0 dev: true /shebang-command@2.0.0: @@ -3553,12 +3553,7 @@ packages: /strip-literal@1.3.0: resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} dependencies: - acorn: 8.11.3 - dev: true - - /superstruct@1.0.4: - resolution: {integrity: sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==} - engines: {node: '>=14.0.0'} + acorn: 8.12.1 dev: true /supports-color@7.2.0: @@ -3608,15 +3603,16 @@ packages: engines: {node: '>=4'} dev: true - /timers-ext@0.1.7: - resolution: {integrity: sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==} + /timers-ext@0.1.8: + resolution: {integrity: sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==} + engines: {node: '>=0.12'} dependencies: es5-ext: 0.10.64 next-tick: 1.1.0 dev: true - /tinybench@2.7.0: - resolution: {integrity: sha512-Qgayeb106x2o4hNzNjsZEfFziw8IbKqtbXBjVh7VIZfBxfD5M4gWtpyx5+YTae2gJ6Y6Dz/KLepiv16RFeQWNA==} + /tinybench@2.8.0: + resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} dev: true /tinypool@0.5.0: @@ -3641,8 +3637,8 @@ packages: hasBin: true dev: true - /tsc-alias@1.8.8: - resolution: {integrity: sha512-OYUOd2wl0H858NvABWr/BoSKNERw3N9GTi3rHPK8Iv4O1UyUXIrTTOAZNHsjlVpXFOhpJBVARI1s+rzwLivN3Q==} + /tsc-alias@1.8.10: + resolution: {integrity: sha512-Ibv4KAWfFkFdKJxnWfVtdOmB0Zi1RJVxcbPGiCDsFpCQSsmpWyuzHG3rQyI5YkobWwxFPEyQfu1hdo4qLG2zPw==} hasBin: true dependencies: chokidar: 3.6.0 @@ -3657,18 +3653,18 @@ packages: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true - /tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + /tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} dev: true - /tsutils@3.21.0(typescript@5.4.5): + /tsutils@3.21.0(typescript@5.5.4): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 5.4.5 + typescript: 5.5.4 dev: true /tsx@3.14.0: @@ -3676,7 +3672,7 @@ packages: hasBin: true dependencies: esbuild: 0.18.20 - get-tsconfig: 4.7.3 + get-tsconfig: 4.7.6 source-map-support: 0.5.21 optionalDependencies: fsevents: 2.3.3 @@ -3689,8 +3685,8 @@ packages: prelude-ls: 1.2.1 dev: true - /type-detect@4.0.8: - resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + /type-detect@4.1.0: + resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} dev: true @@ -3699,8 +3695,8 @@ packages: engines: {node: '>=10'} dev: true - /type@2.7.2: - resolution: {integrity: sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==} + /type@2.7.3: + resolution: {integrity: sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==} dev: true /typedarray-to-buffer@3.1.5: @@ -3715,14 +3711,14 @@ packages: hasBin: true dev: true - /typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + /typescript@5.5.4: + resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} hasBin: true dev: true - /ufo@1.5.3: - resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} + /ufo@1.5.4: + resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} dev: true /uint8arrays@3.1.1: @@ -3735,12 +3731,12 @@ packages: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} dev: true - /undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + /undici-types@6.11.1: + resolution: {integrity: sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==} dev: true - /unenv@1.9.0: - resolution: {integrity: sha512-QKnFNznRxmbOF1hDgzpqrlIf6NC5sbZ2OJ+5Wl3OX8uM+LUJXbj4TXvLJCtwbPTmbMHCLIz6JLKNinNsMShK9g==} + /unenv@1.10.0: + resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} dependencies: consola: 3.2.3 defu: 6.1.4 @@ -3796,14 +3792,14 @@ packages: anymatch: 3.1.3 chokidar: 3.6.0 destr: 2.0.3 - h3: 1.11.1 + h3: 1.12.0 idb-keyval: 6.2.1 listhen: 1.7.2 - lru-cache: 10.2.0 + lru-cache: 10.4.3 mri: 1.2.0 node-fetch-native: 1.6.4 ofetch: 1.3.4 - ufo: 1.5.3 + ufo: 1.5.4 transitivePeerDependencies: - uWebSockets.js dev: true @@ -3817,15 +3813,15 @@ packages: pathe: 1.1.2 dev: true - /update-browserslist-db@1.0.13(browserslist@4.23.0): - resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} + /update-browserslist-db@1.1.0(browserslist@4.23.2): + resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' dependencies: - browserslist: 4.23.0 + browserslist: 4.23.2 escalade: 3.1.2 - picocolors: 1.0.0 + picocolors: 1.0.1 dev: true /uqr@0.1.2: @@ -3847,17 +3843,17 @@ packages: hasBin: true dev: true - /vite-node@0.31.4(@types/node@20.12.7): + /vite-node@0.31.4(@types/node@22.0.0): resolution: {integrity: sha512-uzL377GjJtTbuc5KQxVbDu2xfU/x0wVjUtXQR2ihS21q/NK6ROr4oG0rsSkBBddZUVCwzfx22in76/0ZZHXgkQ==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.4 - mlly: 1.6.1 + debug: 4.3.6 + mlly: 1.7.1 pathe: 1.1.2 - picocolors: 1.0.0 - vite: 4.5.3(@types/node@20.12.7) + picocolors: 1.0.1 + vite: 4.5.3(@types/node@22.0.0) transitivePeerDependencies: - '@types/node' - less @@ -3869,7 +3865,7 @@ packages: - terser dev: true - /vite@4.5.3(@types/node@20.12.7): + /vite@4.5.3(@types/node@22.0.0): resolution: {integrity: sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -3897,9 +3893,9 @@ packages: terser: optional: true dependencies: - '@types/node': 20.12.7 + '@types/node': 22.0.0 esbuild: 0.18.20 - postcss: 8.4.38 + postcss: 8.4.40 rollup: 3.29.4 optionalDependencies: fsevents: 2.3.3 @@ -3936,31 +3932,31 @@ packages: webdriverio: optional: true dependencies: - '@types/chai': 4.3.14 + '@types/chai': 4.3.16 '@types/chai-subset': 1.3.5 - '@types/node': 20.12.7 + '@types/node': 22.0.0 '@vitest/expect': 0.31.4 '@vitest/runner': 0.31.4 '@vitest/snapshot': 0.31.4 '@vitest/spy': 0.31.4 '@vitest/utils': 0.31.4 - acorn: 8.11.3 - acorn-walk: 8.3.2 + acorn: 8.12.1 + acorn-walk: 8.3.3 cac: 6.7.14 - chai: 4.4.1 + chai: 4.5.0 concordance: 5.0.4 - debug: 4.3.4 + debug: 4.3.6 local-pkg: 0.4.3 - magic-string: 0.30.9 + magic-string: 0.30.11 pathe: 1.1.2 - picocolors: 1.0.0 + picocolors: 1.0.1 std-env: 3.7.0 strip-literal: 1.3.0 - tinybench: 2.7.0 + tinybench: 2.8.0 tinypool: 0.5.0 - vite: 4.5.3(@types/node@20.12.7) - vite-node: 0.31.4(@types/node@20.12.7) - why-is-node-running: 2.2.2 + vite: 4.5.3(@types/node@22.0.0) + vite-node: 0.31.4(@types/node@22.0.0) + why-is-node-running: 2.3.0 transitivePeerDependencies: - less - lightningcss @@ -3988,8 +3984,8 @@ packages: isexe: 2.0.0 dev: true - /why-is-node-running@2.2.2: - resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} + /why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true dependencies: @@ -3997,6 +3993,11 @@ packages: stackback: 0.0.2 dev: true + /word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + dev: true + /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -4019,8 +4020,8 @@ packages: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true - /ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} + /ws@7.5.10: + resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} engines: {node: '>=8.3.0'} peerDependencies: bufferutil: ^4.0.1 @@ -4037,10 +4038,6 @@ packages: engines: {node: '>=10'} dev: true - /yallist@4.0.0: - resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - dev: true - /yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} @@ -4064,7 +4061,7 @@ packages: engines: {node: '>=10'} dev: true - /yocto-queue@1.0.0: - resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} + /yocto-queue@1.1.1: + resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} engines: {node: '>=12.20'} dev: true diff --git a/scripts/gen-protobufs.mjs b/scripts/gen-protobufs.mjs index dc2bbc8e..bc8aefec 100644 --- a/scripts/gen-protobufs.mjs +++ b/scripts/gen-protobufs.mjs @@ -6,9 +6,11 @@ * files, and then generates an `index.ts` file to re-export the generated code. */ -import { spawnSync } from "child_process"; +import { exec, spawnSync } from "child_process"; import degit from "degit"; import { + copyFileSync, + cpSync, mkdirSync, readFileSync, readdirSync, @@ -17,8 +19,12 @@ import { statSync, writeFileSync, } from "fs"; +// @ts-ignore import { globSync } from "glob"; -import { capitalize } from "lodash-es"; +import * as fs from 'fs'; +import * as path from 'path'; + +import { capitalize, takeRight } from "lodash-es"; import { dirname, join } from "path"; import { fileURLToPath } from "url"; @@ -26,6 +32,7 @@ import { fileURLToPath } from "url"; * @typedef Repo * @type {object} * @property {string} repo - Git repo and branch to clone + * @property {string} tag - Git repo and branch to clone * @property {string[]} paths - Paths to proto files relative to the repo root */ @@ -35,39 +42,116 @@ import { fileURLToPath } from "url"; */ const REPOS = [ { - repo: "cosmos/cosmos-sdk#v0.47.9", + repo: "cosmos/cosmos-sdk", + tag: "v0.50.10", + paths: ["proto"], + }, + { + repo: "cosmos/ics23", + tag: "master", + paths: ["proto"], + }, + { + repo: "cosmos/ibc-go", + tag: "v8.5.2", + paths: ["proto"], + }, + { + repo: "CosmWasm/wasmd", + tag: "main", + paths: ["proto"], + }, + { + repo: "osmosis-labs/osmosis", + tag: "main", + paths: ["proto"], + }, + { + repo: "InjectiveLabs/sdk-go", + tag: "master", + paths: ["proto"], + }, + { + repo: "evmos/ethermint", + tag: "main", + paths: ["proto"], + }, + { + repo: "evmos/evmos", + tag: "main", + paths: ["proto"], + }, + { + repo: "dymensionxyz/osmosis", + tag: "main-dym", + paths: ["proto"], + }, + { + repo: "Kava-Labs/kava", + tag: "master", + paths: ["proto"], + }, + { + repo: "elys-network/elys", + tag: "main", + paths: ["proto"], + }, +/* { + repo: "onomyprotocol/market", + tag: "main", + paths: ["proto"], + }, */ + { + repo: "pryzm-finance/pryzmjs", + tag: "main", paths: ["proto"], }, { - repo: "cosmos/ics23#master", + repo: "sunriselayer/sunrise", + tag: "main", paths: ["proto"], }, { - repo: "cosmos/ibc-go#main", + repo: "neutron-org/neutron", + tag: "main", paths: ["proto"], }, { - repo: "CosmWasm/wasmd#main", + repo: "milkyway-labs/milkyway", + tag: "main", paths: ["proto"], }, { - repo: "osmosis-labs/osmosis#main", + repo: "noble-assets/dollar", + tag: "main", paths: ["proto"], }, { - repo: "InjectiveLabs/sdk-go#master", + repo: "noble-assets/swap", + tag: "main", paths: ["proto"], }, { - repo: "evmos/ethermint#main", + repo: "CoreumFoundation/coreum", + tag: "master", paths: ["proto"], }, { - repo: "dymensionxyz/osmosis#main-dym", + repo: "atomone-hub/atomone", + tag: "main", + paths: ["proto"], + }, + { + repo: "NibiruChain/nibiru", + tag: "main", paths: ["proto"], }, ]; - +/** + * TODO: Add more repos here when necessary. + * @type {Repo[]} + */ +const THIRD = []; const __dirname = dirname(fileURLToPath(import.meta.url)); const PROTOBUFS_DIR = join(__dirname, "..", "src", "protobufs"); const TMP_DIR = join(PROTOBUFS_DIR, ".tmp"); @@ -85,41 +169,101 @@ console.log("Initialising directories..."); console.log("Cloning required repos..."); { await Promise.all( - REPOS.map(({ repo }) => degit(repo).clone(join(TMP_DIR, id(repo)))) - ); + REPOS.map(({ repo, tag }) => cloneSpecificCommit("git@github.com:"+repo+".git" , tag, join(TMP_DIR, id(repo+"#"+tag))) + )) +} + +console.log("Copying Third Party Proto..."); +{ + //cpSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.47.9"),"proto"),join(TMP_DIR,id("elys-network/elys#main"),""),{recursive: true}) + copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.50.10"),"proto"), join(TMP_DIR,id("elys-network/elys#main"),"proto")) + copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.50.10"),"proto"), join(TMP_DIR,id("noble-assets/dollar#main"),"proto")) + copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.50.10"),"proto"), join(TMP_DIR,id("noble-assets/swap#main"),"proto")) + copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.50.10"),"proto"), join(TMP_DIR,id("CoreumFoundation/coreum#master"),"proto")) + //copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.50.10"),"proto"), join(TMP_DIR,id("onomyprotocol/market#main"),"proto")) + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/cosmos") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/alliance") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/gogoproto") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/cosmos_proto") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/google") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/ibc") , { recursive: true, force: true }); + //rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/") , { recursive: true, force: true }); + //copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/cosmos-sdk#v0.47.9"),"proto"), join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto")); + copyDirectoryRecursiveSync(join(TMP_DIR, id("cosmos/ibc-go#v8.5.2"),"proto"), join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto")); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/amino") , { recursive: true, force: true }); + rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/tendermint") , { recursive: true, force: true }); + //rmSync( join(TMP_DIR,id("pryzm-finance/pryzmjs#main"),"proto/cosmos/app") , { recursive: true, force: true }); + const dymensionDir = join(TMP_DIR,id("dymensionxyz/osmosis#main-dym"),"proto"); + const dymensionOsmosisDir = join(dymensionDir, "osmosis"); + rmSync( dymensionOsmosisDir , { recursive: true, force: true }); } +/* console.log("Flattening dymension protobufs..."); +{ + // Move all dirs in protobufs/dymension/osmosis out into protobufs/dymension + const dymensionDir = join(TMP_DIR,id("dymensionxyz/osmosis#main-dym"),"proto"); + const dymensionOsmosisDir = join(dymensionDir, "osmosis"); + const dymensionDymxyzDir = join(dymensionDir, "dymensionxyz/dymension"); + // Move all subdirs up one level + readdirSync(dymensionOsmosisDir).forEach((file) => { + const currentFile = join(dymensionOsmosisDir, file); + const stats = statSync(currentFile); + if (stats.isDirectory()) { + copyDirectoryRecursiveSync(currentFile, join(dymensionDir, file)); + } + }); + readdirSync(dymensionDymxyzDir).forEach((file) => { + const currentFile = join(dymensionDymxyzDir, file); + const stats = statSync(currentFile); + if (stats.isDirectory()) { + copyDirectoryRecursiveSync(currentFile, join(dymensionDir, file)); + } + }); + + +} */ + + console.log("Generating TS files from proto files..."); { - for (const { repo, paths } of REPOS) { + for (const { repo, tag, paths } of REPOS) { + for (const path of paths) { - spawnSync( - "pnpm", - [ - "buf", - "generate", - join(TMP_DIR, id(repo), path), - "--output", - join( - PROTOBUFS_DIR, - repo.startsWith("dymensionxyz") ? "dymension" : "" - ), - ], - { - cwd: process.cwd(), - stdio: "inherit", - } - ); + + spawnSync( + "pnpm", + [ + "buf", + "generate", + join(TMP_DIR, id(repo+"#"+tag), path), + "--output", + PROTOBUFS_DIR + ], + { + cwd: process.cwd(), + stdio: "inherit", + } + ); + + } console.log(`✔️ [${repo}]`); } } -console.log("Flattening dymension protobufs..."); +/* console.log("Cleaning dymension protobufs..."); { - // Move all dirs in protobufs/dymension/osmosis out into protobufs/dymension const dymensionDir = join(PROTOBUFS_DIR, "dymension"); const dymensionOsmosisDir = join(dymensionDir, "osmosis"); + + rmSync( dymensionOsmosisDir , { recursive: true, force: true }); + rmSync( join(dymensionDir, "dymensionxyz") , { recursive: true, force: true }); +} */ +/* + // Move all dirs in protobufs/dymension/osmosis out into protobufs/dymension + const dymensionDir = join(PROTOBUFS_DIR, "dymension"); + const dymensionOsmosisDir = join(dymensionDir, "osmosis"); + const dymensionDymxyzDir = join(dymensionDir, "dymensionxyz/dymension"); // Move all subdirs up one level readdirSync(dymensionOsmosisDir).forEach((file) => { const currentFile = join(dymensionOsmosisDir, file); @@ -128,6 +272,14 @@ console.log("Flattening dymension protobufs..."); renameSync(currentFile, join(dymensionDir, file)); } }); + readdirSync(dymensionDymxyzDir).forEach((file) => { + const currentFile = join(dymensionDymxyzDir, file); + const stats = statSync(currentFile); + if (stats.isDirectory()) { + renameSync(currentFile, join(dymensionDir, file)); + } + }); + // Remove all empty dirs readdirSync(dymensionDir).forEach((file) => { const currentFile = join(dymensionDir, file); @@ -136,7 +288,7 @@ console.log("Flattening dymension protobufs..."); rmSync(currentFile, { recursive: true, force: true }); } }); -} +} */ console.log("Generating src/index.ts file and renaming exports..."); { @@ -216,3 +368,54 @@ console.log("Cleaning up..."); } console.log("Proto generation completed successfully!"); + + +function copyDirectoryRecursiveSync(src, dest) { + // Vérifier si le dossier de destination existe, sinon le créer + if (!fs.existsSync(dest)) { + fs.mkdirSync(dest, { recursive: true }); + } + + // Lire le contenu du dossier source + const entries = fs.readdirSync(src, { withFileTypes: true }); + + // Parcourir chaque entrée (fichier ou dossier) + for (const entry of entries) { + const srcPath = path.join(src, entry.name); + const destPath = path.join(dest, entry.name); + + if (entry.isDirectory()) { + // Si c'est un dossier, appeler récursivement la fonction + copyDirectoryRecursiveSync(srcPath, destPath); + } else { + // Si c'est un fichier, le copier + fs.copyFileSync(srcPath, destPath); + } + } +} + +async function cloneSpecificCommit( + repoUrl, + commitHash, + targetDirectory +) { + return new Promise((resolve, reject) => { + + const targetPath = join(targetDirectory) + + exec( + `git clone ${repoUrl} ${targetPath} && cd ${targetPath} && git checkout ${commitHash}`, + (error, stdout, stderr) => { + if (error) { + console.error("Error:", stderr) + reject(error) + } + else{ + console.log(repoUrl) + resolve(stdout) + } + + } + ) + }) +} diff --git a/src/client/apis/simulateDymensionSinglePoolSwap.ts b/src/client/apis/simulateDymensionSinglePoolSwap.ts index 59bdf5fd..3813daa0 100644 --- a/src/client/apis/simulateDymensionSinglePoolSwap.ts +++ b/src/client/apis/simulateDymensionSinglePoolSwap.ts @@ -1,4 +1,4 @@ -import { DymensionGammV1beta1QueryEstimateSwapExactAmountInService as SwapService } from "cosmes/protobufs"; +import { DymensionxyzDymensionGammV1beta1QueryEstimateSwapExactAmountInService as SwapService } from "cosmes/protobufs"; import { RpcClient } from "../clients/RpcClient"; diff --git a/src/client/models/MsgSend.ts b/src/client/models/MsgSend.ts index 9396cc5f..3085b57f 100644 --- a/src/client/models/MsgSend.ts +++ b/src/client/models/MsgSend.ts @@ -8,9 +8,11 @@ type Data = DeepPrettify>; export class MsgSend implements Adapter { private readonly data: Data; + private readonly legacy: boolean; - constructor(data: Data) { + constructor(data: Data, legacy = false) { this.data = data; + this.legacy = legacy; } public toProto() { @@ -19,7 +21,7 @@ export class MsgSend implements Adapter { public toAmino() { return { - type: "cosmos-sdk/MsgSend", + type: this.legacy ? "bank/MsgSend" : "cosmos-sdk/MsgSend", value: { from_address: this.data.fromAddress, to_address: this.data.toAddress, diff --git a/src/client/models/Secp256k1PubKey.ts b/src/client/models/Secp256k1PubKey.ts index dd8e45d5..f497360c 100644 --- a/src/client/models/Secp256k1PubKey.ts +++ b/src/client/models/Secp256k1PubKey.ts @@ -12,24 +12,34 @@ import { Adapter } from "./Adapter"; type Data = DeepPrettify< { chainId?: string | undefined; + algo?: string | undefined; } & PlainMessage >; export class Secp256k1PubKey implements Adapter { private readonly data: Data; private readonly type: string; + private readonly algo: string | undefined; constructor(data: Data) { this.data = data; this.type = data.chainId?.split(/[-_]/, 2).at(0) ?? ""; + this.algo = data.algo } public toProto() { - return this.type === "injective" - ? new ProtoInjectiveSecp256k1PubKey(this.data) - : this.type === "dymension" || this.type === "evmos" - ? new ProtoEthermintSecp256k1PubKey(this.data) - : new ProtoSecp256k1PubKey(this.data); + + if(this.algo){ + return this.algo === "ethsecp256k1" ? new ProtoEthermintSecp256k1PubKey(this.data) : new ProtoSecp256k1PubKey(this.data) + } + else{ + return this.type === "injective" + ? new ProtoInjectiveSecp256k1PubKey(this.data) + : (this.type === "dymension" || this.type === "evmos" || this.type === "planq") + ? new ProtoEthermintSecp256k1PubKey(this.data) + : new ProtoSecp256k1PubKey(this.data) + } + } // TODO: needs to be updated to include injective/dymension support diff --git a/src/client/utils/toBaseAccount.ts b/src/client/utils/toBaseAccount.ts index 448cd631..83010f77 100644 --- a/src/client/utils/toBaseAccount.ts +++ b/src/client/utils/toBaseAccount.ts @@ -6,6 +6,7 @@ import { CosmosVestingV1beta1DelayedVestingAccount as DelayedVesting, EthermintTypesV1EthAccount as EthermintAccount, InjectiveTypesV1beta1EthAccount as InjectiveAccount, + EthTypesV1EthAccount as EthAccount, CosmosVestingV1beta1PeriodicVestingAccount as PeriodicVestingAccount, } from "cosmes/protobufs"; @@ -64,6 +65,13 @@ export function toBaseAccount({ typeUrl, value }: Any): BaseAccount { } return baseAccount; } + case EthAccount.typeName: { + const { baseAccount } = EthAccount.fromBinary(value); + if (!baseAccount) { + throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); + } + return baseAccount; + } default: { throw new Error(`${ERR_UNKNOWN_ACCOUNT_TYPE}: ${typeUrl.slice(1)}`); } diff --git a/src/protobufs/cosmos/capability/module/v1/module_pb.ts b/src/protobufs/atomone/coredaos/module/v1/module_pb.ts similarity index 65% rename from src/protobufs/cosmos/capability/module/v1/module_pb.ts rename to src/protobufs/atomone/coredaos/module/v1/module_pb.ts index ae30c0d5..9307fff5 100644 --- a/src/protobufs/cosmos/capability/module/v1/module_pb.ts +++ b/src/protobufs/atomone/coredaos/module/v1/module_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/module/v1/module.proto (package cosmos.capability.module.v1, syntax proto3) +// @generated from file atomone/coredaos/module/v1/module.proto (package atomone.coredaos.module.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,18 +7,18 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * Module is the config object of the capability module. + * Module is the config object of the builder module. * - * @generated from message cosmos.capability.module.v1.Module + * @generated from message atomone.coredaos.module.v1.Module */ export class Module extends Message { /** - * seal_keeper defines if keeper.Seal() will run on BeginBlock() to prevent further modules from creating a scoped - * keeper. For more details check x/capability/keeper.go. + * Authority defines the custom module authority. If not set, defaults to the + * governance module. * - * @generated from field: bool seal_keeper = 1; + * @generated from field: string authority = 1; */ - sealKeeper = false; + authority = ""; constructor(data?: PartialMessage) { super(); @@ -26,9 +26,9 @@ export class Module extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.module.v1.Module"; + static readonly typeName = "atomone.coredaos.module.v1.Module"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "seal_keeper", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/atomone/coredaos/v1/coredaos_pb.ts b/src/protobufs/atomone/coredaos/v1/coredaos_pb.ts new file mode 100644 index 00000000..34c92723 --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/coredaos_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/coredaos.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the x/coredaos module. + * + * @generated from message atomone.coredaos.v1.Params + */ +export class Params extends Message { + /** + * steering_dao_address defines the address which has authority + * to execute messages as Steering DAO. + * + * @generated from field: string steering_dao_address = 1; + */ + steeringDaoAddress = ""; + + /** + * oversight_dao_address defines the address which has authority + * to execute messages as Oversight DAO. + * + * @generated from field: string oversight_dao_address = 2; + */ + oversightDaoAddress = ""; + + /** + * voting_period_extensions_limit defines the maximum number of times + * a proposal's voting period can be extended. + * + * @generated from field: uint32 voting_period_extensions_limit = 3; + */ + votingPeriodExtensionsLimit = 0; + + /** + * voting_period_extension_duration defines the duration for which + * a proposal's voting period can be extended. + * + * @generated from field: google.protobuf.Duration voting_period_extension_duration = 4; + */ + votingPeriodExtensionDuration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "steering_dao_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oversight_dao_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "voting_period_extensions_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "voting_period_extension_duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/atomone/coredaos/v1/genesis_pb.ts b/src/protobufs/atomone/coredaos/v1/genesis_pb.ts new file mode 100644 index 00000000..f61d2692 --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/genesis.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./coredaos_pb.js"; + +/** + * GenesisState defines the x/coredaos module's genesis state. + * + * @generated from message atomone.coredaos.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: atomone.coredaos.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/atomone/coredaos/v1/query_cosmes.ts b/src/protobufs/atomone/coredaos/v1/query_cosmes.ts new file mode 100644 index 00000000..a759f8ae --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/query.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "atomone.coredaos.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc atomone.coredaos.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/atomone/coredaos/v1/query_pb.ts b/src/protobufs/atomone/coredaos/v1/query_pb.ts new file mode 100644 index 00000000..b2ee903f --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/query.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./coredaos_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message atomone.coredaos.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message atomone.coredaos.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: atomone.coredaos.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/coredaos/v1/tx_cosmes.ts b/src/protobufs/atomone/coredaos/v1/tx_cosmes.ts new file mode 100644 index 00000000..422e74cf --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/tx_cosmes.ts @@ -0,0 +1,75 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/tx.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAnnotateProposal, MsgAnnotateProposalResponse, MsgEndorseProposal, MsgEndorseProposalResponse, MsgExtendVotingPeriod, MsgExtendVotingPeriodResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVetoProposal, MsgVetoProposalResponse } from "./tx_pb.js"; + +const TYPE_NAME = "atomone.coredaos.v1.Msg"; + +/** + * AnnotateProposal defines a method to annotate a proposal with additional information. + * It is only available to the Steering DAO. + * + * @generated from rpc atomone.coredaos.v1.Msg.AnnotateProposal + */ +export const MsgAnnotateProposalService = { + typeName: TYPE_NAME, + method: "AnnotateProposal", + Request: MsgAnnotateProposal, + Response: MsgAnnotateProposalResponse, +} as const; + +/** + * EndorseProposal defines a method to endorse a proposal, and for law proposals this also + * results in the lowering of the passing threshold to the passing threshold of regular proposals. + * It is only available to the Steering DAO. + * + * @generated from rpc atomone.coredaos.v1.Msg.EndorseProposal + */ +export const MsgEndorseProposalService = { + typeName: TYPE_NAME, + method: "EndorseProposal", + Request: MsgEndorseProposal, + Response: MsgEndorseProposalResponse, +} as const; + +/** + * ExtendVotingPeriod defines a method to extend the voting period of a proposal. + * It is available to both the Steering DAO and the Oversight DAO. + * + * @generated from rpc atomone.coredaos.v1.Msg.ExtendVotingPeriod + */ +export const MsgExtendVotingPeriodService = { + typeName: TYPE_NAME, + method: "ExtendVotingPeriod", + Request: MsgExtendVotingPeriod, + Response: MsgExtendVotingPeriodResponse, +} as const; + +/** + * VetoProposal defines a method to veto a proposal. + * It is only available to the Oversight DAO. + * + * @generated from rpc atomone.coredaos.v1.Msg.VetoProposal + */ +export const MsgVetoProposalService = { + typeName: TYPE_NAME, + method: "VetoProposal", + Request: MsgVetoProposal, + Response: MsgVetoProposalResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the x/coredaos + * module parameters. The authority is defined in the keeper. + * + * @generated from rpc atomone.coredaos.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/atomone/coredaos/v1/tx_pb.ts b/src/protobufs/atomone/coredaos/v1/tx_pb.ts new file mode 100644 index 00000000..cd7bf869 --- /dev/null +++ b/src/protobufs/atomone/coredaos/v1/tx_pb.ts @@ -0,0 +1,450 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/coredaos/v1/tx.proto (package atomone.coredaos.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./coredaos_pb.js"; + +/** + * MsgAnnotateProposal defines a message for annotating a proposal. + * + * @generated from message atomone.coredaos.v1.MsgAnnotateProposal + */ +export class MsgAnnotateProposal extends Message { + /** + * annotator is the address of the dao annotating the proposal. + * + * @generated from field: string annotator = 1; + */ + annotator = ""; + + /** + * proposal_id is the ID of the proposal to annotate. + * + * @generated from field: uint64 proposal_id = 2; + */ + proposalId = protoInt64.zero; + + /** + * annotation is the annotation to add to the proposal. + * + * @generated from field: string annotation = 3; + */ + annotation = ""; + + /** + * overwrite is a boolean indicating whether to overwrite the existing annotation. + * Must be set to true if the proposal already has an annotation. + * Ignored if the proposal does not have yet an annotation. + * + * @generated from field: bool overwrite = 4; + */ + overwrite = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgAnnotateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "annotator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "annotation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "overwrite", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAnnotateProposal { + return new MsgAnnotateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAnnotateProposal { + return new MsgAnnotateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAnnotateProposal { + return new MsgAnnotateProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgAnnotateProposal | PlainMessage | undefined, b: MsgAnnotateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAnnotateProposal, a, b); + } +} + +/** + * MsgAnnotateProposalResponse defines the response for MsgAnnotateProposal. + * + * @generated from message atomone.coredaos.v1.MsgAnnotateProposalResponse + */ +export class MsgAnnotateProposalResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgAnnotateProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAnnotateProposalResponse { + return new MsgAnnotateProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAnnotateProposalResponse { + return new MsgAnnotateProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAnnotateProposalResponse { + return new MsgAnnotateProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAnnotateProposalResponse | PlainMessage | undefined, b: MsgAnnotateProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAnnotateProposalResponse, a, b); + } +} + +/** + * MsgEndorseProposal defines a message for endorsing a proposal. + * + * @generated from message atomone.coredaos.v1.MsgEndorseProposal + */ +export class MsgEndorseProposal extends Message { + /** + * endorser is the address of the dao endorsing the proposal. + * + * @generated from field: string endorser = 1; + */ + endorser = ""; + + /** + * proposal_id is the ID of the proposal to endorse. + * + * @generated from field: uint64 proposal_id = 2; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgEndorseProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "endorser", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEndorseProposal { + return new MsgEndorseProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEndorseProposal { + return new MsgEndorseProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEndorseProposal { + return new MsgEndorseProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgEndorseProposal | PlainMessage | undefined, b: MsgEndorseProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEndorseProposal, a, b); + } +} + +/** + * MsgEndorseProposalResponse defines the response for MsgEndorseProposal. + * + * @generated from message atomone.coredaos.v1.MsgEndorseProposalResponse + */ +export class MsgEndorseProposalResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgEndorseProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEndorseProposalResponse { + return new MsgEndorseProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEndorseProposalResponse { + return new MsgEndorseProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEndorseProposalResponse { + return new MsgEndorseProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEndorseProposalResponse | PlainMessage | undefined, b: MsgEndorseProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEndorseProposalResponse, a, b); + } +} + +/** + * MsgExtendVotingPeriod defines a message for extending the voting period of a proposal. + * + * @generated from message atomone.coredaos.v1.MsgExtendVotingPeriod + */ +export class MsgExtendVotingPeriod extends Message { + /** + * extender is the address of the dao extending the voting period. + * + * @generated from field: string extender = 1; + */ + extender = ""; + + /** + * proposal_id is the ID of the proposal to extend. + * + * @generated from field: uint64 proposal_id = 2; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgExtendVotingPeriod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "extender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendVotingPeriod { + return new MsgExtendVotingPeriod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendVotingPeriod { + return new MsgExtendVotingPeriod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExtendVotingPeriod { + return new MsgExtendVotingPeriod().fromJsonString(jsonString, options); + } + + static equals(a: MsgExtendVotingPeriod | PlainMessage | undefined, b: MsgExtendVotingPeriod | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExtendVotingPeriod, a, b); + } +} + +/** + * MsgExtendVotingPeriodResponse defines the response for MsgExtendVotingPeriod. + * + * @generated from message atomone.coredaos.v1.MsgExtendVotingPeriodResponse + */ +export class MsgExtendVotingPeriodResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgExtendVotingPeriodResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendVotingPeriodResponse { + return new MsgExtendVotingPeriodResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendVotingPeriodResponse { + return new MsgExtendVotingPeriodResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExtendVotingPeriodResponse { + return new MsgExtendVotingPeriodResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExtendVotingPeriodResponse | PlainMessage | undefined, b: MsgExtendVotingPeriodResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExtendVotingPeriodResponse, a, b); + } +} + +/** + * MsgVetoProposal defines a message for vetoing a proposal. + * + * @generated from message atomone.coredaos.v1.MsgVetoProposal + */ +export class MsgVetoProposal extends Message { + /** + * vetoer is the address of the dao vetoing the proposal. + * + * @generated from field: string vetoer = 1; + */ + vetoer = ""; + + /** + * proposal_id is the ID of the proposal to veto. + * + * @generated from field: uint64 proposal_id = 2; + */ + proposalId = protoInt64.zero; + + /** + * burn_deposit is a boolean indicating whether to burn the deposit of the proposal. + * If true, the deposit is burned and not refunded. + * + * @generated from field: bool burn_deposit = 3; + */ + burnDeposit = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgVetoProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vetoer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "burn_deposit", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVetoProposal { + return new MsgVetoProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVetoProposal { + return new MsgVetoProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVetoProposal { + return new MsgVetoProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgVetoProposal | PlainMessage | undefined, b: MsgVetoProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVetoProposal, a, b); + } +} + +/** + * MsgVetoProposalResponse defines the response for MsgVetoProposal. + * + * @generated from message atomone.coredaos.v1.MsgVetoProposalResponse + */ +export class MsgVetoProposalResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgVetoProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVetoProposalResponse { + return new MsgVetoProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVetoProposalResponse { + return new MsgVetoProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVetoProposalResponse { + return new MsgVetoProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVetoProposalResponse | PlainMessage | undefined, b: MsgVetoProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVetoProposalResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message atomone.coredaos.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/coredaos parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: atomone.coredaos.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message atomone.coredaos.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.coredaos.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/dynamicfee/module/v1/module_pb.ts b/src/protobufs/atomone/dynamicfee/module/v1/module_pb.ts new file mode 100644 index 00000000..9dae4d8b --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/module/v1/module_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/dynamicfee/module/v1/module.proto (package atomone.dynamicfee.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object of the builder module. + * + * @generated from message atomone.dynamicfee.module.v1.Module + */ +export class Module extends Message { + /** + * Authority defines the custom module authority. If not set, defaults to the + * governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/atomone/dynamicfee/v1/genesis_pb.ts b/src/protobufs/atomone/dynamicfee/v1/genesis_pb.ts new file mode 100644 index 00000000..a1d816a9 --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/genesis_pb.ts @@ -0,0 +1,130 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/genesis.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the dynamicfee module's genesis state. + * + * @generated from message atomone.dynamicfee.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params are the parameters for the dynamicfee module. These parameters + * can be utilized to implement both the base EIP-1559 dynamic fee pricing + * and the AIMD EIP-1559 dynamic fee pricing. + * + * @generated from field: atomone.dynamicfee.v1.Params params = 1; + */ + params?: Params; + + /** + * State contains the current state of the AIMD dynamic fee pricer. + * + * @generated from field: atomone.dynamicfee.v1.State state = 2; + */ + state?: State; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "state", kind: "message", T: State }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * State is utilized to track the current state of the dynamic fee pricer. + * This includes the current base fee, learning rate, and block gas within the + * specified AIMD window. + * + * @generated from message atomone.dynamicfee.v1.State + */ +export class State extends Message { + /** + * BaseGasPrice is the current base fee. This is denominated in the fee per + * gas unit. + * + * @generated from field: string base_gas_price = 1; + */ + baseGasPrice = ""; + + /** + * LearningRate is the current learning rate. + * + * @generated from field: string learning_rate = 2; + */ + learningRate = ""; + + /** + * Window contains a list of the last blocks' gas values. This is used + * to calculate the next base fee. This stores the number of units of gas + * consumed per block. + * + * @generated from field: repeated uint64 window = 3; + */ + window: bigint[] = []; + + /** + * Index is the index of the current block in the block gas window. + * + * @generated from field: uint64 index = 4; + */ + index = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.State"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "learning_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "window", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 4, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): State { + return new State().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): State { + return new State().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): State { + return new State().fromJsonString(jsonString, options); + } + + static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean { + return proto3.util.equals(State, a, b); + } +} + diff --git a/src/protobufs/atomone/dynamicfee/v1/params_pb.ts b/src/protobufs/atomone/dynamicfee/v1/params_pb.ts new file mode 100644 index 00000000..57100270 --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/params_pb.ts @@ -0,0 +1,148 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/params.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params contains the required set of parameters for the EIP1559 dynamic fee + * pricing implementation. + * + * @generated from message atomone.dynamicfee.v1.Params + */ +export class Params extends Message { + /** + * Alpha is the amount we additively increase the learning rate + * when it is above or below the target +/- threshold. + * + * Must be > 0. + * + * @generated from field: string alpha = 1; + */ + alpha = ""; + + /** + * Beta is the amount we multiplicatively decrease the learning rate + * when it is within the target +/- threshold. + * + * Must be [0, 1]. + * + * @generated from field: string beta = 2; + */ + beta = ""; + + /** + * Gamma is the threshold for the learning rate. If the learning rate is + * above or below the target +/- threshold, we additively increase the + * learning rate by Alpha. Otherwise, we multiplicatively decrease the + * learning rate by Beta. + * + * Must be [0, 0.5]. + * + * @generated from field: string gamma = 3; + */ + gamma = ""; + + /** + * MinBaseGasPrice determines the initial gas price of the module and the + * global minimum for the network. + * + * @generated from field: string min_base_gas_price = 5; + */ + minBaseGasPrice = ""; + + /** + * TargetBlockUtilization is the target block utilization expressed as a + * decimal value between 0 and 1. It is the target percentage utilization + * of the block in relation to the consensus_params.block.max_gas parameter. + * + * @generated from field: string target_block_utilization = 6; + */ + targetBlockUtilization = ""; + + /** + * DefaultMaxBlockGas is the default max block gas. + * This parameter is used by the dynamicfee module + * in the case consensus_params.block.max_gas returns 0 or -1. + * + * @generated from field: uint64 default_max_block_gas = 7; + */ + defaultMaxBlockGas = protoInt64.zero; + + /** + * MinLearningRate is the lower bound for the learning rate. + * + * @generated from field: string min_learning_rate = 8; + */ + minLearningRate = ""; + + /** + * MaxLearningRate is the upper bound for the learning rate. + * + * @generated from field: string max_learning_rate = 9; + */ + maxLearningRate = ""; + + /** + * Window defines the window size for calculating an adaptive learning rate + * over a moving window of blocks. + * + * @generated from field: uint64 window = 10; + */ + window = protoInt64.zero; + + /** + * FeeDenom is the denom that will be used for all fee payments. + * + * @generated from field: string fee_denom = 11; + */ + feeDenom = ""; + + /** + * Enabled is a boolean that determines whether the EIP1559 dynamic fee + * pricing is enabled. + * + * @generated from field: bool enabled = 12; + */ + enabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "alpha", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "beta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "gamma", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "min_base_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "target_block_utilization", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "default_max_block_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "min_learning_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "max_learning_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "fee_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/atomone/dynamicfee/v1/query_cosmes.ts b/src/protobufs/atomone/dynamicfee/v1/query_cosmes.ts new file mode 100644 index 00000000..3eff08a3 --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/query.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { GasPriceRequest, GasPriceResponse, GasPricesRequest, GasPricesResponse, ParamsRequest, ParamsResponse, StateRequest, StateResponse } from "./query_pb.js"; + +const TYPE_NAME = "atomone.dynamicfee.v1.Query"; + +/** + * Params returns the current dynamicfee module parameters. + * + * @generated from rpc atomone.dynamicfee.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: ParamsRequest, + Response: ParamsResponse, +} as const; + +/** + * State returns the current dynamicfee module state. + * + * @generated from rpc atomone.dynamicfee.v1.Query.State + */ +export const QueryStateService = { + typeName: TYPE_NAME, + method: "State", + Request: StateRequest, + Response: StateResponse, +} as const; + +/** + * GasPrice returns the current dynamicfee module gas price + * for specified denom. + * + * @generated from rpc atomone.dynamicfee.v1.Query.GasPrice + */ +export const QueryGasPriceService = { + typeName: TYPE_NAME, + method: "GasPrice", + Request: GasPriceRequest, + Response: GasPriceResponse, +} as const; + +/** + * GasPrices returns the current dynamicfee module list of gas prices + * in all available denoms. + * + * @generated from rpc atomone.dynamicfee.v1.Query.GasPrices + */ +export const QueryGasPricesService = { + typeName: TYPE_NAME, + method: "GasPrices", + Request: GasPricesRequest, + Response: GasPricesResponse, +} as const; + diff --git a/src/protobufs/atomone/dynamicfee/v1/query_pb.ts b/src/protobufs/atomone/dynamicfee/v1/query_pb.ts new file mode 100644 index 00000000..4930af6f --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/query_pb.ts @@ -0,0 +1,309 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/query.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { State } from "./genesis_pb.js"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * ParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message atomone.dynamicfee.v1.ParamsRequest + */ +export class ParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.ParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { + return new ParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsRequest, a, b); + } +} + +/** + * ParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message atomone.dynamicfee.v1.ParamsResponse + */ +export class ParamsResponse extends Message { + /** + * @generated from field: atomone.dynamicfee.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.ParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { + return new ParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsResponse, a, b); + } +} + +/** + * StateRequest is the request type for the Query/State RPC method. + * + * @generated from message atomone.dynamicfee.v1.StateRequest + */ +export class StateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.StateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StateRequest { + return new StateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StateRequest { + return new StateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StateRequest { + return new StateRequest().fromJsonString(jsonString, options); + } + + static equals(a: StateRequest | PlainMessage | undefined, b: StateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(StateRequest, a, b); + } +} + +/** + * StateResponse is the response type for the Query/State RPC method. + * + * @generated from message atomone.dynamicfee.v1.StateResponse + */ +export class StateResponse extends Message { + /** + * @generated from field: atomone.dynamicfee.v1.State state = 1; + */ + state?: State; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.StateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: State }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StateResponse { + return new StateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StateResponse { + return new StateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StateResponse { + return new StateResponse().fromJsonString(jsonString, options); + } + + static equals(a: StateResponse | PlainMessage | undefined, b: StateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(StateResponse, a, b); + } +} + +/** + * GasPriceRequest is the request type for the Query/GasPrice RPC method. + * + * @generated from message atomone.dynamicfee.v1.GasPriceRequest + */ +export class GasPriceRequest extends Message { + /** + * denom we are querying gas price in + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.GasPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPriceRequest { + return new GasPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPriceRequest { + return new GasPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasPriceRequest { + return new GasPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: GasPriceRequest | PlainMessage | undefined, b: GasPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GasPriceRequest, a, b); + } +} + +/** + * GasPriceResponse is the response type for the Query/GasPrice RPC method. + * Returns a gas price in specified denom. + * + * @generated from message atomone.dynamicfee.v1.GasPriceResponse + */ +export class GasPriceResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.DecCoin price = 1; + */ + price?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.GasPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPriceResponse { + return new GasPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPriceResponse { + return new GasPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasPriceResponse { + return new GasPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: GasPriceResponse | PlainMessage | undefined, b: GasPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GasPriceResponse, a, b); + } +} + +/** + * GasPriceRequest is the request type for the Query/GasPrices RPC method. + * + * @generated from message atomone.dynamicfee.v1.GasPricesRequest + */ +export class GasPricesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.GasPricesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPricesRequest { + return new GasPricesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPricesRequest { + return new GasPricesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasPricesRequest { + return new GasPricesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GasPricesRequest | PlainMessage | undefined, b: GasPricesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GasPricesRequest, a, b); + } +} + +/** + * GasPricesResponse is the response type for the Query/GasPrices RPC method. + * Returns a gas price in all available denoms. + * + * @generated from message atomone.dynamicfee.v1.GasPricesResponse + */ +export class GasPricesResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin prices = 1; + */ + prices: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.GasPricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "prices", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPricesResponse { + return new GasPricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPricesResponse { + return new GasPricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasPricesResponse { + return new GasPricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GasPricesResponse | PlainMessage | undefined, b: GasPricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GasPricesResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/dynamicfee/v1/tx_cosmes.ts b/src/protobufs/atomone/dynamicfee/v1/tx_cosmes.ts new file mode 100644 index 00000000..d5f6ec43 --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/tx.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "atomone.dynamicfee.v1.Msg"; + +/** + * UpdateParams defines a method for updating the dynamicfee module parameters. + * + * @generated from rpc atomone.dynamicfee.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/atomone/dynamicfee/v1/tx_pb.ts b/src/protobufs/atomone/dynamicfee/v1/tx_pb.ts new file mode 100644 index 00000000..d4dc7c3c --- /dev/null +++ b/src/protobufs/atomone/dynamicfee/v1/tx_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/dynamicfee/v1/tx.proto (package atomone.dynamicfee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams defines the sdk.Msg/UpdateParams request type. It contains + * the new parameters for the dynamicfee module. + * + * @generated from message atomone.dynamicfee.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority defines the authority that is updating the dynamicfee module + * parameters. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params defines the new parameters for the dynamicfee module. + * + * @generated from field: atomone.dynamicfee.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message atomone.dynamicfee.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.dynamicfee.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/module/v1/module_pb.ts b/src/protobufs/atomone/gov/module/v1/module_pb.ts new file mode 100644 index 00000000..f12a6a94 --- /dev/null +++ b/src/protobufs/atomone/gov/module/v1/module_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/module/v1/module.proto (package atomone.gov.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Module is the config object of the gov module. + * + * @generated from message atomone.gov.module.v1.Module + */ +export class Module extends Message { + /** + * max_metadata_len defines the maximum proposal metadata length. + * Defaults to 255 if not explicitly set. + * + * @generated from field: uint64 max_metadata_len = 1; + */ + maxMetadataLen = protoInt64.zero; + + /** + * authority defines the custom module authority. If not set, defaults to the + * governance module. + * + * @generated from field: string authority = 2; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_metadata_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1/genesis_pb.ts b/src/protobufs/atomone/gov/v1/genesis_pb.ts new file mode 100644 index 00000000..aa269cc2 --- /dev/null +++ b/src/protobufs/atomone/gov/v1/genesis_pb.ts @@ -0,0 +1,172 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1/genesis.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, DepositParams, LastMinDeposit, Params, Proposal, TallyParams, Vote, VotingParams } from "./gov_pb.js"; + +/** + * GenesisState defines the gov module's genesis state. + * + * @generated from message atomone.gov.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * starting_proposal_id is the ID of the starting proposal. + * + * @generated from field: uint64 starting_proposal_id = 1; + */ + startingProposalId = protoInt64.zero; + + /** + * deposits defines all the deposits present at genesis. + * + * @generated from field: repeated atomone.gov.v1.Deposit deposits = 2; + */ + deposits: Deposit[] = []; + + /** + * votes defines all the votes present at genesis. + * + * @generated from field: repeated atomone.gov.v1.Vote votes = 3; + */ + votes: Vote[] = []; + + /** + * proposals defines all the proposals present at genesis. + * + * @generated from field: repeated atomone.gov.v1.Proposal proposals = 4; + */ + proposals: Proposal[] = []; + + /** + * Deprecated: Prefer to use `params` instead. + * deposit_params defines all the paramaters of related to deposit. + * + * @generated from field: atomone.gov.v1.DepositParams deposit_params = 5 [deprecated = true]; + * @deprecated + */ + depositParams?: DepositParams; + + /** + * Deprecated: Prefer to use `params` instead. + * voting_params defines all the paramaters of related to voting. + * + * @generated from field: atomone.gov.v1.VotingParams voting_params = 6 [deprecated = true]; + * @deprecated + */ + votingParams?: VotingParams; + + /** + * Deprecated: Prefer to use `params` instead. + * tally_params defines all the paramaters of related to tally. + * + * @generated from field: atomone.gov.v1.TallyParams tally_params = 7 [deprecated = true]; + * @deprecated + */ + tallyParams?: TallyParams; + + /** + * params defines all the paramaters of x/gov module. + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: atomone.gov.v1.Params params = 8; + */ + params?: Params; + + /** + * The constitution allows builders to lay a foundation and define purpose. + * + * Since: cosmos-sdk 0.48 + * + * @generated from field: string constitution = 9; + */ + constitution = ""; + + /** + * last updated value for the dynamic min deposit + * + * @generated from field: atomone.gov.v1.LastMinDeposit last_min_deposit = 10; + */ + lastMinDeposit?: LastMinDeposit; + + /** + * last updated value for the dynamic min initial deposit + * + * @generated from field: atomone.gov.v1.LastMinDeposit last_min_initial_deposit = 11; + */ + lastMinInitialDeposit?: LastMinDeposit; + + /** + * governance participation EMA + * If unset or set to 0, the quorum for the next proposal will be set to the + * params.MinQuorum value. + * + * @generated from field: string participation_ema = 12; + */ + participationEma = ""; + + /** + * governance participation EMA for constitution amendment proposals. + * If unset or set to 0, the quorum for the next constitution amendment + * proposal will be set to the params.MinConstitutionAmendmentQuorum value. + * + * @generated from field: string constitution_amendment_participation_ema = 13; + */ + constitutionAmendmentParticipationEma = ""; + + /** + * governance participation EMA for law proposals. + * If unset or set to 0, the quorum for the next law proposal will be set to + * the params.LawMinQuorum value. + * + * @generated from field: string law_participation_ema = 14; + */ + lawParticipationEma = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "starting_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 3, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 4, name: "proposals", kind: "message", T: Proposal, repeated: true }, + { no: 5, name: "deposit_params", kind: "message", T: DepositParams }, + { no: 6, name: "voting_params", kind: "message", T: VotingParams }, + { no: 7, name: "tally_params", kind: "message", T: TallyParams }, + { no: 8, name: "params", kind: "message", T: Params }, + { no: 9, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "last_min_deposit", kind: "message", T: LastMinDeposit }, + { no: 11, name: "last_min_initial_deposit", kind: "message", T: LastMinDeposit }, + { no: 12, name: "participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "constitution_amendment_participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "law_participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1/gov_pb.ts b/src/protobufs/atomone/gov/v1/gov_pb.ts new file mode 100644 index 00000000..3b21f0a9 --- /dev/null +++ b/src/protobufs/atomone/gov/v1/gov_pb.ts @@ -0,0 +1,1259 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1/gov.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * @generated from enum atomone.gov.v1.VoteOption + */ +export enum VoteOption { + /** + * VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * + * @generated from enum value: VOTE_OPTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * VOTE_OPTION_YES defines a yes vote option. + * + * @generated from enum value: VOTE_OPTION_YES = 1; + */ + YES = 1, + + /** + * VOTE_OPTION_ABSTAIN defines an abstain vote option. + * + * @generated from enum value: VOTE_OPTION_ABSTAIN = 2; + */ + ABSTAIN = 2, + + /** + * VOTE_OPTION_NO defines a no vote option. + * + * @generated from enum value: VOTE_OPTION_NO = 3; + */ + NO = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(VoteOption) +proto3.util.setEnumType(VoteOption, "atomone.gov.v1.VoteOption", [ + { no: 0, name: "VOTE_OPTION_UNSPECIFIED" }, + { no: 1, name: "VOTE_OPTION_YES" }, + { no: 2, name: "VOTE_OPTION_ABSTAIN" }, + { no: 3, name: "VOTE_OPTION_NO" }, +]); + +/** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * @generated from enum atomone.gov.v1.ProposalStatus + */ +export enum ProposalStatus { + /** + * PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + * + * @generated from enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * + * @generated from enum value: PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; + */ + DEPOSIT_PERIOD = 1, + + /** + * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * + * @generated from enum value: PROPOSAL_STATUS_VOTING_PERIOD = 2; + */ + VOTING_PERIOD = 2, + + /** + * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * + * @generated from enum value: PROPOSAL_STATUS_PASSED = 3; + */ + PASSED = 3, + + /** + * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * + * @generated from enum value: PROPOSAL_STATUS_REJECTED = 4; + */ + REJECTED = 4, + + /** + * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * + * @generated from enum value: PROPOSAL_STATUS_FAILED = 5; + */ + FAILED = 5, + + /** + * PROPOSAL_STATUS_VETOED defines a proposal status of a proposal that has + * been vetoed. + * + * @generated from enum value: PROPOSAL_STATUS_VETOED = 6; + */ + VETOED = 6, +} +// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) +proto3.util.setEnumType(ProposalStatus, "atomone.gov.v1.ProposalStatus", [ + { no: 0, name: "PROPOSAL_STATUS_UNSPECIFIED" }, + { no: 1, name: "PROPOSAL_STATUS_DEPOSIT_PERIOD" }, + { no: 2, name: "PROPOSAL_STATUS_VOTING_PERIOD" }, + { no: 3, name: "PROPOSAL_STATUS_PASSED" }, + { no: 4, name: "PROPOSAL_STATUS_REJECTED" }, + { no: 5, name: "PROPOSAL_STATUS_FAILED" }, + { no: 6, name: "PROPOSAL_STATUS_VETOED" }, +]); + +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * @generated from message atomone.gov.v1.WeightedVoteOption + */ +export class WeightedVoteOption extends Message { + /** + * option defines the valid vote options, it must not contain duplicate vote + * options. + * + * @generated from field: atomone.gov.v1.VoteOption option = 1; + */ + option = VoteOption.UNSPECIFIED; + + /** + * weight is the vote weight associated with the vote option. + * + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.WeightedVoteOption"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromJsonString(jsonString, options); + } + + static equals(a: WeightedVoteOption | PlainMessage | undefined, b: WeightedVoteOption | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedVoteOption, a, b); + } +} + +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + * + * @generated from message atomone.gov.v1.Deposit + */ +export class Deposit extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + /** + * amount to be deposited by depositor. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + +/** + * LastMinDeposit is a record of the last time the minimum deposit + * was updated in the store, both its value and a timestamp + * + * @generated from message atomone.gov.v1.LastMinDeposit + */ +export class LastMinDeposit extends Message { + /** + * value is the value of the minimum deposit + * + * @generated from field: repeated cosmos.base.v1beta1.Coin value = 1; + */ + value: Coin[] = []; + + /** + * time is the time the minimum deposit was last updated + * + * @generated from field: google.protobuf.Timestamp time = 2; + */ + time?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.LastMinDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LastMinDeposit { + return new LastMinDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LastMinDeposit { + return new LastMinDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LastMinDeposit { + return new LastMinDeposit().fromJsonString(jsonString, options); + } + + static equals(a: LastMinDeposit | PlainMessage | undefined, b: LastMinDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(LastMinDeposit, a, b); + } +} + +/** + * Proposal defines the core field members of a governance proposal. + * + * @generated from message atomone.gov.v1.Proposal + */ +export class Proposal extends Message { + /** + * id defines the unique id of the proposal. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * messages are the arbitrary messages to be executed if the proposal passes. + * + * @generated from field: repeated google.protobuf.Any messages = 2; + */ + messages: Any[] = []; + + /** + * status defines the proposal status. + * + * @generated from field: atomone.gov.v1.ProposalStatus status = 3; + */ + status = ProposalStatus.UNSPECIFIED; + + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + * + * @generated from field: atomone.gov.v1.TallyResult final_tally_result = 4; + */ + finalTallyResult?: TallyResult; + + /** + * submit_time is the time of proposal submission. + * + * @generated from field: google.protobuf.Timestamp submit_time = 5; + */ + submitTime?: Timestamp; + + /** + * deposit_end_time is the end time for deposition. + * + * @generated from field: google.protobuf.Timestamp deposit_end_time = 6; + */ + depositEndTime?: Timestamp; + + /** + * total_deposit is the total deposit on the proposal. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin total_deposit = 7; + */ + totalDeposit: Coin[] = []; + + /** + * voting_start_time is the starting time to vote on a proposal. + * + * @generated from field: google.protobuf.Timestamp voting_start_time = 8; + */ + votingStartTime?: Timestamp; + + /** + * voting_end_time is the end time of voting on a proposal. + * + * @generated from field: google.protobuf.Timestamp voting_end_time = 9; + */ + votingEndTime?: Timestamp; + + /** + * metadata is any arbitrary metadata attached to the proposal. + * + * @generated from field: string metadata = 10; + */ + metadata = ""; + + /** + * title is the title of the proposal + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: string title = 11; + */ + title = ""; + + /** + * summary is a short summary of the proposal + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: string summary = 12; + */ + summary = ""; + + /** + * Proposer is the address of the proposal sumbitter + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: string proposer = 13; + */ + proposer = ""; + + /** + * endorsed is a boolean indicating whether the proposal has been endorsed + * by the Steering DAO. + * + * @generated from field: bool endorsed = 14; + */ + endorsed = false; + + /** + * annotation is an optional field that contains annotations + * added by the Steering DAO. + * + * @generated from field: string annotation = 15; + */ + annotation = ""; + + /** + * times_voting_period_extended is the number of times the voting period + * has been extended from one of the core DAOs. + * + * @generated from field: uint32 times_voting_period_extended = 16; + */ + timesVotingPeriodExtended = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.Proposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "messages", kind: "message", T: Any, repeated: true }, + { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, + { no: 4, name: "final_tally_result", kind: "message", T: TallyResult }, + { no: 5, name: "submit_time", kind: "message", T: Timestamp }, + { no: 6, name: "deposit_end_time", kind: "message", T: Timestamp }, + { no: 7, name: "total_deposit", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "voting_start_time", kind: "message", T: Timestamp }, + { no: 9, name: "voting_end_time", kind: "message", T: Timestamp }, + { no: 10, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "endorsed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "annotation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "times_voting_period_extended", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { + return new Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { + return new Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Proposal { + return new Proposal().fromJsonString(jsonString, options); + } + + static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(Proposal, a, b); + } +} + +/** + * TallyResult defines a standard tally for a governance proposal. + * + * @generated from message atomone.gov.v1.TallyResult + */ +export class TallyResult extends Message { + /** + * yes_count is the number of yes votes on a proposal. + * + * @generated from field: string yes_count = 1; + */ + yesCount = ""; + + /** + * abstain_count is the number of abstain votes on a proposal. + * + * @generated from field: string abstain_count = 2; + */ + abstainCount = ""; + + /** + * no_count is the number of no votes on a proposal. + * + * @generated from field: string no_count = 3; + */ + noCount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.TallyResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yes_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "abstain_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "no_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TallyResult { + return new TallyResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TallyResult { + return new TallyResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TallyResult { + return new TallyResult().fromJsonString(jsonString, options); + } + + static equals(a: TallyResult | PlainMessage | undefined, b: TallyResult | PlainMessage | undefined): boolean { + return proto3.util.equals(TallyResult, a, b); + } +} + +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + * + * @generated from message atomone.gov.v1.Vote + */ +export class Vote extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address of the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * options is the weighted vote options. + * + * @generated from field: repeated atomone.gov.v1.WeightedVoteOption options = 4; + */ + options: WeightedVoteOption[] = []; + + /** + * metadata is any arbitrary metadata to attached to the vote. + * + * @generated from field: string metadata = 5; + */ + metadata = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.Vote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vote { + return new Vote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vote { + return new Vote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vote { + return new Vote().fromJsonString(jsonString, options); + } + + static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { + return proto3.util.equals(Vote, a, b); + } +} + +/** + * QuorumCheckQueueEntry defines a quorum check queue entry. + * + * @generated from message atomone.gov.v1.QuorumCheckQueueEntry + */ +export class QuorumCheckQueueEntry extends Message { + /** + * quorum_timeout_time is the time after which quorum checks start happening + * and voting period is extended if proposal reaches quorum. + * + * @generated from field: google.protobuf.Timestamp quorum_timeout_time = 1; + */ + quorumTimeoutTime?: Timestamp; + + /** + * quorum_check_count is the number of times quorum will be checked. + * This is a snapshot of the parameter value with the same name when the + * proposal is initially added to the queue. + * + * @generated from field: uint64 quorum_check_count = 2; + */ + quorumCheckCount = protoInt64.zero; + + /** + * quorum_checks_done is the number of quorum checks that have been done. + * + * @generated from field: uint64 quorum_checks_done = 3; + */ + quorumChecksDone = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QuorumCheckQueueEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quorum_timeout_time", kind: "message", T: Timestamp }, + { no: 2, name: "quorum_check_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "quorum_checks_done", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuorumCheckQueueEntry { + return new QuorumCheckQueueEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuorumCheckQueueEntry { + return new QuorumCheckQueueEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuorumCheckQueueEntry { + return new QuorumCheckQueueEntry().fromJsonString(jsonString, options); + } + + static equals(a: QuorumCheckQueueEntry | PlainMessage | undefined, b: QuorumCheckQueueEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(QuorumCheckQueueEntry, a, b); + } +} + +/** + * DepositParams defines the params for deposits on governance proposals. + * + * @generated from message atomone.gov.v1.DepositParams + */ +export class DepositParams extends Message { + /** + * Minimum deposit for a proposal to enter voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; + */ + minDeposit: Coin[] = []; + + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + * + * @generated from field: google.protobuf.Duration max_deposit_period = 2; + */ + maxDepositPeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.DepositParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositParams { + return new DepositParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositParams { + return new DepositParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositParams { + return new DepositParams().fromJsonString(jsonString, options); + } + + static equals(a: DepositParams | PlainMessage | undefined, b: DepositParams | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositParams, a, b); + } +} + +/** + * VotingParams defines the params for voting on governance proposals. + * + * @generated from message atomone.gov.v1.VotingParams + */ +export class VotingParams extends Message { + /** + * Duration of the voting period. + * + * @generated from field: google.protobuf.Duration voting_period = 1; + */ + votingPeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.VotingParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voting_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VotingParams { + return new VotingParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VotingParams { + return new VotingParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VotingParams { + return new VotingParams().fromJsonString(jsonString, options); + } + + static equals(a: VotingParams | PlainMessage | undefined, b: VotingParams | PlainMessage | undefined): boolean { + return proto3.util.equals(VotingParams, a, b); + } +} + +/** + * TallyParams defines the params for tallying votes on governance proposals. + * + * @generated from message atomone.gov.v1.TallyParams + */ +export class TallyParams extends Message { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * + * @generated from field: string quorum = 1 [deprecated = true]; + * @deprecated + */ + quorum = ""; + + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 2/3. + * + * @generated from field: string threshold = 2; + */ + threshold = ""; + + /** + * quorum for constitution amendment proposals + * + * @generated from field: string constitution_amendment_quorum = 3 [deprecated = true]; + * @deprecated + */ + constitutionAmendmentQuorum = ""; + + /** + * Minimum proportion of Yes votes for a Constitution Amendment proposal to pass. Default value: 0.9. + * + * @generated from field: string constitution_amendment_threshold = 4; + */ + constitutionAmendmentThreshold = ""; + + /** + * quorum for law proposals + * + * @generated from field: string law_quorum = 5 [deprecated = true]; + * @deprecated + */ + lawQuorum = ""; + + /** + * Minimum proportion of Yes votes for a Law proposal to pass. Default value: 0.9. + * + * @generated from field: string law_threshold = 6; + */ + lawThreshold = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.TallyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "constitution_amendment_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "constitution_amendment_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "law_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "law_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TallyParams { + return new TallyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TallyParams { + return new TallyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TallyParams { + return new TallyParams().fromJsonString(jsonString, options); + } + + static equals(a: TallyParams | PlainMessage | undefined, b: TallyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(TallyParams, a, b); + } +} + +/** + * @generated from message atomone.gov.v1.MinDepositThrottler + */ +export class MinDepositThrottler extends Message { + /** + * Floor value for the minimum deposit required for a proposal to enter the voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin floor_value = 1; + */ + floorValue: Coin[] = []; + + /** + * Duration that dictates after how long the dynamic minimum deposit should be recalculated + * for time-based decreases. + * + * @generated from field: google.protobuf.Duration update_period = 2; + */ + updatePeriod?: Duration; + + /** + * The number of active proposals the dynamic minimum deposit should target. + * + * @generated from field: uint64 target_active_proposals = 3; + */ + targetActiveProposals = protoInt64.zero; + + /** + * The ratio of increase for the minimum deposit when the number of active proposals + * is at or above the target. + * + * @generated from field: string increase_ratio = 4; + */ + increaseRatio = ""; + + /** + * The ratio of decrease for the minimum deposit when the number of active proposals + * is 1 less than the target. + * + * @generated from field: string decrease_ratio = 5; + */ + decreaseRatio = ""; + + /** + * A positive integer representing the sensitivity of dynamic minimum deposit + * decreases to the distance from the target number of active proposals. + * The higher the number, the lower the sensitivity. A value of 1 represents the + * highest sensitivity. + * + * @generated from field: uint64 decrease_sensitivity_target_distance = 6; + */ + decreaseSensitivityTargetDistance = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MinDepositThrottler"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "floor_value", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "update_period", kind: "message", T: Duration }, + { no: 3, name: "target_active_proposals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "increase_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "decrease_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "decrease_sensitivity_target_distance", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MinDepositThrottler { + return new MinDepositThrottler().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MinDepositThrottler { + return new MinDepositThrottler().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MinDepositThrottler { + return new MinDepositThrottler().fromJsonString(jsonString, options); + } + + static equals(a: MinDepositThrottler | PlainMessage | undefined, b: MinDepositThrottler | PlainMessage | undefined): boolean { + return proto3.util.equals(MinDepositThrottler, a, b); + } +} + +/** + * @generated from message atomone.gov.v1.MinInitialDepositThrottler + */ +export class MinInitialDepositThrottler extends Message { + /** + * Floor value for the minimum initial deposit required for a proposal to enter the deposit period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin floor_value = 1; + */ + floorValue: Coin[] = []; + + /** + * Duration that dictates after how long the dynamic minimum deposit should be recalculated + * for time-based decreases. + * + * @generated from field: google.protobuf.Duration update_period = 2; + */ + updatePeriod?: Duration; + + /** + * The number of proposals in deposit period the dynamic minimum initial deposit should target. + * + * @generated from field: uint64 target_proposals = 3; + */ + targetProposals = protoInt64.zero; + + /** + * The ratio of increase for the minimum initial deposit when the number of proposals + * in deposit period is at or above the target. + * + * @generated from field: string increase_ratio = 4; + */ + increaseRatio = ""; + + /** + * The ratio of decrease for the minimum initial deposit when the number of proposals + * in deposit period is 1 less than the target. + * + * @generated from field: string decrease_ratio = 5; + */ + decreaseRatio = ""; + + /** + * A positive integer representing the sensitivity of dynamic minimum initial + * deposit decreases to the distance from the target number of proposals + * in deposit period. The higher the number, the lower the sensitivity. A value + * of 1 represents the highest sensitivity. + * + * @generated from field: uint64 decrease_sensitivity_target_distance = 6; + */ + decreaseSensitivityTargetDistance = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MinInitialDepositThrottler"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "floor_value", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "update_period", kind: "message", T: Duration }, + { no: 3, name: "target_proposals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "increase_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "decrease_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "decrease_sensitivity_target_distance", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MinInitialDepositThrottler { + return new MinInitialDepositThrottler().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MinInitialDepositThrottler { + return new MinInitialDepositThrottler().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MinInitialDepositThrottler { + return new MinInitialDepositThrottler().fromJsonString(jsonString, options); + } + + static equals(a: MinInitialDepositThrottler | PlainMessage | undefined, b: MinInitialDepositThrottler | PlainMessage | undefined): boolean { + return proto3.util.equals(MinInitialDepositThrottler, a, b); + } +} + +/** + * Params defines the parameters for the x/gov module. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message atomone.gov.v1.Params + */ +export class Params extends Message { + /** + * Minimum deposit for a proposal to enter voting period. + * Deprecated: a dynamic system now determines the minimum deposit, + * see the other params inside the min_deposit_throttler field. + * While setting this value returns an error, when queried it is set to the + * value of the current minimum deposit value as determined by the dynamic + * system for backward compatibility. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1 [deprecated = true]; + * @deprecated + */ + minDeposit: Coin[] = []; + + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + * + * @generated from field: google.protobuf.Duration max_deposit_period = 2; + */ + maxDepositPeriod?: Duration; + + /** + * Duration of the voting period. + * + * @generated from field: google.protobuf.Duration voting_period = 3; + */ + votingPeriod?: Duration; + + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. Default value: 0.25. + * + * @generated from field: string quorum = 4 [deprecated = true]; + * @deprecated + */ + quorum = ""; + + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 2/3. + * + * @generated from field: string threshold = 5; + */ + threshold = ""; + + /** + * The ratio representing the proportion of the deposit value that must be paid at proposal submission. + * + * @generated from field: string min_initial_deposit_ratio = 7 [deprecated = true]; + * @deprecated + */ + minInitialDepositRatio = ""; + + /** + * burn deposits if a proposal does not meet quorum + * + * @generated from field: bool burn_vote_quorum = 13; + */ + burnVoteQuorum = false; + + /** + * burn deposits if the proposal does not enter voting period + * + * @generated from field: bool burn_proposal_deposit_prevote = 14; + */ + burnProposalDepositPrevote = false; + + /** + * The ratio representing the proportion of the deposit value minimum that + * must be met when making a deposit. Default value: 0.01. Meaning that for a + * chain with a min_deposit of 100stake, a deposit of 1stake would be + * required. + * + * Since: cosmos-sdk 0.50 + * NOTE: backported from v50 (https://github.com/cosmos/cosmos-sdk/pull/18146) + * + * @generated from field: string min_deposit_ratio = 15; + */ + minDepositRatio = ""; + + /** + * quorum for constitution amendment proposals + * + * @generated from field: string constitution_amendment_quorum = 16 [deprecated = true]; + * @deprecated + */ + constitutionAmendmentQuorum = ""; + + /** + * Minimum proportion of Yes votes for a Constitution Amendment proposal to pass. Default value: 0.9. + * + * @generated from field: string constitution_amendment_threshold = 17; + */ + constitutionAmendmentThreshold = ""; + + /** + * quorum for law proposals + * + * @generated from field: string law_quorum = 18 [deprecated = true]; + * @deprecated + */ + lawQuorum = ""; + + /** + * Minimum proportion of Yes votes for a Law proposal to pass. Default value: 0.9. + * + * @generated from field: string law_threshold = 19; + */ + lawThreshold = ""; + + /** + * Duration of time after a proposal enters the voting period, during which quorum + * must be achieved to not incur in a voting period extension. + * + * @generated from field: google.protobuf.Duration quorum_timeout = 20; + */ + quorumTimeout?: Duration; + + /** + * Duration that expresses the maximum amount of time by which a proposal voting period + * can be extended. + * + * @generated from field: google.protobuf.Duration max_voting_period_extension = 21; + */ + maxVotingPeriodExtension?: Duration; + + /** + * Number of times a proposal should be checked for quorum after the quorum timeout + * has elapsed. Used to compute the amount of time in between quorum checks. + * + * @generated from field: uint64 quorum_check_count = 22; + */ + quorumCheckCount = protoInt64.zero; + + /** + * @generated from field: atomone.gov.v1.MinDepositThrottler min_deposit_throttler = 23; + */ + minDepositThrottler?: MinDepositThrottler; + + /** + * @generated from field: atomone.gov.v1.MinInitialDepositThrottler min_initial_deposit_throttler = 24; + */ + minInitialDepositThrottler?: MinInitialDepositThrottler; + + /** + * Minimum proportion of No Votes for a proposal deposit to be burnt. + * + * @generated from field: string burn_deposit_no_threshold = 25; + */ + burnDepositNoThreshold = ""; + + /** + * Achievable quorum + * + * @generated from field: atomone.gov.v1.QuorumRange quorum_range = 26; + */ + quorumRange?: QuorumRange; + + /** + * Achievable quorum for constitution amendment proposals + * + * @generated from field: atomone.gov.v1.QuorumRange constitution_amendment_quorum_range = 27; + */ + constitutionAmendmentQuorumRange?: QuorumRange; + + /** + * Achievable quorum for law proposals + * + * @generated from field: atomone.gov.v1.QuorumRange law_quorum_range = 28; + */ + lawQuorumRange?: QuorumRange; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, + { no: 3, name: "voting_period", kind: "message", T: Duration }, + { no: 4, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_initial_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "burn_vote_quorum", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "burn_proposal_deposit_prevote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "min_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "constitution_amendment_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "constitution_amendment_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "law_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "law_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "quorum_timeout", kind: "message", T: Duration }, + { no: 21, name: "max_voting_period_extension", kind: "message", T: Duration }, + { no: 22, name: "quorum_check_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 23, name: "min_deposit_throttler", kind: "message", T: MinDepositThrottler }, + { no: 24, name: "min_initial_deposit_throttler", kind: "message", T: MinInitialDepositThrottler }, + { no: 25, name: "burn_deposit_no_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 26, name: "quorum_range", kind: "message", T: QuorumRange }, + { no: 27, name: "constitution_amendment_quorum_range", kind: "message", T: QuorumRange }, + { no: 28, name: "law_quorum_range", kind: "message", T: QuorumRange }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * @generated from message atomone.gov.v1.QuorumRange + */ +export class QuorumRange extends Message { + /** + * Maximum achievable quorum + * + * @generated from field: string max = 1; + */ + max = ""; + + /** + * Minimum achievable quorum + * + * @generated from field: string min = 2; + */ + min = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QuorumRange"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuorumRange { + return new QuorumRange().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuorumRange { + return new QuorumRange().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuorumRange { + return new QuorumRange().fromJsonString(jsonString, options); + } + + static equals(a: QuorumRange | PlainMessage | undefined, b: QuorumRange | PlainMessage | undefined): boolean { + return proto3.util.equals(QuorumRange, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1/query_cosmes.ts b/src/protobufs/atomone/gov/v1/query_cosmes.ts new file mode 100644 index 00000000..d96683f6 --- /dev/null +++ b/src/protobufs/atomone/gov/v1/query_cosmes.ts @@ -0,0 +1,169 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/gov/v1/query.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryConstitutionRequest, QueryConstitutionResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryMinDepositRequest, QueryMinDepositResponse, QueryMinInitialDepositRequest, QueryMinInitialDepositResponse, QueryParamsRequest, QueryParamsResponse, QueryParticipationEMAsRequest, QueryParticipationEMAsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryQuorumsRequest, QueryQuorumsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; + +const TYPE_NAME = "atomone.gov.v1.Query"; + +/** + * Constitution queries the chain's constitution. + * + * @generated from rpc atomone.gov.v1.Query.Constitution + */ +export const QueryConstitutionService = { + typeName: TYPE_NAME, + method: "Constitution", + Request: QueryConstitutionRequest, + Response: QueryConstitutionResponse, +} as const; + +/** + * Proposal queries proposal details based on ProposalID. + * + * @generated from rpc atomone.gov.v1.Query.Proposal + */ +export const QueryProposalService = { + typeName: TYPE_NAME, + method: "Proposal", + Request: QueryProposalRequest, + Response: QueryProposalResponse, +} as const; + +/** + * Proposals queries all proposals based on given status. + * + * @generated from rpc atomone.gov.v1.Query.Proposals + */ +export const QueryProposalsService = { + typeName: TYPE_NAME, + method: "Proposals", + Request: QueryProposalsRequest, + Response: QueryProposalsResponse, +} as const; + +/** + * Vote queries voted information based on proposalID, voterAddr. + * + * @generated from rpc atomone.gov.v1.Query.Vote + */ +export const QueryVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: QueryVoteRequest, + Response: QueryVoteResponse, +} as const; + +/** + * Votes queries votes of a given proposal. + * + * @generated from rpc atomone.gov.v1.Query.Votes + */ +export const QueryVotesService = { + typeName: TYPE_NAME, + method: "Votes", + Request: QueryVotesRequest, + Response: QueryVotesResponse, +} as const; + +/** + * Params queries all parameters of the gov module. + * + * @generated from rpc atomone.gov.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Deposit queries single deposit information based proposalID, depositAddr. + * + * @generated from rpc atomone.gov.v1.Query.Deposit + */ +export const QueryDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: QueryDepositRequest, + Response: QueryDepositResponse, +} as const; + +/** + * Deposits queries all deposits of a single proposal. + * + * @generated from rpc atomone.gov.v1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + +/** + * TallyResult queries the tally of a proposal vote. + * + * @generated from rpc atomone.gov.v1.Query.TallyResult + */ +export const QueryTallyResultService = { + typeName: TYPE_NAME, + method: "TallyResult", + Request: QueryTallyResultRequest, + Response: QueryTallyResultResponse, +} as const; + +/** + * MinDeposit queries the minimum deposit currently + * required for a proposal to enter voting period. + * + * @generated from rpc atomone.gov.v1.Query.MinDeposit + */ +export const QueryMinDepositService = { + typeName: TYPE_NAME, + method: "MinDeposit", + Request: QueryMinDepositRequest, + Response: QueryMinDepositResponse, +} as const; + +/** + * MinInitialDeposit queries the minimum initial deposit + * currently required for a proposal to be submitted. + * + * @generated from rpc atomone.gov.v1.Query.MinInitialDeposit + */ +export const QueryMinInitialDepositService = { + typeName: TYPE_NAME, + method: "MinInitialDeposit", + Request: QueryMinInitialDepositRequest, + Response: QueryMinInitialDepositResponse, +} as const; + +/** + * Quorums queries the dynamically set quorums. + * + * @generated from rpc atomone.gov.v1.Query.Quorums + */ +export const QueryQuorumsService = { + typeName: TYPE_NAME, + method: "Quorums", + Request: QueryQuorumsRequest, + Response: QueryQuorumsResponse, +} as const; + +/** + * ParticipationEMAs queries the state of the proposal participation exponential moving averages. + * + * @generated from rpc atomone.gov.v1.Query.ParticipationEMAs + */ +export const QueryParticipationEMAsService = { + typeName: TYPE_NAME, + method: "ParticipationEMAs", + Request: QueryParticipationEMAsRequest, + Response: QueryParticipationEMAsResponse, +} as const; + diff --git a/src/protobufs/atomone/gov/v1/query_pb.ts b/src/protobufs/atomone/gov/v1/query_pb.ts new file mode 100644 index 00000000..316d0ce6 --- /dev/null +++ b/src/protobufs/atomone/gov/v1/query_pb.ts @@ -0,0 +1,1185 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1/query.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, DepositParams, Params, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryConstitutionRequest is the request type for the Query/Constitution RPC method + * + * @generated from message atomone.gov.v1.QueryConstitutionRequest + */ +export class QueryConstitutionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryConstitutionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionRequest | PlainMessage | undefined, b: QueryConstitutionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionRequest, a, b); + } +} + +/** + * QueryConstitutionResponse is the response type for the Query/Constitution RPC method + * + * @generated from message atomone.gov.v1.QueryConstitutionResponse + */ +export class QueryConstitutionResponse extends Message { + /** + * @generated from field: string constitution = 1; + */ + constitution = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryConstitutionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionResponse | PlainMessage | undefined, b: QueryConstitutionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionResponse, a, b); + } +} + +/** + * QueryProposalRequest is the request type for the Query/Proposal RPC method. + * + * @generated from message atomone.gov.v1.QueryProposalRequest + */ +export class QueryProposalRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryProposalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalRequest, a, b); + } +} + +/** + * QueryProposalResponse is the response type for the Query/Proposal RPC method. + * + * @generated from message atomone.gov.v1.QueryProposalResponse + */ +export class QueryProposalResponse extends Message { + /** + * proposal is the requested governance proposal. + * + * @generated from field: atomone.gov.v1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalResponse, a, b); + } +} + +/** + * QueryProposalsRequest is the request type for the Query/Proposals RPC method. + * + * @generated from message atomone.gov.v1.QueryProposalsRequest + */ +export class QueryProposalsRequest extends Message { + /** + * proposal_status defines the status of the proposals. + * + * @generated from field: atomone.gov.v1.ProposalStatus proposal_status = 1; + */ + proposalStatus = ProposalStatus.UNSPECIFIED; + + /** + * voter defines the voter address for the proposals. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 3; + */ + depositor = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryProposalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsRequest, a, b); + } +} + +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + * + * @generated from message atomone.gov.v1.QueryProposalsResponse + */ +export class QueryProposalsResponse extends Message { + /** + * proposals defines all the requested governance proposals. + * + * @generated from field: repeated atomone.gov.v1.Proposal proposals = 1; + */ + proposals: Proposal[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryProposalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposals", kind: "message", T: Proposal, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsResponse, a, b); + } +} + +/** + * QueryVoteRequest is the request type for the Query/Vote RPC method. + * + * @generated from message atomone.gov.v1.QueryVoteRequest + */ +export class QueryVoteRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter defines the voter address for the proposals. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteRequest, a, b); + } +} + +/** + * QueryVoteResponse is the response type for the Query/Vote RPC method. + * + * @generated from message atomone.gov.v1.QueryVoteResponse + */ +export class QueryVoteResponse extends Message { + /** + * vote defines the queried vote. + * + * @generated from field: atomone.gov.v1.Vote vote = 1; + */ + vote?: Vote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteResponse, a, b); + } +} + +/** + * QueryVotesRequest is the request type for the Query/Votes RPC method. + * + * @generated from message atomone.gov.v1.QueryVotesRequest + */ +export class QueryVotesRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryVotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesRequest, a, b); + } +} + +/** + * QueryVotesResponse is the response type for the Query/Votes RPC method. + * + * @generated from message atomone.gov.v1.QueryVotesResponse + */ +export class QueryVotesResponse extends Message { + /** + * votes defines the queried votes. + * + * @generated from field: repeated atomone.gov.v1.Vote votes = 1; + */ + votes: Vote[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryVotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message atomone.gov.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + * + * @generated from field: string params_type = 1; + */ + paramsType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message atomone.gov.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * Deprecated: Prefer to use `params` instead. + * voting_params defines the parameters related to voting. + * + * @generated from field: atomone.gov.v1.VotingParams voting_params = 1 [deprecated = true]; + * @deprecated + */ + votingParams?: VotingParams; + + /** + * Deprecated: Prefer to use `params` instead. + * deposit_params defines the parameters related to deposit. + * + * @generated from field: atomone.gov.v1.DepositParams deposit_params = 2 [deprecated = true]; + * @deprecated + */ + depositParams?: DepositParams; + + /** + * Deprecated: Prefer to use `params` instead. + * tally_params defines the parameters related to tally. + * + * @generated from field: atomone.gov.v1.TallyParams tally_params = 3 [deprecated = true]; + * @deprecated + */ + tallyParams?: TallyParams; + + /** + * params defines all the paramaters of x/gov module. + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: atomone.gov.v1.Params params = 4; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voting_params", kind: "message", T: VotingParams }, + { no: 2, name: "deposit_params", kind: "message", T: DepositParams }, + { no: 3, name: "tally_params", kind: "message", T: TallyParams }, + { no: 4, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDepositRequest is the request type for the Query/Deposit RPC method. + * + * @generated from message atomone.gov.v1.QueryDepositRequest + */ +export class QueryDepositRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositRequest | PlainMessage | undefined, b: QueryDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositRequest, a, b); + } +} + +/** + * QueryDepositResponse is the response type for the Query/Deposit RPC method. + * + * @generated from message atomone.gov.v1.QueryDepositResponse + */ +export class QueryDepositResponse extends Message { + /** + * deposit defines the requested deposit. + * + * @generated from field: atomone.gov.v1.Deposit deposit = 1; + */ + deposit?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositResponse | PlainMessage | undefined, b: QueryDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositResponse, a, b); + } +} + +/** + * QueryDepositsRequest is the request type for the Query/Deposits RPC method. + * + * @generated from message atomone.gov.v1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse is the response type for the Query/Deposits RPC method. + * + * @generated from message atomone.gov.v1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * deposits defines the requested deposits. + * + * @generated from field: repeated atomone.gov.v1.Deposit deposits = 1; + */ + deposits: Deposit[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * QueryTallyResultRequest is the request type for the Query/Tally RPC method. + * + * @generated from message atomone.gov.v1.QueryTallyResultRequest + */ +export class QueryTallyResultRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryTallyResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultRequest, a, b); + } +} + +/** + * QueryTallyResultResponse is the response type for the Query/Tally RPC method. + * + * @generated from message atomone.gov.v1.QueryTallyResultResponse + */ +export class QueryTallyResultResponse extends Message { + /** + * tally defines the requested tally. + * + * @generated from field: atomone.gov.v1.TallyResult tally = 1; + */ + tally?: TallyResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryTallyResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tally", kind: "message", T: TallyResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultResponse, a, b); + } +} + +/** + * QueryMinDepositRequest is the request type for the Query/MinDeposit RPC method. + * + * @generated from message atomone.gov.v1.QueryMinDepositRequest + */ +export class QueryMinDepositRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryMinDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinDepositRequest { + return new QueryMinDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinDepositRequest { + return new QueryMinDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinDepositRequest { + return new QueryMinDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinDepositRequest | PlainMessage | undefined, b: QueryMinDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinDepositRequest, a, b); + } +} + +/** + * QueryMinDepositResponse is the response type for the Query/MinDeposit RPC method. + * + * @generated from message atomone.gov.v1.QueryMinDepositResponse + */ +export class QueryMinDepositResponse extends Message { + /** + * min_deposit defines the minimum deposit required for a proposal to enter voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; + */ + minDeposit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryMinDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinDepositResponse { + return new QueryMinDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinDepositResponse { + return new QueryMinDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinDepositResponse { + return new QueryMinDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinDepositResponse | PlainMessage | undefined, b: QueryMinDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinDepositResponse, a, b); + } +} + +/** + * QueryMinInitialDepositRequest is the request type for the Query/MinInitialDeposit RPC method. + * + * @generated from message atomone.gov.v1.QueryMinInitialDepositRequest + */ +export class QueryMinInitialDepositRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryMinInitialDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinInitialDepositRequest { + return new QueryMinInitialDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinInitialDepositRequest { + return new QueryMinInitialDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinInitialDepositRequest { + return new QueryMinInitialDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinInitialDepositRequest | PlainMessage | undefined, b: QueryMinInitialDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinInitialDepositRequest, a, b); + } +} + +/** + * QueryMinInitialDepositResponse is the response type for the Query/MinInitialDeposit RPC method. + * + * @generated from message atomone.gov.v1.QueryMinInitialDepositResponse + */ +export class QueryMinInitialDepositResponse extends Message { + /** + * min_initial_deposit defines the minimum initial deposit required for a proposal to be submitted. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_initial_deposit = 1; + */ + minInitialDeposit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryMinInitialDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_initial_deposit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinInitialDepositResponse { + return new QueryMinInitialDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinInitialDepositResponse { + return new QueryMinInitialDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinInitialDepositResponse { + return new QueryMinInitialDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinInitialDepositResponse | PlainMessage | undefined, b: QueryMinInitialDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinInitialDepositResponse, a, b); + } +} + +/** + * QueryQuorumsRequest is the request type for the Query/Quorums RPC method. + * + * @generated from message atomone.gov.v1.QueryQuorumsRequest + */ +export class QueryQuorumsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryQuorumsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryQuorumsRequest { + return new QueryQuorumsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryQuorumsRequest { + return new QueryQuorumsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryQuorumsRequest { + return new QueryQuorumsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryQuorumsRequest | PlainMessage | undefined, b: QueryQuorumsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryQuorumsRequest, a, b); + } +} + +/** + * QueryQuorumsResponse is the response type for the Query/Quorums RPC method. + * + * @generated from message atomone.gov.v1.QueryQuorumsResponse + */ +export class QueryQuorumsResponse extends Message { + /** + * quorum defines the requested quorum. + * + * @generated from field: string quorum = 1; + */ + quorum = ""; + + /** + * constitution_amendment_quorum defines the requested quorum for + * constitution amendment proposals. + * + * @generated from field: string constitution_amendment_quorum = 2; + */ + constitutionAmendmentQuorum = ""; + + /** + * law_quorum defines the requested quorum for law proposals. + * + * @generated from field: string law_quorum = 3; + */ + lawQuorum = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryQuorumsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "constitution_amendment_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "law_quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryQuorumsResponse { + return new QueryQuorumsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryQuorumsResponse { + return new QueryQuorumsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryQuorumsResponse { + return new QueryQuorumsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryQuorumsResponse | PlainMessage | undefined, b: QueryQuorumsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryQuorumsResponse, a, b); + } +} + +/** + * QueryParticipationEMAsRequest is the request type for the Query/ParticipationEMAs RPC method. + * + * @generated from message atomone.gov.v1.QueryParticipationEMAsRequest + */ +export class QueryParticipationEMAsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryParticipationEMAsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParticipationEMAsRequest { + return new QueryParticipationEMAsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParticipationEMAsRequest { + return new QueryParticipationEMAsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParticipationEMAsRequest { + return new QueryParticipationEMAsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParticipationEMAsRequest | PlainMessage | undefined, b: QueryParticipationEMAsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParticipationEMAsRequest, a, b); + } +} + +/** + * QueryParticipationEMAsResponse is the response type for the Query/ParticipationEMAs RPC method. + * + * @generated from message atomone.gov.v1.QueryParticipationEMAsResponse + */ +export class QueryParticipationEMAsResponse extends Message { + /** + * participation_ema defines the requested participation EMA for proposals. + * + * @generated from field: string participation_ema = 1; + */ + participationEma = ""; + + /** + * constitution_amendment_participation_ema defines the requested participation EMA for + * constitution amendment proposals. + * + * @generated from field: string constitution_amendment_participation_ema = 2; + */ + constitutionAmendmentParticipationEma = ""; + + /** + * law_participation_ema defines the requestedparticipation EMA for law proposals. + * + * @generated from field: string law_participation_ema = 3; + */ + lawParticipationEma = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.QueryParticipationEMAsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "constitution_amendment_participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "law_participation_ema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParticipationEMAsResponse { + return new QueryParticipationEMAsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParticipationEMAsResponse { + return new QueryParticipationEMAsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParticipationEMAsResponse { + return new QueryParticipationEMAsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParticipationEMAsResponse | PlainMessage | undefined, b: QueryParticipationEMAsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParticipationEMAsResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1/tx_cosmes.ts b/src/protobufs/atomone/gov/v1/tx_cosmes.ts new file mode 100644 index 00000000..6473a7dc --- /dev/null +++ b/src/protobufs/atomone/gov/v1/tx_cosmes.ts @@ -0,0 +1,114 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/gov/v1/tx.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeposit, MsgDepositResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgProposeConstitutionAmendment, MsgProposeConstitutionAmendmentResponse, MsgProposeLaw, MsgProposeLawResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; + +const TYPE_NAME = "atomone.gov.v1.Msg"; + +/** + * SubmitProposal defines a method to create new proposal given the messages. + * + * @generated from rpc atomone.gov.v1.Msg.SubmitProposal + */ +export const MsgSubmitProposalService = { + typeName: TYPE_NAME, + method: "SubmitProposal", + Request: MsgSubmitProposal, + Response: MsgSubmitProposalResponse, +} as const; + +/** + * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal + * to execute a legacy content-based proposal. + * + * @generated from rpc atomone.gov.v1.Msg.ExecLegacyContent + */ +export const MsgExecLegacyContentService = { + typeName: TYPE_NAME, + method: "ExecLegacyContent", + Request: MsgExecLegacyContent, + Response: MsgExecLegacyContentResponse, +} as const; + +/** + * Vote defines a method to add a vote on a specific proposal. + * + * @generated from rpc atomone.gov.v1.Msg.Vote + */ +export const MsgVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: MsgVote, + Response: MsgVoteResponse, +} as const; + +/** + * VoteWeighted defines a method to add a weighted vote on a specific + * proposal. + * + * @generated from rpc atomone.gov.v1.Msg.VoteWeighted + */ +export const MsgVoteWeightedService = { + typeName: TYPE_NAME, + method: "VoteWeighted", + Request: MsgVoteWeighted, + Response: MsgVoteWeightedResponse, +} as const; + +/** + * Deposit defines a method to add deposit on a specific proposal. + * + * @generated from rpc atomone.gov.v1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the x/gov module + * parameters. The authority is defined in the keeper. + * + * Since: cosmos-sdk 0.47 + * + * @generated from rpc atomone.gov.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * ProposeLaw defines a governance operation for proposing a new law. + * The authority is defined in the keeper. + * + * @generated from rpc atomone.gov.v1.Msg.ProposeLaw + */ +export const MsgProposeLawService = { + typeName: TYPE_NAME, + method: "ProposeLaw", + Request: MsgProposeLaw, + Response: MsgProposeLawResponse, +} as const; + +/** + * ProposeConstitutionAmendment defines a governance operation for proposing a + * new constitution amendment. The authority is defined in the keeper. + * + * @generated from rpc atomone.gov.v1.Msg.ProposeConstitutionAmendment + */ +export const MsgProposeConstitutionAmendmentService = { + typeName: TYPE_NAME, + method: "ProposeConstitutionAmendment", + Request: MsgProposeConstitutionAmendment, + Response: MsgProposeConstitutionAmendmentResponse, +} as const; + diff --git a/src/protobufs/atomone/gov/v1/tx_pb.ts b/src/protobufs/atomone/gov/v1/tx_pb.ts new file mode 100644 index 00000000..6886f23c --- /dev/null +++ b/src/protobufs/atomone/gov/v1/tx_pb.ts @@ -0,0 +1,759 @@ +// Since: cosmos-sdk 0.46 + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1/tx.proto (package atomone.gov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params, VoteOption, WeightedVoteOption } from "./gov_pb.js"; + +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + * + * @generated from message atomone.gov.v1.MsgSubmitProposal + */ +export class MsgSubmitProposal extends Message { + /** + * messages are the arbitrary messages to be executed if proposal passes. + * + * @generated from field: repeated google.protobuf.Any messages = 1; + */ + messages: Any[] = []; + + /** + * initial_deposit is the deposit value that must be paid at proposal + * submission. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2; + */ + initialDeposit: Coin[] = []; + + /** + * proposer is the account address of the proposer. + * + * @generated from field: string proposer = 3; + */ + proposer = ""; + + /** + * metadata is any arbitrary metadata attached to the proposal. + * + * @generated from field: string metadata = 4; + */ + metadata = ""; + + /** + * title is the title of the proposal. + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: string title = 5; + */ + title = ""; + + /** + * summary is the summary of the proposal + * + * Since: cosmos-sdk 0.47 + * + * @generated from field: string summary = 6; + */ + summary = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgSubmitProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, + { no: 2, name: "initial_deposit", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposal, a, b); + } +} + +/** + * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + * + * @generated from message atomone.gov.v1.MsgSubmitProposalResponse + */ +export class MsgSubmitProposalResponse extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgSubmitProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposalResponse, a, b); + } +} + +/** + * MsgExecLegacyContent is used to wrap the legacy content field into a message. + * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. + * + * @generated from message atomone.gov.v1.MsgExecLegacyContent + */ +export class MsgExecLegacyContent extends Message { + /** + * content is the proposal's content. + * + * @generated from field: google.protobuf.Any content = 1; + */ + content?: Any; + + /** + * authority must be the gov module address. + * + * @generated from field: string authority = 2; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgExecLegacyContent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "content", kind: "message", T: Any }, + { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecLegacyContent { + return new MsgExecLegacyContent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecLegacyContent { + return new MsgExecLegacyContent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecLegacyContent { + return new MsgExecLegacyContent().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecLegacyContent | PlainMessage | undefined, b: MsgExecLegacyContent | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecLegacyContent, a, b); + } +} + +/** + * MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. + * + * @generated from message atomone.gov.v1.MsgExecLegacyContentResponse + */ +export class MsgExecLegacyContentResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgExecLegacyContentResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecLegacyContentResponse { + return new MsgExecLegacyContentResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecLegacyContentResponse { + return new MsgExecLegacyContentResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecLegacyContentResponse { + return new MsgExecLegacyContentResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecLegacyContentResponse | PlainMessage | undefined, b: MsgExecLegacyContentResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecLegacyContentResponse, a, b); + } +} + +/** + * MsgVote defines a message to cast a vote. + * + * @generated from message atomone.gov.v1.MsgVote + */ +export class MsgVote extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address for the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * option defines the vote option. + * + * @generated from field: atomone.gov.v1.VoteOption option = 3; + */ + option = VoteOption.UNSPECIFIED; + + /** + * metadata is any arbitrary metadata attached to the Vote. + * + * @generated from field: string metadata = 4; + */ + metadata = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, + { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { + return new MsgVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { + return new MsgVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVote { + return new MsgVote().fromJsonString(jsonString, options); + } + + static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVote, a, b); + } +} + +/** + * MsgVoteResponse defines the Msg/Vote response type. + * + * @generated from message atomone.gov.v1.MsgVoteResponse + */ +export class MsgVoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteResponse, a, b); + } +} + +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * @generated from message atomone.gov.v1.MsgVoteWeighted + */ +export class MsgVoteWeighted extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address for the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * options defines the weighted vote options. + * + * @generated from field: repeated atomone.gov.v1.WeightedVoteOption options = 3; + */ + options: WeightedVoteOption[] = []; + + /** + * metadata is any arbitrary metadata attached to the VoteWeighted. + * + * @generated from field: string metadata = 4; + */ + metadata = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgVoteWeighted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteWeighted | PlainMessage | undefined, b: MsgVoteWeighted | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteWeighted, a, b); + } +} + +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * @generated from message atomone.gov.v1.MsgVoteWeightedResponse + */ +export class MsgVoteWeightedResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgVoteWeightedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteWeightedResponse | PlainMessage | undefined, b: MsgVoteWeightedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteWeightedResponse, a, b); + } +} + +/** + * MsgDeposit defines a message to submit a deposit to an existing proposal. + * + * @generated from message atomone.gov.v1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + /** + * amount to be deposited by depositor. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message atomone.gov.v1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message atomone.gov.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/gov parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: atomone.gov.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message atomone.gov.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgLaw is the Msg/ProposeLaw request type. + * + * @generated from message atomone.gov.v1.MsgProposeLaw + */ +export class MsgProposeLaw extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgProposeLaw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeLaw { + return new MsgProposeLaw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeLaw { + return new MsgProposeLaw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeLaw { + return new MsgProposeLaw().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeLaw | PlainMessage | undefined, b: MsgProposeLaw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeLaw, a, b); + } +} + +/** + * MsgProposeLawResponse defines the response structure for executing a + * MsgProposeLaw message. + * + * @generated from message atomone.gov.v1.MsgProposeLawResponse + */ +export class MsgProposeLawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgProposeLawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeLawResponse { + return new MsgProposeLawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeLawResponse { + return new MsgProposeLawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeLawResponse { + return new MsgProposeLawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeLawResponse | PlainMessage | undefined, b: MsgProposeLawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeLawResponse, a, b); + } +} + +/** + * MsgConstitutionAmendment is the Msg/ProposeConstitutionAmendment request type. + * + * @generated from message atomone.gov.v1.MsgProposeConstitutionAmendment + */ +export class MsgProposeConstitutionAmendment extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * amendment is the amendment to the constitution. It must be in valid GNU patch format. + * + * @generated from field: string amendment = 2; + */ + amendment = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgProposeConstitutionAmendment"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amendment", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeConstitutionAmendment { + return new MsgProposeConstitutionAmendment().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeConstitutionAmendment { + return new MsgProposeConstitutionAmendment().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeConstitutionAmendment { + return new MsgProposeConstitutionAmendment().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeConstitutionAmendment | PlainMessage | undefined, b: MsgProposeConstitutionAmendment | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeConstitutionAmendment, a, b); + } +} + +/** + * MsgProposeConstitutionAmendmentResponse defines the response structure for executing a + * MsgProposeConstitutionAmendment message. + * + * @generated from message atomone.gov.v1.MsgProposeConstitutionAmendmentResponse + */ +export class MsgProposeConstitutionAmendmentResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1.MsgProposeConstitutionAmendmentResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeConstitutionAmendmentResponse { + return new MsgProposeConstitutionAmendmentResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeConstitutionAmendmentResponse { + return new MsgProposeConstitutionAmendmentResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeConstitutionAmendmentResponse { + return new MsgProposeConstitutionAmendmentResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeConstitutionAmendmentResponse | PlainMessage | undefined, b: MsgProposeConstitutionAmendmentResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeConstitutionAmendmentResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1beta1/genesis_pb.ts b/src/protobufs/atomone/gov/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..cf680565 --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/genesis_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/genesis.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, DepositParams, Proposal, TallyParams, Vote, VotingParams } from "./gov_pb.js"; + +/** + * GenesisState defines the gov module's genesis state. + * + * @generated from message atomone.gov.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * starting_proposal_id is the ID of the starting proposal. + * + * @generated from field: uint64 starting_proposal_id = 1; + */ + startingProposalId = protoInt64.zero; + + /** + * deposits defines all the deposits present at genesis. + * + * @generated from field: repeated atomone.gov.v1beta1.Deposit deposits = 2; + */ + deposits: Deposit[] = []; + + /** + * votes defines all the votes present at genesis. + * + * @generated from field: repeated atomone.gov.v1beta1.Vote votes = 3; + */ + votes: Vote[] = []; + + /** + * proposals defines all the proposals present at genesis. + * + * @generated from field: repeated atomone.gov.v1beta1.Proposal proposals = 4; + */ + proposals: Proposal[] = []; + + /** + * params defines all the parameters of related to deposit. + * + * @generated from field: atomone.gov.v1beta1.DepositParams deposit_params = 5; + */ + depositParams?: DepositParams; + + /** + * params defines all the parameters of related to voting. + * + * @generated from field: atomone.gov.v1beta1.VotingParams voting_params = 6; + */ + votingParams?: VotingParams; + + /** + * params defines all the parameters of related to tally. + * + * @generated from field: atomone.gov.v1beta1.TallyParams tally_params = 7; + */ + tallyParams?: TallyParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "starting_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 3, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 4, name: "proposals", kind: "message", T: Proposal, repeated: true }, + { no: 5, name: "deposit_params", kind: "message", T: DepositParams }, + { no: 6, name: "voting_params", kind: "message", T: VotingParams }, + { no: 7, name: "tally_params", kind: "message", T: TallyParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1beta1/gov_pb.ts b/src/protobufs/atomone/gov/v1beta1/gov_pb.ts new file mode 100644 index 00000000..890bb128 --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/gov_pb.ts @@ -0,0 +1,685 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/gov.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * @generated from enum atomone.gov.v1beta1.VoteOption + */ +export enum VoteOption { + /** + * VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * + * @generated from enum value: VOTE_OPTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * VOTE_OPTION_YES defines a yes vote option. + * + * @generated from enum value: VOTE_OPTION_YES = 1; + */ + YES = 1, + + /** + * VOTE_OPTION_ABSTAIN defines an abstain vote option. + * + * @generated from enum value: VOTE_OPTION_ABSTAIN = 2; + */ + ABSTAIN = 2, + + /** + * VOTE_OPTION_NO defines a no vote option. + * + * @generated from enum value: VOTE_OPTION_NO = 3; + */ + NO = 3, + + /** + * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * + * @generated from enum value: VOTE_OPTION_NO_WITH_VETO = 4; + */ + NO_WITH_VETO = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(VoteOption) +proto3.util.setEnumType(VoteOption, "atomone.gov.v1beta1.VoteOption", [ + { no: 0, name: "VOTE_OPTION_UNSPECIFIED" }, + { no: 1, name: "VOTE_OPTION_YES" }, + { no: 2, name: "VOTE_OPTION_ABSTAIN" }, + { no: 3, name: "VOTE_OPTION_NO" }, + { no: 4, name: "VOTE_OPTION_NO_WITH_VETO" }, +]); + +/** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * @generated from enum atomone.gov.v1beta1.ProposalStatus + */ +export enum ProposalStatus { + /** + * PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. + * + * @generated from enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * + * @generated from enum value: PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; + */ + DEPOSIT_PERIOD = 1, + + /** + * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * + * @generated from enum value: PROPOSAL_STATUS_VOTING_PERIOD = 2; + */ + VOTING_PERIOD = 2, + + /** + * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * + * @generated from enum value: PROPOSAL_STATUS_PASSED = 3; + */ + PASSED = 3, + + /** + * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * + * @generated from enum value: PROPOSAL_STATUS_REJECTED = 4; + */ + REJECTED = 4, + + /** + * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * + * @generated from enum value: PROPOSAL_STATUS_FAILED = 5; + */ + FAILED = 5, + + /** + * PROPOSAL_STATUS_VETOED defines a proposal status of a proposal that has + * been vetoed. + * + * @generated from enum value: PROPOSAL_STATUS_VETOED = 6; + */ + VETOED = 6, +} +// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) +proto3.util.setEnumType(ProposalStatus, "atomone.gov.v1beta1.ProposalStatus", [ + { no: 0, name: "PROPOSAL_STATUS_UNSPECIFIED" }, + { no: 1, name: "PROPOSAL_STATUS_DEPOSIT_PERIOD" }, + { no: 2, name: "PROPOSAL_STATUS_VOTING_PERIOD" }, + { no: 3, name: "PROPOSAL_STATUS_PASSED" }, + { no: 4, name: "PROPOSAL_STATUS_REJECTED" }, + { no: 5, name: "PROPOSAL_STATUS_FAILED" }, + { no: 6, name: "PROPOSAL_STATUS_VETOED" }, +]); + +/** + * WeightedVoteOption defines a unit of vote for vote split. + * + * Since: cosmos-sdk 0.43 + * + * @generated from message atomone.gov.v1beta1.WeightedVoteOption + */ +export class WeightedVoteOption extends Message { + /** + * option defines the valid vote options, it must not contain duplicate vote + * options. + * + * @generated from field: atomone.gov.v1beta1.VoteOption option = 1; + */ + option = VoteOption.UNSPECIFIED; + + /** + * weight is the vote weight associated with the vote option. + * + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.WeightedVoteOption"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedVoteOption { + return new WeightedVoteOption().fromJsonString(jsonString, options); + } + + static equals(a: WeightedVoteOption | PlainMessage | undefined, b: WeightedVoteOption | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedVoteOption, a, b); + } +} + +/** + * TextProposal defines a standard text proposal whose changes need to be + * manually updated in case of approval. + * + * @generated from message atomone.gov.v1beta1.TextProposal + */ +export class TextProposal extends Message { + /** + * title of the proposal. + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * description associated with the proposal. + * + * @generated from field: string description = 2; + */ + description = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.TextProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextProposal { + return new TextProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextProposal { + return new TextProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextProposal { + return new TextProposal().fromJsonString(jsonString, options); + } + + static equals(a: TextProposal | PlainMessage | undefined, b: TextProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(TextProposal, a, b); + } +} + +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + * + * @generated from message atomone.gov.v1beta1.Deposit + */ +export class Deposit extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + /** + * amount to be deposited by depositor. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + +/** + * Proposal defines the core field members of a governance proposal. + * + * @generated from message atomone.gov.v1beta1.Proposal + */ +export class Proposal extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * content is the proposal's content. + * + * @generated from field: google.protobuf.Any content = 2; + */ + content?: Any; + + /** + * status defines the proposal status. + * + * @generated from field: atomone.gov.v1beta1.ProposalStatus status = 3; + */ + status = ProposalStatus.UNSPECIFIED; + + /** + * final_tally_result is the final tally result of the proposal. When + * querying a proposal via gRPC, this field is not populated until the + * proposal's voting period has ended. + * + * @generated from field: atomone.gov.v1beta1.TallyResult final_tally_result = 4; + */ + finalTallyResult?: TallyResult; + + /** + * submit_time is the time of proposal submission. + * + * @generated from field: google.protobuf.Timestamp submit_time = 5; + */ + submitTime?: Timestamp; + + /** + * deposit_end_time is the end time for deposition. + * + * @generated from field: google.protobuf.Timestamp deposit_end_time = 6; + */ + depositEndTime?: Timestamp; + + /** + * total_deposit is the total deposit on the proposal. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin total_deposit = 7; + */ + totalDeposit: Coin[] = []; + + /** + * voting_start_time is the starting time to vote on a proposal. + * + * @generated from field: google.protobuf.Timestamp voting_start_time = 8; + */ + votingStartTime?: Timestamp; + + /** + * voting_end_time is the end time of voting on a proposal. + * + * @generated from field: google.protobuf.Timestamp voting_end_time = 9; + */ + votingEndTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.Proposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "content", kind: "message", T: Any }, + { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, + { no: 4, name: "final_tally_result", kind: "message", T: TallyResult }, + { no: 5, name: "submit_time", kind: "message", T: Timestamp }, + { no: 6, name: "deposit_end_time", kind: "message", T: Timestamp }, + { no: 7, name: "total_deposit", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "voting_start_time", kind: "message", T: Timestamp }, + { no: 9, name: "voting_end_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { + return new Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { + return new Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Proposal { + return new Proposal().fromJsonString(jsonString, options); + } + + static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(Proposal, a, b); + } +} + +/** + * TallyResult defines a standard tally for a governance proposal. + * + * @generated from message atomone.gov.v1beta1.TallyResult + */ +export class TallyResult extends Message { + /** + * yes is the number of yes votes on a proposal. + * + * @generated from field: string yes = 1; + */ + yes = ""; + + /** + * abstain is the number of abstain votes on a proposal. + * + * @generated from field: string abstain = 2; + */ + abstain = ""; + + /** + * no is the number of no votes on a proposal. + * + * @generated from field: string no = 3; + */ + no = ""; + + /** + * no_with_veto is the number of no with veto votes on a proposal. + * + * @generated from field: string no_with_veto = 4; + */ + noWithVeto = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.TallyResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "abstain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "no", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "no_with_veto", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TallyResult { + return new TallyResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TallyResult { + return new TallyResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TallyResult { + return new TallyResult().fromJsonString(jsonString, options); + } + + static equals(a: TallyResult | PlainMessage | undefined, b: TallyResult | PlainMessage | undefined): boolean { + return proto3.util.equals(TallyResult, a, b); + } +} + +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + * + * @generated from message atomone.gov.v1beta1.Vote + */ +export class Vote extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address of the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * Deprecated: Prefer to use `options` instead. This field is set in queries + * if and only if `len(options) == 1` and that option has weight 1. In all + * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + * + * @generated from field: atomone.gov.v1beta1.VoteOption option = 3 [deprecated = true]; + * @deprecated + */ + option = VoteOption.UNSPECIFIED; + + /** + * options is the weighted vote options. + * + * Since: cosmos-sdk 0.43 + * + * @generated from field: repeated atomone.gov.v1beta1.WeightedVoteOption options = 4; + */ + options: WeightedVoteOption[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.Vote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, + { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vote { + return new Vote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vote { + return new Vote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vote { + return new Vote().fromJsonString(jsonString, options); + } + + static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { + return proto3.util.equals(Vote, a, b); + } +} + +/** + * DepositParams defines the params for deposits on governance proposals. + * + * @generated from message atomone.gov.v1beta1.DepositParams + */ +export class DepositParams extends Message { + /** + * Minimum deposit for a proposal to enter voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; + */ + minDeposit: Coin[] = []; + + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + * + * @generated from field: google.protobuf.Duration max_deposit_period = 2; + */ + maxDepositPeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.DepositParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositParams { + return new DepositParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositParams { + return new DepositParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositParams { + return new DepositParams().fromJsonString(jsonString, options); + } + + static equals(a: DepositParams | PlainMessage | undefined, b: DepositParams | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositParams, a, b); + } +} + +/** + * VotingParams defines the params for voting on governance proposals. + * + * @generated from message atomone.gov.v1beta1.VotingParams + */ +export class VotingParams extends Message { + /** + * Duration of the voting period. + * + * @generated from field: google.protobuf.Duration voting_period = 1; + */ + votingPeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.VotingParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voting_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VotingParams { + return new VotingParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VotingParams { + return new VotingParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VotingParams { + return new VotingParams().fromJsonString(jsonString, options); + } + + static equals(a: VotingParams | PlainMessage | undefined, b: VotingParams | PlainMessage | undefined): boolean { + return proto3.util.equals(VotingParams, a, b); + } +} + +/** + * TallyParams defines the params for tallying votes on governance proposals. + * + * @generated from message atomone.gov.v1beta1.TallyParams + */ +export class TallyParams extends Message { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * + * @generated from field: bytes quorum = 1 [deprecated = true]; + * @deprecated + */ + quorum = new Uint8Array(0); + + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 2/3. + * + * @generated from field: bytes threshold = 2; + */ + threshold = new Uint8Array(0); + + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 0 (disabled). + * + * @generated from field: bytes veto_threshold = 3; + */ + vetoThreshold = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.TallyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quorum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "threshold", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "veto_threshold", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TallyParams { + return new TallyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TallyParams { + return new TallyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TallyParams { + return new TallyParams().fromJsonString(jsonString, options); + } + + static equals(a: TallyParams | PlainMessage | undefined, b: TallyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(TallyParams, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1beta1/query_cosmes.ts b/src/protobufs/atomone/gov/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..d04029f2 --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/query_cosmes.ts @@ -0,0 +1,105 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/query.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; + +const TYPE_NAME = "atomone.gov.v1beta1.Query"; + +/** + * Proposal queries proposal details based on ProposalID. + * + * @generated from rpc atomone.gov.v1beta1.Query.Proposal + */ +export const QueryProposalService = { + typeName: TYPE_NAME, + method: "Proposal", + Request: QueryProposalRequest, + Response: QueryProposalResponse, +} as const; + +/** + * Proposals queries all proposals based on given status. + * + * @generated from rpc atomone.gov.v1beta1.Query.Proposals + */ +export const QueryProposalsService = { + typeName: TYPE_NAME, + method: "Proposals", + Request: QueryProposalsRequest, + Response: QueryProposalsResponse, +} as const; + +/** + * Vote queries voted information based on proposalID, voterAddr. + * + * @generated from rpc atomone.gov.v1beta1.Query.Vote + */ +export const QueryVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: QueryVoteRequest, + Response: QueryVoteResponse, +} as const; + +/** + * Votes queries votes of a given proposal. + * + * @generated from rpc atomone.gov.v1beta1.Query.Votes + */ +export const QueryVotesService = { + typeName: TYPE_NAME, + method: "Votes", + Request: QueryVotesRequest, + Response: QueryVotesResponse, +} as const; + +/** + * Params queries all parameters of the gov module. + * + * @generated from rpc atomone.gov.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Deposit queries single deposit information based proposalID, depositAddr. + * + * @generated from rpc atomone.gov.v1beta1.Query.Deposit + */ +export const QueryDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: QueryDepositRequest, + Response: QueryDepositResponse, +} as const; + +/** + * Deposits queries all deposits of a single proposal. + * + * @generated from rpc atomone.gov.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + +/** + * TallyResult queries the tally of a proposal vote. + * + * @generated from rpc atomone.gov.v1beta1.Query.TallyResult + */ +export const QueryTallyResultService = { + typeName: TYPE_NAME, + method: "TallyResult", + Request: QueryTallyResultRequest, + Response: QueryTallyResultResponse, +} as const; + diff --git a/src/protobufs/atomone/gov/v1beta1/query_pb.ts b/src/protobufs/atomone/gov/v1beta1/query_pb.ts new file mode 100644 index 00000000..6ac0ebc7 --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/query_pb.ts @@ -0,0 +1,762 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/query.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, DepositParams, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryProposalRequest is the request type for the Query/Proposal RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryProposalRequest + */ +export class QueryProposalRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryProposalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalRequest, a, b); + } +} + +/** + * QueryProposalResponse is the response type for the Query/Proposal RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryProposalResponse + */ +export class QueryProposalResponse extends Message { + /** + * @generated from field: atomone.gov.v1beta1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalResponse, a, b); + } +} + +/** + * QueryProposalsRequest is the request type for the Query/Proposals RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryProposalsRequest + */ +export class QueryProposalsRequest extends Message { + /** + * proposal_status defines the status of the proposals. + * + * @generated from field: atomone.gov.v1beta1.ProposalStatus proposal_status = 1; + */ + proposalStatus = ProposalStatus.UNSPECIFIED; + + /** + * voter defines the voter address for the proposals. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 3; + */ + depositor = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryProposalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsRequest, a, b); + } +} + +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + * + * @generated from message atomone.gov.v1beta1.QueryProposalsResponse + */ +export class QueryProposalsResponse extends Message { + /** + * proposals defines all the requested governance proposals. + * + * @generated from field: repeated atomone.gov.v1beta1.Proposal proposals = 1; + */ + proposals: Proposal[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryProposalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposals", kind: "message", T: Proposal, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsResponse, a, b); + } +} + +/** + * QueryVoteRequest is the request type for the Query/Vote RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryVoteRequest + */ +export class QueryVoteRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter defines the voter address for the proposals. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteRequest, a, b); + } +} + +/** + * QueryVoteResponse is the response type for the Query/Vote RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryVoteResponse + */ +export class QueryVoteResponse extends Message { + /** + * vote defines the queried vote. + * + * @generated from field: atomone.gov.v1beta1.Vote vote = 1; + */ + vote?: Vote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteResponse, a, b); + } +} + +/** + * QueryVotesRequest is the request type for the Query/Votes RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryVotesRequest + */ +export class QueryVotesRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryVotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesRequest, a, b); + } +} + +/** + * QueryVotesResponse is the response type for the Query/Votes RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryVotesResponse + */ +export class QueryVotesResponse extends Message { + /** + * votes defines the queried votes. + * + * @generated from field: repeated atomone.gov.v1beta1.Vote votes = 1; + */ + votes: Vote[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryVotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + /** + * params_type defines which parameters to query for, can be one of "voting", + * "tallying" or "deposit". + * + * @generated from field: string params_type = 1; + */ + paramsType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * voting_params defines the parameters related to voting. + * + * @generated from field: atomone.gov.v1beta1.VotingParams voting_params = 1; + */ + votingParams?: VotingParams; + + /** + * deposit_params defines the parameters related to deposit. + * + * @generated from field: atomone.gov.v1beta1.DepositParams deposit_params = 2; + */ + depositParams?: DepositParams; + + /** + * tally_params defines the parameters related to tally. + * + * @generated from field: atomone.gov.v1beta1.TallyParams tally_params = 3; + */ + tallyParams?: TallyParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voting_params", kind: "message", T: VotingParams }, + { no: 2, name: "deposit_params", kind: "message", T: DepositParams }, + { no: 3, name: "tally_params", kind: "message", T: TallyParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDepositRequest is the request type for the Query/Deposit RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryDepositRequest + */ +export class QueryDepositRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositRequest { + return new QueryDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositRequest | PlainMessage | undefined, b: QueryDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositRequest, a, b); + } +} + +/** + * QueryDepositResponse is the response type for the Query/Deposit RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryDepositResponse + */ +export class QueryDepositResponse extends Message { + /** + * deposit defines the requested deposit. + * + * @generated from field: atomone.gov.v1beta1.Deposit deposit = 1; + */ + deposit?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositResponse { + return new QueryDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositResponse | PlainMessage | undefined, b: QueryDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositResponse, a, b); + } +} + +/** + * QueryDepositsRequest is the request type for the Query/Deposits RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse is the response type for the Query/Deposits RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * deposits defines the requested deposits. + * + * @generated from field: repeated atomone.gov.v1beta1.Deposit deposits = 1; + */ + deposits: Deposit[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * QueryTallyResultRequest is the request type for the Query/Tally RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryTallyResultRequest + */ +export class QueryTallyResultRequest extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryTallyResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultRequest, a, b); + } +} + +/** + * QueryTallyResultResponse is the response type for the Query/Tally RPC method. + * + * @generated from message atomone.gov.v1beta1.QueryTallyResultResponse + */ +export class QueryTallyResultResponse extends Message { + /** + * tally defines the requested tally. + * + * @generated from field: atomone.gov.v1beta1.TallyResult tally = 1; + */ + tally?: TallyResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.QueryTallyResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tally", kind: "message", T: TallyResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/gov/v1beta1/tx_cosmes.ts b/src/protobufs/atomone/gov/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..648fa27c --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/tx_cosmes.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/tx.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeposit, MsgDepositResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; + +const TYPE_NAME = "atomone.gov.v1beta1.Msg"; + +/** + * SubmitProposal defines a method to create new proposal given a content. + * + * @generated from rpc atomone.gov.v1beta1.Msg.SubmitProposal + */ +export const MsgSubmitProposalService = { + typeName: TYPE_NAME, + method: "SubmitProposal", + Request: MsgSubmitProposal, + Response: MsgSubmitProposalResponse, +} as const; + +/** + * Vote defines a method to add a vote on a specific proposal. + * + * @generated from rpc atomone.gov.v1beta1.Msg.Vote + */ +export const MsgVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: MsgVote, + Response: MsgVoteResponse, +} as const; + +/** + * VoteWeighted defines a method to add a weighted vote on a specific + * proposal. + * + * Since: cosmos-sdk 0.43 + * + * @generated from rpc atomone.gov.v1beta1.Msg.VoteWeighted + */ +export const MsgVoteWeightedService = { + typeName: TYPE_NAME, + method: "VoteWeighted", + Request: MsgVoteWeighted, + Response: MsgVoteWeightedResponse, +} as const; + +/** + * Deposit defines a method to add deposit on a specific proposal. + * + * @generated from rpc atomone.gov.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + diff --git a/src/protobufs/atomone/gov/v1beta1/tx_pb.ts b/src/protobufs/atomone/gov/v1beta1/tx_pb.ts new file mode 100644 index 00000000..83e3c1fe --- /dev/null +++ b/src/protobufs/atomone/gov/v1beta1/tx_pb.ts @@ -0,0 +1,384 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/gov/v1beta1/tx.proto (package atomone.gov.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { VoteOption, WeightedVoteOption } from "./gov_pb.js"; + +/** + * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary + * proposal Content. + * + * @generated from message atomone.gov.v1beta1.MsgSubmitProposal + */ +export class MsgSubmitProposal extends Message { + /** + * content is the proposal's content. + * + * @generated from field: google.protobuf.Any content = 1; + */ + content?: Any; + + /** + * initial_deposit is the deposit value that must be paid at proposal + * submission. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2; + */ + initialDeposit: Coin[] = []; + + /** + * proposer is the account address of the proposer. + * + * @generated from field: string proposer = 3; + */ + proposer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgSubmitProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "content", kind: "message", T: Any }, + { no: 2, name: "initial_deposit", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposal, a, b); + } +} + +/** + * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + * + * @generated from message atomone.gov.v1beta1.MsgSubmitProposalResponse + */ +export class MsgSubmitProposalResponse extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgSubmitProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposalResponse, a, b); + } +} + +/** + * MsgVote defines a message to cast a vote. + * + * @generated from message atomone.gov.v1beta1.MsgVote + */ +export class MsgVote extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address for the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * option defines the vote option. + * + * @generated from field: atomone.gov.v1beta1.VoteOption option = 3; + */ + option = VoteOption.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { + return new MsgVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { + return new MsgVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVote { + return new MsgVote().fromJsonString(jsonString, options); + } + + static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVote, a, b); + } +} + +/** + * MsgVoteResponse defines the Msg/Vote response type. + * + * @generated from message atomone.gov.v1beta1.MsgVoteResponse + */ +export class MsgVoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteResponse, a, b); + } +} + +/** + * MsgVoteWeighted defines a message to cast a vote. + * + * Since: cosmos-sdk 0.43 + * + * @generated from message atomone.gov.v1beta1.MsgVoteWeighted + */ +export class MsgVoteWeighted extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * voter is the voter address for the proposal. + * + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * options defines the weighted vote options. + * + * @generated from field: repeated atomone.gov.v1beta1.WeightedVoteOption options = 3; + */ + options: WeightedVoteOption[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgVoteWeighted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeighted { + return new MsgVoteWeighted().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteWeighted | PlainMessage | undefined, b: MsgVoteWeighted | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteWeighted, a, b); + } +} + +/** + * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + * + * Since: cosmos-sdk 0.43 + * + * @generated from message atomone.gov.v1beta1.MsgVoteWeightedResponse + */ +export class MsgVoteWeightedResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgVoteWeightedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeightedResponse { + return new MsgVoteWeightedResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteWeightedResponse | PlainMessage | undefined, b: MsgVoteWeightedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteWeightedResponse, a, b); + } +} + +/** + * MsgDeposit defines a message to submit a deposit to an existing proposal. + * + * @generated from message atomone.gov.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * depositor defines the deposit addresses from the proposals. + * + * @generated from field: string depositor = 2; + */ + depositor = ""; + + /** + * amount to be deposited by depositor. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message atomone.gov.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.gov.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/photon/v1/genesis_pb.ts b/src/protobufs/atomone/photon/v1/genesis_pb.ts new file mode 100644 index 00000000..92b2a467 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/photon/v1/genesis.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./photon_pb.js"; + +/** + * GenesisState defines the x/photon module's genesis state. + * + * @generated from message atomone.photon.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: atomone.photon.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/atomone/photon/v1/photon_pb.ts b/src/protobufs/atomone/photon/v1/photon_pb.ts new file mode 100644 index 00000000..6b5be605 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/photon_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/photon/v1/photon.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the x/photon module. + * + * @generated from message atomone.photon.v1.Params + */ +export class Params extends Message { + /** + * Allow to mint photon or not + * + * @generated from field: bool mint_disabled = 1; + */ + mintDisabled = false; + + /** + * tx_fee_exceptions holds the msg type urls that are allowed to use some + * different tx fee coins than photon. + * A wildcard "*" can be used to allow all transactions to use any fee denom. + * + * @generated from field: repeated string tx_fee_exceptions = 2; + */ + txFeeExceptions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "tx_fee_exceptions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/atomone/photon/v1/query_cosmes.ts b/src/protobufs/atomone/photon/v1/query_cosmes.ts new file mode 100644 index 00000000..4e426ef9 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/photon/v1/query.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryConversionRateRequest, QueryConversionRateResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "atomone.photon.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc atomone.photon.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * ConversionRate queries the photon's conversion rate + * + * @generated from rpc atomone.photon.v1.Query.ConversionRate + */ +export const QueryConversionRateService = { + typeName: TYPE_NAME, + method: "ConversionRate", + Request: QueryConversionRateRequest, + Response: QueryConversionRateResponse, +} as const; + diff --git a/src/protobufs/atomone/photon/v1/query_pb.ts b/src/protobufs/atomone/photon/v1/query_pb.ts new file mode 100644 index 00000000..77bbef61 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/query_pb.ts @@ -0,0 +1,157 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/photon/v1/query.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./photon_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message atomone.photon.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message atomone.photon.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: atomone.photon.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryConversionRateRequest is request type for the Query/ConversionRate RPC method. + * + * @generated from message atomone.photon.v1.QueryConversionRateRequest + */ +export class QueryConversionRateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.QueryConversionRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConversionRateRequest { + return new QueryConversionRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConversionRateRequest { + return new QueryConversionRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConversionRateRequest { + return new QueryConversionRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConversionRateRequest | PlainMessage | undefined, b: QueryConversionRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConversionRateRequest, a, b); + } +} + +/** + * QueryConversionRateResponse is response type for the Query/ConversionRate RPC method. + * + * @generated from message atomone.photon.v1.QueryConversionRateResponse + */ +export class QueryConversionRateResponse extends Message { + /** + * conversion_rate represents the factor used to convert atone to photon. + * + * @generated from field: string conversion_rate = 1; + */ + conversionRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.QueryConversionRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "conversion_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConversionRateResponse { + return new QueryConversionRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConversionRateResponse { + return new QueryConversionRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConversionRateResponse { + return new QueryConversionRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConversionRateResponse | PlainMessage | undefined, b: QueryConversionRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConversionRateResponse, a, b); + } +} + diff --git a/src/protobufs/atomone/photon/v1/tx_cosmes.ts b/src/protobufs/atomone/photon/v1/tx_cosmes.ts new file mode 100644 index 00000000..cf22ed48 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/tx_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file atomone/photon/v1/tx.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgMintPhoton, MsgMintPhotonResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "atomone.photon.v1.Msg"; + +/** + * MintPhoton defines a method to burn atone and mint photons. + * + * @generated from rpc atomone.photon.v1.Msg.MintPhoton + */ +export const MsgMintPhotonService = { + typeName: TYPE_NAME, + method: "MintPhoton", + Request: MsgMintPhoton, + Response: MsgMintPhotonResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the x/photon + * module parameters. The authority is defined in the keeper. + * + * @generated from rpc atomone.photon.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/atomone/photon/v1/tx_pb.ts b/src/protobufs/atomone/photon/v1/tx_pb.ts new file mode 100644 index 00000000..369f3ab6 --- /dev/null +++ b/src/protobufs/atomone/photon/v1/tx_pb.ts @@ -0,0 +1,189 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file atomone/photon/v1/tx.proto (package atomone.photon.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./photon_pb.js"; + +/** + * MsgMintPhoton defines an sdk.Msg for burning atone and minting photons. + * + * @generated from message atomone.photon.v1.MsgMintPhoton + */ +export class MsgMintPhoton extends Message { + /** + * @generated from field: string to_address = 1; + */ + toAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.MsgMintPhoton"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintPhoton { + return new MsgMintPhoton().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintPhoton { + return new MsgMintPhoton().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintPhoton { + return new MsgMintPhoton().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintPhoton | PlainMessage | undefined, b: MsgMintPhoton | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintPhoton, a, b); + } +} + +/** + * MsgMintPhotonResponse defines the response structure for executing a + * MsgMintPhoton message. + * + * @generated from message atomone.photon.v1.MsgMintPhotonResponse + */ +export class MsgMintPhotonResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin minted = 1; + */ + minted?: Coin; + + /** + * conversion_rate represents the factor used to convert atone to photon. + * + * @generated from field: string conversion_rate = 2; + */ + conversionRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.MsgMintPhotonResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minted", kind: "message", T: Coin }, + { no: 2, name: "conversion_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintPhotonResponse { + return new MsgMintPhotonResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintPhotonResponse { + return new MsgMintPhotonResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintPhotonResponse { + return new MsgMintPhotonResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintPhotonResponse | PlainMessage | undefined, b: MsgMintPhotonResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintPhotonResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message atomone.photon.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/gov parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: atomone.photon.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message atomone.photon.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "atomone.photon.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/captcha/request_pb.ts b/src/protobufs/captcha/request_pb.ts new file mode 100644 index 00000000..53c1f902 --- /dev/null +++ b/src/protobufs/captcha/request_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file captcha/request.proto (package captcha, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum captcha.CaptchaVersion + */ +export enum CaptchaVersion { + /** + * @generated from enum value: CaptchaVersionV2 = 0; + */ + CaptchaVersionV2 = 0, + + /** + * @generated from enum value: CaptchaVersionV3 = 1; + */ + CaptchaVersionV3 = 1, + + /** + * @generated from enum value: CaptchaVersionH = 2; + */ + CaptchaVersionH = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(CaptchaVersion) +proto3.util.setEnumType(CaptchaVersion, "captcha.CaptchaVersion", [ + { no: 0, name: "CaptchaVersionV2" }, + { no: 1, name: "CaptchaVersionV3" }, + { no: 2, name: "CaptchaVersionH" }, +]); + +/** + * @generated from message captcha.CaptchaRequest + */ +export class CaptchaRequest extends Message { + /** + * @generated from field: string response = 1; + */ + response = ""; + + /** + * @generated from field: captcha.CaptchaVersion version = 2; + */ + version = CaptchaVersion.CaptchaVersionV2; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "captcha.CaptchaRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "response", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "enum", T: proto3.getEnumType(CaptchaVersion) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CaptchaRequest { + return new CaptchaRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CaptchaRequest { + return new CaptchaRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CaptchaRequest { + return new CaptchaRequest().fromJsonString(jsonString, options); + } + + static equals(a: CaptchaRequest | PlainMessage | undefined, b: CaptchaRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CaptchaRequest, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/authz_pb.ts b/src/protobufs/coreum/asset/ft/v1/authz_pb.ts new file mode 100644 index 00000000..92d2168e --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/authz_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/authz.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MintAuthorization allows the grantee to mint up to mint_limit coin from + * the granter's account. + * + * @generated from message coreum.asset.ft.v1.MintAuthorization + */ +export class MintAuthorization extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin mint_limit = 1; + */ + mintLimit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MintAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_limit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MintAuthorization { + return new MintAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MintAuthorization { + return new MintAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MintAuthorization { + return new MintAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: MintAuthorization | PlainMessage | undefined, b: MintAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(MintAuthorization, a, b); + } +} + +/** + * BurnAuthorization allows the grantee to burn up to burn_limit coin from + * the granter's account. + * + * @generated from message coreum.asset.ft.v1.BurnAuthorization + */ +export class BurnAuthorization extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin burn_limit = 1; + */ + burnLimit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.BurnAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "burn_limit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BurnAuthorization { + return new BurnAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BurnAuthorization { + return new BurnAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BurnAuthorization { + return new BurnAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: BurnAuthorization | PlainMessage | undefined, b: BurnAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(BurnAuthorization, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/event_pb.ts b/src/protobufs/coreum/asset/ft/v1/event_pb.ts new file mode 100644 index 00000000..f5246bb9 --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/event_pb.ts @@ -0,0 +1,530 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/event.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DEXSettings, Feature } from "./token_pb.js"; + +/** + * EventIssued is emitted on MsgIssue. + * + * @generated from message coreum.asset.ft.v1.EventIssued + */ +export class EventIssued extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: string symbol = 3; + */ + symbol = ""; + + /** + * @generated from field: string subunit = 4; + */ + subunit = ""; + + /** + * @generated from field: uint32 precision = 5; + */ + precision = 0; + + /** + * @generated from field: string initial_amount = 6; + */ + initialAmount = ""; + + /** + * @generated from field: string description = 7; + */ + description = ""; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Feature features = 8; + */ + features: Feature[] = []; + + /** + * @generated from field: string burn_rate = 9; + */ + burnRate = ""; + + /** + * @generated from field: string send_commission_rate = 10; + */ + sendCommissionRate = ""; + + /** + * @generated from field: string uri = 11; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 12; + */ + uriHash = ""; + + /** + * @generated from field: string admin = 13; + */ + admin = ""; + + /** + * @generated from field: coreum.asset.ft.v1.DEXSettings dex_settings = 14; + */ + dexSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventIssued"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "subunit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "precision", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "initial_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "features", kind: "enum", T: proto3.getEnumType(Feature), repeated: true }, + { no: 9, name: "burn_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "send_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "dex_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventIssued { + return new EventIssued().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventIssued { + return new EventIssued().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventIssued { + return new EventIssued().fromJsonString(jsonString, options); + } + + static equals(a: EventIssued | PlainMessage | undefined, b: EventIssued | PlainMessage | undefined): boolean { + return proto3.util.equals(EventIssued, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventFrozenAmountChanged + */ +export class EventFrozenAmountChanged extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string previous_amount = 3; + */ + previousAmount = ""; + + /** + * @generated from field: string current_amount = 4; + */ + currentAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventFrozenAmountChanged"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "previous_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "current_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFrozenAmountChanged { + return new EventFrozenAmountChanged().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFrozenAmountChanged { + return new EventFrozenAmountChanged().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFrozenAmountChanged { + return new EventFrozenAmountChanged().fromJsonString(jsonString, options); + } + + static equals(a: EventFrozenAmountChanged | PlainMessage | undefined, b: EventFrozenAmountChanged | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFrozenAmountChanged, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventAmountClawedBack + */ +export class EventAmountClawedBack extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventAmountClawedBack"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAmountClawedBack { + return new EventAmountClawedBack().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAmountClawedBack { + return new EventAmountClawedBack().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAmountClawedBack { + return new EventAmountClawedBack().fromJsonString(jsonString, options); + } + + static equals(a: EventAmountClawedBack | PlainMessage | undefined, b: EventAmountClawedBack | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAmountClawedBack, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventWhitelistedAmountChanged + */ +export class EventWhitelistedAmountChanged extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string previous_amount = 3; + */ + previousAmount = ""; + + /** + * @generated from field: string current_amount = 4; + */ + currentAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventWhitelistedAmountChanged"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "previous_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "current_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventWhitelistedAmountChanged { + return new EventWhitelistedAmountChanged().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventWhitelistedAmountChanged { + return new EventWhitelistedAmountChanged().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventWhitelistedAmountChanged { + return new EventWhitelistedAmountChanged().fromJsonString(jsonString, options); + } + + static equals(a: EventWhitelistedAmountChanged | PlainMessage | undefined, b: EventWhitelistedAmountChanged | PlainMessage | undefined): boolean { + return proto3.util.equals(EventWhitelistedAmountChanged, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventDEXLockedAmountChanged + */ +export class EventDEXLockedAmountChanged extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string previous_amount = 3; + */ + previousAmount = ""; + + /** + * @generated from field: string current_amount = 4; + */ + currentAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventDEXLockedAmountChanged"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "previous_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "current_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDEXLockedAmountChanged { + return new EventDEXLockedAmountChanged().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDEXLockedAmountChanged { + return new EventDEXLockedAmountChanged().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDEXLockedAmountChanged { + return new EventDEXLockedAmountChanged().fromJsonString(jsonString, options); + } + + static equals(a: EventDEXLockedAmountChanged | PlainMessage | undefined, b: EventDEXLockedAmountChanged | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDEXLockedAmountChanged, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventDEXExpectedToReceiveAmountChanged + */ +export class EventDEXExpectedToReceiveAmountChanged extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string previous_amount = 3; + */ + previousAmount = ""; + + /** + * @generated from field: string current_amount = 4; + */ + currentAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventDEXExpectedToReceiveAmountChanged"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "previous_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "current_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDEXExpectedToReceiveAmountChanged { + return new EventDEXExpectedToReceiveAmountChanged().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDEXExpectedToReceiveAmountChanged { + return new EventDEXExpectedToReceiveAmountChanged().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDEXExpectedToReceiveAmountChanged { + return new EventDEXExpectedToReceiveAmountChanged().fromJsonString(jsonString, options); + } + + static equals(a: EventDEXExpectedToReceiveAmountChanged | PlainMessage | undefined, b: EventDEXExpectedToReceiveAmountChanged | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDEXExpectedToReceiveAmountChanged, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventAdminTransferred + */ +export class EventAdminTransferred extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string previous_admin = 2; + */ + previousAdmin = ""; + + /** + * @generated from field: string current_admin = 3; + */ + currentAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventAdminTransferred"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "current_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAdminTransferred { + return new EventAdminTransferred().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAdminTransferred { + return new EventAdminTransferred().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAdminTransferred { + return new EventAdminTransferred().fromJsonString(jsonString, options); + } + + static equals(a: EventAdminTransferred | PlainMessage | undefined, b: EventAdminTransferred | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAdminTransferred, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventAdminCleared + */ +export class EventAdminCleared extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string previous_admin = 2; + */ + previousAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventAdminCleared"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAdminCleared { + return new EventAdminCleared().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAdminCleared { + return new EventAdminCleared().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAdminCleared { + return new EventAdminCleared().fromJsonString(jsonString, options); + } + + static equals(a: EventAdminCleared | PlainMessage | undefined, b: EventAdminCleared | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAdminCleared, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EventDEXSettingsChanged + */ +export class EventDEXSettingsChanged extends Message { + /** + * @generated from field: coreum.asset.ft.v1.DEXSettings previous_settings = 1; + */ + previousSettings?: DEXSettings; + + /** + * @generated from field: coreum.asset.ft.v1.DEXSettings new_settings = 2; + */ + newSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EventDEXSettingsChanged"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "previous_settings", kind: "message", T: DEXSettings }, + { no: 2, name: "new_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDEXSettingsChanged { + return new EventDEXSettingsChanged().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDEXSettingsChanged { + return new EventDEXSettingsChanged().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDEXSettingsChanged { + return new EventDEXSettingsChanged().fromJsonString(jsonString, options); + } + + static equals(a: EventDEXSettingsChanged | PlainMessage | undefined, b: EventDEXSettingsChanged | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDEXSettingsChanged, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/genesis_pb.ts b/src/protobufs/coreum/asset/ft/v1/genesis_pb.ts new file mode 100644 index 00000000..d320f386 --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/genesis_pb.ts @@ -0,0 +1,241 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/genesis.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DEXSettings, Token } from "./token_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the module genesis state. + * + * @generated from message coreum.asset.ft.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: coreum.asset.ft.v1.Params params = 1; + */ + params?: Params; + + /** + * tokens keep the fungible token state + * + * @generated from field: repeated coreum.asset.ft.v1.Token tokens = 2; + */ + tokens: Token[] = []; + + /** + * frozen_balances contains the frozen balances on all of the accounts + * + * @generated from field: repeated coreum.asset.ft.v1.Balance frozen_balances = 3; + */ + frozenBalances: Balance[] = []; + + /** + * whitelisted_balances contains the whitelisted balances on all of the accounts + * + * @generated from field: repeated coreum.asset.ft.v1.Balance whitelisted_balances = 4; + */ + whitelistedBalances: Balance[] = []; + + /** + * pending_token_upgrades contains pending token upgrades. + * + * @generated from field: repeated coreum.asset.ft.v1.PendingTokenUpgrade pending_token_upgrades = 5; + */ + pendingTokenUpgrades: PendingTokenUpgrade[] = []; + + /** + * dex_locked_balances contains the DEX locked balances on all of the accounts + * + * @generated from field: repeated coreum.asset.ft.v1.Balance dex_locked_balances = 6; + */ + dexLockedBalances: Balance[] = []; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Balance dex_expected_to_receive_balances = 7; + */ + dexExpectedToReceiveBalances: Balance[] = []; + + /** + * @generated from field: repeated coreum.asset.ft.v1.DEXSettingsWithDenom dex_settings = 8; + */ + dexSettings: DEXSettingsWithDenom[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "tokens", kind: "message", T: Token, repeated: true }, + { no: 3, name: "frozen_balances", kind: "message", T: Balance, repeated: true }, + { no: 4, name: "whitelisted_balances", kind: "message", T: Balance, repeated: true }, + { no: 5, name: "pending_token_upgrades", kind: "message", T: PendingTokenUpgrade, repeated: true }, + { no: 6, name: "dex_locked_balances", kind: "message", T: Balance, repeated: true }, + { no: 7, name: "dex_expected_to_receive_balances", kind: "message", T: Balance, repeated: true }, + { no: 8, name: "dex_settings", kind: "message", T: DEXSettingsWithDenom, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Balance defines an account address and balance pair used module genesis genesis state. + * + * @generated from message coreum.asset.ft.v1.Balance + */ +export class Balance extends Message { + /** + * address is the address of the balance holder. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * coins defines the different coins this balance holds. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.Balance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Balance { + return new Balance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Balance { + return new Balance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Balance { + return new Balance().fromJsonString(jsonString, options); + } + + static equals(a: Balance | PlainMessage | undefined, b: Balance | PlainMessage | undefined): boolean { + return proto3.util.equals(Balance, a, b); + } +} + +/** + * PendingTokenUpgrade stores the version of pending token upgrade. + * + * @generated from message coreum.asset.ft.v1.PendingTokenUpgrade + */ +export class PendingTokenUpgrade extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: uint32 version = 2; + */ + version = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.PendingTokenUpgrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PendingTokenUpgrade { + return new PendingTokenUpgrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PendingTokenUpgrade { + return new PendingTokenUpgrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PendingTokenUpgrade { + return new PendingTokenUpgrade().fromJsonString(jsonString, options); + } + + static equals(a: PendingTokenUpgrade | PlainMessage | undefined, b: PendingTokenUpgrade | PlainMessage | undefined): boolean { + return proto3.util.equals(PendingTokenUpgrade, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.DEXSettingsWithDenom + */ +export class DEXSettingsWithDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: coreum.asset.ft.v1.DEXSettings dex_settings = 2; + */ + dexSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.DEXSettingsWithDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dex_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DEXSettingsWithDenom { + return new DEXSettingsWithDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DEXSettingsWithDenom { + return new DEXSettingsWithDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DEXSettingsWithDenom { + return new DEXSettingsWithDenom().fromJsonString(jsonString, options); + } + + static equals(a: DEXSettingsWithDenom | PlainMessage | undefined, b: DEXSettingsWithDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(DEXSettingsWithDenom, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/params_pb.ts b/src/protobufs/coreum/asset/ft/v1/params_pb.ts new file mode 100644 index 00000000..b89a6dfc --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/params_pb.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/params.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params store gov manageable parameters. + * + * @generated from message coreum.asset.ft.v1.Params + */ +export class Params extends Message { + /** + * issue_fee is the fee burnt each time new token is issued. + * + * @generated from field: cosmos.base.v1beta1.Coin issue_fee = 1; + */ + issueFee?: Coin; + + /** + * token_upgrade_decision_timeout defines the end of the decision period for upgrading the token. + * + * @generated from field: google.protobuf.Timestamp token_upgrade_decision_timeout = 2; + */ + tokenUpgradeDecisionTimeout?: Timestamp; + + /** + * token_upgrade_grace_period the period after which the token upgrade is executed effectively. + * + * @generated from field: google.protobuf.Duration token_upgrade_grace_period = 3; + */ + tokenUpgradeGracePeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "issue_fee", kind: "message", T: Coin }, + { no: 2, name: "token_upgrade_decision_timeout", kind: "message", T: Timestamp }, + { no: 3, name: "token_upgrade_grace_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/query_cosmes.ts b/src/protobufs/coreum/asset/ft/v1/query_cosmes.ts new file mode 100644 index 00000000..edb9d495 --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/query.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBalanceRequest, QueryBalanceResponse, QueryDEXSettingsRequest, QueryDEXSettingsResponse, QueryFrozenBalanceRequest, QueryFrozenBalanceResponse, QueryFrozenBalancesRequest, QueryFrozenBalancesResponse, QueryParamsRequest, QueryParamsResponse, QueryTokenRequest, QueryTokenResponse, QueryTokensRequest, QueryTokensResponse, QueryTokenUpgradeStatusesRequest, QueryTokenUpgradeStatusesResponse, QueryWhitelistedBalanceRequest, QueryWhitelistedBalanceResponse, QueryWhitelistedBalancesRequest, QueryWhitelistedBalancesResponse } from "./query_pb.js"; + +const TYPE_NAME = "coreum.asset.ft.v1.Query"; + +/** + * Params queries the parameters of x/asset/ft module. + * + * @generated from rpc coreum.asset.ft.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Tokens queries the fungible tokens of the module. + * + * @generated from rpc coreum.asset.ft.v1.Query.Tokens + */ +export const QueryTokensService = { + typeName: TYPE_NAME, + method: "Tokens", + Request: QueryTokensRequest, + Response: QueryTokensResponse, +} as const; + +/** + * Token queries the fungible token of the module. + * + * @generated from rpc coreum.asset.ft.v1.Query.Token + */ +export const QueryTokenService = { + typeName: TYPE_NAME, + method: "Token", + Request: QueryTokenRequest, + Response: QueryTokenResponse, +} as const; + +/** + * TokenUpgradeStatuses returns token upgrades info. + * + * @generated from rpc coreum.asset.ft.v1.Query.TokenUpgradeStatuses + */ +export const QueryTokenUpgradeStatusesService = { + typeName: TYPE_NAME, + method: "TokenUpgradeStatuses", + Request: QueryTokenUpgradeStatusesRequest, + Response: QueryTokenUpgradeStatusesResponse, +} as const; + +/** + * Balance returns balance of the denom for the account. + * + * @generated from rpc coreum.asset.ft.v1.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + +/** + * FrozenBalances returns all the frozen balances for the account. + * + * @generated from rpc coreum.asset.ft.v1.Query.FrozenBalances + */ +export const QueryFrozenBalancesService = { + typeName: TYPE_NAME, + method: "FrozenBalances", + Request: QueryFrozenBalancesRequest, + Response: QueryFrozenBalancesResponse, +} as const; + +/** + * FrozenBalance returns frozen balance of the denom for the account. + * + * @generated from rpc coreum.asset.ft.v1.Query.FrozenBalance + */ +export const QueryFrozenBalanceService = { + typeName: TYPE_NAME, + method: "FrozenBalance", + Request: QueryFrozenBalanceRequest, + Response: QueryFrozenBalanceResponse, +} as const; + +/** + * WhitelistedBalances returns all the whitelisted balances for the account. + * + * @generated from rpc coreum.asset.ft.v1.Query.WhitelistedBalances + */ +export const QueryWhitelistedBalancesService = { + typeName: TYPE_NAME, + method: "WhitelistedBalances", + Request: QueryWhitelistedBalancesRequest, + Response: QueryWhitelistedBalancesResponse, +} as const; + +/** + * WhitelistedBalance returns whitelisted balance of the denom for the account. + * + * @generated from rpc coreum.asset.ft.v1.Query.WhitelistedBalance + */ +export const QueryWhitelistedBalanceService = { + typeName: TYPE_NAME, + method: "WhitelistedBalance", + Request: QueryWhitelistedBalanceRequest, + Response: QueryWhitelistedBalanceResponse, +} as const; + +/** + * DEXSettings returns DEX settings of the denom. + * + * @generated from rpc coreum.asset.ft.v1.Query.DEXSettings + */ +export const QueryDEXSettingsService = { + typeName: TYPE_NAME, + method: "DEXSettings", + Request: QueryDEXSettingsRequest, + Response: QueryDEXSettingsResponse, +} as const; + diff --git a/src/protobufs/coreum/asset/ft/v1/query_pb.ts b/src/protobufs/coreum/asset/ft/v1/query_pb.ts new file mode 100644 index 00000000..59d02ab8 --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/query_pb.ts @@ -0,0 +1,892 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/query.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DEXSettings, Token, TokenUpgradeStatuses } from "./token_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/asset/ft parameters. + * + * @generated from message coreum.asset.ft.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/asset/ft parameters. + * + * @generated from message coreum.asset.ft.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: coreum.asset.ft.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokenRequest + */ +export class QueryTokenRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenRequest { + return new QueryTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenRequest { + return new QueryTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenRequest { + return new QueryTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenRequest | PlainMessage | undefined, b: QueryTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokenResponse + */ +export class QueryTokenResponse extends Message { + /** + * @generated from field: coreum.asset.ft.v1.Token token = 1; + */ + token?: Token; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "message", T: Token }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenResponse { + return new QueryTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenResponse { + return new QueryTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenResponse { + return new QueryTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenResponse | PlainMessage | undefined, b: QueryTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokenUpgradeStatusesRequest + */ +export class QueryTokenUpgradeStatusesRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokenUpgradeStatusesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenUpgradeStatusesRequest { + return new QueryTokenUpgradeStatusesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenUpgradeStatusesRequest { + return new QueryTokenUpgradeStatusesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenUpgradeStatusesRequest { + return new QueryTokenUpgradeStatusesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenUpgradeStatusesRequest | PlainMessage | undefined, b: QueryTokenUpgradeStatusesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenUpgradeStatusesRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokenUpgradeStatusesResponse + */ +export class QueryTokenUpgradeStatusesResponse extends Message { + /** + * @generated from field: coreum.asset.ft.v1.TokenUpgradeStatuses statuses = 1; + */ + statuses?: TokenUpgradeStatuses; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokenUpgradeStatusesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "statuses", kind: "message", T: TokenUpgradeStatuses }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenUpgradeStatusesResponse { + return new QueryTokenUpgradeStatusesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenUpgradeStatusesResponse { + return new QueryTokenUpgradeStatusesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenUpgradeStatusesResponse { + return new QueryTokenUpgradeStatusesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenUpgradeStatusesResponse | PlainMessage | undefined, b: QueryTokenUpgradeStatusesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenUpgradeStatusesResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokensRequest + */ +export class QueryTokensRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokensRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokensRequest { + return new QueryTokensRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokensRequest { + return new QueryTokensRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokensRequest { + return new QueryTokensRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokensRequest | PlainMessage | undefined, b: QueryTokensRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokensRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryTokensResponse + */ +export class QueryTokensResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Token tokens = 2; + */ + tokens: Token[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "tokens", kind: "message", T: Token, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokensResponse { + return new QueryTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokensResponse { + return new QueryTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokensResponse { + return new QueryTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokensResponse | PlainMessage | undefined, b: QueryTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokensResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + /** + * account specifies the account onto which we query balances + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * denom specifies balances on a specific denom + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * balance contains the balance with the queried account and denom + * + * @generated from field: string balance = 1; + */ + balance = ""; + + /** + * whitelisted is the whitelisted amount of the denom on the account. + * + * @generated from field: string whitelisted = 2; + */ + whitelisted = ""; + + /** + * frozen is the frozen amount of the denom on the account. + * + * @generated from field: string frozen = 3; + */ + frozen = ""; + + /** + * locked is the balance locked in vesting and DEX. + * + * @generated from field: string locked = 4; + */ + locked = ""; + + /** + * locked_in_vesting is the balance locked in bank vesting. + * + * @generated from field: string locked_in_vesting = 5; + */ + lockedInVesting = ""; + + /** + * locked_in_dex is the balance locked in DEX. + * + * @generated from field: string locked_in_dex = 6; + */ + lockedInDex = ""; + + /** + * @generated from field: string expected_to_receive_in_dex = 7; + */ + expectedToReceiveInDex = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "frozen", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "locked", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "locked_in_vesting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "locked_in_dex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "expected_to_receive_in_dex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryFrozenBalancesRequest + */ +export class QueryFrozenBalancesRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * account specifies the account onto which we query frozen balances + * + * @generated from field: string account = 2; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryFrozenBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenBalancesRequest { + return new QueryFrozenBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenBalancesRequest { + return new QueryFrozenBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenBalancesRequest { + return new QueryFrozenBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenBalancesRequest | PlainMessage | undefined, b: QueryFrozenBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenBalancesRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryFrozenBalancesResponse + */ +export class QueryFrozenBalancesResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * balances contains the frozen balances on the queried account + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balances = 2; + */ + balances: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryFrozenBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "balances", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenBalancesResponse { + return new QueryFrozenBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenBalancesResponse { + return new QueryFrozenBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenBalancesResponse { + return new QueryFrozenBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenBalancesResponse | PlainMessage | undefined, b: QueryFrozenBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenBalancesResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryFrozenBalanceRequest + */ +export class QueryFrozenBalanceRequest extends Message { + /** + * account specifies the account onto which we query frozen balances + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * denom specifies frozen balances on a specific denom + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryFrozenBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenBalanceRequest { + return new QueryFrozenBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenBalanceRequest { + return new QueryFrozenBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenBalanceRequest { + return new QueryFrozenBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenBalanceRequest | PlainMessage | undefined, b: QueryFrozenBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenBalanceRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryFrozenBalanceResponse + */ +export class QueryFrozenBalanceResponse extends Message { + /** + * balance contains the frozen balance with the queried account and denom + * + * @generated from field: cosmos.base.v1beta1.Coin balance = 1; + */ + balance?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryFrozenBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenBalanceResponse { + return new QueryFrozenBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenBalanceResponse { + return new QueryFrozenBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenBalanceResponse { + return new QueryFrozenBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenBalanceResponse | PlainMessage | undefined, b: QueryFrozenBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenBalanceResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryWhitelistedBalancesRequest + */ +export class QueryWhitelistedBalancesRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * account specifies the account onto which we query whitelisted balances + * + * @generated from field: string account = 2; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryWhitelistedBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedBalancesRequest { + return new QueryWhitelistedBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedBalancesRequest { + return new QueryWhitelistedBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedBalancesRequest { + return new QueryWhitelistedBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedBalancesRequest | PlainMessage | undefined, b: QueryWhitelistedBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedBalancesRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryWhitelistedBalancesResponse + */ +export class QueryWhitelistedBalancesResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * balances contains the whitelisted balances on the queried account + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balances = 2; + */ + balances: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryWhitelistedBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "balances", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedBalancesResponse { + return new QueryWhitelistedBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedBalancesResponse { + return new QueryWhitelistedBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedBalancesResponse { + return new QueryWhitelistedBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedBalancesResponse | PlainMessage | undefined, b: QueryWhitelistedBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedBalancesResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryWhitelistedBalanceRequest + */ +export class QueryWhitelistedBalanceRequest extends Message { + /** + * account specifies the account onto which we query whitelisted balances + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * denom specifies whitelisted balances on a specific denom + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryWhitelistedBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedBalanceRequest { + return new QueryWhitelistedBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedBalanceRequest { + return new QueryWhitelistedBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedBalanceRequest { + return new QueryWhitelistedBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedBalanceRequest | PlainMessage | undefined, b: QueryWhitelistedBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedBalanceRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryWhitelistedBalanceResponse + */ +export class QueryWhitelistedBalanceResponse extends Message { + /** + * balance contains the whitelisted balance with the queried account and denom + * + * @generated from field: cosmos.base.v1beta1.Coin balance = 1; + */ + balance?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryWhitelistedBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedBalanceResponse { + return new QueryWhitelistedBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedBalanceResponse { + return new QueryWhitelistedBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedBalanceResponse { + return new QueryWhitelistedBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedBalanceResponse | PlainMessage | undefined, b: QueryWhitelistedBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedBalanceResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryDEXSettingsRequest + */ +export class QueryDEXSettingsRequest extends Message { + /** + * denom specifies the denom onto which we query DEX settings + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryDEXSettingsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDEXSettingsRequest { + return new QueryDEXSettingsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDEXSettingsRequest { + return new QueryDEXSettingsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDEXSettingsRequest { + return new QueryDEXSettingsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDEXSettingsRequest | PlainMessage | undefined, b: QueryDEXSettingsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDEXSettingsRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.QueryDEXSettingsResponse + */ +export class QueryDEXSettingsResponse extends Message { + /** + * dex_settings contains the DEX settings + * + * @generated from field: coreum.asset.ft.v1.DEXSettings dex_settings = 1; + */ + dexSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.QueryDEXSettingsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dex_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDEXSettingsResponse { + return new QueryDEXSettingsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDEXSettingsResponse { + return new QueryDEXSettingsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDEXSettingsResponse { + return new QueryDEXSettingsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDEXSettingsResponse | PlainMessage | undefined, b: QueryDEXSettingsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDEXSettingsResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/token_pb.ts b/src/protobufs/coreum/asset/ft/v1/token_pb.ts new file mode 100644 index 00000000..1d5b6c3a --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/token_pb.ts @@ -0,0 +1,502 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/token.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * Feature defines possible features of fungible token. + * + * @generated from enum coreum.asset.ft.v1.Feature + */ +export enum Feature { + /** + * @generated from enum value: minting = 0; + */ + minting = 0, + + /** + * @generated from enum value: burning = 1; + */ + burning = 1, + + /** + * @generated from enum value: freezing = 2; + */ + freezing = 2, + + /** + * @generated from enum value: whitelisting = 3; + */ + whitelisting = 3, + + /** + * @generated from enum value: ibc = 4; + */ + ibc = 4, + + /** + * @generated from enum value: block_smart_contracts = 5; + */ + block_smart_contracts = 5, + + /** + * @generated from enum value: clawback = 6; + */ + clawback = 6, + + /** + * @generated from enum value: extension = 7; + */ + extension = 7, + + /** + * @generated from enum value: dex_block = 8; + */ + dex_block = 8, + + /** + * @generated from enum value: dex_whitelisted_denoms = 9; + */ + dex_whitelisted_denoms = 9, + + /** + * @generated from enum value: dex_order_cancellation = 10; + */ + dex_order_cancellation = 10, + + /** + * @generated from enum value: dex_unified_ref_amount_change = 11; + */ + dex_unified_ref_amount_change = 11, +} +// Retrieve enum metadata with: proto3.getEnumType(Feature) +proto3.util.setEnumType(Feature, "coreum.asset.ft.v1.Feature", [ + { no: 0, name: "minting" }, + { no: 1, name: "burning" }, + { no: 2, name: "freezing" }, + { no: 3, name: "whitelisting" }, + { no: 4, name: "ibc" }, + { no: 5, name: "block_smart_contracts" }, + { no: 6, name: "clawback" }, + { no: 7, name: "extension" }, + { no: 8, name: "dex_block" }, + { no: 9, name: "dex_whitelisted_denoms" }, + { no: 10, name: "dex_order_cancellation" }, + { no: 11, name: "dex_unified_ref_amount_change" }, +]); + +/** + * Definition defines the fungible token settings to store. + * + * @generated from message coreum.asset.ft.v1.Definition + */ +export class Definition extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Feature features = 3; + */ + features: Feature[] = []; + + /** + * burn_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * burn_amount. This value will be burnt on top of the send amount. + * + * @generated from field: string burn_rate = 4; + */ + burnRate = ""; + + /** + * send_commission_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * amount sent to the token admin account. + * + * @generated from field: string send_commission_rate = 5; + */ + sendCommissionRate = ""; + + /** + * @generated from field: uint32 version = 6; + */ + version = 0; + + /** + * @generated from field: string uri = 7; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 8; + */ + uriHash = ""; + + /** + * @generated from field: string extension_cw_address = 9; + */ + extensionCwAddress = ""; + + /** + * @generated from field: string admin = 10; + */ + admin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.Definition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "features", kind: "enum", T: proto3.getEnumType(Feature), repeated: true }, + { no: 4, name: "burn_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "send_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "extension_cw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Definition { + return new Definition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Definition { + return new Definition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Definition { + return new Definition().fromJsonString(jsonString, options); + } + + static equals(a: Definition | PlainMessage | undefined, b: Definition | PlainMessage | undefined): boolean { + return proto3.util.equals(Definition, a, b); + } +} + +/** + * Token is a full representation of the fungible token. + * + * @generated from message coreum.asset.ft.v1.Token + */ +export class Token extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: string symbol = 3; + */ + symbol = ""; + + /** + * @generated from field: string subunit = 4; + */ + subunit = ""; + + /** + * @generated from field: uint32 precision = 5; + */ + precision = 0; + + /** + * @generated from field: string description = 6; + */ + description = ""; + + /** + * @generated from field: bool globally_frozen = 7; + */ + globallyFrozen = false; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Feature features = 8; + */ + features: Feature[] = []; + + /** + * burn_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * burn_amount. This value will be burnt on top of the send amount. + * + * @generated from field: string burn_rate = 9; + */ + burnRate = ""; + + /** + * send_commission_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * amount sent to the token admin account. + * + * @generated from field: string send_commission_rate = 10; + */ + sendCommissionRate = ""; + + /** + * @generated from field: uint32 version = 11; + */ + version = 0; + + /** + * @generated from field: string uri = 12; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 13; + */ + uriHash = ""; + + /** + * @generated from field: string extension_cw_address = 14; + */ + extensionCwAddress = ""; + + /** + * @generated from field: string admin = 15; + */ + admin = ""; + + /** + * @generated from field: coreum.asset.ft.v1.DEXSettings dex_settings = 16; + */ + dexSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.Token"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "subunit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "precision", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "globally_frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "features", kind: "enum", T: proto3.getEnumType(Feature), repeated: true }, + { no: 9, name: "burn_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "send_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 12, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "extension_cw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "dex_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Token { + return new Token().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Token { + return new Token().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Token { + return new Token().fromJsonString(jsonString, options); + } + + static equals(a: Token | PlainMessage | undefined, b: Token | PlainMessage | undefined): boolean { + return proto3.util.equals(Token, a, b); + } +} + +/** + * DelayedTokenUpgradeV1 is executed by the delay module when it's time to enable IBC. + * + * @generated from message coreum.asset.ft.v1.DelayedTokenUpgradeV1 + */ +export class DelayedTokenUpgradeV1 extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.DelayedTokenUpgradeV1"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelayedTokenUpgradeV1 { + return new DelayedTokenUpgradeV1().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelayedTokenUpgradeV1 { + return new DelayedTokenUpgradeV1().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelayedTokenUpgradeV1 { + return new DelayedTokenUpgradeV1().fromJsonString(jsonString, options); + } + + static equals(a: DelayedTokenUpgradeV1 | PlainMessage | undefined, b: DelayedTokenUpgradeV1 | PlainMessage | undefined): boolean { + return proto3.util.equals(DelayedTokenUpgradeV1, a, b); + } +} + +/** + * TokenUpgradeV1Status defines the current status of the v1 token migration. + * + * @generated from message coreum.asset.ft.v1.TokenUpgradeV1Status + */ +export class TokenUpgradeV1Status extends Message { + /** + * @generated from field: bool ibc_enabled = 1; + */ + ibcEnabled = false; + + /** + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp end_time = 3; + */ + endTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.TokenUpgradeV1Status"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ibc_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "start_time", kind: "message", T: Timestamp }, + { no: 3, name: "end_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenUpgradeV1Status { + return new TokenUpgradeV1Status().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenUpgradeV1Status { + return new TokenUpgradeV1Status().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenUpgradeV1Status { + return new TokenUpgradeV1Status().fromJsonString(jsonString, options); + } + + static equals(a: TokenUpgradeV1Status | PlainMessage | undefined, b: TokenUpgradeV1Status | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenUpgradeV1Status, a, b); + } +} + +/** + * TokenUpgradeStatuses defines all statuses of the token migrations. + * + * @generated from message coreum.asset.ft.v1.TokenUpgradeStatuses + */ +export class TokenUpgradeStatuses extends Message { + /** + * @generated from field: coreum.asset.ft.v1.TokenUpgradeV1Status v1 = 1; + */ + v1?: TokenUpgradeV1Status; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.TokenUpgradeStatuses"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "v1", kind: "message", T: TokenUpgradeV1Status }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenUpgradeStatuses { + return new TokenUpgradeStatuses().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenUpgradeStatuses { + return new TokenUpgradeStatuses().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenUpgradeStatuses { + return new TokenUpgradeStatuses().fromJsonString(jsonString, options); + } + + static equals(a: TokenUpgradeStatuses | PlainMessage | undefined, b: TokenUpgradeStatuses | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenUpgradeStatuses, a, b); + } +} + +/** + * DEXSettings defines the token settings of the dex. + * + * @generated from message coreum.asset.ft.v1.DEXSettings + */ +export class DEXSettings extends Message { + /** + * unified_ref_amount is the approximate amount you need to buy 1USD, used to define the price tick size + * + * @generated from field: string unified_ref_amount = 1; + */ + unifiedRefAmount = ""; + + /** + * whitelisted_denoms is the list of denoms to trade with. + * + * @generated from field: repeated string whitelisted_denoms = 2; + */ + whitelistedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.DEXSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unified_ref_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DEXSettings { + return new DEXSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DEXSettings { + return new DEXSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DEXSettings { + return new DEXSettings().fromJsonString(jsonString, options); + } + + static equals(a: DEXSettings | PlainMessage | undefined, b: DEXSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(DEXSettings, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/ft/v1/tx_cosmes.ts b/src/protobufs/coreum/asset/ft/v1/tx_cosmes.ts new file mode 100644 index 00000000..8d06b99f --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/tx_cosmes.ts @@ -0,0 +1,195 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/tx.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EmptyResponse, MsgBurn, MsgClawback, MsgClearAdmin, MsgFreeze, MsgGloballyFreeze, MsgGloballyUnfreeze, MsgIssue, MsgMint, MsgSetFrozen, MsgSetWhitelistedLimit, MsgTransferAdmin, MsgUnfreeze, MsgUpdateDEXUnifiedRefAmount, MsgUpdateDEXWhitelistedDenoms, MsgUpdateParams } from "./tx_pb.js"; + +const TYPE_NAME = "coreum.asset.ft.v1.Msg"; + +/** + * Issue defines a method to issue a new fungible token. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Issue + */ +export const MsgIssueService = { + typeName: TYPE_NAME, + method: "Issue", + Request: MsgIssue, + Response: EmptyResponse, +} as const; + +/** + * Mint mints new fungible tokens. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: EmptyResponse, +} as const; + +/** + * Burn burns the specified fungible tokens from senders balance if the sender has enough balance. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: EmptyResponse, +} as const; + +/** + * Freeze freezes a part of the fungible tokens in an + * account, only if the freezable feature is enabled on that token. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Freeze + */ +export const MsgFreezeService = { + typeName: TYPE_NAME, + method: "Freeze", + Request: MsgFreeze, + Response: EmptyResponse, +} as const; + +/** + * Unfreeze unfreezes a part of the frozen fungible tokens in an + * account, only if there are such frozen tokens on that account. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Unfreeze + */ +export const MsgUnfreezeService = { + typeName: TYPE_NAME, + method: "Unfreeze", + Request: MsgUnfreeze, + Response: EmptyResponse, +} as const; + +/** + * SetFrozen sets the absolute value of frozen amount. + * + * @generated from rpc coreum.asset.ft.v1.Msg.SetFrozen + */ +export const MsgSetFrozenService = { + typeName: TYPE_NAME, + method: "SetFrozen", + Request: MsgSetFrozen, + Response: EmptyResponse, +} as const; + +/** + * GloballyFreeze freezes fungible token so no operations are allowed with it before unfrozen. + * This operation is idempotent so global freeze of already frozen token does nothing. + * + * @generated from rpc coreum.asset.ft.v1.Msg.GloballyFreeze + */ +export const MsgGloballyFreezeService = { + typeName: TYPE_NAME, + method: "GloballyFreeze", + Request: MsgGloballyFreeze, + Response: EmptyResponse, +} as const; + +/** + * GloballyUnfreeze unfreezes fungible token and unblocks basic operations on it. + * This operation is idempotent so global unfreezing of non-frozen token does nothing. + * + * @generated from rpc coreum.asset.ft.v1.Msg.GloballyUnfreeze + */ +export const MsgGloballyUnfreezeService = { + typeName: TYPE_NAME, + method: "GloballyUnfreeze", + Request: MsgGloballyUnfreeze, + Response: EmptyResponse, +} as const; + +/** + * Clawback confiscates a part of fungible tokens from an account + * to the admin, only if the clawback feature is enabled on that token. + * + * @generated from rpc coreum.asset.ft.v1.Msg.Clawback + */ +export const MsgClawbackService = { + typeName: TYPE_NAME, + method: "Clawback", + Request: MsgClawback, + Response: EmptyResponse, +} as const; + +/** + * SetWhitelistedLimit sets the limit of how many tokens a specific account may hold. + * + * @generated from rpc coreum.asset.ft.v1.Msg.SetWhitelistedLimit + */ +export const MsgSetWhitelistedLimitService = { + typeName: TYPE_NAME, + method: "SetWhitelistedLimit", + Request: MsgSetWhitelistedLimit, + Response: EmptyResponse, +} as const; + +/** + * TransferAdmin changes admin of a fungible token. + * + * @generated from rpc coreum.asset.ft.v1.Msg.TransferAdmin + */ +export const MsgTransferAdminService = { + typeName: TYPE_NAME, + method: "TransferAdmin", + Request: MsgTransferAdmin, + Response: EmptyResponse, +} as const; + +/** + * ClearAdmin removes admin of a fungible token. + * + * @generated from rpc coreum.asset.ft.v1.Msg.ClearAdmin + */ +export const MsgClearAdminService = { + typeName: TYPE_NAME, + method: "ClearAdmin", + Request: MsgClearAdmin, + Response: EmptyResponse, +} as const; + +/** + * UpdateParams is a governance operation to modify the parameters of the module. + * NOTE: all parameters must be provided. + * + * @generated from rpc coreum.asset.ft.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: EmptyResponse, +} as const; + +/** + * UpdateDEXUnifiedRefAmount updates DEX unified ref amount. + * + * @generated from rpc coreum.asset.ft.v1.Msg.UpdateDEXUnifiedRefAmount + */ +export const MsgUpdateDEXUnifiedRefAmountService = { + typeName: TYPE_NAME, + method: "UpdateDEXUnifiedRefAmount", + Request: MsgUpdateDEXUnifiedRefAmount, + Response: EmptyResponse, +} as const; + +/** + * UpdateDEXWhitelistedDenoms updates DEX whitelisted denoms. + * + * @generated from rpc coreum.asset.ft.v1.Msg.UpdateDEXWhitelistedDenoms + */ +export const MsgUpdateDEXWhitelistedDenomsService = { + typeName: TYPE_NAME, + method: "UpdateDEXWhitelistedDenoms", + Request: MsgUpdateDEXWhitelistedDenoms, + Response: EmptyResponse, +} as const; + diff --git a/src/protobufs/coreum/asset/ft/v1/tx_pb.ts b/src/protobufs/coreum/asset/ft/v1/tx_pb.ts new file mode 100644 index 00000000..d55a624b --- /dev/null +++ b/src/protobufs/coreum/asset/ft/v1/tx_pb.ts @@ -0,0 +1,889 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/ft/v1/tx.proto (package coreum.asset.ft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DEXSettings, Feature } from "./token_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgIssue defines message to issue new fungible token. + * + * @generated from message coreum.asset.ft.v1.MsgIssue + */ +export class MsgIssue extends Message { + /** + * @generated from field: string issuer = 1; + */ + issuer = ""; + + /** + * @generated from field: string symbol = 2; + */ + symbol = ""; + + /** + * @generated from field: string subunit = 3; + */ + subunit = ""; + + /** + * @generated from field: uint32 precision = 4; + */ + precision = 0; + + /** + * @generated from field: string initial_amount = 5; + */ + initialAmount = ""; + + /** + * @generated from field: string description = 6; + */ + description = ""; + + /** + * @generated from field: repeated coreum.asset.ft.v1.Feature features = 7; + */ + features: Feature[] = []; + + /** + * burn_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * burn_amount. This value will be burnt on top of the send amount. + * + * @generated from field: string burn_rate = 8; + */ + burnRate = ""; + + /** + * send_commission_rate is a number between 0 and 1 which will be multiplied by send amount to determine + * amount sent to the token admin account. + * + * @generated from field: string send_commission_rate = 9; + */ + sendCommissionRate = ""; + + /** + * @generated from field: string uri = 10; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 11; + */ + uriHash = ""; + + /** + * extension_settings must be provided in case wasm extensions are enabled. + * + * @generated from field: coreum.asset.ft.v1.ExtensionIssueSettings extension_settings = 12; + */ + extensionSettings?: ExtensionIssueSettings; + + /** + * dex_settings allowed to be customized by issuer + * + * @generated from field: coreum.asset.ft.v1.DEXSettings dex_settings = 13; + */ + dexSettings?: DEXSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgIssue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subunit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "precision", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "initial_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "features", kind: "enum", T: proto3.getEnumType(Feature), repeated: true }, + { no: 8, name: "burn_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "send_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "extension_settings", kind: "message", T: ExtensionIssueSettings }, + { no: 13, name: "dex_settings", kind: "message", T: DEXSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIssue { + return new MsgIssue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIssue { + return new MsgIssue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIssue { + return new MsgIssue().fromJsonString(jsonString, options); + } + + static equals(a: MsgIssue | PlainMessage | undefined, b: MsgIssue | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIssue, a, b); + } +} + +/** + * ExtensionIssueSettings are settings that will be used to Instantiate the smart contract which contains + * the source code for the extension. + * + * @generated from message coreum.asset.ft.v1.ExtensionIssueSettings + */ +export class ExtensionIssueSettings extends Message { + /** + * code_id is the reference to the stored WASM code + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * label is optional metadata to be stored with a contract instance. + * + * @generated from field: string label = 2; + */ + label = ""; + + /** + * funds coins that are transferred to the contract on instantiation + * + * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 3; + */ + funds: Coin[] = []; + + /** + * optional json encoded data to pass to WASM on instantiation by the ft issuer + * + * @generated from field: bytes issuance_msg = 4; + */ + issuanceMsg = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.ExtensionIssueSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "funds", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "issuance_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionIssueSettings { + return new ExtensionIssueSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionIssueSettings { + return new ExtensionIssueSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtensionIssueSettings { + return new ExtensionIssueSettings().fromJsonString(jsonString, options); + } + + static equals(a: ExtensionIssueSettings | PlainMessage | undefined, b: ExtensionIssueSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtensionIssueSettings, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 2; + */ + coin?: Coin; + + /** + * @generated from field: string recipient = 3; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin", kind: "message", T: Coin }, + { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgFreeze + */ +export class MsgFreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgFreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFreeze { + return new MsgFreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFreeze { + return new MsgFreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFreeze { + return new MsgFreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgFreeze | PlainMessage | undefined, b: MsgFreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgUnfreeze + */ +export class MsgUnfreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgUnfreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnfreeze | PlainMessage | undefined, b: MsgUnfreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnfreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgSetFrozen + */ +export class MsgSetFrozen extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgSetFrozen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFrozen { + return new MsgSetFrozen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFrozen { + return new MsgSetFrozen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetFrozen { + return new MsgSetFrozen().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetFrozen | PlainMessage | undefined, b: MsgSetFrozen | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetFrozen, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgGloballyFreeze + */ +export class MsgGloballyFreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgGloballyFreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGloballyFreeze { + return new MsgGloballyFreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGloballyFreeze { + return new MsgGloballyFreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgGloballyFreeze { + return new MsgGloballyFreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgGloballyFreeze | PlainMessage | undefined, b: MsgGloballyFreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgGloballyFreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgGloballyUnfreeze + */ +export class MsgGloballyUnfreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgGloballyUnfreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGloballyUnfreeze { + return new MsgGloballyUnfreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGloballyUnfreeze { + return new MsgGloballyUnfreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgGloballyUnfreeze { + return new MsgGloballyUnfreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgGloballyUnfreeze | PlainMessage | undefined, b: MsgGloballyUnfreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgGloballyUnfreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgClawback + */ +export class MsgClawback extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgClawback"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClawback { + return new MsgClawback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClawback { + return new MsgClawback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClawback { + return new MsgClawback().fromJsonString(jsonString, options); + } + + static equals(a: MsgClawback | PlainMessage | undefined, b: MsgClawback | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClawback, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgSetWhitelistedLimit + */ +export class MsgSetWhitelistedLimit extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 3; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgSetWhitelistedLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWhitelistedLimit { + return new MsgSetWhitelistedLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWhitelistedLimit { + return new MsgSetWhitelistedLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetWhitelistedLimit { + return new MsgSetWhitelistedLimit().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetWhitelistedLimit | PlainMessage | undefined, b: MsgSetWhitelistedLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetWhitelistedLimit, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgTransferAdmin + */ +export class MsgTransferAdmin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgTransferAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferAdmin { + return new MsgTransferAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferAdmin { + return new MsgTransferAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferAdmin { + return new MsgTransferAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferAdmin | PlainMessage | undefined, b: MsgTransferAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferAdmin, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgClearAdmin + */ +export class MsgClearAdmin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgClearAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClearAdmin { + return new MsgClearAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgClearAdmin | PlainMessage | undefined, b: MsgClearAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClearAdmin, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: coreum.asset.ft.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgUpdateDEXUnifiedRefAmount + */ +export class MsgUpdateDEXUnifiedRefAmount extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * unified_ref_amount is the approximate amount you need to buy 1USD, used to define the price tick size + * + * @generated from field: string unified_ref_amount = 3; + */ + unifiedRefAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgUpdateDEXUnifiedRefAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "unified_ref_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDEXUnifiedRefAmount { + return new MsgUpdateDEXUnifiedRefAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDEXUnifiedRefAmount { + return new MsgUpdateDEXUnifiedRefAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDEXUnifiedRefAmount { + return new MsgUpdateDEXUnifiedRefAmount().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDEXUnifiedRefAmount | PlainMessage | undefined, b: MsgUpdateDEXUnifiedRefAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDEXUnifiedRefAmount, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.MsgUpdateDEXWhitelistedDenoms + */ +export class MsgUpdateDEXWhitelistedDenoms extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * whitelisted_denoms is the list of denoms to trade with. + * + * @generated from field: repeated string whitelisted_denoms = 3; + */ + whitelistedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.MsgUpdateDEXWhitelistedDenoms"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "whitelisted_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDEXWhitelistedDenoms { + return new MsgUpdateDEXWhitelistedDenoms().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDEXWhitelistedDenoms { + return new MsgUpdateDEXWhitelistedDenoms().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDEXWhitelistedDenoms { + return new MsgUpdateDEXWhitelistedDenoms().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDEXWhitelistedDenoms | PlainMessage | undefined, b: MsgUpdateDEXWhitelistedDenoms | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDEXWhitelistedDenoms, a, b); + } +} + +/** + * @generated from message coreum.asset.ft.v1.EmptyResponse + */ +export class EmptyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.ft.v1.EmptyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyResponse { + return new EmptyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJsonString(jsonString, options); + } + + static equals(a: EmptyResponse | PlainMessage | undefined, b: EmptyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/authz_pb.ts b/src/protobufs/coreum/asset/nft/v1/authz_pb.ts new file mode 100644 index 00000000..6f2bd176 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/authz_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/authz.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * SendAuthorization allows the grantee to send specific NFTs from the granter's account. + * + * @generated from message coreum.asset.nft.v1.SendAuthorization + */ +export class SendAuthorization extends Message { + /** + * @generated from field: repeated coreum.asset.nft.v1.NFTIdentifier nfts = 1; + */ + nfts: NFTIdentifier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.SendAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nfts", kind: "message", T: NFTIdentifier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SendAuthorization { + return new SendAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SendAuthorization { + return new SendAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SendAuthorization { + return new SendAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: SendAuthorization | PlainMessage | undefined, b: SendAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(SendAuthorization, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.NFTIdentifier + */ +export class NFTIdentifier extends Message { + /** + * class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 + * + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * id defines the unique identification of nft + * + * @generated from field: string id = 2; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.NFTIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NFTIdentifier { + return new NFTIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NFTIdentifier { + return new NFTIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NFTIdentifier { + return new NFTIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: NFTIdentifier | PlainMessage | undefined, b: NFTIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(NFTIdentifier, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/event_pb.ts b/src/protobufs/coreum/asset/nft/v1/event_pb.ts new file mode 100644 index 00000000..2a8acae7 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/event_pb.ts @@ -0,0 +1,464 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/event.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ClassFeature } from "./nft_pb.js"; + +/** + * EventClassIssued is emitted on MsgIssueClass. + * + * @generated from message coreum.asset.nft.v1.EventClassIssued + */ +export class EventClassIssued extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: string symbol = 3; + */ + symbol = ""; + + /** + * @generated from field: string name = 4; + */ + name = ""; + + /** + * @generated from field: string description = 5; + */ + description = ""; + + /** + * @generated from field: string uri = 6; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 7; + */ + uriHash = ""; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassFeature features = 8; + */ + features: ClassFeature[] = []; + + /** + * @generated from field: string royalty_rate = 9; + */ + royaltyRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventClassIssued"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "features", kind: "enum", T: proto3.getEnumType(ClassFeature), repeated: true }, + { no: 9, name: "royalty_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClassIssued { + return new EventClassIssued().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClassIssued { + return new EventClassIssued().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClassIssued { + return new EventClassIssued().fromJsonString(jsonString, options); + } + + static equals(a: EventClassIssued | PlainMessage | undefined, b: EventClassIssued | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClassIssued, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventFrozen + */ +export class EventFrozen extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string owner = 3; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventFrozen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFrozen { + return new EventFrozen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFrozen { + return new EventFrozen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFrozen { + return new EventFrozen().fromJsonString(jsonString, options); + } + + static equals(a: EventFrozen | PlainMessage | undefined, b: EventFrozen | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFrozen, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventUnfrozen + */ +export class EventUnfrozen extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string owner = 3; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventUnfrozen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUnfrozen { + return new EventUnfrozen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUnfrozen { + return new EventUnfrozen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUnfrozen { + return new EventUnfrozen().fromJsonString(jsonString, options); + } + + static equals(a: EventUnfrozen | PlainMessage | undefined, b: EventUnfrozen | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUnfrozen, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventClassFrozen + */ +export class EventClassFrozen extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventClassFrozen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClassFrozen { + return new EventClassFrozen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClassFrozen { + return new EventClassFrozen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClassFrozen { + return new EventClassFrozen().fromJsonString(jsonString, options); + } + + static equals(a: EventClassFrozen | PlainMessage | undefined, b: EventClassFrozen | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClassFrozen, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventClassUnfrozen + */ +export class EventClassUnfrozen extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventClassUnfrozen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClassUnfrozen { + return new EventClassUnfrozen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClassUnfrozen { + return new EventClassUnfrozen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClassUnfrozen { + return new EventClassUnfrozen().fromJsonString(jsonString, options); + } + + static equals(a: EventClassUnfrozen | PlainMessage | undefined, b: EventClassUnfrozen | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClassUnfrozen, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventAddedToWhitelist + */ +export class EventAddedToWhitelist extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventAddedToWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAddedToWhitelist { + return new EventAddedToWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAddedToWhitelist { + return new EventAddedToWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAddedToWhitelist { + return new EventAddedToWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: EventAddedToWhitelist | PlainMessage | undefined, b: EventAddedToWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAddedToWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventRemovedFromWhitelist + */ +export class EventRemovedFromWhitelist extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventRemovedFromWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemovedFromWhitelist { + return new EventRemovedFromWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemovedFromWhitelist { + return new EventRemovedFromWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemovedFromWhitelist { + return new EventRemovedFromWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: EventRemovedFromWhitelist | PlainMessage | undefined, b: EventRemovedFromWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemovedFromWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventAddedToClassWhitelist + */ +export class EventAddedToClassWhitelist extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventAddedToClassWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAddedToClassWhitelist { + return new EventAddedToClassWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAddedToClassWhitelist { + return new EventAddedToClassWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAddedToClassWhitelist { + return new EventAddedToClassWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: EventAddedToClassWhitelist | PlainMessage | undefined, b: EventAddedToClassWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAddedToClassWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EventRemovedFromClassWhitelist + */ +export class EventRemovedFromClassWhitelist extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EventRemovedFromClassWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemovedFromClassWhitelist { + return new EventRemovedFromClassWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemovedFromClassWhitelist { + return new EventRemovedFromClassWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemovedFromClassWhitelist { + return new EventRemovedFromClassWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: EventRemovedFromClassWhitelist | PlainMessage | undefined, b: EventRemovedFromClassWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemovedFromClassWhitelist, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/genesis_pb.ts b/src/protobufs/coreum/asset/nft/v1/genesis_pb.ts new file mode 100644 index 00000000..e520793c --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/genesis_pb.ts @@ -0,0 +1,310 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/genesis.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ClassDefinition } from "./nft_pb.js"; + +/** + * GenesisState defines the nftasset module's genesis state. + * + * @generated from message coreum.asset.nft.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: coreum.asset.nft.v1.Params params = 1; + */ + params?: Params; + + /** + * class_definitions keep the non-fungible token class definitions state + * + * @generated from field: repeated coreum.asset.nft.v1.ClassDefinition class_definitions = 2; + */ + classDefinitions: ClassDefinition[] = []; + + /** + * @generated from field: repeated coreum.asset.nft.v1.FrozenNFT frozen_nfts = 3; + */ + frozenNfts: FrozenNFT[] = []; + + /** + * @generated from field: repeated coreum.asset.nft.v1.WhitelistedNFTAccounts whitelisted_nft_accounts = 4; + */ + whitelistedNftAccounts: WhitelistedNFTAccounts[] = []; + + /** + * @generated from field: repeated coreum.asset.nft.v1.BurntNFT burnt_nfts = 5; + */ + burntNfts: BurntNFT[] = []; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassWhitelistedAccounts class_whitelisted_accounts = 6; + */ + classWhitelistedAccounts: ClassWhitelistedAccounts[] = []; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassFrozenAccounts class_frozen_accounts = 7; + */ + classFrozenAccounts: ClassFrozenAccounts[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "class_definitions", kind: "message", T: ClassDefinition, repeated: true }, + { no: 3, name: "frozen_nfts", kind: "message", T: FrozenNFT, repeated: true }, + { no: 4, name: "whitelisted_nft_accounts", kind: "message", T: WhitelistedNFTAccounts, repeated: true }, + { no: 5, name: "burnt_nfts", kind: "message", T: BurntNFT, repeated: true }, + { no: 6, name: "class_whitelisted_accounts", kind: "message", T: ClassWhitelistedAccounts, repeated: true }, + { no: 7, name: "class_frozen_accounts", kind: "message", T: ClassFrozenAccounts, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.FrozenNFT + */ +export class FrozenNFT extends Message { + /** + * @generated from field: string classID = 1; + */ + classID = ""; + + /** + * @generated from field: repeated string nftIDs = 2; + */ + nftIDs: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.FrozenNFT"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "classID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nftIDs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FrozenNFT { + return new FrozenNFT().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FrozenNFT { + return new FrozenNFT().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FrozenNFT { + return new FrozenNFT().fromJsonString(jsonString, options); + } + + static equals(a: FrozenNFT | PlainMessage | undefined, b: FrozenNFT | PlainMessage | undefined): boolean { + return proto3.util.equals(FrozenNFT, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.WhitelistedNFTAccounts + */ +export class WhitelistedNFTAccounts extends Message { + /** + * @generated from field: string classID = 1; + */ + classID = ""; + + /** + * @generated from field: string nftID = 2; + */ + nftID = ""; + + /** + * @generated from field: repeated string accounts = 4; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.WhitelistedNFTAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "classID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nftID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistedNFTAccounts { + return new WhitelistedNFTAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistedNFTAccounts { + return new WhitelistedNFTAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistedNFTAccounts { + return new WhitelistedNFTAccounts().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistedNFTAccounts | PlainMessage | undefined, b: WhitelistedNFTAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistedNFTAccounts, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.ClassWhitelistedAccounts + */ +export class ClassWhitelistedAccounts extends Message { + /** + * @generated from field: string classID = 1; + */ + classID = ""; + + /** + * @generated from field: repeated string accounts = 2; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.ClassWhitelistedAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "classID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassWhitelistedAccounts { + return new ClassWhitelistedAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassWhitelistedAccounts { + return new ClassWhitelistedAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClassWhitelistedAccounts { + return new ClassWhitelistedAccounts().fromJsonString(jsonString, options); + } + + static equals(a: ClassWhitelistedAccounts | PlainMessage | undefined, b: ClassWhitelistedAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(ClassWhitelistedAccounts, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.ClassFrozenAccounts + */ +export class ClassFrozenAccounts extends Message { + /** + * @generated from field: string classID = 1; + */ + classID = ""; + + /** + * @generated from field: repeated string accounts = 2; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.ClassFrozenAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "classID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassFrozenAccounts { + return new ClassFrozenAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassFrozenAccounts { + return new ClassFrozenAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClassFrozenAccounts { + return new ClassFrozenAccounts().fromJsonString(jsonString, options); + } + + static equals(a: ClassFrozenAccounts | PlainMessage | undefined, b: ClassFrozenAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(ClassFrozenAccounts, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.BurntNFT + */ +export class BurntNFT extends Message { + /** + * @generated from field: string classID = 1; + */ + classID = ""; + + /** + * @generated from field: repeated string nftIDs = 2; + */ + nftIDs: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.BurntNFT"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "classID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nftIDs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BurntNFT { + return new BurntNFT().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BurntNFT { + return new BurntNFT().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BurntNFT { + return new BurntNFT().fromJsonString(jsonString, options); + } + + static equals(a: BurntNFT | PlainMessage | undefined, b: BurntNFT | PlainMessage | undefined): boolean { + return proto3.util.equals(BurntNFT, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/nft_pb.ts b/src/protobufs/coreum/asset/nft/v1/nft_pb.ts new file mode 100644 index 00000000..0544a10b --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/nft_pb.ts @@ -0,0 +1,206 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/nft.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * ClassFeature defines possible features of non-fungible token class. + * + * @generated from enum coreum.asset.nft.v1.ClassFeature + */ +export enum ClassFeature { + /** + * @generated from enum value: burning = 0; + */ + burning = 0, + + /** + * @generated from enum value: freezing = 1; + */ + freezing = 1, + + /** + * @generated from enum value: whitelisting = 2; + */ + whitelisting = 2, + + /** + * @generated from enum value: disable_sending = 3; + */ + disable_sending = 3, + + /** + * @generated from enum value: soulbound = 4; + */ + soulbound = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(ClassFeature) +proto3.util.setEnumType(ClassFeature, "coreum.asset.nft.v1.ClassFeature", [ + { no: 0, name: "burning" }, + { no: 1, name: "freezing" }, + { no: 2, name: "whitelisting" }, + { no: 3, name: "disable_sending" }, + { no: 4, name: "soulbound" }, +]); + +/** + * ClassDefinition defines the non-fungible token class settings to store. + * + * @generated from message coreum.asset.nft.v1.ClassDefinition + */ +export class ClassDefinition extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassFeature features = 3; + */ + features: ClassFeature[] = []; + + /** + * royalty_rate is a number between 0 and 1,which will be used in coreum native DEX. + * whenever an NFT this class is traded on the DEX, the traded amount will be multiplied by this value + * that will be transferred to the issuer of the NFT. + * + * @generated from field: string royalty_rate = 4; + */ + royaltyRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.ClassDefinition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "features", kind: "enum", T: proto3.getEnumType(ClassFeature), repeated: true }, + { no: 4, name: "royalty_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassDefinition { + return new ClassDefinition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassDefinition { + return new ClassDefinition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClassDefinition { + return new ClassDefinition().fromJsonString(jsonString, options); + } + + static equals(a: ClassDefinition | PlainMessage | undefined, b: ClassDefinition | PlainMessage | undefined): boolean { + return proto3.util.equals(ClassDefinition, a, b); + } +} + +/** + * Class is a full representation of the non-fungible token class. + * + * @generated from message coreum.asset.nft.v1.Class + */ +export class Class extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + /** + * @generated from field: string name = 3; + */ + name = ""; + + /** + * @generated from field: string symbol = 4; + */ + symbol = ""; + + /** + * @generated from field: string description = 5; + */ + description = ""; + + /** + * @generated from field: string uri = 6; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 7; + */ + uriHash = ""; + + /** + * @generated from field: google.protobuf.Any data = 8; + */ + data?: Any; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassFeature features = 9; + */ + features: ClassFeature[] = []; + + /** + * royalty_rate is a number between 0 and 1,which will be used in coreum native DEX. + * whenever an NFT this class is traded on the DEX, the traded amount will be multiplied by this value + * that will be transferred to the issuer of the NFT. + * + * @generated from field: string royalty_rate = 10; + */ + royaltyRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.Class"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "data", kind: "message", T: Any }, + { no: 9, name: "features", kind: "enum", T: proto3.getEnumType(ClassFeature), repeated: true }, + { no: 10, name: "royalty_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Class { + return new Class().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Class { + return new Class().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Class { + return new Class().fromJsonString(jsonString, options); + } + + static equals(a: Class | PlainMessage | undefined, b: Class | PlainMessage | undefined): boolean { + return proto3.util.equals(Class, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/params_pb.ts b/src/protobufs/coreum/asset/nft/v1/params_pb.ts new file mode 100644 index 00000000..becdbd3c --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/params_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/params.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params store gov manageable parameters. + * + * @generated from message coreum.asset.nft.v1.Params + */ +export class Params extends Message { + /** + * mint_fee is the fee burnt each time new NFT is minted + * + * @generated from field: cosmos.base.v1beta1.Coin mint_fee = 1; + */ + mintFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/query_cosmes.ts b/src/protobufs/coreum/asset/nft/v1/query_cosmes.ts new file mode 100644 index 00000000..34321686 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/query_cosmes.ts @@ -0,0 +1,141 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/query.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBurntNFTRequest, QueryBurntNFTResponse, QueryBurntNFTsInClassRequest, QueryBurntNFTsInClassResponse, QueryClassesRequest, QueryClassesResponse, QueryClassFrozenAccountsRequest, QueryClassFrozenAccountsResponse, QueryClassFrozenRequest, QueryClassFrozenResponse, QueryClassRequest, QueryClassResponse, QueryClassWhitelistedAccountsRequest, QueryClassWhitelistedAccountsResponse, QueryFrozenRequest, QueryFrozenResponse, QueryParamsRequest, QueryParamsResponse, QueryWhitelistedAccountsForNFTRequest, QueryWhitelistedAccountsForNFTResponse, QueryWhitelistedRequest, QueryWhitelistedResponse } from "./query_pb.js"; + +const TYPE_NAME = "coreum.asset.nft.v1.Query"; + +/** + * Params queries the parameters of x/asset/nft module. + * + * @generated from rpc coreum.asset.nft.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Class queries the non-fungible token class of the module. + * + * @generated from rpc coreum.asset.nft.v1.Query.Class + */ +export const QueryClassService = { + typeName: TYPE_NAME, + method: "Class", + Request: QueryClassRequest, + Response: QueryClassResponse, +} as const; + +/** + * Classes queries the non-fungible token classes of the module. + * + * @generated from rpc coreum.asset.nft.v1.Query.Classes + */ +export const QueryClassesService = { + typeName: TYPE_NAME, + method: "Classes", + Request: QueryClassesRequest, + Response: QueryClassesResponse, +} as const; + +/** + * Frozen queries to check if an NFT is frozen or not. + * + * @generated from rpc coreum.asset.nft.v1.Query.Frozen + */ +export const QueryFrozenService = { + typeName: TYPE_NAME, + method: "Frozen", + Request: QueryFrozenRequest, + Response: QueryFrozenResponse, +} as const; + +/** + * ClassFrozen queries to check if an account if frozen for an NFT class. + * + * @generated from rpc coreum.asset.nft.v1.Query.ClassFrozen + */ +export const QueryClassFrozenService = { + typeName: TYPE_NAME, + method: "ClassFrozen", + Request: QueryClassFrozenRequest, + Response: QueryClassFrozenResponse, +} as const; + +/** + * QueryClassFrozenAccountsRequest returns the list of accounts which are frozen to hold NFTs in this class. + * + * @generated from rpc coreum.asset.nft.v1.Query.ClassFrozenAccounts + */ +export const QueryClassFrozenAccountsService = { + typeName: TYPE_NAME, + method: "ClassFrozenAccounts", + Request: QueryClassFrozenAccountsRequest, + Response: QueryClassFrozenAccountsResponse, +} as const; + +/** + * Whitelisted queries to check if an account is whitelited to hold an NFT or not. + * + * @generated from rpc coreum.asset.nft.v1.Query.Whitelisted + */ +export const QueryWhitelistedService = { + typeName: TYPE_NAME, + method: "Whitelisted", + Request: QueryWhitelistedRequest, + Response: QueryWhitelistedResponse, +} as const; + +/** + * WhitelistedAccountsForNFT returns the list of accounts which are whitelisted to hold this NFT. + * + * @generated from rpc coreum.asset.nft.v1.Query.WhitelistedAccountsForNFT + */ +export const QueryWhitelistedAccountsForNFTService = { + typeName: TYPE_NAME, + method: "WhitelistedAccountsForNFT", + Request: QueryWhitelistedAccountsForNFTRequest, + Response: QueryWhitelistedAccountsForNFTResponse, +} as const; + +/** + * ClassWhitelistedAccounts returns the list of accounts which are whitelisted to hold NFTs in this class. + * + * @generated from rpc coreum.asset.nft.v1.Query.ClassWhitelistedAccounts + */ +export const QueryClassWhitelistedAccountsService = { + typeName: TYPE_NAME, + method: "ClassWhitelistedAccounts", + Request: QueryClassWhitelistedAccountsRequest, + Response: QueryClassWhitelistedAccountsResponse, +} as const; + +/** + * BurntNFTsInClass checks if an nft if is in burnt NFTs list. + * + * @generated from rpc coreum.asset.nft.v1.Query.BurntNFT + */ +export const QueryBurntNFTService = { + typeName: TYPE_NAME, + method: "BurntNFT", + Request: QueryBurntNFTRequest, + Response: QueryBurntNFTResponse, +} as const; + +/** + * BurntNFTsInClass returns the list of burnt nfts in a class. + * + * @generated from rpc coreum.asset.nft.v1.Query.BurntNFTsInClass + */ +export const QueryBurntNFTsInClassService = { + typeName: TYPE_NAME, + method: "BurntNFTsInClass", + Request: QueryBurntNFTsInClassRequest, + Response: QueryBurntNFTsInClassResponse, +} as const; + diff --git a/src/protobufs/coreum/asset/nft/v1/query_pb.ts b/src/protobufs/coreum/asset/nft/v1/query_pb.ts new file mode 100644 index 00000000..d616fef0 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/query_pb.ts @@ -0,0 +1,945 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/query.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Class } from "./nft_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/asset/nft parameters. + * + * @generated from message coreum.asset.nft.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/asset/nft parameters. + * + * @generated from message coreum.asset.nft.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: coreum.asset.nft.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryTokenRequest is request type for the Query/Class RPC method. + * + * @generated from message coreum.asset.nft.v1.QueryClassRequest + */ +export class QueryClassRequest extends Message { + /** + * we don't use the gogoproto.customname here since the google.api.http ignores it and generates invalid code. + * + * @generated from field: string id = 1; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassRequest { + return new QueryClassRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassRequest { + return new QueryClassRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassRequest { + return new QueryClassRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassRequest | PlainMessage | undefined, b: QueryClassRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassRequest, a, b); + } +} + +/** + * QueryClassResponse is response type for the Query/Class RPC method. + * + * @generated from message coreum.asset.nft.v1.QueryClassResponse + */ +export class QueryClassResponse extends Message { + /** + * @generated from field: coreum.asset.nft.v1.Class class = 1; + */ + class?: Class; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class", kind: "message", T: Class }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassResponse { + return new QueryClassResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassResponse { + return new QueryClassResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassResponse { + return new QueryClassResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassResponse | PlainMessage | undefined, b: QueryClassResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassResponse, a, b); + } +} + +/** + * QueryTokenRequest is request type for the Query/Classes RPC method. + * + * @generated from message coreum.asset.nft.v1.QueryClassesRequest + */ +export class QueryClassesRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string issuer = 2; + */ + issuer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesRequest { + return new QueryClassesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesRequest { + return new QueryClassesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassesRequest { + return new QueryClassesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassesRequest | PlainMessage | undefined, b: QueryClassesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassesRequest, a, b); + } +} + +/** + * QueryClassResponse is response type for the Query/Classes RPC method. + * + * @generated from message coreum.asset.nft.v1.QueryClassesResponse + */ +export class QueryClassesResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated coreum.asset.nft.v1.Class classes = 2; + */ + classes: Class[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "classes", kind: "message", T: Class, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesResponse { + return new QueryClassesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesResponse { + return new QueryClassesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassesResponse { + return new QueryClassesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassesResponse | PlainMessage | undefined, b: QueryClassesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassesResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryFrozenRequest + */ +export class QueryFrozenRequest extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryFrozenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenRequest { + return new QueryFrozenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenRequest { + return new QueryFrozenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenRequest { + return new QueryFrozenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenRequest | PlainMessage | undefined, b: QueryFrozenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryFrozenResponse + */ +export class QueryFrozenResponse extends Message { + /** + * @generated from field: bool frozen = 1; + */ + frozen = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryFrozenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFrozenResponse { + return new QueryFrozenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFrozenResponse { + return new QueryFrozenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFrozenResponse { + return new QueryFrozenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFrozenResponse | PlainMessage | undefined, b: QueryFrozenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFrozenResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassFrozenRequest + */ +export class QueryClassFrozenRequest extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string account = 2; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassFrozenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassFrozenRequest { + return new QueryClassFrozenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassFrozenRequest { + return new QueryClassFrozenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassFrozenRequest { + return new QueryClassFrozenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassFrozenRequest | PlainMessage | undefined, b: QueryClassFrozenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassFrozenRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassFrozenResponse + */ +export class QueryClassFrozenResponse extends Message { + /** + * @generated from field: bool frozen = 1; + */ + frozen = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassFrozenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassFrozenResponse { + return new QueryClassFrozenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassFrozenResponse { + return new QueryClassFrozenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassFrozenResponse { + return new QueryClassFrozenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassFrozenResponse | PlainMessage | undefined, b: QueryClassFrozenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassFrozenResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryWhitelistedRequest + */ +export class QueryWhitelistedRequest extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryWhitelistedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedRequest { + return new QueryWhitelistedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedRequest { + return new QueryWhitelistedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedRequest { + return new QueryWhitelistedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedRequest | PlainMessage | undefined, b: QueryWhitelistedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryWhitelistedResponse + */ +export class QueryWhitelistedResponse extends Message { + /** + * @generated from field: bool whitelisted = 1; + */ + whitelisted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryWhitelistedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedResponse { + return new QueryWhitelistedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedResponse { + return new QueryWhitelistedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedResponse { + return new QueryWhitelistedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedResponse | PlainMessage | undefined, b: QueryWhitelistedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryWhitelistedAccountsForNFTRequest + */ +export class QueryWhitelistedAccountsForNFTRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string class_id = 3; + */ + classId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryWhitelistedAccountsForNFTRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedAccountsForNFTRequest { + return new QueryWhitelistedAccountsForNFTRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedAccountsForNFTRequest { + return new QueryWhitelistedAccountsForNFTRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedAccountsForNFTRequest { + return new QueryWhitelistedAccountsForNFTRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedAccountsForNFTRequest | PlainMessage | undefined, b: QueryWhitelistedAccountsForNFTRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedAccountsForNFTRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryWhitelistedAccountsForNFTResponse + */ +export class QueryWhitelistedAccountsForNFTResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated string accounts = 2; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryWhitelistedAccountsForNFTResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWhitelistedAccountsForNFTResponse { + return new QueryWhitelistedAccountsForNFTResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWhitelistedAccountsForNFTResponse { + return new QueryWhitelistedAccountsForNFTResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWhitelistedAccountsForNFTResponse { + return new QueryWhitelistedAccountsForNFTResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWhitelistedAccountsForNFTResponse | PlainMessage | undefined, b: QueryWhitelistedAccountsForNFTResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWhitelistedAccountsForNFTResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassWhitelistedAccountsRequest + */ +export class QueryClassWhitelistedAccountsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassWhitelistedAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassWhitelistedAccountsRequest { + return new QueryClassWhitelistedAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassWhitelistedAccountsRequest { + return new QueryClassWhitelistedAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassWhitelistedAccountsRequest { + return new QueryClassWhitelistedAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassWhitelistedAccountsRequest | PlainMessage | undefined, b: QueryClassWhitelistedAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassWhitelistedAccountsRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassWhitelistedAccountsResponse + */ +export class QueryClassWhitelistedAccountsResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated string accounts = 2; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassWhitelistedAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassWhitelistedAccountsResponse { + return new QueryClassWhitelistedAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassWhitelistedAccountsResponse { + return new QueryClassWhitelistedAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassWhitelistedAccountsResponse { + return new QueryClassWhitelistedAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassWhitelistedAccountsResponse | PlainMessage | undefined, b: QueryClassWhitelistedAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassWhitelistedAccountsResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassFrozenAccountsRequest + */ +export class QueryClassFrozenAccountsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassFrozenAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassFrozenAccountsRequest { + return new QueryClassFrozenAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassFrozenAccountsRequest { + return new QueryClassFrozenAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassFrozenAccountsRequest { + return new QueryClassFrozenAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassFrozenAccountsRequest | PlainMessage | undefined, b: QueryClassFrozenAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassFrozenAccountsRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryClassFrozenAccountsResponse + */ +export class QueryClassFrozenAccountsResponse extends Message { + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated string accounts = 2; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryClassFrozenAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassFrozenAccountsResponse { + return new QueryClassFrozenAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassFrozenAccountsResponse { + return new QueryClassFrozenAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClassFrozenAccountsResponse { + return new QueryClassFrozenAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClassFrozenAccountsResponse | PlainMessage | undefined, b: QueryClassFrozenAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClassFrozenAccountsResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryBurntNFTRequest + */ +export class QueryBurntNFTRequest extends Message { + /** + * @generated from field: string class_id = 1; + */ + classId = ""; + + /** + * @generated from field: string nft_id = 2; + */ + nftId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryBurntNFTRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nft_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBurntNFTRequest { + return new QueryBurntNFTRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBurntNFTRequest { + return new QueryBurntNFTRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBurntNFTRequest { + return new QueryBurntNFTRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBurntNFTRequest | PlainMessage | undefined, b: QueryBurntNFTRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBurntNFTRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryBurntNFTResponse + */ +export class QueryBurntNFTResponse extends Message { + /** + * @generated from field: bool burnt = 1; + */ + burnt = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryBurntNFTResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "burnt", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBurntNFTResponse { + return new QueryBurntNFTResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBurntNFTResponse { + return new QueryBurntNFTResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBurntNFTResponse { + return new QueryBurntNFTResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBurntNFTResponse | PlainMessage | undefined, b: QueryBurntNFTResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBurntNFTResponse, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryBurntNFTsInClassRequest + */ +export class QueryBurntNFTsInClassRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryBurntNFTsInClassRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBurntNFTsInClassRequest { + return new QueryBurntNFTsInClassRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBurntNFTsInClassRequest { + return new QueryBurntNFTsInClassRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBurntNFTsInClassRequest { + return new QueryBurntNFTsInClassRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBurntNFTsInClassRequest | PlainMessage | undefined, b: QueryBurntNFTsInClassRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBurntNFTsInClassRequest, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.QueryBurntNFTsInClassResponse + */ +export class QueryBurntNFTsInClassResponse extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 1; + */ + pagination?: PageResponse; + + /** + * @generated from field: repeated string nft_ids = 2; + */ + nftIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.QueryBurntNFTsInClassResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageResponse }, + { no: 2, name: "nft_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBurntNFTsInClassResponse { + return new QueryBurntNFTsInClassResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBurntNFTsInClassResponse { + return new QueryBurntNFTsInClassResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBurntNFTsInClassResponse { + return new QueryBurntNFTsInClassResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBurntNFTsInClassResponse | PlainMessage | undefined, b: QueryBurntNFTsInClassResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBurntNFTsInClassResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/tx_cosmes.ts b/src/protobufs/coreum/asset/nft/v1/tx_cosmes.ts new file mode 100644 index 00000000..b2c3be05 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/tx_cosmes.ts @@ -0,0 +1,173 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/tx.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EmptyResponse, MsgAddToClassWhitelist, MsgAddToWhitelist, MsgBurn, MsgClassFreeze, MsgClassUnfreeze, MsgFreeze, MsgIssueClass, MsgMint, MsgRemoveFromClassWhitelist, MsgRemoveFromWhitelist, MsgUnfreeze, MsgUpdateData, MsgUpdateParams } from "./tx_pb.js"; + +const TYPE_NAME = "coreum.asset.nft.v1.Msg"; + +/** + * IssueClass creates new non-fungible token class. + * + * @generated from rpc coreum.asset.nft.v1.Msg.IssueClass + */ +export const MsgIssueClassService = { + typeName: TYPE_NAME, + method: "IssueClass", + Request: MsgIssueClass, + Response: EmptyResponse, +} as const; + +/** + * Mint mints new non-fungible token in the class. + * + * @generated from rpc coreum.asset.nft.v1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: EmptyResponse, +} as const; + +/** + * UpdateData updates the existing non-fungible token data in the class. + * + * @generated from rpc coreum.asset.nft.v1.Msg.UpdateData + */ +export const MsgUpdateDataService = { + typeName: TYPE_NAME, + method: "UpdateData", + Request: MsgUpdateData, + Response: EmptyResponse, +} as const; + +/** + * Burn burns the existing non-fungible token in the class. + * + * @generated from rpc coreum.asset.nft.v1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: EmptyResponse, +} as const; + +/** + * Freeze freezes an NFT + * + * @generated from rpc coreum.asset.nft.v1.Msg.Freeze + */ +export const MsgFreezeService = { + typeName: TYPE_NAME, + method: "Freeze", + Request: MsgFreeze, + Response: EmptyResponse, +} as const; + +/** + * Unfreeze removes the freeze effect already put on an NFT + * + * @generated from rpc coreum.asset.nft.v1.Msg.Unfreeze + */ +export const MsgUnfreezeService = { + typeName: TYPE_NAME, + method: "Unfreeze", + Request: MsgUnfreeze, + Response: EmptyResponse, +} as const; + +/** + * AddToWhitelist sets the account as whitelisted to hold the NFT + * + * @generated from rpc coreum.asset.nft.v1.Msg.AddToWhitelist + */ +export const MsgAddToWhitelistService = { + typeName: TYPE_NAME, + method: "AddToWhitelist", + Request: MsgAddToWhitelist, + Response: EmptyResponse, +} as const; + +/** + * RemoveFromWhitelist removes an account from whitelisted list of the NFT + * + * @generated from rpc coreum.asset.nft.v1.Msg.RemoveFromWhitelist + */ +export const MsgRemoveFromWhitelistService = { + typeName: TYPE_NAME, + method: "RemoveFromWhitelist", + Request: MsgRemoveFromWhitelist, + Response: EmptyResponse, +} as const; + +/** + * AddToClassWhitelist adds account as whitelist for all the NFTs in the class + * NOTE: class whitelist does not affect the individual nft whitelisting. + * + * @generated from rpc coreum.asset.nft.v1.Msg.AddToClassWhitelist + */ +export const MsgAddToClassWhitelistService = { + typeName: TYPE_NAME, + method: "AddToClassWhitelist", + Request: MsgAddToClassWhitelist, + Response: EmptyResponse, +} as const; + +/** + * RemoveFromClassWhitelist removes account as whitelist for the entire class + * NOTE: + * class whitelist does not affect the individual nft whitelisting. + * ie. if specific whitelist is granted for an NFT, that whitelist will + * still be valid, after we add and remove it from the class whitelist. + * + * @generated from rpc coreum.asset.nft.v1.Msg.RemoveFromClassWhitelist + */ +export const MsgRemoveFromClassWhitelistService = { + typeName: TYPE_NAME, + method: "RemoveFromClassWhitelist", + Request: MsgRemoveFromClassWhitelist, + Response: EmptyResponse, +} as const; + +/** + * ClassFreeze freezes all NFTs of a class held by an account. + * + * @generated from rpc coreum.asset.nft.v1.Msg.ClassFreeze + */ +export const MsgClassFreezeService = { + typeName: TYPE_NAME, + method: "ClassFreeze", + Request: MsgClassFreeze, + Response: EmptyResponse, +} as const; + +/** + * ClassUnfreeze removes class-freeze on an account for an NFT class. + * NOTE: + * class unfreeze does not affect the individual nft freeze. + * + * @generated from rpc coreum.asset.nft.v1.Msg.ClassUnfreeze + */ +export const MsgClassUnfreezeService = { + typeName: TYPE_NAME, + method: "ClassUnfreeze", + Request: MsgClassUnfreeze, + Response: EmptyResponse, +} as const; + +/** + * UpdateParams is a governance operation that sets the parameters of the module. + * NOTE: all parameters must be provided. + * + * @generated from rpc coreum.asset.nft.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: EmptyResponse, +} as const; + diff --git a/src/protobufs/coreum/asset/nft/v1/tx_pb.ts b/src/protobufs/coreum/asset/nft/v1/tx_pb.ts new file mode 100644 index 00000000..3535b301 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/tx_pb.ts @@ -0,0 +1,761 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/tx.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3 } from "@bufbuild/protobuf"; +import { ClassFeature } from "./nft_pb.js"; +import { DataDynamicIndexedItem } from "./types_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgIssueClass defines message for the IssueClass method. + * + * @generated from message coreum.asset.nft.v1.MsgIssueClass + */ +export class MsgIssueClass extends Message { + /** + * @generated from field: string issuer = 1; + */ + issuer = ""; + + /** + * @generated from field: string symbol = 2; + */ + symbol = ""; + + /** + * @generated from field: string name = 3; + */ + name = ""; + + /** + * @generated from field: string description = 4; + */ + description = ""; + + /** + * @generated from field: string uri = 5; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 6; + */ + uriHash = ""; + + /** + * @generated from field: google.protobuf.Any data = 7; + */ + data?: Any; + + /** + * @generated from field: repeated coreum.asset.nft.v1.ClassFeature features = 8; + */ + features: ClassFeature[] = []; + + /** + * @generated from field: string royalty_rate = 9; + */ + royaltyRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgIssueClass"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "data", kind: "message", T: Any }, + { no: 8, name: "features", kind: "enum", T: proto3.getEnumType(ClassFeature), repeated: true }, + { no: 9, name: "royalty_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIssueClass { + return new MsgIssueClass().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIssueClass { + return new MsgIssueClass().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIssueClass { + return new MsgIssueClass().fromJsonString(jsonString, options); + } + + static equals(a: MsgIssueClass | PlainMessage | undefined, b: MsgIssueClass | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIssueClass, a, b); + } +} + +/** + * MsgMint defines message for the Mint method. + * + * @generated from message coreum.asset.nft.v1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + /** + * @generated from field: string uri = 4; + */ + uri = ""; + + /** + * @generated from field: string uri_hash = 5; + */ + uriHash = ""; + + /** + * Data can be DataBytes or DataDynamic. + * + * @generated from field: google.protobuf.Any data = 6; + */ + data?: Any; + + /** + * @generated from field: string recipient = 7; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "data", kind: "message", T: Any }, + { no: 7, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * MsgUpdateData defines message to update the dynamic data. + * + * @generated from message coreum.asset.nft.v1.MsgUpdateData + */ +export class MsgUpdateData extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + /** + * @generated from field: repeated coreum.asset.nft.v1.DataDynamicIndexedItem items = 4; + */ + items: DataDynamicIndexedItem[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgUpdateData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "items", kind: "message", T: DataDynamicIndexedItem, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateData { + return new MsgUpdateData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateData { + return new MsgUpdateData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateData { + return new MsgUpdateData().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateData | PlainMessage | undefined, b: MsgUpdateData | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateData, a, b); + } +} + +/** + * MsgBurn defines message for the Burn method. + * + * @generated from message coreum.asset.nft.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgFreeze + */ +export class MsgFreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgFreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFreeze { + return new MsgFreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFreeze { + return new MsgFreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFreeze { + return new MsgFreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgFreeze | PlainMessage | undefined, b: MsgFreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgUnfreeze + */ +export class MsgUnfreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgUnfreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnfreeze { + return new MsgUnfreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnfreeze | PlainMessage | undefined, b: MsgUnfreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnfreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgClassFreeze + */ +export class MsgClassFreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgClassFreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClassFreeze { + return new MsgClassFreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClassFreeze { + return new MsgClassFreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClassFreeze { + return new MsgClassFreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgClassFreeze | PlainMessage | undefined, b: MsgClassFreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClassFreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgClassUnfreeze + */ +export class MsgClassUnfreeze extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgClassUnfreeze"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClassUnfreeze { + return new MsgClassUnfreeze().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClassUnfreeze { + return new MsgClassUnfreeze().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClassUnfreeze { + return new MsgClassUnfreeze().fromJsonString(jsonString, options); + } + + static equals(a: MsgClassUnfreeze | PlainMessage | undefined, b: MsgClassUnfreeze | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClassUnfreeze, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgAddToWhitelist + */ +export class MsgAddToWhitelist extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + /** + * @generated from field: string account = 4; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgAddToWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToWhitelist { + return new MsgAddToWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToWhitelist { + return new MsgAddToWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToWhitelist { + return new MsgAddToWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddToWhitelist | PlainMessage | undefined, b: MsgAddToWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddToWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgRemoveFromWhitelist + */ +export class MsgRemoveFromWhitelist extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string id = 3; + */ + id = ""; + + /** + * @generated from field: string account = 4; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgRemoveFromWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveFromWhitelist { + return new MsgRemoveFromWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveFromWhitelist { + return new MsgRemoveFromWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveFromWhitelist { + return new MsgRemoveFromWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveFromWhitelist | PlainMessage | undefined, b: MsgRemoveFromWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveFromWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgAddToClassWhitelist + */ +export class MsgAddToClassWhitelist extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgAddToClassWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToClassWhitelist { + return new MsgAddToClassWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToClassWhitelist { + return new MsgAddToClassWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToClassWhitelist { + return new MsgAddToClassWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddToClassWhitelist | PlainMessage | undefined, b: MsgAddToClassWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddToClassWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgRemoveFromClassWhitelist + */ +export class MsgRemoveFromClassWhitelist extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string class_id = 2; + */ + classId = ""; + + /** + * @generated from field: string account = 3; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgRemoveFromClassWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveFromClassWhitelist { + return new MsgRemoveFromClassWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveFromClassWhitelist { + return new MsgRemoveFromClassWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveFromClassWhitelist { + return new MsgRemoveFromClassWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveFromClassWhitelist | PlainMessage | undefined, b: MsgRemoveFromClassWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveFromClassWhitelist, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: coreum.asset.nft.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message coreum.asset.nft.v1.EmptyResponse + */ +export class EmptyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.EmptyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyResponse { + return new EmptyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJsonString(jsonString, options); + } + + static equals(a: EmptyResponse | PlainMessage | undefined, b: EmptyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/asset/nft/v1/types_pb.ts b/src/protobufs/coreum/asset/nft/v1/types_pb.ts new file mode 100644 index 00000000..2f61cf72 --- /dev/null +++ b/src/protobufs/coreum/asset/nft/v1/types_pb.ts @@ -0,0 +1,200 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/asset/nft/v1/types.proto (package coreum.asset.nft.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * DataEditor defines possible data editors. + * + * @generated from enum coreum.asset.nft.v1.DataEditor + */ +export enum DataEditor { + /** + * @generated from enum value: admin = 0; + */ + admin = 0, + + /** + * @generated from enum value: owner = 1; + */ + owner = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(DataEditor) +proto3.util.setEnumType(DataEditor, "coreum.asset.nft.v1.DataEditor", [ + { no: 0, name: "admin" }, + { no: 1, name: "owner" }, +]); + +/** + * DataBytes represents the immutable data. + * + * @generated from message coreum.asset.nft.v1.DataBytes + */ +export class DataBytes extends Message { + /** + * @generated from field: bytes Data = 1; + */ + Data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.DataBytes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DataBytes { + return new DataBytes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DataBytes { + return new DataBytes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DataBytes { + return new DataBytes().fromJsonString(jsonString, options); + } + + static equals(a: DataBytes | PlainMessage | undefined, b: DataBytes | PlainMessage | undefined): boolean { + return proto3.util.equals(DataBytes, a, b); + } +} + +/** + * DataDynamicItem contains the updatable data and modification types. + * + * @generated from message coreum.asset.nft.v1.DataDynamicItem + */ +export class DataDynamicItem extends Message { + /** + * contains the set of the data editors, if empty no one can update. + * + * @generated from field: repeated coreum.asset.nft.v1.DataEditor editors = 1; + */ + editors: DataEditor[] = []; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.DataDynamicItem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "editors", kind: "enum", T: proto3.getEnumType(DataEditor), repeated: true }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DataDynamicItem { + return new DataDynamicItem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DataDynamicItem { + return new DataDynamicItem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DataDynamicItem { + return new DataDynamicItem().fromJsonString(jsonString, options); + } + + static equals(a: DataDynamicItem | PlainMessage | undefined, b: DataDynamicItem | PlainMessage | undefined): boolean { + return proto3.util.equals(DataDynamicItem, a, b); + } +} + +/** + * DataDynamicIndexed contains the data and it's index in the DataDynamic. + * + * @generated from message coreum.asset.nft.v1.DataDynamicIndexedItem + */ +export class DataDynamicIndexedItem extends Message { + /** + * @generated from field: uint32 index = 1; + */ + index = 0; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.DataDynamicIndexedItem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DataDynamicIndexedItem { + return new DataDynamicIndexedItem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DataDynamicIndexedItem { + return new DataDynamicIndexedItem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DataDynamicIndexedItem { + return new DataDynamicIndexedItem().fromJsonString(jsonString, options); + } + + static equals(a: DataDynamicIndexedItem | PlainMessage | undefined, b: DataDynamicIndexedItem | PlainMessage | undefined): boolean { + return proto3.util.equals(DataDynamicIndexedItem, a, b); + } +} + +/** + * DataDynamic is dynamic data which contains the list of the items allowed to be modified base on their modification types. + * + * @generated from message coreum.asset.nft.v1.DataDynamic + */ +export class DataDynamic extends Message { + /** + * @generated from field: repeated coreum.asset.nft.v1.DataDynamicItem items = 1; + */ + items: DataDynamicItem[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.asset.nft.v1.DataDynamic"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "items", kind: "message", T: DataDynamicItem, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DataDynamic { + return new DataDynamic().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DataDynamic { + return new DataDynamic().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DataDynamic { + return new DataDynamic().fromJsonString(jsonString, options); + } + + static equals(a: DataDynamic | PlainMessage | undefined, b: DataDynamic | PlainMessage | undefined): boolean { + return proto3.util.equals(DataDynamic, a, b); + } +} + diff --git a/src/protobufs/coreum/customparams/v1/genesis_pb.ts b/src/protobufs/coreum/customparams/v1/genesis_pb.ts new file mode 100644 index 00000000..215adaa7 --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/customparams/v1/genesis.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { StakingParams } from "./params_pb.js"; + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message coreum.customparams.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * staking_params defines staking parameters of the module. + * + * @generated from field: coreum.customparams.v1.StakingParams staking_params = 1; + */ + stakingParams?: StakingParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_params", kind: "message", T: StakingParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/coreum/customparams/v1/params_pb.ts b/src/protobufs/coreum/customparams/v1/params_pb.ts new file mode 100644 index 00000000..a943e4fa --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/params_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/customparams/v1/params.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * StakingParams defines the set of additional staking params for the staking module wrapper. + * + * @generated from message coreum.customparams.v1.StakingParams + */ +export class StakingParams extends Message { + /** + * min_self_delegation is the validators global self declared minimum for delegation. + * + * @generated from field: string min_self_delegation = 1; + */ + minSelfDelegation = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.StakingParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StakingParams { + return new StakingParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StakingParams { + return new StakingParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StakingParams { + return new StakingParams().fromJsonString(jsonString, options); + } + + static equals(a: StakingParams | PlainMessage | undefined, b: StakingParams | PlainMessage | undefined): boolean { + return proto3.util.equals(StakingParams, a, b); + } +} + diff --git a/src/protobufs/coreum/customparams/v1/query_cosmes.ts b/src/protobufs/coreum/customparams/v1/query_cosmes.ts new file mode 100644 index 00000000..d8259fde --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/customparams/v1/query.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryStakingParamsRequest, QueryStakingParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "coreum.customparams.v1.Query"; + +/** + * StakingParams queries the staking parameters of the module. + * + * @generated from rpc coreum.customparams.v1.Query.StakingParams + */ +export const QueryStakingParamsService = { + typeName: TYPE_NAME, + method: "StakingParams", + Request: QueryStakingParamsRequest, + Response: QueryStakingParamsResponse, +} as const; + diff --git a/src/protobufs/coreum/customparams/v1/query_pb.ts b/src/protobufs/coreum/customparams/v1/query_pb.ts new file mode 100644 index 00000000..6de1ef3c --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/query_pb.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/customparams/v1/query.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { StakingParams } from "./params_pb.js"; + +/** + * QueryStakingParamsRequest defines the request type for querying x/customparams staking parameters. + * + * @generated from message coreum.customparams.v1.QueryStakingParamsRequest + */ +export class QueryStakingParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.QueryStakingParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakingParamsRequest { + return new QueryStakingParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakingParamsRequest { + return new QueryStakingParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakingParamsRequest { + return new QueryStakingParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakingParamsRequest | PlainMessage | undefined, b: QueryStakingParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakingParamsRequest, a, b); + } +} + +/** + * QueryStakingParamsResponse defines the response type for querying x/customparams staking parameters. + * + * @generated from message coreum.customparams.v1.QueryStakingParamsResponse + */ +export class QueryStakingParamsResponse extends Message { + /** + * @generated from field: coreum.customparams.v1.StakingParams params = 1; + */ + params?: StakingParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.QueryStakingParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: StakingParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakingParamsResponse { + return new QueryStakingParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakingParamsResponse { + return new QueryStakingParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakingParamsResponse { + return new QueryStakingParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakingParamsResponse | PlainMessage | undefined, b: QueryStakingParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakingParamsResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/customparams/v1/tx_cosmes.ts b/src/protobufs/coreum/customparams/v1/tx_cosmes.ts new file mode 100644 index 00000000..c1d9f84f --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/tx_cosmes.ts @@ -0,0 +1,22 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/customparams/v1/tx.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EmptyResponse, MsgUpdateStakingParams } from "./tx_pb.js"; + +const TYPE_NAME = "coreum.customparams.v1.Msg"; + +/** + * UpdateStakingParams is a governance operation that sets the staking parameter. + * NOTE: all parameters must be provided. + * + * @generated from rpc coreum.customparams.v1.Msg.UpdateStakingParams + */ +export const MsgUpdateStakingParamsService = { + typeName: TYPE_NAME, + method: "UpdateStakingParams", + Request: MsgUpdateStakingParams, + Response: EmptyResponse, +} as const; + diff --git a/src/protobufs/coreum/customparams/v1/tx_pb.ts b/src/protobufs/coreum/customparams/v1/tx_pb.ts new file mode 100644 index 00000000..bf6af013 --- /dev/null +++ b/src/protobufs/coreum/customparams/v1/tx_pb.ts @@ -0,0 +1,85 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/customparams/v1/tx.proto (package coreum.customparams.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { StakingParams } from "./params_pb.js"; + +/** + * @generated from message coreum.customparams.v1.MsgUpdateStakingParams + */ +export class MsgUpdateStakingParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * staking_params holds the parameters related to the staking module. + * + * @generated from field: coreum.customparams.v1.StakingParams staking_params = 2; + */ + stakingParams?: StakingParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.MsgUpdateStakingParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "staking_params", kind: "message", T: StakingParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateStakingParams { + return new MsgUpdateStakingParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateStakingParams { + return new MsgUpdateStakingParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateStakingParams { + return new MsgUpdateStakingParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateStakingParams | PlainMessage | undefined, b: MsgUpdateStakingParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateStakingParams, a, b); + } +} + +/** + * @generated from message coreum.customparams.v1.EmptyResponse + */ +export class EmptyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.customparams.v1.EmptyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyResponse { + return new EmptyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJsonString(jsonString, options); + } + + static equals(a: EmptyResponse | PlainMessage | undefined, b: EmptyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/delay/v1/genesis_pb.ts b/src/protobufs/coreum/delay/v1/genesis_pb.ts new file mode 100644 index 00000000..95f09ba8 --- /dev/null +++ b/src/protobufs/coreum/delay/v1/genesis_pb.ts @@ -0,0 +1,155 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/delay/v1/genesis.proto (package coreum.delay.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the module genesis state. + * + * @generated from message coreum.delay.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * delayed_items is a list of delayed items. + * + * @generated from field: repeated coreum.delay.v1.DelayedItem delayed_items = 1; + */ + delayedItems: DelayedItem[] = []; + + /** + * block_items is a list of block items. + * + * @generated from field: repeated coreum.delay.v1.BlockItem block_items = 2; + */ + blockItems: BlockItem[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.delay.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delayed_items", kind: "message", T: DelayedItem, repeated: true }, + { no: 2, name: "block_items", kind: "message", T: BlockItem, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message coreum.delay.v1.DelayedItem + */ +export class DelayedItem extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: google.protobuf.Timestamp execution_time = 2; + */ + executionTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Any data = 3; + */ + data?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.delay.v1.DelayedItem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "execution_time", kind: "message", T: Timestamp }, + { no: 3, name: "data", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelayedItem { + return new DelayedItem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelayedItem { + return new DelayedItem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelayedItem { + return new DelayedItem().fromJsonString(jsonString, options); + } + + static equals(a: DelayedItem | PlainMessage | undefined, b: DelayedItem | PlainMessage | undefined): boolean { + return proto3.util.equals(DelayedItem, a, b); + } +} + +/** + * @generated from message coreum.delay.v1.BlockItem + */ +export class BlockItem extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: uint64 height = 2; + */ + height = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Any data = 3; + */ + data?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.delay.v1.BlockItem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "data", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlockItem { + return new BlockItem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlockItem { + return new BlockItem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlockItem { + return new BlockItem().fromJsonString(jsonString, options); + } + + static equals(a: BlockItem | PlainMessage | undefined, b: BlockItem | PlainMessage | undefined): boolean { + return proto3.util.equals(BlockItem, a, b); + } +} + diff --git a/src/protobufs/coreum/deterministicgas/v1/event_pb.ts b/src/protobufs/coreum/deterministicgas/v1/event_pb.ts new file mode 100644 index 00000000..8118cd29 --- /dev/null +++ b/src/protobufs/coreum/deterministicgas/v1/event_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/deterministicgas/v1/event.proto (package coreum.deterministicgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * EventGas is emitted by deterministic gas module to report gas information. + * + * @generated from message coreum.deterministicgas.v1.EventGas + */ +export class EventGas extends Message { + /** + * @generated from field: string msgURL = 1; + */ + msgURL = ""; + + /** + * @generated from field: uint64 realGas = 2; + */ + realGas = protoInt64.zero; + + /** + * @generated from field: uint64 deterministicGas = 3; + */ + deterministicGas = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.deterministicgas.v1.EventGas"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msgURL", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "realGas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "deterministicGas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventGas { + return new EventGas().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventGas { + return new EventGas().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventGas { + return new EventGas().fromJsonString(jsonString, options); + } + + static equals(a: EventGas | PlainMessage | undefined, b: EventGas | PlainMessage | undefined): boolean { + return proto3.util.equals(EventGas, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/event_pb.ts b/src/protobufs/coreum/dex/v1/event_pb.ts new file mode 100644 index 00000000..00399580 --- /dev/null +++ b/src/protobufs/coreum/dex/v1/event_pb.ts @@ -0,0 +1,284 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/event.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * EventOrderPlaced is emitted when a new order is placed and new sequence is generated for it. + * + * @generated from message coreum.dex.v1.EventOrderPlaced + */ +export class EventOrderPlaced extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * id is unique order ID. + * + * @generated from field: string id = 2; + */ + id = ""; + + /** + * sequence is unique order sequence. + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.EventOrderPlaced"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderPlaced { + return new EventOrderPlaced().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderPlaced { + return new EventOrderPlaced().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderPlaced { + return new EventOrderPlaced().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderPlaced | PlainMessage | undefined, b: EventOrderPlaced | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderPlaced, a, b); + } +} + +/** + * EventOrderReduced is emitted when the order is reduced during the matching. + * + * @generated from message coreum.dex.v1.EventOrderReduced + */ +export class EventOrderReduced extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * id is unique order ID. + * + * @generated from field: string id = 2; + */ + id = ""; + + /** + * sequence is unique order sequence. + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + /** + * sent_coin is coin sent during matching. + * + * @generated from field: string sent_coin = 4; + */ + sentCoin = ""; + + /** + * received_coin is coin received during matching. + * + * @generated from field: string received_coin = 5; + */ + receivedCoin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.EventOrderReduced"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "sent_coin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "received_coin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderReduced { + return new EventOrderReduced().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderReduced { + return new EventOrderReduced().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderReduced { + return new EventOrderReduced().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderReduced | PlainMessage | undefined, b: EventOrderReduced | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderReduced, a, b); + } +} + +/** + * EventOrderCreated is emitted when the limit order is saved to the order book. + * + * @generated from message coreum.dex.v1.EventOrderCreated + */ +export class EventOrderCreated extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * id is unique order ID. + * + * @generated from field: string id = 2; + */ + id = ""; + + /** + * sequence is unique order sequence. + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + /** + * remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. + * + * @generated from field: string remaining_base_quantity = 4; + */ + remainingBaseQuantity = ""; + + /** + * remaining_spendable_balance - is balance up to which user wants to spend to execute the order. + * + * @generated from field: string remaining_spendable_balance = 5; + */ + remainingSpendableBalance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.EventOrderCreated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "remaining_base_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "remaining_spendable_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderCreated { + return new EventOrderCreated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderCreated { + return new EventOrderCreated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderCreated { + return new EventOrderCreated().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderCreated | PlainMessage | undefined, b: EventOrderCreated | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderCreated, a, b); + } +} + +/** + * EventOrderClosed is emitted when the order is closed during matching or manually, and removed from the order book. + * + * @generated from message coreum.dex.v1.EventOrderClosed + */ +export class EventOrderClosed extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * id is unique order ID. + * + * @generated from field: string id = 2; + */ + id = ""; + + /** + * sequence is unique order sequence. + * + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + /** + * remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. + * + * @generated from field: string remaining_base_quantity = 4; + */ + remainingBaseQuantity = ""; + + /** + * remaining_spendable_balance - is balance up to which user wants to spend to execute the order. + * + * @generated from field: string remaining_spendable_balance = 5; + */ + remainingSpendableBalance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.EventOrderClosed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "remaining_base_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "remaining_spendable_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderClosed { + return new EventOrderClosed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderClosed { + return new EventOrderClosed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderClosed { + return new EventOrderClosed().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderClosed | PlainMessage | undefined, b: EventOrderClosed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderClosed, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/genesis_pb.ts b/src/protobufs/coreum/dex/v1/genesis_pb.ts new file mode 100644 index 00000000..f3a485af --- /dev/null +++ b/src/protobufs/coreum/dex/v1/genesis_pb.ts @@ -0,0 +1,183 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/genesis.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Order, OrderBookData } from "./order_pb.js"; + +/** + * GenesisState defines the module genesis state. + * + * @generated from message coreum.dex.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: coreum.dex.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated coreum.dex.v1.OrderBookDataWithID order_books = 2; + */ + orderBooks: OrderBookDataWithID[] = []; + + /** + * @generated from field: repeated coreum.dex.v1.Order orders = 3; + */ + orders: Order[] = []; + + /** + * order_sequence is current order sequence; + * + * @generated from field: uint64 order_sequence = 4; + */ + orderSequence = protoInt64.zero; + + /** + * @generated from field: repeated coreum.dex.v1.AccountDenomOrdersCount accounts_denoms_orders_counts = 5; + */ + accountsDenomsOrdersCounts: AccountDenomOrdersCount[] = []; + + /** + * @generated from field: repeated bytes reserved_order_ids = 6; + */ + reservedOrderIds: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "order_books", kind: "message", T: OrderBookDataWithID, repeated: true }, + { no: 3, name: "orders", kind: "message", T: Order, repeated: true }, + { no: 4, name: "order_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "accounts_denoms_orders_counts", kind: "message", T: AccountDenomOrdersCount, repeated: true }, + { no: 6, name: "reserved_order_ids", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * OrderBookDataWithID is a order book data with it's corresponding ID. + * + * @generated from message coreum.dex.v1.OrderBookDataWithID + */ +export class OrderBookDataWithID extends Message { + /** + * id is order book ID. + * + * @generated from field: uint32 id = 1; + */ + id = 0; + + /** + * data is order book data. + * + * @generated from field: coreum.dex.v1.OrderBookData data = 2; + */ + data?: OrderBookData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.OrderBookDataWithID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "data", kind: "message", T: OrderBookData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderBookDataWithID { + return new OrderBookDataWithID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderBookDataWithID { + return new OrderBookDataWithID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderBookDataWithID { + return new OrderBookDataWithID().fromJsonString(jsonString, options); + } + + static equals(a: OrderBookDataWithID | PlainMessage | undefined, b: OrderBookDataWithID | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderBookDataWithID, a, b); + } +} + +/** + * AccountDenomOrderCount is a count of orders per account and denom. + * + * @generated from message coreum.dex.v1.AccountDenomOrdersCount + */ +export class AccountDenomOrdersCount extends Message { + /** + * @generated from field: uint64 account_number = 1; + */ + accountNumber = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: uint64 orders_count = 3; + */ + ordersCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.AccountDenomOrdersCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "orders_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountDenomOrdersCount { + return new AccountDenomOrdersCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountDenomOrdersCount { + return new AccountDenomOrdersCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountDenomOrdersCount { + return new AccountDenomOrdersCount().fromJsonString(jsonString, options); + } + + static equals(a: AccountDenomOrdersCount | PlainMessage | undefined, b: AccountDenomOrdersCount | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountDenomOrdersCount, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/order_pb.ts b/src/protobufs/coreum/dex/v1/order_pb.ts new file mode 100644 index 00000000..d1bcc48a --- /dev/null +++ b/src/protobufs/coreum/dex/v1/order_pb.ts @@ -0,0 +1,567 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/order.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Side is order side. + * + * @generated from enum coreum.dex.v1.Side + */ +export enum Side { + /** + * SIDE_UNSPECIFIED reserves the default value, to protect against unexpected settings. + * + * @generated from enum value: SIDE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * SIDE_BUY means that the order is to buy base_denom quantity with the price. + * + * @generated from enum value: SIDE_BUY = 1; + */ + BUY = 1, + + /** + * SIDE_SELL means that the order is to sell base_denom quantity with the price. + * + * @generated from enum value: SIDE_SELL = 2; + */ + SELL = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Side) +proto3.util.setEnumType(Side, "coreum.dex.v1.Side", [ + { no: 0, name: "SIDE_UNSPECIFIED" }, + { no: 1, name: "SIDE_BUY" }, + { no: 2, name: "SIDE_SELL" }, +]); + +/** + * Type is order type. + * + * @generated from enum coreum.dex.v1.OrderType + */ +export enum OrderType { + /** + * order_type_unspecified reserves the default value, to protect against unexpected settings. + * + * @generated from enum value: ORDER_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * order_type_limit means that the order is limit order. + * + * @generated from enum value: ORDER_TYPE_LIMIT = 1; + */ + LIMIT = 1, + + /** + * limit order_type_market that the order is market order. + * + * @generated from enum value: ORDER_TYPE_MARKET = 2; + */ + MARKET = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(OrderType) +proto3.util.setEnumType(OrderType, "coreum.dex.v1.OrderType", [ + { no: 0, name: "ORDER_TYPE_UNSPECIFIED" }, + { no: 1, name: "ORDER_TYPE_LIMIT" }, + { no: 2, name: "ORDER_TYPE_MARKET" }, +]); + +/** + * TimeInForce is order time in force. + * + * @generated from enum coreum.dex.v1.TimeInForce + */ +export enum TimeInForce { + /** + * time_in_force_unspecified reserves the default value, to protect against unexpected settings. + * + * @generated from enum value: TIME_IN_FORCE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * time_in_force_gtc means that the order remains active until it is fully executed or manually canceled. + * + * @generated from enum value: TIME_IN_FORCE_GTC = 1; + */ + GTC = 1, + + /** + * time_in_force_ioc means that order must be executed immediately, either in full or partially. Any portion of the + * order that cannot be filled immediately is canceled. + * + * @generated from enum value: TIME_IN_FORCE_IOC = 2; + */ + IOC = 2, + + /** + * time_in_force_fok means that order must be fully executed or canceled. + * + * @generated from enum value: TIME_IN_FORCE_FOK = 3; + */ + FOK = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(TimeInForce) +proto3.util.setEnumType(TimeInForce, "coreum.dex.v1.TimeInForce", [ + { no: 0, name: "TIME_IN_FORCE_UNSPECIFIED" }, + { no: 1, name: "TIME_IN_FORCE_GTC" }, + { no: 2, name: "TIME_IN_FORCE_IOC" }, + { no: 3, name: "TIME_IN_FORCE_FOK" }, +]); + +/** + * GoodTil is a good til order settings. + * + * @generated from message coreum.dex.v1.GoodTil + */ +export class GoodTil extends Message { + /** + * good_til_block_height means that order remains active until a specific blockchain block height is reached. + * + * @generated from field: uint64 good_til_block_height = 1; + */ + goodTilBlockHeight = protoInt64.zero; + + /** + * good_til_block_time means that order remains active until a specific blockchain block time is reached. + * + * @generated from field: google.protobuf.Timestamp good_til_block_time = 2; + */ + goodTilBlockTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.GoodTil"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "good_til_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "good_til_block_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GoodTil { + return new GoodTil().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GoodTil { + return new GoodTil().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GoodTil { + return new GoodTil().fromJsonString(jsonString, options); + } + + static equals(a: GoodTil | PlainMessage | undefined, b: GoodTil | PlainMessage | undefined): boolean { + return proto3.util.equals(GoodTil, a, b); + } +} + +/** + * CancelGoodTil is a cancel good til message for the delay router. + * + * @generated from message coreum.dex.v1.CancelGoodTil + */ +export class CancelGoodTil extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * order_sequence is order sequence. + * + * @generated from field: uint64 order_sequence = 2; + */ + orderSequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.CancelGoodTil"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CancelGoodTil { + return new CancelGoodTil().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CancelGoodTil { + return new CancelGoodTil().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CancelGoodTil { + return new CancelGoodTil().fromJsonString(jsonString, options); + } + + static equals(a: CancelGoodTil | PlainMessage | undefined, b: CancelGoodTil | PlainMessage | undefined): boolean { + return proto3.util.equals(CancelGoodTil, a, b); + } +} + +/** + * Order represents a DEX order, encapsulating both limit and market orders. It contains comprehensive information about + * the order's state. + * + * @generated from message coreum.dex.v1.Order + */ +export class Order extends Message { + /** + * creator is order creator address. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * type is order type. + * + * @generated from field: coreum.dex.v1.OrderType type = 2; + */ + type = OrderType.UNSPECIFIED; + + /** + * id is unique order ID. + * + * @generated from field: string id = 3; + */ + id = ""; + + /** + * sequence is unique order sequence generated at the time of the order placement. + * + * @generated from field: uint64 sequence = 4; + */ + sequence = protoInt64.zero; + + /** + * base_denom is base order denom. + * + * @generated from field: string base_denom = 5; + */ + baseDenom = ""; + + /** + * quote_denom is quote order denom + * + * @generated from field: string quote_denom = 6; + */ + quoteDenom = ""; + + /** + * price is value of one unit of the base_denom expressed in terms of the quote_denom. + * + * @generated from field: string price = 7; + */ + price = ""; + + /** + * quantity is amount of the base base_denom being traded. + * + * @generated from field: string quantity = 8; + */ + quantity = ""; + + /** + * side is order side. + * + * @generated from field: coreum.dex.v1.Side side = 9; + */ + side = Side.UNSPECIFIED; + + /** + * remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. + * + * @generated from field: string remaining_base_quantity = 10; + */ + remainingBaseQuantity = ""; + + /** + * remaining_spendable_balance - is balance up to which user wants to spend to execute the order. + * + * @generated from field: string remaining_spendable_balance = 11; + */ + remainingSpendableBalance = ""; + + /** + * good_til is order good til + * + * @generated from field: coreum.dex.v1.GoodTil good_til = 12; + */ + goodTil?: GoodTil; + + /** + * time_in_force is order time in force + * + * @generated from field: coreum.dex.v1.TimeInForce time_in_force = 13; + */ + timeInForce = TimeInForce.UNSPECIFIED; + + /** + * reserve is the reserve required to save the order in the order book + * + * @generated from field: cosmos.base.v1beta1.Coin reserve = 14; + */ + reserve?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.Order"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "side", kind: "enum", T: proto3.getEnumType(Side) }, + { no: 10, name: "remaining_base_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "remaining_spendable_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "good_til", kind: "message", T: GoodTil }, + { no: 13, name: "time_in_force", kind: "enum", T: proto3.getEnumType(TimeInForce) }, + { no: 14, name: "reserve", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Order { + return new Order().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Order { + return new Order().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Order { + return new Order().fromJsonString(jsonString, options); + } + + static equals(a: Order | PlainMessage | undefined, b: Order | PlainMessage | undefined): boolean { + return proto3.util.equals(Order, a, b); + } +} + +/** + * OrderData represents the order information for the store missing in the order book record. + * + * @generated from message coreum.dex.v1.OrderData + */ +export class OrderData extends Message { + /** + * order ID provided by the creator. + * + * @generated from field: string order_id = 1; + */ + orderId = ""; + + /** + * order_book_id is order book ID. + * + * @generated from field: uint32 order_book_id = 2; + */ + orderBookId = 0; + + /** + * price is value of one unit of the base_denom expressed in terms of the quote_denom. + * + * @generated from field: string price = 3; + */ + price = ""; + + /** + * quantity is amount of the base base_denom being traded. + * + * @generated from field: string quantity = 4; + */ + quantity = ""; + + /** + * side is order side. + * + * @generated from field: coreum.dex.v1.Side side = 5; + */ + side = Side.UNSPECIFIED; + + /** + * good_til is order good til + * + * @generated from field: coreum.dex.v1.GoodTil good_til = 6; + */ + goodTil?: GoodTil; + + /** + * reserve is the reserve required to save the order in the order book + * + * @generated from field: cosmos.base.v1beta1.Coin reserve = 7; + */ + reserve?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.OrderData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_book_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "side", kind: "enum", T: proto3.getEnumType(Side) }, + { no: 6, name: "good_til", kind: "message", T: GoodTil }, + { no: 7, name: "reserve", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderData { + return new OrderData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderData { + return new OrderData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderData { + return new OrderData().fromJsonString(jsonString, options); + } + + static equals(a: OrderData | PlainMessage | undefined, b: OrderData | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderData, a, b); + } +} + +/** + * OrderBookData is a order book data used by order for the store. + * + * @generated from message coreum.dex.v1.OrderBookData + */ +export class OrderBookData extends Message { + /** + * base_denom is base order book denom. + * + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * quote_denom is quote order book denom + * + * @generated from field: string quote_denom = 2; + */ + quoteDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.OrderBookData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderBookData { + return new OrderBookData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderBookData { + return new OrderBookData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderBookData { + return new OrderBookData().fromJsonString(jsonString, options); + } + + static equals(a: OrderBookData | PlainMessage | undefined, b: OrderBookData | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderBookData, a, b); + } +} + +/** + * OrderBookRecordData is a single order book record used for the store. + * + * @generated from message coreum.dex.v1.OrderBookRecordData + */ +export class OrderBookRecordData extends Message { + /** + * order ID provided by the creator. + * + * @generated from field: string order_id = 1; + */ + orderId = ""; + + /** + * account_number is account number which corresponds the order creator. + * + * @generated from field: uint64 account_number = 2; + */ + accountNumber = protoInt64.zero; + + /** + * remaining_base_quantity - is remaining quantity of base denom which user wants to sell or buy. + * + * @generated from field: string remaining_base_quantity = 3; + */ + remainingBaseQuantity = ""; + + /** + * remaining_spendable_balance - is balance up to which user wants to spend to execute the order. + * + * @generated from field: string remaining_spendable_balance = 4; + */ + remainingSpendableBalance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.OrderBookRecordData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "remaining_base_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "remaining_spendable_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderBookRecordData { + return new OrderBookRecordData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderBookRecordData { + return new OrderBookRecordData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderBookRecordData { + return new OrderBookRecordData().fromJsonString(jsonString, options); + } + + static equals(a: OrderBookRecordData | PlainMessage | undefined, b: OrderBookRecordData | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderBookRecordData, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/params_pb.ts b/src/protobufs/coreum/dex/v1/params_pb.ts new file mode 100644 index 00000000..7e947ef0 --- /dev/null +++ b/src/protobufs/coreum/dex/v1/params_pb.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/params.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params keeps gov manageable parameters. + * + * @generated from message coreum.dex.v1.Params + */ +export class Params extends Message { + /** + * default_unified_ref_amount is the default approximate amount you need to buy 1USD, used to for tokens without custom value + * + * @generated from field: string default_unified_ref_amount = 1; + */ + defaultUnifiedRefAmount = ""; + + /** + * price_tick_exponent is the exponent used in price tick calculation formula + * + * @generated from field: int32 price_tick_exponent = 2; + */ + priceTickExponent = 0; + + /** + * quantity_step_exponent is the exponent used in quantity step calculation formula + * + * @generated from field: int32 quantity_step_exponent = 5; + */ + quantityStepExponent = 0; + + /** + * max_orders_per_denom is the maximum number of orders per denom the user can have + * + * @generated from field: uint64 max_orders_per_denom = 3; + */ + maxOrdersPerDenom = protoInt64.zero; + + /** + * order_reserve is the reserve required to save the order in the order book + * + * @generated from field: cosmos.base.v1beta1.Coin order_reserve = 4; + */ + orderReserve?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "default_unified_ref_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price_tick_exponent", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "quantity_step_exponent", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "max_orders_per_denom", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "order_reserve", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/query_cosmes.ts b/src/protobufs/coreum/dex/v1/query_cosmes.ts new file mode 100644 index 00000000..0ea2aa46 --- /dev/null +++ b/src/protobufs/coreum/dex/v1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/dex/v1/query.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAccountDenomOrdersCountRequest, QueryAccountDenomOrdersCountResponse, QueryOrderBookOrdersRequest, QueryOrderBookOrdersResponse, QueryOrderBookParamsRequest, QueryOrderBookParamsResponse, QueryOrderBooksRequest, QueryOrderBooksResponse, QueryOrderRequest, QueryOrderResponse, QueryOrdersRequest, QueryOrdersResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "coreum.dex.v1.Query"; + +/** + * Params queries the parameters of x/dex module. + * + * @generated from rpc coreum.dex.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Order queries order by creator and ID. + * + * @generated from rpc coreum.dex.v1.Query.Order + */ +export const QueryOrderService = { + typeName: TYPE_NAME, + method: "Order", + Request: QueryOrderRequest, + Response: QueryOrderResponse, +} as const; + +/** + * Orders queries creator orders. + * + * @generated from rpc coreum.dex.v1.Query.Orders + */ +export const QueryOrdersService = { + typeName: TYPE_NAME, + method: "Orders", + Request: QueryOrdersRequest, + Response: QueryOrdersResponse, +} as const; + +/** + * OrderBooks queries order books. + * + * @generated from rpc coreum.dex.v1.Query.OrderBooks + */ +export const QueryOrderBooksService = { + typeName: TYPE_NAME, + method: "OrderBooks", + Request: QueryOrderBooksRequest, + Response: QueryOrderBooksResponse, +} as const; + +/** + * OrderBookParams queries order book params. + * + * @generated from rpc coreum.dex.v1.Query.OrderBookParams + */ +export const QueryOrderBookParamsService = { + typeName: TYPE_NAME, + method: "OrderBookParams", + Request: QueryOrderBookParamsRequest, + Response: QueryOrderBookParamsResponse, +} as const; + +/** + * OrderBookOrders queries order book orders. + * + * @generated from rpc coreum.dex.v1.Query.OrderBookOrders + */ +export const QueryOrderBookOrdersService = { + typeName: TYPE_NAME, + method: "OrderBookOrders", + Request: QueryOrderBookOrdersRequest, + Response: QueryOrderBookOrdersResponse, +} as const; + +/** + * AccountDenomOrdersCount queries account denom orders count. + * + * @generated from rpc coreum.dex.v1.Query.AccountDenomOrdersCount + */ +export const QueryAccountDenomOrdersCountService = { + typeName: TYPE_NAME, + method: "AccountDenomOrdersCount", + Request: QueryAccountDenomOrdersCountRequest, + Response: QueryAccountDenomOrdersCountResponse, +} as const; + diff --git a/src/protobufs/coreum/dex/v1/query_pb.ts b/src/protobufs/coreum/dex/v1/query_pb.ts new file mode 100644 index 00000000..8911c69a --- /dev/null +++ b/src/protobufs/coreum/dex/v1/query_pb.ts @@ -0,0 +1,661 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/query.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Order, OrderBookData, Side } from "./order_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/dex parameters. + * + * @generated from message coreum.dex.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/dex parameters. + * + * @generated from message coreum.dex.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: coreum.dex.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryOrderRequest defines the request type for the `Order` query. + * + * @generated from message coreum.dex.v1.QueryOrderRequest + */ +export class QueryOrderRequest extends Message { + /** + * creator is order creator's account. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * id is order ID. + * + * we don't use the gogoproto.customname here since the google.api.http ignores it and generates invalid code. + * + * @generated from field: string id = 2; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderRequest { + return new QueryOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderRequest { + return new QueryOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderRequest { + return new QueryOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderRequest | PlainMessage | undefined, b: QueryOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderRequest, a, b); + } +} + +/** + * QueryOrderRequestResponse defines the response type for the `Order` query. + * + * @generated from message coreum.dex.v1.QueryOrderResponse + */ +export class QueryOrderResponse extends Message { + /** + * @generated from field: coreum.dex.v1.Order order = 1; + */ + order?: Order; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: Order }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderResponse { + return new QueryOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderResponse { + return new QueryOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderResponse { + return new QueryOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderResponse | PlainMessage | undefined, b: QueryOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderResponse, a, b); + } +} + +/** + * QueryOrdersRequest defines the request type for the `Orders` query. + * + * @generated from message coreum.dex.v1.QueryOrdersRequest + */ +export class QueryOrdersRequest extends Message { + /** + * creator is order creator's account. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrdersRequest { + return new QueryOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrdersRequest { + return new QueryOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrdersRequest { + return new QueryOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrdersRequest | PlainMessage | undefined, b: QueryOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrdersRequest, a, b); + } +} + +/** + * QueryOrdersRequestResponse defines the response type for the `Order` query. + * + * @generated from message coreum.dex.v1.QueryOrdersResponse + */ +export class QueryOrdersResponse extends Message { + /** + * @generated from field: repeated coreum.dex.v1.Order orders = 1; + */ + orders: Order[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: Order, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrdersResponse { + return new QueryOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrdersResponse { + return new QueryOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrdersResponse { + return new QueryOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrdersResponse | PlainMessage | undefined, b: QueryOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrdersResponse, a, b); + } +} + +/** + * QueryOrderBooksRequest defines the request type for the `OrderBooks` query. + * + * @generated from message coreum.dex.v1.QueryOrderBooksRequest + */ +export class QueryOrderBooksRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBooksRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBooksRequest { + return new QueryOrderBooksRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBooksRequest { + return new QueryOrderBooksRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBooksRequest { + return new QueryOrderBooksRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBooksRequest | PlainMessage | undefined, b: QueryOrderBooksRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBooksRequest, a, b); + } +} + +/** + * QueryOrderBooksResponse defines the response type for the `OrderBooks` query. + * + * @generated from message coreum.dex.v1.QueryOrderBooksResponse + */ +export class QueryOrderBooksResponse extends Message { + /** + * @generated from field: repeated coreum.dex.v1.OrderBookData order_books = 1; + */ + orderBooks: OrderBookData[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBooksResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_books", kind: "message", T: OrderBookData, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBooksResponse { + return new QueryOrderBooksResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBooksResponse { + return new QueryOrderBooksResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBooksResponse { + return new QueryOrderBooksResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBooksResponse | PlainMessage | undefined, b: QueryOrderBooksResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBooksResponse, a, b); + } +} + +/** + * QueryOrderBookParamsRequest defines the request type for the `OrderBookParams` query. + * + * @generated from message coreum.dex.v1.QueryOrderBookParamsRequest + */ +export class QueryOrderBookParamsRequest extends Message { + /** + * base_denom is base order book denom. + * + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * quote_denom is quote order book denom + * + * @generated from field: string quote_denom = 2; + */ + quoteDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBookParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBookParamsRequest { + return new QueryOrderBookParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBookParamsRequest { + return new QueryOrderBookParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBookParamsRequest { + return new QueryOrderBookParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBookParamsRequest | PlainMessage | undefined, b: QueryOrderBookParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBookParamsRequest, a, b); + } +} + +/** + * QueryOrderBookParamsResponse defines the response type for the `OrderBookParams` query. + * + * @generated from message coreum.dex.v1.QueryOrderBookParamsResponse + */ +export class QueryOrderBookParamsResponse extends Message { + /** + * price_tick is the minimum price movement an asset price can make, either upward or downward. + * + * @generated from field: string price_tick = 1; + */ + priceTick = ""; + + /** + * quantity_step is the the smallest allowable step for the base asset inside a market. + * + * @generated from field: string quantity_step = 2; + */ + quantityStep = ""; + + /** + * base_denom_unified_ref_amount is needed to define price tick & quantity step of base denom + * + * @generated from field: string base_denom_unified_ref_amount = 3; + */ + baseDenomUnifiedRefAmount = ""; + + /** + * quote_denom_unified_ref_amount is needed to define price tick & quantity step of quote denom + * + * @generated from field: string quote_denom_unified_ref_amount = 4; + */ + quoteDenomUnifiedRefAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBookParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price_tick", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity_step", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "base_denom_unified_ref_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quote_denom_unified_ref_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBookParamsResponse { + return new QueryOrderBookParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBookParamsResponse { + return new QueryOrderBookParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBookParamsResponse { + return new QueryOrderBookParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBookParamsResponse | PlainMessage | undefined, b: QueryOrderBookParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBookParamsResponse, a, b); + } +} + +/** + * QueryOrderBookOrdersRequest defines the request type for the `OrderBookOrders` query. + * + * @generated from message coreum.dex.v1.QueryOrderBookOrdersRequest + */ +export class QueryOrderBookOrdersRequest extends Message { + /** + * base_denom is base order denom. + * + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * quote_denom is quote order denom + * + * @generated from field: string quote_denom = 2; + */ + quoteDenom = ""; + + /** + * side is order side. + * + * @generated from field: coreum.dex.v1.Side side = 3; + */ + side = Side.UNSPECIFIED; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBookOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "side", kind: "enum", T: proto3.getEnumType(Side) }, + { no: 4, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBookOrdersRequest { + return new QueryOrderBookOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBookOrdersRequest { + return new QueryOrderBookOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBookOrdersRequest { + return new QueryOrderBookOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBookOrdersRequest | PlainMessage | undefined, b: QueryOrderBookOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBookOrdersRequest, a, b); + } +} + +/** + * QueryOrderBookOrdersResponse defines the response type for the `OrderBookOrders` query. + * + * @generated from message coreum.dex.v1.QueryOrderBookOrdersResponse + */ +export class QueryOrderBookOrdersResponse extends Message { + /** + * @generated from field: repeated coreum.dex.v1.Order orders = 1; + */ + orders: Order[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryOrderBookOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: Order, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderBookOrdersResponse { + return new QueryOrderBookOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderBookOrdersResponse { + return new QueryOrderBookOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderBookOrdersResponse { + return new QueryOrderBookOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderBookOrdersResponse | PlainMessage | undefined, b: QueryOrderBookOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderBookOrdersResponse, a, b); + } +} + +/** + * QueryAccountDenomOrdersCountRequest defines the request type for the `AccountDenomOrdersCount` query. + * + * @generated from message coreum.dex.v1.QueryAccountDenomOrdersCountRequest + */ +export class QueryAccountDenomOrdersCountRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryAccountDenomOrdersCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountDenomOrdersCountRequest { + return new QueryAccountDenomOrdersCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountDenomOrdersCountRequest { + return new QueryAccountDenomOrdersCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountDenomOrdersCountRequest { + return new QueryAccountDenomOrdersCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountDenomOrdersCountRequest | PlainMessage | undefined, b: QueryAccountDenomOrdersCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountDenomOrdersCountRequest, a, b); + } +} + +/** + * QueryAccountDenomOrdersCountResponse defines the response type for the `AccountDenomOrdersCount` query. + * + * @generated from message coreum.dex.v1.QueryAccountDenomOrdersCountResponse + */ +export class QueryAccountDenomOrdersCountResponse extends Message { + /** + * @generated from field: uint64 count = 1; + */ + count = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.QueryAccountDenomOrdersCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountDenomOrdersCountResponse { + return new QueryAccountDenomOrdersCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountDenomOrdersCountResponse { + return new QueryAccountDenomOrdersCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountDenomOrdersCountResponse { + return new QueryAccountDenomOrdersCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountDenomOrdersCountResponse | PlainMessage | undefined, b: QueryAccountDenomOrdersCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountDenomOrdersCountResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/dex/v1/tx_cosmes.ts b/src/protobufs/coreum/dex/v1/tx_cosmes.ts new file mode 100644 index 00000000..eba41a19 --- /dev/null +++ b/src/protobufs/coreum/dex/v1/tx_cosmes.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/dex/v1/tx.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EmptyResponse, MsgCancelOrder, MsgCancelOrdersByDenom, MsgPlaceOrder, MsgUpdateParams } from "./tx_pb.js"; + +const TYPE_NAME = "coreum.dex.v1.Msg"; + +/** + * UpdateParams is a governance operation to modify the parameters of the module. + * NOTE: all parameters must be provided. + * + * @generated from rpc coreum.dex.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: EmptyResponse, +} as const; + +/** + * PlaceOrder place an order on orderbook. + * + * @generated from rpc coreum.dex.v1.Msg.PlaceOrder + */ +export const MsgPlaceOrderService = { + typeName: TYPE_NAME, + method: "PlaceOrder", + Request: MsgPlaceOrder, + Response: EmptyResponse, +} as const; + +/** + * CancelOrder cancels an order in the orderbook. + * + * @generated from rpc coreum.dex.v1.Msg.CancelOrder + */ +export const MsgCancelOrderService = { + typeName: TYPE_NAME, + method: "CancelOrder", + Request: MsgCancelOrder, + Response: EmptyResponse, +} as const; + +/** + * CancelOrdersByDenom cancels all orders by denom and account. + * + * @generated from rpc coreum.dex.v1.Msg.CancelOrdersByDenom + */ +export const MsgCancelOrdersByDenomService = { + typeName: TYPE_NAME, + method: "CancelOrdersByDenom", + Request: MsgCancelOrdersByDenom, + Response: EmptyResponse, +} as const; + diff --git a/src/protobufs/coreum/dex/v1/tx_pb.ts b/src/protobufs/coreum/dex/v1/tx_pb.ts new file mode 100644 index 00000000..8abe9016 --- /dev/null +++ b/src/protobufs/coreum/dex/v1/tx_pb.ts @@ -0,0 +1,303 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/dex/v1/tx.proto (package coreum.dex.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { GoodTil, OrderType, Side, TimeInForce } from "./order_pb.js"; + +/** + * @generated from message coreum.dex.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: coreum.dex.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgPlaceOrder defines message to place an order on orderbook. + * + * @generated from message coreum.dex.v1.MsgPlaceOrder + */ +export class MsgPlaceOrder extends Message { + /** + * sender is order creator address. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * type is order type. + * + * @generated from field: coreum.dex.v1.OrderType type = 2; + */ + type = OrderType.UNSPECIFIED; + + /** + * id is unique order ID. + * + * @generated from field: string id = 3; + */ + id = ""; + + /** + * base_denom is base order denom. + * + * @generated from field: string base_denom = 4; + */ + baseDenom = ""; + + /** + * quote_denom is quote order denom + * + * @generated from field: string quote_denom = 5; + */ + quoteDenom = ""; + + /** + * price is value of one unit of the base_denom expressed in terms of the quote_denom. + * + * @generated from field: string price = 6; + */ + price = ""; + + /** + * quantity is amount of the base base_denom being traded. + * + * @generated from field: string quantity = 7; + */ + quantity = ""; + + /** + * side is order side. + * + * @generated from field: coreum.dex.v1.Side side = 8; + */ + side = Side.UNSPECIFIED; + + /** + * good_til is order good til + * + * @generated from field: coreum.dex.v1.GoodTil good_til = 9; + */ + goodTil?: GoodTil; + + /** + * time_in_force is order time in force + * + * @generated from field: coreum.dex.v1.TimeInForce time_in_force = 10; + */ + timeInForce = TimeInForce.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.MsgPlaceOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "side", kind: "enum", T: proto3.getEnumType(Side) }, + { no: 9, name: "good_til", kind: "message", T: GoodTil }, + { no: 10, name: "time_in_force", kind: "enum", T: proto3.getEnumType(TimeInForce) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPlaceOrder { + return new MsgPlaceOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPlaceOrder { + return new MsgPlaceOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPlaceOrder { + return new MsgPlaceOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgPlaceOrder | PlainMessage | undefined, b: MsgPlaceOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPlaceOrder, a, b); + } +} + +/** + * MsgCancelOrder defines message to cancel the order in the orderbook. + * + * @generated from message coreum.dex.v1.MsgCancelOrder + */ +export class MsgCancelOrder extends Message { + /** + * sender is order creator address. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * id is unique order ID. + * + * @generated from field: string id = 2; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.MsgCancelOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelOrder | PlainMessage | undefined, b: MsgCancelOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelOrder, a, b); + } +} + +/** + * MsgCancelOrdersByDenom defines message to cancel all orders by denom and account. + * + * @generated from message coreum.dex.v1.MsgCancelOrdersByDenom + */ +export class MsgCancelOrdersByDenom extends Message { + /** + * sender is order creator address. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * account is order creator address. + * + * @generated from field: string account = 2; + */ + account = ""; + + /** + * denom is orders denom. + * + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.MsgCancelOrdersByDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelOrdersByDenom { + return new MsgCancelOrdersByDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelOrdersByDenom { + return new MsgCancelOrdersByDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelOrdersByDenom { + return new MsgCancelOrdersByDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelOrdersByDenom | PlainMessage | undefined, b: MsgCancelOrdersByDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelOrdersByDenom, a, b); + } +} + +/** + * @generated from message coreum.dex.v1.EmptyResponse + */ +export class EmptyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.dex.v1.EmptyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyResponse { + return new EmptyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJsonString(jsonString, options); + } + + static equals(a: EmptyResponse | PlainMessage | undefined, b: EmptyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/feemodel/v1/genesis_pb.ts b/src/protobufs/coreum/feemodel/v1/genesis_pb.ts new file mode 100644 index 00000000..2abdb5b1 --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/genesis_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/genesis.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message coreum.feemodel.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: coreum.feemodel.v1.Params params = 1; + */ + params?: Params; + + /** + * min_gas_price is the current minimum gas price required by the chain. + * + * @generated from field: cosmos.base.v1beta1.DecCoin min_gas_price = 2; + */ + minGasPrice?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "min_gas_price", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/coreum/feemodel/v1/params_pb.ts b/src/protobufs/coreum/feemodel/v1/params_pb.ts new file mode 100644 index 00000000..cfad2391 --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/params_pb.ts @@ -0,0 +1,148 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/params.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * ModelParams define fee model params. + * There are four regions on the fee model curve + * - between 0 and "long average block gas" where gas price goes down exponentially from InitialGasPrice to gas price with maximum discount (InitialGasPrice * (1 - MaxDiscount)) + * - between "long average block gas" and EscalationStartBlockGas (EscalationStartBlockGas = MaxBlockGas * EscalationStartFraction) where we offer gas price with maximum discount all the time + * - between EscalationStartBlockGas (EscalationStartBlockGas = MaxBlockGas * EscalationStartFraction) and MaxBlockGas where price goes up rapidly (being an output of a power function) from gas price with maximum discount to MaxGasPrice (MaxGasPrice = InitialGasPrice * MaxGasMultiplier) + * - above MaxBlockGas (if it happens for any reason) where price is equal to MaxGasPrice (MaxGasPrice = InitialGasPrice * MaxGasMultiplier) + * + * The input (x value) for that function is calculated by taking short block gas average. + * Price (y value) being an output of the fee model is used as the minimum gas price for next block. + * + * @generated from message coreum.feemodel.v1.ModelParams + */ +export class ModelParams extends Message { + /** + * initial_gas_price is used when block gas short average is 0. It happens when there are no transactions being broadcasted. This value is also used to initialize gas price on brand-new chain. + * + * @generated from field: string initial_gas_price = 1; + */ + initialGasPrice = ""; + + /** + * max_gas_price_multiplier is used to compute max_gas_price (max_gas_price = initial_gas_price * max_gas_price_multiplier). Max gas price is charged when block gas short average is greater than or equal to MaxBlockGas. This value is used to limit gas price escalation to avoid having possible infinity GasPrice value otherwise. + * + * @generated from field: string max_gas_price_multiplier = 2; + */ + maxGasPriceMultiplier = ""; + + /** + * max_discount is th maximum discount we offer on top of initial gas price if short average block gas is between long average block gas and escalation start block gas. + * + * @generated from field: string max_discount = 3; + */ + maxDiscount = ""; + + /** + * escalation_start_fraction defines fraction of max block gas usage where gas price escalation starts if short average block gas is higher than this value. + * + * @generated from field: string escalation_start_fraction = 4; + */ + escalationStartFraction = ""; + + /** + * max_block_gas sets the maximum capacity of block. This is enforced on tendermint level in genesis configuration. Once short average block gas goes above this value, gas price is a flat line equal to MaxGasPrice. + * + * @generated from field: int64 max_block_gas = 5; + */ + maxBlockGas = protoInt64.zero; + + /** + * short_ema_block_length defines inertia for short average long gas in EMA model. The equation is: NewAverage = ((ShortAverageBlockLength - 1)*PreviousAverage + GasUsedByCurrentBlock) / ShortAverageBlockLength + * The value might be interpreted as the number of blocks which are taken to calculate the average. It would be exactly like that in SMA model, in EMA this is an approximation. + * + * @generated from field: uint32 short_ema_block_length = 6; + */ + shortEmaBlockLength = 0; + + /** + * long_ema_block_length defines inertia for long average block gas in EMA model. The equation is: NewAverage = ((LongAverageBlockLength - 1)*PreviousAverage + GasUsedByCurrentBlock) / LongAverageBlockLength + * The value might be interpreted as the number of blocks which are taken to calculate the average. It would be exactly like that in SMA model, in EMA this is an approximation. + * + * @generated from field: uint32 long_ema_block_length = 7; + */ + longEmaBlockLength = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.ModelParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "initial_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_gas_price_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "max_discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "escalation_start_fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_block_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "short_ema_block_length", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "long_ema_block_length", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModelParams { + return new ModelParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModelParams { + return new ModelParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModelParams { + return new ModelParams().fromJsonString(jsonString, options); + } + + static equals(a: ModelParams | PlainMessage | undefined, b: ModelParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ModelParams, a, b); + } +} + +/** + * Params store gov manageable feemodel parameters. + * + * @generated from message coreum.feemodel.v1.Params + */ +export class Params extends Message { + /** + * model is a fee model params. + * + * @generated from field: coreum.feemodel.v1.ModelParams model = 1; + */ + model?: ModelParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "model", kind: "message", T: ModelParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/coreum/feemodel/v1/query_cosmes.ts b/src/protobufs/coreum/feemodel/v1/query_cosmes.ts new file mode 100644 index 00000000..d8cc7dd3 --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/query.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryMinGasPriceRequest, QueryMinGasPriceResponse, QueryParamsRequest, QueryParamsResponse, QueryRecommendedGasPriceRequest, QueryRecommendedGasPriceResponse } from "./query_pb.js"; + +const TYPE_NAME = "coreum.feemodel.v1.Query"; + +/** + * MinGasPrice queries the current minimum gas price required by the network. + * + * @generated from rpc coreum.feemodel.v1.Query.MinGasPrice + */ +export const QueryMinGasPriceService = { + typeName: TYPE_NAME, + method: "MinGasPrice", + Request: QueryMinGasPriceRequest, + Response: QueryMinGasPriceResponse, +} as const; + +/** + * RecommendedGasPrice queries the recommended gas price for the next n blocks. + * + * @generated from rpc coreum.feemodel.v1.Query.RecommendedGasPrice + */ +export const QueryRecommendedGasPriceService = { + typeName: TYPE_NAME, + method: "RecommendedGasPrice", + Request: QueryRecommendedGasPriceRequest, + Response: QueryRecommendedGasPriceResponse, +} as const; + +/** + * Params queries the parameters of x/feemodel module. + * + * @generated from rpc coreum.feemodel.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/coreum/feemodel/v1/query_pb.ts b/src/protobufs/coreum/feemodel/v1/query_pb.ts new file mode 100644 index 00000000..3f400fc4 --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/query_pb.ts @@ -0,0 +1,242 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/query.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * QueryMinGasPriceRequest is the request type for the Query/MinGasPrice RPC method. + * + * @generated from message coreum.feemodel.v1.QueryMinGasPriceRequest + */ +export class QueryMinGasPriceRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryMinGasPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinGasPriceRequest { + return new QueryMinGasPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinGasPriceRequest { + return new QueryMinGasPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinGasPriceRequest { + return new QueryMinGasPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinGasPriceRequest | PlainMessage | undefined, b: QueryMinGasPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinGasPriceRequest, a, b); + } +} + +/** + * QueryMinGasPriceResponse is the response type for the Query/MinGasPrice RPC method. + * + * @generated from message coreum.feemodel.v1.QueryMinGasPriceResponse + */ +export class QueryMinGasPriceResponse extends Message { + /** + * min_gas_price is the current minimum gas price required by the network. + * + * @generated from field: cosmos.base.v1beta1.DecCoin min_gas_price = 1; + */ + minGasPrice?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryMinGasPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_gas_price", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinGasPriceResponse { + return new QueryMinGasPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinGasPriceResponse { + return new QueryMinGasPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinGasPriceResponse { + return new QueryMinGasPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinGasPriceResponse | PlainMessage | undefined, b: QueryMinGasPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinGasPriceResponse, a, b); + } +} + +/** + * @generated from message coreum.feemodel.v1.QueryRecommendedGasPriceRequest + */ +export class QueryRecommendedGasPriceRequest extends Message { + /** + * @generated from field: uint32 after_blocks = 1; + */ + afterBlocks = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryRecommendedGasPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "after_blocks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRecommendedGasPriceRequest { + return new QueryRecommendedGasPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRecommendedGasPriceRequest { + return new QueryRecommendedGasPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRecommendedGasPriceRequest { + return new QueryRecommendedGasPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRecommendedGasPriceRequest | PlainMessage | undefined, b: QueryRecommendedGasPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRecommendedGasPriceRequest, a, b); + } +} + +/** + * @generated from message coreum.feemodel.v1.QueryRecommendedGasPriceResponse + */ +export class QueryRecommendedGasPriceResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.DecCoin low = 1; + */ + low?: DecCoin; + + /** + * @generated from field: cosmos.base.v1beta1.DecCoin med = 2; + */ + med?: DecCoin; + + /** + * @generated from field: cosmos.base.v1beta1.DecCoin high = 3; + */ + high?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryRecommendedGasPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "low", kind: "message", T: DecCoin }, + { no: 2, name: "med", kind: "message", T: DecCoin }, + { no: 3, name: "high", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRecommendedGasPriceResponse { + return new QueryRecommendedGasPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRecommendedGasPriceResponse { + return new QueryRecommendedGasPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRecommendedGasPriceResponse { + return new QueryRecommendedGasPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRecommendedGasPriceResponse | PlainMessage | undefined, b: QueryRecommendedGasPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRecommendedGasPriceResponse, a, b); + } +} + +/** + * QueryParamsRequest defines the request type for querying x/feemodel parameters. + * + * @generated from message coreum.feemodel.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/feemodel parameters. + * + * @generated from message coreum.feemodel.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: coreum.feemodel.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/coreum/feemodel/v1/tx_cosmes.ts b/src/protobufs/coreum/feemodel/v1/tx_cosmes.ts new file mode 100644 index 00000000..5b6f940a --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/tx_cosmes.ts @@ -0,0 +1,22 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/tx.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EmptyResponse, MsgUpdateParams } from "./tx_pb.js"; + +const TYPE_NAME = "coreum.feemodel.v1.Msg"; + +/** + * UpdateParams is a governance operation which allows fee models params to be modified. + * NOTE: All parmas must be provided. + * + * @generated from rpc coreum.feemodel.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: EmptyResponse, +} as const; + diff --git a/src/protobufs/coreum/feemodel/v1/tx_pb.ts b/src/protobufs/coreum/feemodel/v1/tx_pb.ts new file mode 100644 index 00000000..31a4246f --- /dev/null +++ b/src/protobufs/coreum/feemodel/v1/tx_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file coreum/feemodel/v1/tx.proto (package coreum.feemodel.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message coreum.feemodel.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: coreum.feemodel.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message coreum.feemodel.v1.EmptyResponse + */ +export class EmptyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "coreum.feemodel.v1.EmptyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyResponse { + return new EmptyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyResponse { + return new EmptyResponse().fromJsonString(jsonString, options); + } + + static equals(a: EmptyResponse | PlainMessage | undefined, b: EmptyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts b/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts index a0c4c189..171e40b8 100644 --- a/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts @@ -63,6 +63,33 @@ export class Module extends Message { */ overrideStoreKeys: StoreKeyConfig[] = []; + /** + * order_migrations defines the order in which module migrations are performed. + * If this is left empty, it uses the default migration order. + * https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder + * + * @generated from field: repeated string order_migrations = 7; + */ + orderMigrations: string[] = []; + + /** + * precommiters specifies the module names of the precommiters + * to call in the order in which they should be called. If this is left empty + * no precommit function will be registered. + * + * @generated from field: repeated string precommiters = 8; + */ + precommiters: string[] = []; + + /** + * prepare_check_staters specifies the module names of the prepare_check_staters + * to call in the order in which they should be called. If this is left empty + * no preparecheckstate function will be registered. + * + * @generated from field: repeated string prepare_check_staters = 9; + */ + prepareCheckStaters: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -77,6 +104,9 @@ export class Module extends Message { { no: 4, name: "init_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "export_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "override_store_keys", kind: "message", T: StoreKeyConfig, repeated: true }, + { no: 7, name: "order_migrations", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "precommiters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "prepare_check_staters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/app/v1alpha1/module_pb.ts b/src/protobufs/cosmos/app/v1alpha1/module_pb.ts index b87de347..4f767ee9 100644 --- a/src/protobufs/cosmos/app/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/app/v1alpha1/module_pb.ts @@ -102,7 +102,7 @@ export class PackageReference extends Message { * * When a new version of a module is released and items are added to existing * .proto files, these definitions should contain comments of the form - * "Since Revision N" where N is an integer revision. + * "Since: Revision N" where N is an integer revision. * * When the module runtime starts up, it will check the pinned proto * image and panic if there are runtime protobuf definitions that are not diff --git a/src/protobufs/cosmos/authz/v1beta1/query_pb.ts b/src/protobufs/cosmos/authz/v1beta1/query_pb.ts index 5c2cb23d..5b3e7b6a 100644 --- a/src/protobufs/cosmos/authz/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/authz/v1beta1/query_pb.ts @@ -217,7 +217,7 @@ export class QueryGranterGrantsResponse extends Message { } /** - * MsgExecResponse defines the Msg/MsgExecResponse response type. + * MsgGrantResponse defines the Msg/MsgGrant response type. * - * @generated from message cosmos.authz.v1beta1.MsgExecResponse + * @generated from message cosmos.authz.v1beta1.MsgGrantResponse */ -export class MsgExecResponse extends Message { - /** - * @generated from field: repeated bytes results = 1; - */ - results: Uint8Array[] = []; - - constructor(data?: PartialMessage) { +export class MsgGrantResponse extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgExecResponse"; + static readonly typeName = "cosmos.authz.v1beta1.MsgGrantResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgGrantResponse { + return new MsgGrantResponse().fromJsonString(jsonString, options); } - static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecResponse, a, b); + static equals(a: MsgGrantResponse | PlainMessage | undefined, b: MsgGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgGrantResponse, a, b); } } @@ -152,35 +146,41 @@ export class MsgExec extends Message { } /** - * MsgGrantResponse defines the Msg/MsgGrant response type. + * MsgExecResponse defines the Msg/MsgExecResponse response type. * - * @generated from message cosmos.authz.v1beta1.MsgGrantResponse + * @generated from message cosmos.authz.v1beta1.MsgExecResponse */ -export class MsgGrantResponse extends Message { - constructor(data?: PartialMessage) { +export class MsgExecResponse extends Message { + /** + * @generated from field: repeated bytes results = 1; + */ + results: Uint8Array[] = []; + + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgGrantResponse"; + static readonly typeName = "cosmos.authz.v1beta1.MsgExecResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "results", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { + return new MsgExecResponse().fromJsonString(jsonString, options); } - static equals(a: MsgGrantResponse | PlainMessage | undefined, b: MsgGrantResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrantResponse, a, b); + static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecResponse, a, b); } } diff --git a/src/protobufs/cosmos/autocli/v1/options_pb.ts b/src/protobufs/cosmos/autocli/v1/options_pb.ts index 892869fb..78382f73 100644 --- a/src/protobufs/cosmos/autocli/v1/options_pb.ts +++ b/src/protobufs/cosmos/autocli/v1/options_pb.ts @@ -13,14 +13,14 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class ModuleOptions extends Message { /** - * tx describes the tx command for the module. + * tx describes the tx commands for the module. * * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor tx = 1; */ tx?: ServiceCommandDescriptor; /** - * query describes the tx command for the module. + * query describes the queries commands for the module. * * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor query = 2; */ @@ -296,13 +296,6 @@ export class FlagOptions extends Message { */ defaultValue = ""; - /** - * default value is the default value as text if the flag is used without any value. - * - * @generated from field: string no_opt_default_value = 5; - */ - noOptDefaultValue = ""; - /** * deprecated is the usage text to show if this flag is deprecated. * @@ -336,7 +329,6 @@ export class FlagOptions extends Message { { no: 2, name: "shorthand", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "usage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "no_opt_default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "shorthand_deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, diff --git a/src/protobufs/cosmos/bank/module/v1/module_pb.ts b/src/protobufs/cosmos/bank/module/v1/module_pb.ts index f76f42f8..55d36b8b 100644 --- a/src/protobufs/cosmos/bank/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/bank/module/v1/module_pb.ts @@ -13,8 +13,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class Module extends Message { /** - * blocked_module_accounts configures exceptional module accounts which should be blocked from receiving funds. - * If left empty it defaults to the list of account names supplied in the auth module configuration as + * blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving + * funds. If left empty it defaults to the list of account names supplied in the auth module configuration as * module_account_permissions * * @generated from field: repeated string blocked_module_accounts_override = 1; @@ -28,6 +28,16 @@ export class Module extends Message { */ authority = ""; + /** + * restrictions_order specifies the order of send restrictions and should be + * a list of module names which provide a send restriction instance. If no + * order is provided, then restrictions will be applied in alphabetical order + * of module names. + * + * @generated from field: repeated string restrictions_order = 3; + */ + restrictionsOrder: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -38,6 +48,7 @@ export class Module extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "blocked_module_accounts_override", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "restrictions_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts index 4bee1dbb..39de04fb 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; +import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.bank.v1beta1.Query"; @@ -113,7 +113,7 @@ export const QueryParamsService = { } as const; /** - * DenomsMetadata queries the client metadata of a given coin denomination. + * DenomMetadata queries the client metadata of a given coin denomination. * * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadata */ @@ -124,6 +124,18 @@ export const QueryDenomMetadataService = { Response: QueryDenomMetadataResponse, } as const; +/** + * DenomMetadataByQueryString queries the client metadata of a given coin denomination. + * + * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadataByQueryString + */ +export const QueryDenomMetadataByQueryStringService = { + typeName: TYPE_NAME, + method: "DenomMetadataByQueryString", + Request: QueryDenomMetadataByQueryStringRequest, + Response: QueryDenomMetadataByQueryStringResponse, +} as const; + /** * DenomsMetadata queries the client metadata for all registered coin * denominations. @@ -155,6 +167,21 @@ export const QueryDenomOwnersService = { Response: QueryDenomOwnersResponse, } as const; +/** + * DenomOwnersByQuery queries for all account addresses that own a particular token + * denomination. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from rpc cosmos.bank.v1beta1.Query.DenomOwnersByQuery + */ +export const QueryDenomOwnersByQueryService = { + typeName: TYPE_NAME, + method: "DenomOwnersByQuery", + Request: QueryDenomOwnersByQueryRequest, + Response: QueryDenomOwnersByQueryResponse, +} as const; + /** * SendEnabled queries for SendEnabled entries. * diff --git a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts index cc98d6da..1ebe26a9 100644 --- a/src/protobufs/cosmos/bank/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/bank/v1beta1/query_pb.ts @@ -119,6 +119,15 @@ export class QueryAllBalancesRequest extends Message { */ pagination?: PageRequest; + /** + * resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool resolve_denom = 3; + */ + resolveDenom = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -129,6 +138,7 @@ export class QueryAllBalancesRequest extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, + { no: 3, name: "resolve_denom", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBalancesRequest { @@ -616,6 +626,8 @@ export class QueryParamsRequest extends Message { */ export class QueryParamsResponse extends Message { /** + * params provides the parameters of the bank module. + * * @generated from field: cosmos.bank.v1beta1.Params params = 1; */ params?: Params; @@ -822,6 +834,90 @@ export class QueryDenomMetadataResponse extends Message { + /** + * denom is the coin denom to query the metadata for. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringRequest { + return new QueryDenomMetadataByQueryStringRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringRequest, a, b); + } +} + +/** + * QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC + * method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. + * + * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse + */ +export class QueryDenomMetadataByQueryStringResponse extends Message { + /** + * metadata describes and provides all the client information for the requested token. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 1; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringResponse { + return new QueryDenomMetadataByQueryStringResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMetadataByQueryStringResponse, a, b); + } +} + /** * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, * which queries for a paginated set of all account holders of a particular @@ -975,6 +1071,108 @@ export class QueryDenomOwnersResponse extends Message } } +/** + * QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, + * which queries for a paginated set of all account holders of a particular + * denomination. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest + */ +export class QueryDenomOwnersByQueryRequest extends Message { + /** + * denom defines the coin denomination to query all account holders for. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryRequest { + return new QueryDenomOwnersByQueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomOwnersByQueryRequest | PlainMessage | undefined, b: QueryDenomOwnersByQueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomOwnersByQueryRequest, a, b); + } +} + +/** + * QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. + * + * Since: cosmos-sdk 0.50.3 + * + * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse + */ +export class QueryDenomOwnersByQueryResponse extends Message { + /** + * @generated from field: repeated cosmos.bank.v1beta1.DenomOwner denom_owners = 1; + */ + denomOwners: DenomOwner[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_owners", kind: "message", T: DenomOwner, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryResponse { + return new QueryDenomOwnersByQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomOwnersByQueryResponse | PlainMessage | undefined, b: QueryDenomOwnersByQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomOwnersByQueryResponse, a, b); + } +} + /** * QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. * diff --git a/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts b/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts index dd25909a..fd428f5c 100644 --- a/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts @@ -275,6 +275,8 @@ export class MsgUpdateParamsResponse extends Message { */ export class MsgSetSendEnabled extends Message { /** + * authority is the address that controls the module. + * * @generated from field: string authority = 1; */ authority = ""; diff --git a/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts b/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts index 63c6b3ac..021d6c3d 100644 --- a/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts +++ b/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts @@ -6,6 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Event } from "../../../../tendermint/abci/types_pb.js"; +import { Block } from "../../../../tendermint/types/block_pb.js"; /** * TxResponse defines a structure containing relevant tx data and metadata. The @@ -647,3 +648,84 @@ export class SearchTxsResult extends Message { } } +/** + * SearchBlocksResult defines a structure for querying blocks pageable + * + * @generated from message cosmos.base.abci.v1beta1.SearchBlocksResult + */ +export class SearchBlocksResult extends Message { + /** + * Count of all blocks + * + * @generated from field: int64 total_count = 1; + */ + totalCount = protoInt64.zero; + + /** + * Count of blocks in current page + * + * @generated from field: int64 count = 2; + */ + count = protoInt64.zero; + + /** + * Index of current page, start from 1 + * + * @generated from field: int64 page_number = 3; + */ + pageNumber = protoInt64.zero; + + /** + * Count of total pages + * + * @generated from field: int64 page_total = 4; + */ + pageTotal = protoInt64.zero; + + /** + * Max count blocks per page + * + * @generated from field: int64 limit = 5; + */ + limit = protoInt64.zero; + + /** + * List of blocks in current page + * + * @generated from field: repeated tendermint.types.Block blocks = 6; + */ + blocks: Block[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.base.abci.v1beta1.SearchBlocksResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "page_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "page_total", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "blocks", kind: "message", T: Block, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchBlocksResult { + return new SearchBlocksResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchBlocksResult { + return new SearchBlocksResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchBlocksResult { + return new SearchBlocksResult().fromJsonString(jsonString, options); + } + + static equals(a: SearchBlocksResult | PlainMessage | undefined, b: SearchBlocksResult | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchBlocksResult, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts index 612b6c5f..c8e0711b 100644 --- a/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { ConfigRequest, ConfigResponse } from "./query_pb.js"; +import { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.base.node.v1beta1.Service"; @@ -19,3 +19,15 @@ export const ServiceConfigService = { Response: ConfigResponse, } as const; +/** + * Status queries for the node status. + * + * @generated from rpc cosmos.base.node.v1beta1.Service.Status + */ +export const ServiceStatusService = { + typeName: TYPE_NAME, + method: "Status", + Request: StatusRequest, + Response: StatusResponse, +} as const; + diff --git a/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts b/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts index a78eff5a..fb7ce52b 100644 --- a/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts +++ b/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts @@ -4,7 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; /** * ConfigRequest defines the request structure for the Config gRPC query. @@ -50,6 +50,21 @@ export class ConfigResponse extends Message { */ minimumGasPrice = ""; + /** + * @generated from field: string pruning_keep_recent = 2; + */ + pruningKeepRecent = ""; + + /** + * @generated from field: string pruning_interval = 3; + */ + pruningInterval = ""; + + /** + * @generated from field: uint64 halt_height = 4; + */ + haltHeight = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -59,6 +74,9 @@ export class ConfigResponse extends Message { static readonly typeName = "cosmos.base.node.v1beta1.ConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "minimum_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pruning_keep_recent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pruning_interval", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "halt_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConfigResponse { @@ -78,3 +96,109 @@ export class ConfigResponse extends Message { } } +/** + * StateRequest defines the request structure for the status of a node. + * + * @generated from message cosmos.base.node.v1beta1.StatusRequest + */ +export class StatusRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.base.node.v1beta1.StatusRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StatusRequest { + return new StatusRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StatusRequest { + return new StatusRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StatusRequest { + return new StatusRequest().fromJsonString(jsonString, options); + } + + static equals(a: StatusRequest | PlainMessage | undefined, b: StatusRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(StatusRequest, a, b); + } +} + +/** + * StateResponse defines the response structure for the status of a node. + * + * @generated from message cosmos.base.node.v1beta1.StatusResponse + */ +export class StatusResponse extends Message { + /** + * earliest block height available in the store + * + * @generated from field: uint64 earliest_store_height = 1; + */ + earliestStoreHeight = protoInt64.zero; + + /** + * current block height + * + * @generated from field: uint64 height = 2; + */ + height = protoInt64.zero; + + /** + * block height timestamp + * + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp?: Timestamp; + + /** + * app hash of the current block + * + * @generated from field: bytes app_hash = 4; + */ + appHash = new Uint8Array(0); + + /** + * validator hash provided by the consensus header + * + * @generated from field: bytes validator_hash = 5; + */ + validatorHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.base.node.v1beta1.StatusResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "earliest_store_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + { no: 4, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "validator_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StatusResponse { + return new StatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StatusResponse { + return new StatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StatusResponse { + return new StatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: StatusResponse | PlainMessage | undefined, b: StatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(StatusResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/v1beta1/coin_pb.ts b/src/protobufs/cosmos/base/v1beta1/coin_pb.ts index c7d7f32b..b0e2dd6d 100644 --- a/src/protobufs/cosmos/base/v1beta1/coin_pb.ts +++ b/src/protobufs/cosmos/base/v1beta1/coin_pb.ts @@ -104,6 +104,7 @@ export class DecCoin extends Message { /** * IntProto defines a Protobuf wrapper around an Int object. + * Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal. * * @generated from message cosmos.base.v1beta1.IntProto */ @@ -143,6 +144,7 @@ export class IntProto extends Message { /** * DecProto defines a Protobuf wrapper around a Dec object. + * Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal. * * @generated from message cosmos.base.v1beta1.DecProto */ diff --git a/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts b/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts deleted file mode 100644 index 89385978..00000000 --- a/src/protobufs/cosmos/capability/v1beta1/capability_pb.ts +++ /dev/null @@ -1,134 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/v1beta1/capability.proto (package cosmos.capability.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Capability defines an implementation of an object capability. The index - * provided to a Capability must be globally unique. - * - * @generated from message cosmos.capability.v1beta1.Capability - */ -export class Capability extends Message { - /** - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.Capability"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Capability { - return new Capability().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Capability { - return new Capability().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Capability { - return new Capability().fromJsonString(jsonString, options); - } - - static equals(a: Capability | PlainMessage | undefined, b: Capability | PlainMessage | undefined): boolean { - return proto3.util.equals(Capability, a, b); - } -} - -/** - * Owner defines a single capability owner. An owner is defined by the name of - * capability and the module name. - * - * @generated from message cosmos.capability.v1beta1.Owner - */ -export class Owner extends Message { - /** - * @generated from field: string module = 1; - */ - module = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.Owner"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Owner { - return new Owner().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Owner { - return new Owner().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Owner { - return new Owner().fromJsonString(jsonString, options); - } - - static equals(a: Owner | PlainMessage | undefined, b: Owner | PlainMessage | undefined): boolean { - return proto3.util.equals(Owner, a, b); - } -} - -/** - * CapabilityOwners defines a set of owners of a single Capability. The set of - * owners must be unique. - * - * @generated from message cosmos.capability.v1beta1.CapabilityOwners - */ -export class CapabilityOwners extends Message { - /** - * @generated from field: repeated cosmos.capability.v1beta1.Owner owners = 1; - */ - owners: Owner[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.CapabilityOwners"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owners", kind: "message", T: Owner, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CapabilityOwners { - return new CapabilityOwners().fromJsonString(jsonString, options); - } - - static equals(a: CapabilityOwners | PlainMessage | undefined, b: CapabilityOwners | PlainMessage | undefined): boolean { - return proto3.util.equals(CapabilityOwners, a, b); - } -} - diff --git a/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts deleted file mode 100644 index 74b878bb..00000000 --- a/src/protobufs/cosmos/capability/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,108 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/capability/v1beta1/genesis.proto (package cosmos.capability.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { CapabilityOwners } from "./capability_pb.js"; - -/** - * GenesisOwners defines the capability owners with their corresponding index. - * - * @generated from message cosmos.capability.v1beta1.GenesisOwners - */ -export class GenesisOwners extends Message { - /** - * index is the index of the capability owner. - * - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - /** - * index_owners are the owners at the given index. - * - * @generated from field: cosmos.capability.v1beta1.CapabilityOwners index_owners = 2; - */ - indexOwners?: CapabilityOwners; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.GenesisOwners"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "index_owners", kind: "message", T: CapabilityOwners }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisOwners { - return new GenesisOwners().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisOwners { - return new GenesisOwners().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisOwners { - return new GenesisOwners().fromJsonString(jsonString, options); - } - - static equals(a: GenesisOwners | PlainMessage | undefined, b: GenesisOwners | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisOwners, a, b); - } -} - -/** - * GenesisState defines the capability module's genesis state. - * - * @generated from message cosmos.capability.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * index is the capability global index. - * - * @generated from field: uint64 index = 1; - */ - index = protoInt64.zero; - - /** - * owners represents a map from index to owners of the capability index - * index key is string to allow amino marshalling. - * - * @generated from field: repeated cosmos.capability.v1beta1.GenesisOwners owners = 2; - */ - owners: GenesisOwners[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.capability.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "owners", kind: "message", T: GenesisOwners, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/src/protobufs/cosmos/circuit/module/v1/module_pb.ts b/src/protobufs/cosmos/circuit/module/v1/module_pb.ts new file mode 100644 index 00000000..52c26669 --- /dev/null +++ b/src/protobufs/cosmos/circuit/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/module/v1/module.proto (package cosmos.circuit.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object of the circuit module. + * + * @generated from message cosmos.circuit.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/cosmos/circuit/v1/query_cosmes.ts b/src/protobufs/cosmos/circuit/v1/query_cosmes.ts new file mode 100644 index 00000000..25248d2a --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { AccountResponse, AccountsResponse, DisabledListResponse, QueryAccountRequest, QueryAccountsRequest, QueryDisabledListRequest } from "./query_pb.js"; + +const TYPE_NAME = "cosmos.circuit.v1.Query"; + +/** + * Account returns account permissions. + * + * @generated from rpc cosmos.circuit.v1.Query.Account + */ +export const QueryAccountService = { + typeName: TYPE_NAME, + method: "Account", + Request: QueryAccountRequest, + Response: AccountResponse, +} as const; + +/** + * Account returns account permissions. + * + * @generated from rpc cosmos.circuit.v1.Query.Accounts + */ +export const QueryAccountsService = { + typeName: TYPE_NAME, + method: "Accounts", + Request: QueryAccountsRequest, + Response: AccountsResponse, +} as const; + +/** + * DisabledList returns a list of disabled message urls + * + * @generated from rpc cosmos.circuit.v1.Query.DisabledList + */ +export const QueryDisabledListService = { + typeName: TYPE_NAME, + method: "DisabledList", + Request: QueryDisabledListRequest, + Response: DisabledListResponse, +} as const; + diff --git a/src/protobufs/cosmos/circuit/v1/query_pb.ts b/src/protobufs/cosmos/circuit/v1/query_pb.ts new file mode 100644 index 00000000..79bf3426 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/query_pb.ts @@ -0,0 +1,248 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { GenesisAccountPermissions, Permissions } from "./types_pb.js"; +import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; + +/** + * QueryAccountRequest is the request type for the Query/Account RPC method. + * + * @generated from message cosmos.circuit.v1.QueryAccountRequest + */ +export class QueryAccountRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountRequest, a, b); + } +} + +/** + * AccountResponse is the response type for the Query/Account RPC method. + * + * @generated from message cosmos.circuit.v1.AccountResponse + */ +export class AccountResponse extends Message { + /** + * @generated from field: cosmos.circuit.v1.Permissions permission = 1; + */ + permission?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.AccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "permission", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountResponse { + return new AccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountResponse { + return new AccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountResponse { + return new AccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: AccountResponse | PlainMessage | undefined, b: AccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountResponse, a, b); + } +} + +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * @generated from message cosmos.circuit.v1.QueryAccountsRequest + */ +export class QueryAccountsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsRequest, a, b); + } +} + +/** + * AccountsResponse is the response type for the Query/Accounts RPC method. + * + * @generated from message cosmos.circuit.v1.AccountsResponse + */ +export class AccountsResponse extends Message { + /** + * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions accounts = 1; + */ + accounts: GenesisAccountPermissions[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.AccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: GenesisAccountPermissions, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountsResponse { + return new AccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountsResponse { + return new AccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountsResponse { + return new AccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: AccountsResponse | PlainMessage | undefined, b: AccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountsResponse, a, b); + } +} + +/** + * QueryDisableListRequest is the request type for the Query/DisabledList RPC method. + * + * @generated from message cosmos.circuit.v1.QueryDisabledListRequest + */ +export class QueryDisabledListRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.QueryDisabledListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDisabledListRequest { + return new QueryDisabledListRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDisabledListRequest | PlainMessage | undefined, b: QueryDisabledListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDisabledListRequest, a, b); + } +} + +/** + * DisabledListResponse is the response type for the Query/DisabledList RPC method. + * + * @generated from message cosmos.circuit.v1.DisabledListResponse + */ +export class DisabledListResponse extends Message { + /** + * @generated from field: repeated string disabled_list = 1; + */ + disabledList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.DisabledListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "disabled_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DisabledListResponse { + return new DisabledListResponse().fromJsonString(jsonString, options); + } + + static equals(a: DisabledListResponse | PlainMessage | undefined, b: DisabledListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DisabledListResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts b/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts new file mode 100644 index 00000000..cb793b68 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAuthorizeCircuitBreaker, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreaker, MsgResetCircuitBreakerResponse, MsgTripCircuitBreaker, MsgTripCircuitBreakerResponse } from "./tx_pb.js"; + +const TYPE_NAME = "cosmos.circuit.v1.Msg"; + +/** + * AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another + * account's circuit breaker permissions. + * + * @generated from rpc cosmos.circuit.v1.Msg.AuthorizeCircuitBreaker + */ +export const MsgAuthorizeCircuitBreakerService = { + typeName: TYPE_NAME, + method: "AuthorizeCircuitBreaker", + Request: MsgAuthorizeCircuitBreaker, + Response: MsgAuthorizeCircuitBreakerResponse, +} as const; + +/** + * TripCircuitBreaker pauses processing of Msg's in the state machine. + * + * @generated from rpc cosmos.circuit.v1.Msg.TripCircuitBreaker + */ +export const MsgTripCircuitBreakerService = { + typeName: TYPE_NAME, + method: "TripCircuitBreaker", + Request: MsgTripCircuitBreaker, + Response: MsgTripCircuitBreakerResponse, +} as const; + +/** + * ResetCircuitBreaker resumes processing of Msg's in the state machine that + * have been been paused using TripCircuitBreaker. + * + * @generated from rpc cosmos.circuit.v1.Msg.ResetCircuitBreaker + */ +export const MsgResetCircuitBreakerService = { + typeName: TYPE_NAME, + method: "ResetCircuitBreaker", + Request: MsgResetCircuitBreaker, + Response: MsgResetCircuitBreakerResponse, +} as const; + diff --git a/src/protobufs/cosmos/circuit/v1/tx_pb.ts b/src/protobufs/cosmos/circuit/v1/tx_pb.ts new file mode 100644 index 00000000..a0f6fb04 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/tx_pb.ts @@ -0,0 +1,290 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Permissions } from "./types_pb.js"; + +/** + * MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker + */ +export class MsgAuthorizeCircuitBreaker extends Message { + /** + * granter is the granter of the circuit breaker permissions and must have + * LEVEL_SUPER_ADMIN. + * + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * grantee is the account authorized with the provided permissions. + * + * @generated from field: string grantee = 2; + */ + grantee = ""; + + /** + * permissions are the circuit breaker permissions that the grantee receives. + * These will overwrite any existing permissions. LEVEL_NONE_UNSPECIFIED can + * be specified to revoke all permissions. + * + * @generated from field: cosmos.circuit.v1.Permissions permissions = 3; + */ + permissions?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "permissions", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreaker { + return new MsgAuthorizeCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeCircuitBreaker | PlainMessage | undefined, b: MsgAuthorizeCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeCircuitBreaker, a, b); + } +} + +/** + * MsgAuthorizeCircuitBreakerResponse defines the Msg/AuthorizeCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse + */ +export class MsgAuthorizeCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreakerResponse { + return new MsgAuthorizeCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined, b: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeCircuitBreakerResponse, a, b); + } +} + +/** + * MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgTripCircuitBreaker + */ +export class MsgTripCircuitBreaker extends Message { + /** + * authority is the account authorized to trip the circuit breaker. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * msg_type_urls specifies a list of type URLs to immediately stop processing. + * IF IT IS LEFT EMPTY, ALL MSG PROCESSING WILL STOP IMMEDIATELY. + * This value is validated against the authority's permissions and if the + * authority does not have permissions to trip the specified msg type URLs + * (or all URLs), the operation will fail. + * + * @generated from field: repeated string msg_type_urls = 2; + */ + msgTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreaker { + return new MsgTripCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgTripCircuitBreaker | PlainMessage | undefined, b: MsgTripCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTripCircuitBreaker, a, b); + } +} + +/** + * MsgTripCircuitBreakerResponse defines the Msg/TripCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgTripCircuitBreakerResponse + */ +export class MsgTripCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreakerResponse { + return new MsgTripCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTripCircuitBreakerResponse | PlainMessage | undefined, b: MsgTripCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTripCircuitBreakerResponse, a, b); + } +} + +/** + * MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type. + * + * @generated from message cosmos.circuit.v1.MsgResetCircuitBreaker + */ +export class MsgResetCircuitBreaker extends Message { + /** + * authority is the account authorized to trip or reset the circuit breaker. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * msg_type_urls specifies a list of Msg type URLs to resume processing. If + * it is left empty all Msg processing for type URLs that the account is + * authorized to trip will resume. + * + * @generated from field: repeated string msg_type_urls = 3; + */ + msgTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreaker { + return new MsgResetCircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: MsgResetCircuitBreaker | PlainMessage | undefined, b: MsgResetCircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResetCircuitBreaker, a, b); + } +} + +/** + * MsgResetCircuitBreakerResponse defines the Msg/ResetCircuitBreaker response type. + * + * @generated from message cosmos.circuit.v1.MsgResetCircuitBreakerResponse + */ +export class MsgResetCircuitBreakerResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreakerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreakerResponse { + return new MsgResetCircuitBreakerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgResetCircuitBreakerResponse | PlainMessage | undefined, b: MsgResetCircuitBreakerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResetCircuitBreakerResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/circuit/v1/types_pb.ts b/src/protobufs/cosmos/circuit/v1/types_pb.ts new file mode 100644 index 00000000..e35b5d05 --- /dev/null +++ b/src/protobufs/cosmos/circuit/v1/types_pb.ts @@ -0,0 +1,198 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/circuit/v1/types.proto (package cosmos.circuit.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Permissions are the permissions that an account has to trip + * or reset the circuit breaker. + * + * @generated from message cosmos.circuit.v1.Permissions + */ +export class Permissions extends Message { + /** + * level is the level of permissions granted to this account. + * + * @generated from field: cosmos.circuit.v1.Permissions.Level level = 1; + */ + level = Permissions_Level.NONE_UNSPECIFIED; + + /** + * limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type + * URLs that the account can trip. It is an error to use limit_type_urls with + * a level other than LEVEL_SOME_MSGS. + * + * @generated from field: repeated string limit_type_urls = 2; + */ + limitTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.Permissions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Permissions_Level) }, + { no: 2, name: "limit_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Permissions { + return new Permissions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Permissions { + return new Permissions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Permissions { + return new Permissions().fromJsonString(jsonString, options); + } + + static equals(a: Permissions | PlainMessage | undefined, b: Permissions | PlainMessage | undefined): boolean { + return proto3.util.equals(Permissions, a, b); + } +} + +/** + * Level is the permission level. + * + * @generated from enum cosmos.circuit.v1.Permissions.Level + */ +export enum Permissions_Level { + /** + * LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit + * breaker permissions. + * + * @generated from enum value: LEVEL_NONE_UNSPECIFIED = 0; + */ + NONE_UNSPECIFIED = 0, + + /** + * LEVEL_SOME_MSGS indicates that the account will have permission to + * trip or reset the circuit breaker for some Msg type URLs. If this level + * is chosen, a non-empty list of Msg type URLs must be provided in + * limit_type_urls. + * + * @generated from enum value: LEVEL_SOME_MSGS = 1; + */ + SOME_MSGS = 1, + + /** + * LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit + * breaker for Msg's of all type URLs. + * + * @generated from enum value: LEVEL_ALL_MSGS = 2; + */ + ALL_MSGS = 2, + + /** + * LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker + * actions and can grant permissions to other accounts. + * + * @generated from enum value: LEVEL_SUPER_ADMIN = 3; + */ + SUPER_ADMIN = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(Permissions_Level) +proto3.util.setEnumType(Permissions_Level, "cosmos.circuit.v1.Permissions.Level", [ + { no: 0, name: "LEVEL_NONE_UNSPECIFIED" }, + { no: 1, name: "LEVEL_SOME_MSGS" }, + { no: 2, name: "LEVEL_ALL_MSGS" }, + { no: 3, name: "LEVEL_SUPER_ADMIN" }, +]); + +/** + * GenesisAccountPermissions is the account permissions for the circuit breaker in genesis + * + * @generated from message cosmos.circuit.v1.GenesisAccountPermissions + */ +export class GenesisAccountPermissions extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.circuit.v1.Permissions permissions = 2; + */ + permissions?: Permissions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.GenesisAccountPermissions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "message", T: Permissions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccountPermissions { + return new GenesisAccountPermissions().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccountPermissions | PlainMessage | undefined, b: GenesisAccountPermissions | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccountPermissions, a, b); + } +} + +/** + * GenesisState is the state that must be provided at genesis. + * + * @generated from message cosmos.circuit.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions account_permissions = 1; + */ + accountPermissions: GenesisAccountPermissions[] = []; + + /** + * @generated from field: repeated string disabled_type_urls = 2; + */ + disabledTypeUrls: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.circuit.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_permissions", kind: "message", T: GenesisAccountPermissions, repeated: true }, + { no: 2, name: "disabled_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/cosmos/consensus/v1/query_cosmes.ts b/src/protobufs/cosmos/consensus/v1/query_cosmes.ts index 03cdc1c9..934b60b2 100644 --- a/src/protobufs/cosmos/consensus/v1/query_cosmes.ts +++ b/src/protobufs/cosmos/consensus/v1/query_cosmes.ts @@ -10,7 +10,7 @@ import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.consensus.v1.Query"; /** - * Params queries the parameters of x/consensus_param module. + * Params queries the parameters of x/consensus module. * * @generated from rpc cosmos.consensus.v1.Query.Params */ diff --git a/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts b/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts index 98a0fd8b..0986f46b 100644 --- a/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts +++ b/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts @@ -10,7 +10,7 @@ import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.consensus.v1.Msg"; /** - * UpdateParams defines a governance operation for updating the x/consensus_param module parameters. + * UpdateParams defines a governance operation for updating the x/consensus module parameters. * The authority is defined in the keeper. * * Since: cosmos-sdk 0.47 diff --git a/src/protobufs/cosmos/consensus/v1/tx_pb.ts b/src/protobufs/cosmos/consensus/v1/tx_pb.ts index 1e0d258e..0352281b 100644 --- a/src/protobufs/cosmos/consensus/v1/tx_pb.ts +++ b/src/protobufs/cosmos/consensus/v1/tx_pb.ts @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import { BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; +import { ABCIParams, BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; /** * MsgUpdateParams is the Msg/UpdateParams request type. @@ -43,6 +43,13 @@ export class MsgUpdateParams extends Message { */ validator?: ValidatorParams; + /** + * Since: cosmos-sdk 0.50 + * + * @generated from field: tendermint.types.ABCIParams abci = 5; + */ + abci?: ABCIParams; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -55,6 +62,7 @@ export class MsgUpdateParams extends Message { { no: 2, name: "block", kind: "message", T: BlockParams }, { no: 3, name: "evidence", kind: "message", T: EvidenceParams }, { no: 4, name: "validator", kind: "message", T: ValidatorParams }, + { no: 5, name: "abci", kind: "message", T: ABCIParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { diff --git a/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts b/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts index eb556c73..a2213a07 100644 --- a/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts +++ b/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts @@ -50,7 +50,7 @@ export class PubKey extends Message { } /** - * Deprecated: PrivKey defines a ed25519 private key. + * PrivKey defines a ed25519 private key. * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. * * @generated from message cosmos.crypto.ed25519.PrivKey diff --git a/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts index 09183a68..c8046eb1 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts @@ -80,7 +80,7 @@ export const QueryDelegationRewardsService = { } as const; /** - * DelegationTotalRewards queries the total rewards accrued by a each + * DelegationTotalRewards queries the total rewards accrued by each * validator. * * @generated from rpc cosmos.distribution.v1beta1.Query.DelegationTotalRewards diff --git a/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts b/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts index 3c684f6e..b37bf5a0 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse } from "./tx_pb.js"; +import { MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse, MsgDepositValidatorRewardsPool, MsgDepositValidatorRewardsPoolResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.distribution.v1beta1.Msg"; @@ -91,3 +91,18 @@ export const MsgCommunityPoolSpendService = { Response: MsgCommunityPoolSpendResponse, } as const; +/** + * DepositValidatorRewardsPool defines a method to provide additional rewards + * to delegators to a specific validator. + * + * Since: cosmos-sdk 0.50 + * + * @generated from rpc cosmos.distribution.v1beta1.Msg.DepositValidatorRewardsPool + */ +export const MsgDepositValidatorRewardsPoolService = { + typeName: TYPE_NAME, + method: "DepositValidatorRewardsPool", + Request: MsgDepositValidatorRewardsPool, + Response: MsgDepositValidatorRewardsPoolResponse, +} as const; + diff --git a/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts b/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts index 441d3eaf..611f0795 100644 --- a/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts @@ -519,3 +519,93 @@ export class MsgCommunityPoolSpendResponse extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPool { + return new MsgDepositValidatorRewardsPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositValidatorRewardsPool | PlainMessage | undefined, b: MsgDepositValidatorRewardsPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositValidatorRewardsPool, a, b); + } +} + +/** + * MsgDepositValidatorRewardsPoolResponse defines the response to executing a + * MsgDepositValidatorRewardsPool message. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse + */ +export class MsgDepositValidatorRewardsPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPoolResponse { + return new MsgDepositValidatorRewardsPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined, b: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositValidatorRewardsPoolResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts index 58f64fec..af56a2bb 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts @@ -10,7 +10,7 @@ import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesByGranter const TYPE_NAME = "cosmos.feegrant.v1beta1.Query"; /** - * Allowance returns fee granted to the grantee by the granter. + * Allowance returns granted allwance to the grantee by the granter. * * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowance */ @@ -22,7 +22,7 @@ export const QueryAllowanceService = { } as const; /** - * Allowances returns all the grants for address. + * Allowances returns all the grants for the given grantee address. * * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowances */ diff --git a/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts b/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts index 629064d3..63979fae 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx_pb.js"; +import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgPruneAllowances, MsgPruneAllowancesResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.feegrant.v1beta1.Msg"; @@ -35,3 +35,17 @@ export const MsgRevokeAllowanceService = { Response: MsgRevokeAllowanceResponse, } as const; +/** + * PruneAllowances prunes expired fee allowances, currently up to 75 at a time. + * + * Since cosmos-sdk 0.50 + * + * @generated from rpc cosmos.feegrant.v1beta1.Msg.PruneAllowances + */ +export const MsgPruneAllowancesService = { + typeName: TYPE_NAME, + method: "PruneAllowances", + Request: MsgPruneAllowances, + Response: MsgPruneAllowancesResponse, +} as const; + diff --git a/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts b/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts index 2170bf0c..924fdbab 100644 --- a/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts @@ -181,3 +181,81 @@ export class MsgRevokeAllowanceResponse extends Message { + /** + * pruner is the address of the user pruning expired allowances. + * + * @generated from field: string pruner = 1; + */ + pruner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowances"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pruner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowances { + return new MsgPruneAllowances().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAllowances | PlainMessage | undefined, b: MsgPruneAllowances | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAllowances, a, b); + } +} + +/** + * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. + * + * Since cosmos-sdk 0.50 + * + * @generated from message cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse + */ +export class MsgPruneAllowancesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowancesResponse { + return new MsgPruneAllowancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPruneAllowancesResponse | PlainMessage | undefined, b: MsgPruneAllowancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPruneAllowancesResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/gov/module/v1/module_pb.ts b/src/protobufs/cosmos/gov/module/v1/module_pb.ts index a83f9d38..5235ea31 100644 --- a/src/protobufs/cosmos/gov/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/gov/module/v1/module_pb.ts @@ -13,7 +13,7 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; */ export class Module extends Message { /** - * max_metadata_len defines the maximum proposal metadata length. + * max_metadata_len defines the maximum proposal metadata length. * Defaults to 255 if not explicitly set. * * @generated from field: uint64 max_metadata_len = 1; diff --git a/src/protobufs/cosmos/gov/v1/genesis_pb.ts b/src/protobufs/cosmos/gov/v1/genesis_pb.ts index 0f6e0188..985b562f 100644 --- a/src/protobufs/cosmos/gov/v1/genesis_pb.ts +++ b/src/protobufs/cosmos/gov/v1/genesis_pb.ts @@ -79,6 +79,18 @@ export class GenesisState extends Message { */ params?: Params; + /** + * The constitution allows builders to lay a foundation and define purpose. + * This is an immutable string set in genesis. + * There are no amendments, to go outside of scope, just fork. + * constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string constitution = 9; + */ + constitution = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -95,6 +107,7 @@ export class GenesisState extends Message { { no: 6, name: "voting_params", kind: "message", T: VotingParams }, { no: 7, name: "tally_params", kind: "message", T: TallyParams }, { no: 8, name: "params", kind: "message", T: Params }, + { no: 9, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/cosmos/gov/v1/gov_pb.ts b/src/protobufs/cosmos/gov/v1/gov_pb.ts index 778544b1..0799f1d5 100644 --- a/src/protobufs/cosmos/gov/v1/gov_pb.ts +++ b/src/protobufs/cosmos/gov/v1/gov_pb.ts @@ -302,6 +302,8 @@ export class Proposal extends Message { /** * metadata is any arbitrary metadata attached to the proposal. + * the recommended format of the metadata is to be found here: + * https://docs.cosmos.network/v0.47/modules/gov#proposal-3 * * @generated from field: string metadata = 10; */ @@ -326,7 +328,7 @@ export class Proposal extends Message { summary = ""; /** - * Proposer is the address of the proposal sumbitter + * proposer is the address of the proposal sumbitter * * Since: cosmos-sdk 0.47 * @@ -334,6 +336,24 @@ export class Proposal extends Message { */ proposer = ""; + /** + * expedited defines if the proposal is expedited + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool expedited = 14; + */ + expedited = false; + + /** + * failed_reason defines the reason why the proposal failed + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string failed_reason = 15; + */ + failedReason = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -355,6 +375,8 @@ export class Proposal extends Message { { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "failed_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { @@ -468,7 +490,8 @@ export class Vote extends Message { options: WeightedVoteOption[] = []; /** - * metadata is any arbitrary metadata to attached to the vote. + * metadata is any arbitrary metadata attached to the vote. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 * * @generated from field: string metadata = 5; */ @@ -509,6 +532,7 @@ export class Vote extends Message { * DepositParams defines the params for deposits on governance proposals. * * @generated from message cosmos.gov.v1.DepositParams + * @deprecated */ export class DepositParams extends Message { /** @@ -559,6 +583,7 @@ export class DepositParams extends Message { * VotingParams defines the params for voting on governance proposals. * * @generated from message cosmos.gov.v1.VotingParams + * @deprecated */ export class VotingParams extends Message { /** @@ -600,6 +625,7 @@ export class VotingParams extends Message { * TallyParams defines the params for tallying votes on governance proposals. * * @generated from message cosmos.gov.v1.TallyParams + * @deprecated */ export class TallyParams extends Message { /** @@ -715,6 +741,50 @@ export class Params extends Message { */ minInitialDepositRatio = ""; + /** + * The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string proposal_cancel_ratio = 8; + */ + proposalCancelRatio = ""; + + /** + * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. + * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string proposal_cancel_dest = 9; + */ + proposalCancelDest = ""; + + /** + * Duration of the voting period of an expedited proposal. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: google.protobuf.Duration expedited_voting_period = 10; + */ + expeditedVotingPeriod?: Duration; + + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string expedited_threshold = 11; + */ + expeditedThreshold = ""; + + /** + * Minimum expedited deposit for a proposal to enter voting period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin expedited_min_deposit = 12; + */ + expeditedMinDeposit: Coin[] = []; + /** * burn deposits if a proposal does not meet quorum * @@ -736,6 +806,17 @@ export class Params extends Message { */ burnVoteVeto = false; + /** + * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. + * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be + * required. + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: string min_deposit_ratio = 16; + */ + minDepositRatio = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -751,9 +832,15 @@ export class Params extends Message { { no: 5, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "veto_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "min_initial_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "proposal_cancel_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "proposal_cancel_dest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "expedited_voting_period", kind: "message", T: Duration }, + { no: 11, name: "expedited_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "expedited_min_deposit", kind: "message", T: Coin, repeated: true }, { no: 13, name: "burn_vote_quorum", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "burn_proposal_deposit_prevote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 15, name: "burn_vote_veto", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 16, name: "min_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/cosmos/gov/v1/query_cosmes.ts b/src/protobufs/cosmos/gov/v1/query_cosmes.ts index 90ac3cb7..d01a2598 100644 --- a/src/protobufs/cosmos/gov/v1/query_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1/query_cosmes.ts @@ -5,10 +5,22 @@ /* eslint-disable */ // @ts-nocheck -import { QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; +import { QueryConstitutionRequest, QueryConstitutionResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; const TYPE_NAME = "cosmos.gov.v1.Query"; +/** + * Constitution queries the chain's constitution. + * + * @generated from rpc cosmos.gov.v1.Query.Constitution + */ +export const QueryConstitutionService = { + typeName: TYPE_NAME, + method: "Constitution", + Request: QueryConstitutionRequest, + Response: QueryConstitutionResponse, +} as const; + /** * Proposal queries proposal details based on ProposalID. * @@ -70,7 +82,7 @@ export const QueryParamsService = { } as const; /** - * Deposit queries single deposit information based proposalID, depositAddr. + * Deposit queries single deposit information based on proposalID, depositAddr. * * @generated from rpc cosmos.gov.v1.Query.Deposit */ diff --git a/src/protobufs/cosmos/gov/v1/query_pb.ts b/src/protobufs/cosmos/gov/v1/query_pb.ts index 6c683abf..f9d9f874 100644 --- a/src/protobufs/cosmos/gov/v1/query_pb.ts +++ b/src/protobufs/cosmos/gov/v1/query_pb.ts @@ -10,6 +10,78 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Deposit, DepositParams, Params, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; +/** + * QueryConstitutionRequest is the request type for the Query/Constitution RPC method + * + * @generated from message cosmos.gov.v1.QueryConstitutionRequest + */ +export class QueryConstitutionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.QueryConstitutionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionRequest { + return new QueryConstitutionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionRequest | PlainMessage | undefined, b: QueryConstitutionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionRequest, a, b); + } +} + +/** + * QueryConstitutionResponse is the response type for the Query/Constitution RPC method + * + * @generated from message cosmos.gov.v1.QueryConstitutionResponse + */ +export class QueryConstitutionResponse extends Message { + /** + * @generated from field: string constitution = 1; + */ + constitution = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.QueryConstitutionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionResponse { + return new QueryConstitutionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConstitutionResponse | PlainMessage | undefined, b: QueryConstitutionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConstitutionResponse, a, b); + } +} + /** * QueryProposalRequest is the request type for the Query/Proposal RPC method. * diff --git a/src/protobufs/cosmos/gov/v1/tx_cosmes.ts b/src/protobufs/cosmos/gov/v1/tx_cosmes.ts index da135c96..2907ad80 100644 --- a/src/protobufs/cosmos/gov/v1/tx_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1/tx_cosmes.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgDeposit, MsgDepositResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; +import { MsgCancelProposal, MsgCancelProposalResponse, MsgDeposit, MsgDepositResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; const TYPE_NAME = "cosmos.gov.v1.Msg"; @@ -85,3 +85,17 @@ export const MsgUpdateParamsService = { Response: MsgUpdateParamsResponse, } as const; +/** + * CancelProposal defines a method to cancel governance proposal + * + * Since: cosmos-sdk 0.50 + * + * @generated from rpc cosmos.gov.v1.Msg.CancelProposal + */ +export const MsgCancelProposalService = { + typeName: TYPE_NAME, + method: "CancelProposal", + Request: MsgCancelProposal, + Response: MsgCancelProposalResponse, +} as const; + diff --git a/src/protobufs/cosmos/gov/v1/tx_pb.ts b/src/protobufs/cosmos/gov/v1/tx_pb.ts index 620d8947..1d0497c0 100644 --- a/src/protobufs/cosmos/gov/v1/tx_pb.ts +++ b/src/protobufs/cosmos/gov/v1/tx_pb.ts @@ -6,7 +6,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Coin } from "../../base/v1beta1/coin_pb.js"; import { Params, VoteOption, WeightedVoteOption } from "./gov_pb.js"; @@ -63,6 +63,15 @@ export class MsgSubmitProposal extends Message { */ summary = ""; + /** + * expedited defines if the proposal is expedited or not + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: bool expedited = 7; + */ + expedited = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -77,6 +86,7 @@ export class MsgSubmitProposal extends Message { { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { @@ -595,3 +605,114 @@ export class MsgUpdateParamsResponse extends Message { } } +/** + * MsgCancelProposal is the Msg/CancelProposal request type. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.gov.v1.MsgCancelProposal + */ +export class MsgCancelProposal extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * proposer is the account address of the proposer. + * + * @generated from field: string proposer = 2; + */ + proposer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.MsgCancelProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposal { + return new MsgCancelProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelProposal | PlainMessage | undefined, b: MsgCancelProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelProposal, a, b); + } +} + +/** + * MsgCancelProposalResponse defines the response structure for executing a + * MsgCancelProposal message. + * + * Since: cosmos-sdk 0.50 + * + * @generated from message cosmos.gov.v1.MsgCancelProposalResponse + */ +export class MsgCancelProposalResponse extends Message { + /** + * proposal_id defines the unique id of the proposal. + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * canceled_time is the time when proposal is canceled. + * + * @generated from field: google.protobuf.Timestamp canceled_time = 2; + */ + canceledTime?: Timestamp; + + /** + * canceled_height defines the block height at which the proposal is canceled. + * + * @generated from field: uint64 canceled_height = 3; + */ + canceledHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.gov.v1.MsgCancelProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "canceled_time", kind: "message", T: Timestamp }, + { no: 3, name: "canceled_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposalResponse { + return new MsgCancelProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelProposalResponse | PlainMessage | undefined, b: MsgCancelProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelProposalResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts index 6f5ab86d..553f2fca 100644 --- a/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts @@ -42,21 +42,21 @@ export class GenesisState extends Message { proposals: Proposal[] = []; /** - * params defines all the parameters of related to deposit. + * deposit_params defines all the parameters related to deposit. * * @generated from field: cosmos.gov.v1beta1.DepositParams deposit_params = 5; */ depositParams?: DepositParams; /** - * params defines all the parameters of related to voting. + * voting_params defines all the parameters related to voting. * * @generated from field: cosmos.gov.v1beta1.VotingParams voting_params = 6; */ votingParams?: VotingParams; /** - * params defines all the parameters of related to tally. + * tally_params defines all the parameters related to tally. * * @generated from field: cosmos.gov.v1beta1.TallyParams tally_params = 7; */ diff --git a/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts b/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts index 94b6eae8..4aa3db3b 100644 --- a/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts @@ -136,7 +136,7 @@ export class WeightedVoteOption extends Message { option = VoteOption.UNSPECIFIED; /** - * weight is the vote weight associated with the vote option. + * weight is the vote weight associated with the vote option. * * @generated from field: string weight = 2; */ diff --git a/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts b/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts index 3741025f..2bcd2e33 100644 --- a/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts +++ b/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts @@ -68,7 +68,7 @@ export const QueryParamsService = { } as const; /** - * Deposit queries single deposit information based proposalID, depositAddr. + * Deposit queries single deposit information based on proposalID, depositor address. * * @generated from rpc cosmos.gov.v1beta1.Query.Deposit */ diff --git a/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts b/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts index d1f09233..512e7a04 100644 --- a/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts @@ -220,7 +220,7 @@ export class MsgVoteWeighted extends Message { voter = ""; /** - * options defines the weighted vote options. + * options defines the weighted vote options. * * @generated from field: repeated cosmos.gov.v1beta1.WeightedVoteOption options = 3; */ diff --git a/src/protobufs/cosmos/group/v1/types_pb.ts b/src/protobufs/cosmos/group/v1/types_pb.ts index 60e70bf9..f6b06055 100644 --- a/src/protobufs/cosmos/group/v1/types_pb.ts +++ b/src/protobufs/cosmos/group/v1/types_pb.ts @@ -480,6 +480,7 @@ export class GroupInfo extends Message { /** * metadata is any arbitrary metadata to attached to the group. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1 * * @generated from field: string metadata = 3; */ @@ -914,7 +915,7 @@ export class TallyResult extends Message { } /** - * Vote represents a vote for a proposal. + * Vote represents a vote for a proposal.string metadata * * @generated from message cosmos.group.v1.Vote */ @@ -942,6 +943,7 @@ export class Vote extends Message { /** * metadata is any arbitrary metadata attached to the vote. + * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2 * * @generated from field: string metadata = 4; */ diff --git a/src/protobufs/cosmos/ics23/v1/proofs_pb.ts b/src/protobufs/cosmos/ics23/v1/proofs_pb.ts index 800fc43d..3abc4725 100644 --- a/src/protobufs/cosmos/ics23/v1/proofs_pb.ts +++ b/src/protobufs/cosmos/ics23/v1/proofs_pb.ts @@ -540,6 +540,7 @@ export class ProofSpec extends Message { /** * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) + * the max_depth is interpreted as 128 if set to 0 * * @generated from field: int32 max_depth = 3; */ @@ -627,6 +628,8 @@ export class InnerSpec extends Message { minPrefixLength = 0; /** + * the max prefix length must be less than the minimum prefix length + child size + * * @generated from field: int32 max_prefix_length = 4; */ maxPrefixLength = 0; diff --git a/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts b/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts index c544112f..bd3dc269 100644 --- a/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts +++ b/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts @@ -8,8 +8,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; /** * Module defines the ORM module which adds providers to the app container for - * module-scoped DB's. In the future it may provide gRPC services for interacting - * with ORM data. + * ORM ModuleDB's and in the future will automatically register query + * services for modules that use the ORM. * * @generated from message cosmos.orm.module.v1alpha1.Module */ diff --git a/src/protobufs/cosmos/orm/v1/orm_pb.ts b/src/protobufs/cosmos/orm/v1/orm_pb.ts index 8713108e..7a6f2c45 100644 --- a/src/protobufs/cosmos/orm/v1/orm_pb.ts +++ b/src/protobufs/cosmos/orm/v1/orm_pb.ts @@ -91,8 +91,11 @@ export class PrimaryKeyDescriptor extends Message { * with a 32-bit unsigned varint in non-terminal segments. * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp and google.protobuf.Duration are encoded - * as 12 bytes using an encoding that enables sorted iteration. + * - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes, + * values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil + * values will always be ordered last. Seconds and nanos values must conform to the officially + * specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively. + * - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration. * - enum fields are encoded using varint encoding and do not support sorted * iteration. * - bool fields are encoded as a single byte 0 or 1. diff --git a/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts b/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts index c334d07c..8a1fb8cf 100644 --- a/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts +++ b/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts @@ -13,11 +13,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export enum StorageType { /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent - * KV-storage where primary key entries are stored in merkle-tree - * backed commitment storage and indexes and seqs are stored in - * fast index storage. Note that the Cosmos SDK before store/v2alpha1 - * does not support this. + * STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all + * data is stored in the regular Merkle-tree backed KV-store. * * @generated from enum value: STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0; */ @@ -42,37 +39,12 @@ export enum StorageType { * @generated from enum value: STORAGE_TYPE_TRANSIENT = 2; */ TRANSIENT = 2, - - /** - * STORAGE_TYPE_INDEX indicates persistent storage which is not backed - * by a merkle-tree and won't affect the app hash. Note that the Cosmos SDK - * before store/v2alpha1 does not support this. - * - * @generated from enum value: STORAGE_TYPE_INDEX = 3; - */ - INDEX = 3, - - /** - * STORAGE_TYPE_INDEX indicates persistent storage which is backed by - * a merkle-tree. With this type of storage, both primary and index keys - * will affect the app hash and this is generally less efficient - * than using STORAGE_TYPE_DEFAULT_UNSPECIFIED which separates index - * keys into index storage. Note that modules built with the - * Cosmos SDK before store/v2alpha1 must specify STORAGE_TYPE_COMMITMENT - * instead of STORAGE_TYPE_DEFAULT_UNSPECIFIED or STORAGE_TYPE_INDEX - * because this is the only type of persistent storage available. - * - * @generated from enum value: STORAGE_TYPE_COMMITMENT = 4; - */ - COMMITMENT = 4, } // Retrieve enum metadata with: proto3.getEnumType(StorageType) proto3.util.setEnumType(StorageType, "cosmos.orm.v1alpha1.StorageType", [ { no: 0, name: "STORAGE_TYPE_DEFAULT_UNSPECIFIED" }, { no: 1, name: "STORAGE_TYPE_MEMORY" }, { no: 2, name: "STORAGE_TYPE_TRANSIENT" }, - { no: 3, name: "STORAGE_TYPE_INDEX" }, - { no: 4, name: "STORAGE_TYPE_COMMITMENT" }, ]); /** diff --git a/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts b/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts index 73cd84cf..a0a2d39c 100644 --- a/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts +++ b/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts @@ -19,16 +19,16 @@ export class ValidatorSigningInfo extends Message { address = ""; /** - * Height at which validator was first a candidate OR was unjailed + * Height at which validator was first a candidate OR was un-jailed * * @generated from field: int64 start_height = 2; */ startHeight = protoInt64.zero; /** - * Index which is incremented each time the validator was a bonded - * in a block and may have signed a precommit or not. This in conjunction with the - * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. + * Index which is incremented every time a validator is bonded in a block and + * _may_ have signed a pre-commit or not. This in conjunction with the + * signed_blocks_window param determines the index in the missed block bitmap. * * @generated from field: int64 index_offset = 3; */ @@ -42,16 +42,17 @@ export class ValidatorSigningInfo extends Message { jailedUntil?: Timestamp; /** - * Whether or not a validator has been tombstoned (killed out of validator set). It is set - * once the validator commits an equivocation or for any other configured misbehiavor. + * Whether or not a validator has been tombstoned (killed out of validator + * set). It is set once the validator commits an equivocation or for any other + * configured misbehavior. * * @generated from field: bool tombstoned = 5; */ tombstoned = false; /** - * A counter kept to avoid unnecessary array reads. - * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + * A counter of missed (unsigned) blocks. It is used to avoid unnecessary + * reads in the missed block bitmap. * * @generated from field: int64 missed_blocks_counter = 6; */ diff --git a/src/protobufs/cosmos/staking/module/v1/module_pb.ts b/src/protobufs/cosmos/staking/module/v1/module_pb.ts index 90b995a0..4b90c71a 100644 --- a/src/protobufs/cosmos/staking/module/v1/module_pb.ts +++ b/src/protobufs/cosmos/staking/module/v1/module_pb.ts @@ -28,6 +28,20 @@ export class Module extends Message { */ authority = ""; + /** + * bech32_prefix_validator is the bech32 validator prefix for the app. + * + * @generated from field: string bech32_prefix_validator = 3; + */ + bech32PrefixValidator = ""; + + /** + * bech32_prefix_consensus is the bech32 consensus node prefix for the app. + * + * @generated from field: string bech32_prefix_consensus = 4; + */ + bech32PrefixConsensus = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -38,6 +52,8 @@ export class Module extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "hooks_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "bech32_prefix_validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bech32_prefix_consensus", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Module { diff --git a/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts b/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts index 3f34ae00..1104aa23 100644 --- a/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts @@ -42,6 +42,13 @@ export enum AuthorizationType { * @generated from enum value: AUTHORIZATION_TYPE_REDELEGATE = 3; */ REDELEGATE = 3, + + /** + * AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation + * + * @generated from enum value: AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4; + */ + CANCEL_UNBONDING_DELEGATION = 4, } // Retrieve enum metadata with: proto3.getEnumType(AuthorizationType) proto3.util.setEnumType(AuthorizationType, "cosmos.staking.v1beta1.AuthorizationType", [ @@ -49,6 +56,7 @@ proto3.util.setEnumType(AuthorizationType, "cosmos.staking.v1beta1.Authorization { no: 1, name: "AUTHORIZATION_TYPE_DELEGATE" }, { no: 2, name: "AUTHORIZATION_TYPE_UNDELEGATE" }, { no: 3, name: "AUTHORIZATION_TYPE_REDELEGATE" }, + { no: 4, name: "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION" }, ]); /** diff --git a/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts b/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts index ae6a5f9a..a2021b14 100644 --- a/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts @@ -37,7 +37,7 @@ export class GenesisState extends Message { lastValidatorPowers: LastValidatorPower[] = []; /** - * delegations defines the validator set at genesis. + * validators defines the validator set at genesis. * * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 4; */ @@ -65,6 +65,8 @@ export class GenesisState extends Message { redelegations: Redelegation[] = []; /** + * exported defines a bool to identify whether the chain dealing with exported or initialized genesis. + * * @generated from field: bool exported = 8; */ exported = false; diff --git a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts index e2930e3a..664fbe7a 100644 --- a/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts @@ -686,14 +686,14 @@ export class DVVTriplets extends Message { */ export class Delegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ @@ -744,14 +744,14 @@ export class Delegation extends Message { */ export class UnbondingDelegation extends Message { /** - * delegator_address is the bech32-encoded address of the delegator. + * delegator_address is the encoded address of the delegator. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** - * validator_address is the bech32-encoded address of the validator. + * validator_address is the encoded address of the validator. * * @generated from field: string validator_address = 2; */ diff --git a/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts b/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts index 658bea4b..b9e94f7e 100644 --- a/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts @@ -30,7 +30,12 @@ export class MsgCreateValidator extends Message { minSelfDelegation = ""; /** - * @generated from field: string delegator_address = 4; + * Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. + * The validator address bytes and delegator address bytes refer to the same account while creating validator (defer + * only in bech32 notation). + * + * @generated from field: string delegator_address = 4 [deprecated = true]; + * @deprecated */ delegatorAddress = ""; @@ -456,6 +461,15 @@ export class MsgUndelegateResponse extends Message { */ completionTime?: Timestamp; + /** + * amount returns the amount of undelegated coins + * + * Since: cosmos-sdk 0.50 + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -465,6 +479,7 @@ export class MsgUndelegateResponse extends Message { static readonly typeName = "cosmos.staking.v1beta1.MsgUndelegateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "completion_time", kind: "message", T: Timestamp }, + { no: 2, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateResponse { diff --git a/src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts b/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts similarity index 84% rename from src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts rename to src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts index 3156b848..8f8884d1 100644 --- a/src/protobufs/cosmos/base/kv/v1beta1/kv_pb.ts +++ b/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/kv/v1beta1/kv.proto (package cosmos.base.kv.v1beta1, syntax proto3) +// @generated from file cosmos/store/internal/kv/v1beta1/kv.proto (package cosmos.store.internal.kv.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -9,11 +9,11 @@ import { Message, proto3 } from "@bufbuild/protobuf"; /** * Pairs defines a repeated slice of Pair objects. * - * @generated from message cosmos.base.kv.v1beta1.Pairs + * @generated from message cosmos.store.internal.kv.v1beta1.Pairs */ export class Pairs extends Message { /** - * @generated from field: repeated cosmos.base.kv.v1beta1.Pair pairs = 1; + * @generated from field: repeated cosmos.store.internal.kv.v1beta1.Pair pairs = 1; */ pairs: Pair[] = []; @@ -23,7 +23,7 @@ export class Pairs extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.kv.v1beta1.Pairs"; + static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pairs"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pairs", kind: "message", T: Pair, repeated: true }, ]); @@ -48,7 +48,7 @@ export class Pairs extends Message { /** * Pair defines a key/value bytes tuple. * - * @generated from message cosmos.base.kv.v1beta1.Pair + * @generated from message cosmos.store.internal.kv.v1beta1.Pair */ export class Pair extends Message { /** @@ -67,7 +67,7 @@ export class Pair extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.kv.v1beta1.Pair"; + static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pair"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, diff --git a/src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts b/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts similarity index 67% rename from src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts rename to src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts index 57510a5c..9f69f5a5 100644 --- a/src/protobufs/cosmos/base/snapshots/v1beta1/snapshot_pb.ts +++ b/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/snapshots/v1beta1/snapshot.proto (package cosmos.base.snapshots.v1beta1, syntax proto3) +// @generated from file cosmos/store/snapshots/v1/snapshot.proto (package cosmos.store.snapshots.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -9,7 +9,7 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * Snapshot contains Tendermint state sync snapshot info. * - * @generated from message cosmos.base.snapshots.v1beta1.Snapshot + * @generated from message cosmos.store.snapshots.v1.Snapshot */ export class Snapshot extends Message { /** @@ -33,7 +33,7 @@ export class Snapshot extends Message { hash = new Uint8Array(0); /** - * @generated from field: cosmos.base.snapshots.v1beta1.Metadata metadata = 5; + * @generated from field: cosmos.store.snapshots.v1.Metadata metadata = 5; */ metadata?: Metadata; @@ -43,7 +43,7 @@ export class Snapshot extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.Snapshot"; + static readonly typeName = "cosmos.store.snapshots.v1.Snapshot"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, @@ -72,7 +72,7 @@ export class Snapshot extends Message { /** * Metadata contains SDK-specific snapshot metadata. * - * @generated from message cosmos.base.snapshots.v1beta1.Metadata + * @generated from message cosmos.store.snapshots.v1.Metadata */ export class Metadata extends Message { /** @@ -88,7 +88,7 @@ export class Metadata extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.Metadata"; + static readonly typeName = "cosmos.store.snapshots.v1.Metadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "chunk_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); @@ -115,52 +115,38 @@ export class Metadata extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotItem + * @generated from message cosmos.store.snapshots.v1.SnapshotItem */ export class SnapshotItem extends Message { /** * item is the specific type of snapshot item. * - * @generated from oneof cosmos.base.snapshots.v1beta1.SnapshotItem.item + * @generated from oneof cosmos.store.snapshots.v1.SnapshotItem.item */ item: { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotStoreItem store = 1; + * @generated from field: cosmos.store.snapshots.v1.SnapshotStoreItem store = 1; */ value: SnapshotStoreItem; case: "store"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotIAVLItem iavl = 2; + * @generated from field: cosmos.store.snapshots.v1.SnapshotIAVLItem iavl = 2; */ value: SnapshotIAVLItem; case: "iavl"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta extension = 3; + * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionMeta extension = 3; */ value: SnapshotExtensionMeta; case: "extension"; } | { /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload extension_payload = 4; + * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionPayload extension_payload = 4; */ value: SnapshotExtensionPayload; case: "extensionPayload"; - } | { - /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotKVItem kv = 5 [deprecated = true]; - * @deprecated - */ - value: SnapshotKVItem; - case: "kv"; - } | { - /** - * @generated from field: cosmos.base.snapshots.v1beta1.SnapshotSchema schema = 6 [deprecated = true]; - * @deprecated - */ - value: SnapshotSchema; - case: "schema"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -169,14 +155,12 @@ export class SnapshotItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store", kind: "message", T: SnapshotStoreItem, oneof: "item" }, { no: 2, name: "iavl", kind: "message", T: SnapshotIAVLItem, oneof: "item" }, { no: 3, name: "extension", kind: "message", T: SnapshotExtensionMeta, oneof: "item" }, { no: 4, name: "extension_payload", kind: "message", T: SnapshotExtensionPayload, oneof: "item" }, - { no: 5, name: "kv", kind: "message", T: SnapshotKVItem, oneof: "item" }, - { no: 6, name: "schema", kind: "message", T: SnapshotSchema, oneof: "item" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotItem { @@ -201,7 +185,7 @@ export class SnapshotItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotStoreItem + * @generated from message cosmos.store.snapshots.v1.SnapshotStoreItem */ export class SnapshotStoreItem extends Message { /** @@ -215,7 +199,7 @@ export class SnapshotStoreItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotStoreItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotStoreItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); @@ -242,7 +226,7 @@ export class SnapshotStoreItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotIAVLItem + * @generated from message cosmos.store.snapshots.v1.SnapshotIAVLItem */ export class SnapshotIAVLItem extends Message { /** @@ -275,7 +259,7 @@ export class SnapshotIAVLItem extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotIAVLItem"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotIAVLItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, @@ -305,7 +289,7 @@ export class SnapshotIAVLItem extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta + * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionMeta */ export class SnapshotExtensionMeta extends Message { /** @@ -324,7 +308,7 @@ export class SnapshotExtensionMeta extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionMeta"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionMeta"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, @@ -352,7 +336,7 @@ export class SnapshotExtensionMeta extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload + * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionPayload */ export class SnapshotExtensionPayload extends Message { /** @@ -366,7 +350,7 @@ export class SnapshotExtensionPayload extends Message } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotExtensionPayload"; + static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionPayload"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); @@ -388,95 +372,3 @@ export class SnapshotExtensionPayload extends Message } } -/** - * SnapshotKVItem is an exported Key/Value Pair - * - * Since: cosmos-sdk 0.46 - * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. - * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotKVItem - * @deprecated - */ -export class SnapshotKVItem extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotKVItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotKVItem { - return new SnapshotKVItem().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotKVItem | PlainMessage | undefined, b: SnapshotKVItem | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotKVItem, a, b); - } -} - -/** - * SnapshotSchema is an exported schema of smt store - * - * Since: cosmos-sdk 0.46 - * Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47. - * - * @generated from message cosmos.base.snapshots.v1beta1.SnapshotSchema - * @deprecated - */ -export class SnapshotSchema extends Message { - /** - * @generated from field: repeated bytes keys = 1; - */ - keys: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.snapshots.v1beta1.SnapshotSchema"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotSchema { - return new SnapshotSchema().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotSchema | PlainMessage | undefined, b: SnapshotSchema | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotSchema, a, b); - } -} - diff --git a/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts b/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts new file mode 100644 index 00000000..0256b340 --- /dev/null +++ b/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { ListenCommitRequest, ListenCommitResponse, ListenFinalizeBlockRequest, ListenFinalizeBlockResponse } from "./grpc_pb.js"; + +const TYPE_NAME = "cosmos.store.streaming.abci.ABCIListenerService"; + +/** + * ListenFinalizeBlock is the corresponding endpoint for ABCIListener.ListenEndBlock + * + * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock + */ +export const ABCIListenerServiceListenFinalizeBlockService = { + typeName: TYPE_NAME, + method: "ListenFinalizeBlock", + Request: ListenFinalizeBlockRequest, + Response: ListenFinalizeBlockResponse, +} as const; + +/** + * ListenCommit is the corresponding endpoint for ABCIListener.ListenCommit + * + * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenCommit + */ +export const ABCIListenerServiceListenCommitService = { + typeName: TYPE_NAME, + method: "ListenCommit", + Request: ListenCommitRequest, + Response: ListenCommitResponse, +} as const; + diff --git a/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts b/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts new file mode 100644 index 00000000..88f8a93a --- /dev/null +++ b/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts @@ -0,0 +1,174 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../../tendermint/abci/types_pb.js"; +import { StoreKVPair } from "../../v1beta1/listening_pb.js"; + +/** + * ListenEndBlockRequest is the request type for the ListenEndBlock RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockRequest + */ +export class ListenFinalizeBlockRequest extends Message { + /** + * @generated from field: tendermint.abci.RequestFinalizeBlock req = 1; + */ + req?: RequestFinalizeBlock; + + /** + * @generated from field: tendermint.abci.ResponseFinalizeBlock res = 2; + */ + res?: ResponseFinalizeBlock; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "req", kind: "message", T: RequestFinalizeBlock }, + { no: 2, name: "res", kind: "message", T: ResponseFinalizeBlock }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockRequest { + return new ListenFinalizeBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListenFinalizeBlockRequest | PlainMessage | undefined, b: ListenFinalizeBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenFinalizeBlockRequest, a, b); + } +} + +/** + * ListenEndBlockResponse is the response type for the ListenEndBlock RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockResponse + */ +export class ListenFinalizeBlockResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockResponse { + return new ListenFinalizeBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListenFinalizeBlockResponse | PlainMessage | undefined, b: ListenFinalizeBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenFinalizeBlockResponse, a, b); + } +} + +/** + * ListenCommitRequest is the request type for the ListenCommit RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenCommitRequest + */ +export class ListenCommitRequest extends Message { + /** + * explicitly pass in block height as ResponseCommit does not contain this info + * + * @generated from field: int64 block_height = 1; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: tendermint.abci.ResponseCommit res = 2; + */ + res?: ResponseCommit; + + /** + * @generated from field: repeated cosmos.store.v1beta1.StoreKVPair change_set = 3; + */ + changeSet: StoreKVPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenCommitRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "res", kind: "message", T: ResponseCommit }, + { no: 3, name: "change_set", kind: "message", T: StoreKVPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenCommitRequest { + return new ListenCommitRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListenCommitRequest | PlainMessage | undefined, b: ListenCommitRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenCommitRequest, a, b); + } +} + +/** + * ListenCommitResponse is the response type for the ListenCommit RPC method + * + * @generated from message cosmos.store.streaming.abci.ListenCommitResponse + */ +export class ListenCommitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmos.store.streaming.abci.ListenCommitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListenCommitResponse { + return new ListenCommitResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListenCommitResponse | PlainMessage | undefined, b: ListenCommitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListenCommitResponse, a, b); + } +} + diff --git a/src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts b/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts similarity index 86% rename from src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts rename to src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts index 51fd61c5..390cfde3 100644 --- a/src/protobufs/cosmos/base/store/v1beta1/commit_info_pb.ts +++ b/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/store/v1beta1/commit_info.proto (package cosmos.base.store.v1beta1, syntax proto3) +// @generated from file cosmos/store/v1beta1/commit_info.proto (package cosmos.store.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -10,7 +10,7 @@ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; * CommitInfo defines commit information used by the multi-store when committing * a version/height. * - * @generated from message cosmos.base.store.v1beta1.CommitInfo + * @generated from message cosmos.store.v1beta1.CommitInfo */ export class CommitInfo extends Message { /** @@ -19,7 +19,7 @@ export class CommitInfo extends Message { version = protoInt64.zero; /** - * @generated from field: repeated cosmos.base.store.v1beta1.StoreInfo store_infos = 2; + * @generated from field: repeated cosmos.store.v1beta1.StoreInfo store_infos = 2; */ storeInfos: StoreInfo[] = []; @@ -34,7 +34,7 @@ export class CommitInfo extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.CommitInfo"; + static readonly typeName = "cosmos.store.v1beta1.CommitInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "store_infos", kind: "message", T: StoreInfo, repeated: true }, @@ -62,7 +62,7 @@ export class CommitInfo extends Message { * StoreInfo defines store-specific commit information. It contains a reference * between a store name and the commit ID. * - * @generated from message cosmos.base.store.v1beta1.StoreInfo + * @generated from message cosmos.store.v1beta1.StoreInfo */ export class StoreInfo extends Message { /** @@ -71,7 +71,7 @@ export class StoreInfo extends Message { name = ""; /** - * @generated from field: cosmos.base.store.v1beta1.CommitID commit_id = 2; + * @generated from field: cosmos.store.v1beta1.CommitID commit_id = 2; */ commitId?: CommitID; @@ -81,7 +81,7 @@ export class StoreInfo extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.StoreInfo"; + static readonly typeName = "cosmos.store.v1beta1.StoreInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "commit_id", kind: "message", T: CommitID }, @@ -108,7 +108,7 @@ export class StoreInfo extends Message { * CommitID defines the commitment information when a specific store is * committed. * - * @generated from message cosmos.base.store.v1beta1.CommitID + * @generated from message cosmos.store.v1beta1.CommitID */ export class CommitID extends Message { /** @@ -127,7 +127,7 @@ export class CommitID extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.CommitID"; + static readonly typeName = "cosmos.store.v1beta1.CommitID"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, diff --git a/src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts b/src/protobufs/cosmos/store/v1beta1/listening_pb.ts similarity index 51% rename from src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts rename to src/protobufs/cosmos/store/v1beta1/listening_pb.ts index 0e14f552..ff166775 100644 --- a/src/protobufs/cosmos/base/store/v1beta1/listening_pb.ts +++ b/src/protobufs/cosmos/store/v1beta1/listening_pb.ts @@ -1,11 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/store/v1beta1/listening.proto (package cosmos.base.store.v1beta1, syntax proto3) +// @generated from file cosmos/store/v1beta1/listening.proto (package cosmos.store.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import { RequestBeginBlock, RequestDeliverTx, RequestEndBlock, ResponseBeginBlock, ResponseCommit, ResponseDeliverTx, ResponseEndBlock } from "../../../../tendermint/abci/types_pb.js"; +import { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../tendermint/abci/types_pb.js"; /** * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) @@ -14,7 +14,7 @@ import { RequestBeginBlock, RequestDeliverTx, RequestEndBlock, ResponseBeginBloc * * Since: cosmos-sdk 0.43 * - * @generated from message cosmos.base.store.v1beta1.StoreKVPair + * @generated from message cosmos.store.v1beta1.StoreKVPair */ export class StoreKVPair extends Message { /** @@ -47,7 +47,7 @@ export class StoreKVPair extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.StoreKVPair"; + static readonly typeName = "cosmos.store.v1beta1.StoreKVPair"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "store_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "delete", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, @@ -76,38 +76,25 @@ export class StoreKVPair extends Message { * BlockMetadata contains all the abci event data of a block * the file streamer dump them into files together with the state changes. * - * @generated from message cosmos.base.store.v1beta1.BlockMetadata + * @generated from message cosmos.store.v1beta1.BlockMetadata */ export class BlockMetadata extends Message { /** - * @generated from field: tendermint.abci.RequestBeginBlock request_begin_block = 1; - */ - requestBeginBlock?: RequestBeginBlock; - - /** - * @generated from field: tendermint.abci.ResponseBeginBlock response_begin_block = 2; - */ - responseBeginBlock?: ResponseBeginBlock; - - /** - * @generated from field: repeated cosmos.base.store.v1beta1.BlockMetadata.DeliverTx deliver_txs = 3; - */ - deliverTxs: BlockMetadata_DeliverTx[] = []; - - /** - * @generated from field: tendermint.abci.RequestEndBlock request_end_block = 4; + * @generated from field: tendermint.abci.ResponseCommit response_commit = 6; */ - requestEndBlock?: RequestEndBlock; + responseCommit?: ResponseCommit; /** - * @generated from field: tendermint.abci.ResponseEndBlock response_end_block = 5; + * @generated from field: tendermint.abci.RequestFinalizeBlock request_finalize_block = 7; */ - responseEndBlock?: ResponseEndBlock; + requestFinalizeBlock?: RequestFinalizeBlock; /** - * @generated from field: tendermint.abci.ResponseCommit response_commit = 6; + * TODO: should we renumber this? + * + * @generated from field: tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8; */ - responseCommit?: ResponseCommit; + responseFinalizeBlock?: ResponseFinalizeBlock; constructor(data?: PartialMessage) { super(); @@ -115,14 +102,11 @@ export class BlockMetadata extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.BlockMetadata"; + static readonly typeName = "cosmos.store.v1beta1.BlockMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request_begin_block", kind: "message", T: RequestBeginBlock }, - { no: 2, name: "response_begin_block", kind: "message", T: ResponseBeginBlock }, - { no: 3, name: "deliver_txs", kind: "message", T: BlockMetadata_DeliverTx, repeated: true }, - { no: 4, name: "request_end_block", kind: "message", T: RequestEndBlock }, - { no: 5, name: "response_end_block", kind: "message", T: ResponseEndBlock }, { no: 6, name: "response_commit", kind: "message", T: ResponseCommit }, + { no: 7, name: "request_finalize_block", kind: "message", T: RequestFinalizeBlock }, + { no: 8, name: "response_finalize_block", kind: "message", T: ResponseFinalizeBlock }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BlockMetadata { @@ -142,48 +126,3 @@ export class BlockMetadata extends Message { } } -/** - * DeliverTx encapulate deliver tx request and response. - * - * @generated from message cosmos.base.store.v1beta1.BlockMetadata.DeliverTx - */ -export class BlockMetadata_DeliverTx extends Message { - /** - * @generated from field: tendermint.abci.RequestDeliverTx request = 1; - */ - request?: RequestDeliverTx; - - /** - * @generated from field: tendermint.abci.ResponseDeliverTx response = 2; - */ - response?: ResponseDeliverTx; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.store.v1beta1.BlockMetadata.DeliverTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request", kind: "message", T: RequestDeliverTx }, - { no: 2, name: "response", kind: "message", T: ResponseDeliverTx }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockMetadata_DeliverTx { - return new BlockMetadata_DeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: BlockMetadata_DeliverTx | PlainMessage | undefined, b: BlockMetadata_DeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockMetadata_DeliverTx, a, b); - } -} - diff --git a/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts b/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts index 109024ef..ce645f26 100644 --- a/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts +++ b/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts @@ -39,7 +39,9 @@ export enum SignMode { /** * SIGN_MODE_TEXTUAL is a future signing mode that will verify some * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. It is currently not supported. + * from SIGN_MODE_DIRECT. + * + * Since: cosmos-sdk 0.50 * * @generated from enum value: SIGN_MODE_TEXTUAL = 2; */ @@ -48,8 +50,7 @@ export enum SignMode { /** * SIGN_MODE_DIRECT_AUX specifies a signing mode which uses * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. It also allows - * for adding Tips in transactions. + * require signers signing over other signers' `signer_info`. * * Since: cosmos-sdk 0.46 * diff --git a/src/protobufs/cosmos/tx/v1beta1/service_pb.ts b/src/protobufs/cosmos/tx/v1beta1/service_pb.ts index 2504d8c1..14630106 100644 --- a/src/protobufs/cosmos/tx/v1beta1/service_pb.ts +++ b/src/protobufs/cosmos/tx/v1beta1/service_pb.ts @@ -18,7 +18,8 @@ import { Block } from "../../../tendermint/types/block_pb.js"; */ export enum OrderBy { /** - * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults + * to ASC in this case. * * @generated from enum value: ORDER_BY_UNSPECIFIED = 0; */ @@ -46,7 +47,8 @@ proto3.util.setEnumType(OrderBy, "cosmos.tx.v1beta1.OrderBy", [ ]); /** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC + * method. * * @generated from enum cosmos.tx.v1beta1.BroadcastMode */ @@ -68,16 +70,16 @@ export enum BroadcastMode { BLOCK = 1, /** - * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. + * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits + * for a CheckTx execution response only. * * @generated from enum value: BROADCAST_MODE_SYNC = 2; */ SYNC = 2, /** - * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. + * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + * returns immediately. * * @generated from enum value: BROADCAST_MODE_ASYNC = 3; */ @@ -100,8 +102,11 @@ proto3.util.setEnumType(BroadcastMode, "cosmos.tx.v1beta1.BroadcastMode", [ export class GetTxsEventRequest extends Message { /** * events is the list of transaction event type. + * Deprecated post v0.47.x: use query instead, which should contain a valid + * events query. * - * @generated from field: repeated string events = 1; + * @generated from field: repeated string events = 1 [deprecated = true]; + * @deprecated */ events: string[] = []; @@ -120,7 +125,8 @@ export class GetTxsEventRequest extends Message { orderBy = OrderBy.UNSPECIFIED; /** - * page is the page number to query, starts at 1. If not provided, will default to first page. + * page is the page number to query, starts at 1. If not provided, will + * default to first page. * * @generated from field: uint64 page = 4; */ @@ -134,6 +140,16 @@ export class GetTxsEventRequest extends Message { */ limit = protoInt64.zero; + /** + * query defines the transaction event query that is proxied to Tendermint's + * TxSearch RPC method. The query must be valid. + * + * Since cosmos-sdk 0.50 + * + * @generated from field: string query = 6; + */ + query = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -147,6 +163,7 @@ export class GetTxsEventRequest extends Message { { no: 3, name: "order_by", kind: "enum", T: proto3.getEnumType(OrderBy) }, { no: 4, name: "page", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventRequest { @@ -572,7 +589,8 @@ export class GetBlockWithTxsRequest extends Message { } /** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. + * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs + * method. * * Since: cosmos-sdk 0.45.2 * diff --git a/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts b/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts index 10d877d8..e89ef278 100644 --- a/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts +++ b/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts @@ -251,14 +251,10 @@ export class SignDocDirectAux extends Message { sequence = protoInt64.zero; /** - * Tip is the optional tip used for transactions fees paid in another denom. - * It should be left empty if the signer is not the tipper for this - * transaction. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. + * tips have been depreacted and should not be used * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 6; + * @generated from field: cosmos.tx.v1beta1.Tip tip = 6 [deprecated = true]; + * @deprecated */ tip?: Tip; @@ -416,7 +412,8 @@ export class AuthInfo extends Message { * * Since: cosmos-sdk 0.46 * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 3; + * @generated from field: cosmos.tx.v1beta1.Tip tip = 3 [deprecated = true]; + * @deprecated */ tip?: Tip; @@ -743,6 +740,7 @@ export class Fee extends Message { * Since: cosmos-sdk 0.46 * * @generated from message cosmos.tx.v1beta1.Tip + * @deprecated */ export class Tip extends Message { /** diff --git a/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts b/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts index c0a78220..4704b63a 100644 --- a/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts +++ b/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts @@ -115,6 +115,39 @@ export class MsgIBCSendResponse extends Message { } } +/** + * MsgIBCWriteAcknowledgementResponse + * + * @generated from message cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse + */ +export class MsgIBCWriteAcknowledgementResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIBCWriteAcknowledgementResponse { + return new MsgIBCWriteAcknowledgementResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined, b: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIBCWriteAcknowledgementResponse, a, b); + } +} + /** * MsgIBCCloseChannel port and channel need to be owned by the contract * diff --git a/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts b/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts index 12fb04a7..ad56b04d 100644 --- a/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts +++ b/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts @@ -165,7 +165,7 @@ export class InstantiateContractProposal extends Message { /** - * grpc-gateway_out does not support Go style CodID + * grpc-gateway_out does not support Go style CodeID * * @generated from field: uint64 code_id = 1; */ @@ -583,7 +583,7 @@ export class QuerySmartContractStateResponse extends Message { /** - * grpc-gateway_out does not support Go style CodID + * grpc-gateway_out does not support Go style CodeID * * @generated from field: uint64 code_id = 1; */ @@ -617,6 +617,104 @@ export class QueryCodeRequest extends Message { } } +/** + * QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeInfoRequest + */ +export class QueryCodeInfoRequest extends Message { + /** + * grpc-gateway_out does not support Go style CodeID + * + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoRequest { + return new QueryCodeInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeInfoRequest | PlainMessage | undefined, b: QueryCodeInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeInfoRequest, a, b); + } +} + +/** + * QueryCodeInfoResponse is the response type for the Query/CodeInfo RPC method + * + * @generated from message cosmwasm.wasm.v1.QueryCodeInfoResponse + */ +export class QueryCodeInfoResponse extends Message { + /** + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * @generated from field: bytes checksum = 3; + */ + checksum = new Uint8Array(0); + + /** + * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; + */ + instantiatePermission?: AccessConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoResponse { + return new QueryCodeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeInfoResponse | PlainMessage | undefined, b: QueryCodeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeInfoResponse, a, b); + } +} + /** * CodeInfoResponse contains code meta data from CodeInfo * @@ -1073,6 +1171,81 @@ export class QueryContractsByCreatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigRequest { + return new QueryWasmLimitsConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWasmLimitsConfigRequest | PlainMessage | undefined, b: QueryWasmLimitsConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWasmLimitsConfigRequest, a, b); + } +} + +/** + * QueryWasmLimitsConfigResponse is the response type for the + * Query/WasmLimitsConfig RPC method. It contains the JSON encoded limits for + * static validation of Wasm files. + * + * @generated from message cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse + */ +export class QueryWasmLimitsConfigResponse extends Message { + /** + * @generated from field: string config = 1; + */ + config = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "config", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigResponse { + return new QueryWasmLimitsConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWasmLimitsConfigResponse | PlainMessage | undefined, b: QueryWasmLimitsConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWasmLimitsConfigResponse, a, b); + } +} + /** * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC * method. diff --git a/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts b/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts index f08d67ea..f55caac8 100644 --- a/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts +++ b/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts @@ -248,7 +248,7 @@ export class MsgInstantiateContractResponse extends Message { */ extension?: Any; + /** + * @generated from field: string ibc2_port_id = 8; + */ + ibc2PortId = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -345,6 +350,7 @@ export class ContractInfo extends Message { { no: 5, name: "created", kind: "message", T: AbsoluteTxPosition }, { no: 6, name: "ibc_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "extension", kind: "message", T: Any }, + { no: 8, name: "ibc2_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ContractInfo { diff --git a/src/protobufs/dymension/incentives/gauge_pb.ts b/src/protobufs/dymension/incentives/gauge_pb.ts deleted file mode 100644 index c42f1853..00000000 --- a/src/protobufs/dymension/incentives/gauge_pb.ts +++ /dev/null @@ -1,156 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/gauge.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { QueryCondition } from "../lockup/lock_pb.js"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Gauge is an object that stores and distributes yields to recipients who - * satisfy certain conditions. Currently gauges support conditions around the - * duration for which a given denom is locked. - * - * @generated from message dymensionxyz.dymension.incentives.Gauge - */ -export class Gauge extends Message { - /** - * id is the unique ID of a Gauge - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * is_perpetual is a flag to show if it's a perpetual or non-perpetual gauge - * Non-perpetual gauges distribute their tokens equally per epoch while the - * gauge is in the active period. Perpetual gauges distribute all their tokens - * at a single time and only distribute their tokens again once the gauge is - * refilled, Intended for use with incentives that get refilled daily. - * - * @generated from field: bool is_perpetual = 2; - */ - isPerpetual = false; - - /** - * distribute_to is where the gauge rewards are distributed to. - * This is queried via lock duration or by timestamp - * - * @generated from field: dymensionxyz.dymension.lockup.QueryCondition distribute_to = 3; - */ - distributeTo?: QueryCondition; - - /** - * coins is the total amount of coins that have been in the gauge - * Can distribute multiple coin denoms - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 4; - */ - coins: Coin[] = []; - - /** - * start_time is the distribution start time - * - * @generated from field: google.protobuf.Timestamp start_time = 5; - */ - startTime?: Timestamp; - - /** - * num_epochs_paid_over is the number of total epochs distribution will be - * completed over - * - * @generated from field: uint64 num_epochs_paid_over = 6; - */ - numEpochsPaidOver = protoInt64.zero; - - /** - * filled_epochs is the number of epochs distribution has been completed on - * already - * - * @generated from field: uint64 filled_epochs = 7; - */ - filledEpochs = protoInt64.zero; - - /** - * distributed_coins are coins that have been distributed already - * - * @generated from field: repeated cosmos.base.v1beta1.Coin distributed_coins = 8; - */ - distributedCoins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.Gauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "is_perpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "distribute_to", kind: "message", T: QueryCondition }, - { no: 4, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "start_time", kind: "message", T: Timestamp }, - { no: 6, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "filled_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "distributed_coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Gauge { - return new Gauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Gauge { - return new Gauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Gauge { - return new Gauge().fromJsonString(jsonString, options); - } - - static equals(a: Gauge | PlainMessage | undefined, b: Gauge | PlainMessage | undefined): boolean { - return proto3.util.equals(Gauge, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.LockableDurationsInfo - */ -export class LockableDurationsInfo extends Message { - /** - * List of incentivised durations that gauges will pay out to - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.LockableDurationsInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJsonString(jsonString, options); - } - - static equals(a: LockableDurationsInfo | PlainMessage | undefined, b: LockableDurationsInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(LockableDurationsInfo, a, b); - } -} - diff --git a/src/protobufs/dymension/incentives/genesis_pb.ts b/src/protobufs/dymension/incentives/genesis_pb.ts deleted file mode 100644 index 47479274..00000000 --- a/src/protobufs/dymension/incentives/genesis_pb.ts +++ /dev/null @@ -1,78 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/genesis.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { Gauge } from "./gauge_pb.js"; - -/** - * GenesisState defines the incentives module's various parameters when first - * initialized - * - * @generated from message dymensionxyz.dymension.incentives.GenesisState - */ -export class GenesisState extends Message { - /** - * params are all the parameters of the module - * - * @generated from field: dymensionxyz.dymension.incentives.Params params = 1; - */ - params?: Params; - - /** - * gauges are all gauges that should exist at genesis - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge gauges = 2; - */ - gauges: Gauge[] = []; - - /** - * lockable_durations are all lockup durations that gauges can be locked for - * in order to recieve incentives - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 3; - */ - lockableDurations: Duration[] = []; - - /** - * last_gauge_id is what the gauge number will increment from when creating - * the next gauge after genesis - * - * @generated from field: uint64 last_gauge_id = 4; - */ - lastGaugeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "gauges", kind: "message", T: Gauge, repeated: true }, - { no: 3, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - { no: 4, name: "last_gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/src/protobufs/dymension/incentives/query_cosmes.ts b/src/protobufs/dymension/incentives/query_cosmes.ts deleted file mode 100644 index 70fcf729..00000000 --- a/src/protobufs/dymension/incentives/query_cosmes.ts +++ /dev/null @@ -1,121 +0,0 @@ -// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/incentives/query.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomResponse, ActiveGaugesRequest, ActiveGaugesResponse, GaugeByIDRequest, GaugeByIDResponse, GaugesRequest, GaugesResponse, ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsResponse, QueryLockableDurationsRequest, QueryLockableDurationsResponse, RewardsEstRequest, RewardsEstResponse, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomResponse, UpcomingGaugesRequest, UpcomingGaugesResponse } from "./query_pb.js"; - -const TYPE_NAME = "dymensionxyz.dymension.incentives.Query"; - -/** - * ModuleToDistributeCoins returns coins that are going to be distributed - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.ModuleToDistributeCoins - */ -export const QueryModuleToDistributeCoinsService = { - typeName: TYPE_NAME, - method: "ModuleToDistributeCoins", - Request: ModuleToDistributeCoinsRequest, - Response: ModuleToDistributeCoinsResponse, -} as const; - -/** - * GaugeByID returns gauges by their respective ID - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.GaugeByID - */ -export const QueryGaugeByIDService = { - typeName: TYPE_NAME, - method: "GaugeByID", - Request: GaugeByIDRequest, - Response: GaugeByIDResponse, -} as const; - -/** - * Gauges returns both upcoming and active gauges - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.Gauges - */ -export const QueryGaugesService = { - typeName: TYPE_NAME, - method: "Gauges", - Request: GaugesRequest, - Response: GaugesResponse, -} as const; - -/** - * ActiveGauges returns active gauges - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.ActiveGauges - */ -export const QueryActiveGaugesService = { - typeName: TYPE_NAME, - method: "ActiveGauges", - Request: ActiveGaugesRequest, - Response: ActiveGaugesResponse, -} as const; - -/** - * ActiveGaugesPerDenom returns active gauges by denom - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.ActiveGaugesPerDenom - */ -export const QueryActiveGaugesPerDenomService = { - typeName: TYPE_NAME, - method: "ActiveGaugesPerDenom", - Request: ActiveGaugesPerDenomRequest, - Response: ActiveGaugesPerDenomResponse, -} as const; - -/** - * Returns scheduled gauges that have not yet occured - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.UpcomingGauges - */ -export const QueryUpcomingGaugesService = { - typeName: TYPE_NAME, - method: "UpcomingGauges", - Request: UpcomingGaugesRequest, - Response: UpcomingGaugesResponse, -} as const; - -/** - * UpcomingGaugesPerDenom returns scheduled gauges that have not yet occured - * by denom - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.UpcomingGaugesPerDenom - */ -export const QueryUpcomingGaugesPerDenomService = { - typeName: TYPE_NAME, - method: "UpcomingGaugesPerDenom", - Request: UpcomingGaugesPerDenomRequest, - Response: UpcomingGaugesPerDenomResponse, -} as const; - -/** - * RewardsEst returns an estimate of the rewards from now until a specified - * time in the future The querier either provides an address or a set of locks - * for which they want to find the associated rewards - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.RewardsEst - */ -export const QueryRewardsEstService = { - typeName: TYPE_NAME, - method: "RewardsEst", - Request: RewardsEstRequest, - Response: RewardsEstResponse, -} as const; - -/** - * LockableDurations returns lockable durations that are valid to distribute - * incentives for - * - * @generated from rpc dymensionxyz.dymension.incentives.Query.LockableDurations - */ -export const QueryLockableDurationsService = { - typeName: TYPE_NAME, - method: "LockableDurations", - Request: QueryLockableDurationsRequest, - Response: QueryLockableDurationsResponse, -} as const; - diff --git a/src/protobufs/dymension/incentives/query_pb.ts b/src/protobufs/dymension/incentives/query_pb.ts deleted file mode 100644 index e887d46b..00000000 --- a/src/protobufs/dymension/incentives/query_pb.ts +++ /dev/null @@ -1,771 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/query.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { Gauge } from "./gauge_pb.js"; -import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * @generated from message dymensionxyz.dymension.incentives.ModuleToDistributeCoinsRequest - */ -export class ModuleToDistributeCoinsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ModuleToDistributeCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleToDistributeCoinsRequest | PlainMessage | undefined, b: ModuleToDistributeCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleToDistributeCoinsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.ModuleToDistributeCoinsResponse - */ -export class ModuleToDistributeCoinsResponse extends Message { - /** - * Coins that have yet to be distributed - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ModuleToDistributeCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleToDistributeCoinsResponse | PlainMessage | undefined, b: ModuleToDistributeCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleToDistributeCoinsResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.GaugeByIDRequest - */ -export class GaugeByIDRequest extends Message { - /** - * Gague ID being queried - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.GaugeByIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: GaugeByIDRequest | PlainMessage | undefined, b: GaugeByIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugeByIDRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.GaugeByIDResponse - */ -export class GaugeByIDResponse extends Message { - /** - * Gauge that corresponds to provided gague ID - * - * @generated from field: dymensionxyz.dymension.incentives.Gauge gauge = 1; - */ - gauge?: Gauge; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.GaugeByIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge", kind: "message", T: Gauge }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: GaugeByIDResponse | PlainMessage | undefined, b: GaugeByIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugeByIDResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.GaugesRequest - */ -export class GaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.GaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugesRequest { - return new GaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugesRequest { - return new GaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugesRequest { - return new GaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GaugesRequest | PlainMessage | undefined, b: GaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugesRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.GaugesResponse - */ -export class GaugesResponse extends Message { - /** - * Upcoming and active gauges - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.GaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugesResponse { - return new GaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugesResponse { - return new GaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugesResponse { - return new GaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GaugesResponse | PlainMessage | undefined, b: GaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugesResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.ActiveGaugesRequest - */ -export class ActiveGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ActiveGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesRequest | PlainMessage | undefined, b: ActiveGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.ActiveGaugesResponse - */ -export class ActiveGaugesResponse extends Message { - /** - * Active gagues only - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ActiveGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesResponse | PlainMessage | undefined, b: ActiveGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.ActiveGaugesPerDenomRequest - */ -export class ActiveGaugesPerDenomRequest extends Message { - /** - * Desired denom when querying active gagues - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ActiveGaugesPerDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesPerDenomRequest | PlainMessage | undefined, b: ActiveGaugesPerDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesPerDenomRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.ActiveGaugesPerDenomResponse - */ -export class ActiveGaugesPerDenomResponse extends Message { - /** - * Active gagues that match denom in query - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.ActiveGaugesPerDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesPerDenomResponse | PlainMessage | undefined, b: ActiveGaugesPerDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesPerDenomResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.UpcomingGaugesRequest - */ -export class UpcomingGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.UpcomingGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesRequest | PlainMessage | undefined, b: UpcomingGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.UpcomingGaugesResponse - */ -export class UpcomingGaugesResponse extends Message { - /** - * Gauges whose distribution is upcoming - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.UpcomingGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesResponse | PlainMessage | undefined, b: UpcomingGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.UpcomingGaugesPerDenomRequest - */ -export class UpcomingGaugesPerDenomRequest extends Message { - /** - * Filter for upcoming gagues that match specific denom - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.UpcomingGaugesPerDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesPerDenomRequest | PlainMessage | undefined, b: UpcomingGaugesPerDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesPerDenomRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.UpcomingGaugesPerDenomResponse - */ -export class UpcomingGaugesPerDenomResponse extends Message { - /** - * Upcoming gagues that match denom in query - * - * @generated from field: repeated dymensionxyz.dymension.incentives.Gauge upcoming_gauges = 1; - */ - upcomingGauges: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.UpcomingGaugesPerDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upcoming_gauges", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesPerDenomResponse | PlainMessage | undefined, b: UpcomingGaugesPerDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesPerDenomResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.RewardsEstRequest - */ -export class RewardsEstRequest extends Message { - /** - * Address that is being queried for future estimated rewards - * - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * Lock IDs included in future reward estimation - * - * @generated from field: repeated uint64 lock_ids = 2; - */ - lockIds: bigint[] = []; - - /** - * Upper time limit of reward estimation - * Lower limit is current epoch - * - * @generated from field: int64 end_epoch = 3; - */ - endEpoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.RewardsEstRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 3, name: "end_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromJsonString(jsonString, options); - } - - static equals(a: RewardsEstRequest | PlainMessage | undefined, b: RewardsEstRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RewardsEstRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.RewardsEstResponse - */ -export class RewardsEstResponse extends Message { - /** - * Estimated coin rewards that will be recieved at provided address - * from specified locks between current time and end epoch - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.RewardsEstResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromJsonString(jsonString, options); - } - - static equals(a: RewardsEstResponse | PlainMessage | undefined, b: RewardsEstResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RewardsEstResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.QueryLockableDurationsRequest - */ -export class QueryLockableDurationsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.QueryLockableDurationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsRequest | PlainMessage | undefined, b: QueryLockableDurationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.QueryLockableDurationsResponse - */ -export class QueryLockableDurationsResponse extends Message { - /** - * Time durations that users can lock coins for in order to recieve rewards - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.QueryLockableDurationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsResponse | PlainMessage | undefined, b: QueryLockableDurationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsResponse, a, b); - } -} - diff --git a/src/protobufs/dymension/incentives/tx_cosmes.ts b/src/protobufs/dymension/incentives/tx_cosmes.ts deleted file mode 100644 index d071b083..00000000 --- a/src/protobufs/dymension/incentives/tx_cosmes.ts +++ /dev/null @@ -1,29 +0,0 @@ -// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/incentives/tx.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddToGauge, MsgAddToGaugeResponse, MsgCreateGauge, MsgCreateGaugeResponse } from "./tx_pb.js"; - -const TYPE_NAME = "dymensionxyz.dymension.incentives.Msg"; - -/** - * @generated from rpc dymensionxyz.dymension.incentives.Msg.CreateGauge - */ -export const MsgCreateGaugeService = { - typeName: TYPE_NAME, - method: "CreateGauge", - Request: MsgCreateGauge, - Response: MsgCreateGaugeResponse, -} as const; - -/** - * @generated from rpc dymensionxyz.dymension.incentives.Msg.AddToGauge - */ -export const MsgAddToGaugeService = { - typeName: TYPE_NAME, - method: "AddToGauge", - Request: MsgAddToGauge, - Response: MsgAddToGaugeResponse, -} as const; - diff --git a/src/protobufs/dymension/incentives/tx_pb.ts b/src/protobufs/dymension/incentives/tx_pb.ts deleted file mode 100644 index 51d51320..00000000 --- a/src/protobufs/dymension/incentives/tx_pb.ts +++ /dev/null @@ -1,216 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/tx.proto (package dymensionxyz.dymension.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { QueryCondition } from "../lockup/lock_pb.js"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * MsgCreateGauge creates a gague to distribute rewards to users - * - * @generated from message dymensionxyz.dymension.incentives.MsgCreateGauge - */ -export class MsgCreateGauge extends Message { - /** - * is_perpetual shows if it's a perpetual or non-perpetual gauge - * Non-perpetual gauges distribute their tokens equally per epoch while the - * gauge is in the active period. Perpetual gauges distribute all their tokens - * at a single time and only distribute their tokens again once the gauge is - * refilled - * - * @generated from field: bool is_perpetual = 1; - */ - isPerpetual = false; - - /** - * owner is the address of gauge creator - * - * @generated from field: string owner = 2; - */ - owner = ""; - - /** - * distribute_to show which lock the gauge should distribute to by time - * duration or by timestamp - * - * @generated from field: dymensionxyz.dymension.lockup.QueryCondition distribute_to = 3; - */ - distributeTo?: QueryCondition; - - /** - * coins are coin(s) to be distributed by the gauge - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 4; - */ - coins: Coin[] = []; - - /** - * start_time is the distribution start time - * - * @generated from field: google.protobuf.Timestamp start_time = 5; - */ - startTime?: Timestamp; - - /** - * num_epochs_paid_over is the number of epochs distribution will be completed - * over - * - * @generated from field: uint64 num_epochs_paid_over = 6; - */ - numEpochsPaidOver = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.MsgCreateGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "is_perpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "distribute_to", kind: "message", T: QueryCondition }, - { no: 4, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "start_time", kind: "message", T: Timestamp }, - { no: 6, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGauge | PlainMessage | undefined, b: MsgCreateGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGauge, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.MsgCreateGaugeResponse - */ -export class MsgCreateGaugeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.MsgCreateGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGaugeResponse | PlainMessage | undefined, b: MsgCreateGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGaugeResponse, a, b); - } -} - -/** - * MsgAddToGauge adds coins to a previously created gauge - * - * @generated from message dymensionxyz.dymension.incentives.MsgAddToGauge - */ -export class MsgAddToGauge extends Message { - /** - * owner is the gauge owner's address - * - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * gauge_id is the ID of gauge that rewards are getting added to - * - * @generated from field: uint64 gauge_id = 2; - */ - gaugeId = protoInt64.zero; - - /** - * rewards are the coin(s) to add to gauge - * - * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; - */ - rewards: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.MsgAddToGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToGauge | PlainMessage | undefined, b: MsgAddToGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToGauge, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.incentives.MsgAddToGaugeResponse - */ -export class MsgAddToGaugeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.MsgAddToGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToGaugeResponse | PlainMessage | undefined, b: MsgAddToGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToGaugeResponse, a, b); - } -} - diff --git a/src/protobufs/dymension/lockup/lock_pb.ts b/src/protobufs/dymension/lockup/lock_pb.ts deleted file mode 100644 index 4685be96..00000000 --- a/src/protobufs/dymension/lockup/lock_pb.ts +++ /dev/null @@ -1,186 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/lock.proto (package dymensionxyz.dymension.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * LockQueryType defines the type of the lock query that can - * either be by duration or start time of the lock. - * - * @generated from enum dymensionxyz.dymension.lockup.LockQueryType - */ -export enum LockQueryType { - /** - * @generated from enum value: ByDuration = 0; - */ - ByDuration = 0, - - /** - * @generated from enum value: ByTime = 1; - */ - ByTime = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(LockQueryType) -proto3.util.setEnumType(LockQueryType, "dymensionxyz.dymension.lockup.LockQueryType", [ - { no: 0, name: "ByDuration" }, - { no: 1, name: "ByTime" }, -]); - -/** - * PeriodLock is a single lock unit by period defined by the x/lockup module. - * It's a record of a locked coin at a specific time. It stores owner, duration, - * unlock time and the number of coins locked. A state of a period lock is - * created upon lock creation, and deleted once the lock has been matured after - * the `duration` has passed since unbonding started. - * - * @generated from message dymensionxyz.dymension.lockup.PeriodLock - */ -export class PeriodLock extends Message { - /** - * ID is the unique id of the lock. - * The ID of the lock is decided upon lock creation, incrementing by 1 for - * every lock. - * - * @generated from field: uint64 ID = 1; - */ - ID = protoInt64.zero; - - /** - * Owner is the account address of the lock owner. - * Only the owner can modify the state of the lock. - * - * @generated from field: string owner = 2; - */ - owner = ""; - - /** - * Duration is the time needed for a lock to mature after unlocking has - * started. - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - /** - * EndTime refers to the time at which the lock would mature and get deleted. - * This value is first initialized when an unlock has started for the lock, - * end time being block time + duration. - * - * @generated from field: google.protobuf.Timestamp end_time = 4; - */ - endTime?: Timestamp; - - /** - * Coins are the tokens locked within the lock, kept in the module account. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 5; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.PeriodLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - { no: 4, name: "end_time", kind: "message", T: Timestamp }, - { no: 5, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PeriodLock { - return new PeriodLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PeriodLock { - return new PeriodLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PeriodLock { - return new PeriodLock().fromJsonString(jsonString, options); - } - - static equals(a: PeriodLock | PlainMessage | undefined, b: PeriodLock | PlainMessage | undefined): boolean { - return proto3.util.equals(PeriodLock, a, b); - } -} - -/** - * QueryCondition is a struct used for querying locks upon different conditions. - * Duration field and timestamp fields could be optional, depending on the - * LockQueryType. - * - * @generated from message dymensionxyz.dymension.lockup.QueryCondition - */ -export class QueryCondition extends Message { - /** - * LockQueryType is a type of lock query, ByLockDuration | ByLockTime - * - * @generated from field: dymensionxyz.dymension.lockup.LockQueryType lock_query_type = 1; - */ - lockQueryType = LockQueryType.ByDuration; - - /** - * Denom represents the token denomination we are looking to lock up - * - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * Duration is used to query locks with longer duration than the specified - * duration. Duration field must not be nil when the lock query type is - * `ByLockDuration`. - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - /** - * Timestamp is used by locks started before the specified duration. - * Timestamp field must not be nil when the lock query type is `ByLockTime`. - * Querying locks with timestamp is currently not implemented. - * - * @generated from field: google.protobuf.Timestamp timestamp = 4; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.QueryCondition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_query_type", kind: "enum", T: proto3.getEnumType(LockQueryType) }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - { no: 4, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCondition { - return new QueryCondition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCondition { - return new QueryCondition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCondition { - return new QueryCondition().fromJsonString(jsonString, options); - } - - static equals(a: QueryCondition | PlainMessage | undefined, b: QueryCondition | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCondition, a, b); - } -} - diff --git a/src/protobufs/dymension/lockup/query_cosmes.ts b/src/protobufs/dymension/lockup/query_cosmes.ts deleted file mode 100644 index 8b27ec72..00000000 --- a/src/protobufs/dymension/lockup/query_cosmes.ts +++ /dev/null @@ -1,215 +0,0 @@ -// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/lockup/query.proto (package dymensionxyz.dymension.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AccountLockedCoinsRequest, AccountLockedCoinsResponse, AccountLockedDurationRequest, AccountLockedDurationResponse, AccountLockedLongerDurationDenomRequest, AccountLockedLongerDurationDenomResponse, AccountLockedLongerDurationNotUnlockingOnlyRequest, AccountLockedLongerDurationNotUnlockingOnlyResponse, AccountLockedLongerDurationRequest, AccountLockedLongerDurationResponse, AccountLockedPastTimeDenomRequest, AccountLockedPastTimeDenomResponse, AccountLockedPastTimeNotUnlockingOnlyRequest, AccountLockedPastTimeNotUnlockingOnlyResponse, AccountLockedPastTimeRequest, AccountLockedPastTimeResponse, AccountUnlockableCoinsRequest, AccountUnlockableCoinsResponse, AccountUnlockedBeforeTimeRequest, AccountUnlockedBeforeTimeResponse, AccountUnlockingCoinsRequest, AccountUnlockingCoinsResponse, LockedDenomRequest, LockedDenomResponse, LockedRequest, LockedResponse, ModuleBalanceRequest, ModuleBalanceResponse, ModuleLockedAmountRequest, ModuleLockedAmountResponse, NextLockIDRequest, NextLockIDResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "dymensionxyz.dymension.lockup.Query"; - -/** - * Return full balance of the module - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.ModuleBalance - */ -export const QueryModuleBalanceService = { - typeName: TYPE_NAME, - method: "ModuleBalance", - Request: ModuleBalanceRequest, - Response: ModuleBalanceResponse, -} as const; - -/** - * Return locked balance of the module - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.ModuleLockedAmount - */ -export const QueryModuleLockedAmountService = { - typeName: TYPE_NAME, - method: "ModuleLockedAmount", - Request: ModuleLockedAmountRequest, - Response: ModuleLockedAmountResponse, -} as const; - -/** - * Returns unlockable coins which are not withdrawn yet - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountUnlockableCoins - */ -export const QueryAccountUnlockableCoinsService = { - typeName: TYPE_NAME, - method: "AccountUnlockableCoins", - Request: AccountUnlockableCoinsRequest, - Response: AccountUnlockableCoinsResponse, -} as const; - -/** - * Returns unlocking coins - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountUnlockingCoins - */ -export const QueryAccountUnlockingCoinsService = { - typeName: TYPE_NAME, - method: "AccountUnlockingCoins", - Request: AccountUnlockingCoinsRequest, - Response: AccountUnlockingCoinsResponse, -} as const; - -/** - * Return a locked coins that can't be withdrawn - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedCoins - */ -export const QueryAccountLockedCoinsService = { - typeName: TYPE_NAME, - method: "AccountLockedCoins", - Request: AccountLockedCoinsRequest, - Response: AccountLockedCoinsResponse, -} as const; - -/** - * Returns locked records of an account with unlock time beyond timestamp - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedPastTime - */ -export const QueryAccountLockedPastTimeService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTime", - Request: AccountLockedPastTimeRequest, - Response: AccountLockedPastTimeResponse, -} as const; - -/** - * Returns locked records of an account with unlock time beyond timestamp - * excluding tokens started unlocking - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedPastTimeNotUnlockingOnly - */ -export const QueryAccountLockedPastTimeNotUnlockingOnlyService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTimeNotUnlockingOnly", - Request: AccountLockedPastTimeNotUnlockingOnlyRequest, - Response: AccountLockedPastTimeNotUnlockingOnlyResponse, -} as const; - -/** - * Returns unlocked records with unlock time before timestamp - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountUnlockedBeforeTime - */ -export const QueryAccountUnlockedBeforeTimeService = { - typeName: TYPE_NAME, - method: "AccountUnlockedBeforeTime", - Request: AccountUnlockedBeforeTimeRequest, - Response: AccountUnlockedBeforeTimeResponse, -} as const; - -/** - * Returns lock records by address, timestamp, denom - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedPastTimeDenom - */ -export const QueryAccountLockedPastTimeDenomService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTimeDenom", - Request: AccountLockedPastTimeDenomRequest, - Response: AccountLockedPastTimeDenomResponse, -} as const; - -/** - * Returns total locked per denom with longer past given time - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.LockedDenom - */ -export const QueryLockedDenomService = { - typeName: TYPE_NAME, - method: "LockedDenom", - Request: LockedDenomRequest, - Response: LockedDenomResponse, -} as const; - -/** - * Returns lock record by id - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.LockedByID - */ -export const QueryLockedByIDService = { - typeName: TYPE_NAME, - method: "LockedByID", - Request: LockedRequest, - Response: LockedResponse, -} as const; - -/** - * Returns next lock ID - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.NextLockID - */ -export const QueryNextLockIDService = { - typeName: TYPE_NAME, - method: "NextLockID", - Request: NextLockIDRequest, - Response: NextLockIDResponse, -} as const; - -/** - * Returns account locked records with longer duration - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedLongerDuration - */ -export const QueryAccountLockedLongerDurationService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDuration", - Request: AccountLockedLongerDurationRequest, - Response: AccountLockedLongerDurationResponse, -} as const; - -/** - * Returns account locked records with a specific duration - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedDuration - */ -export const QueryAccountLockedDurationService = { - typeName: TYPE_NAME, - method: "AccountLockedDuration", - Request: AccountLockedDurationRequest, - Response: AccountLockedDurationResponse, -} as const; - -/** - * Returns account locked records with longer duration excluding tokens - * started unlocking - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedLongerDurationNotUnlockingOnly - */ -export const QueryAccountLockedLongerDurationNotUnlockingOnlyService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDurationNotUnlockingOnly", - Request: AccountLockedLongerDurationNotUnlockingOnlyRequest, - Response: AccountLockedLongerDurationNotUnlockingOnlyResponse, -} as const; - -/** - * Returns account's locked records for a denom with longer duration - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.AccountLockedLongerDurationDenom - */ -export const QueryAccountLockedLongerDurationDenomService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDurationDenom", - Request: AccountLockedLongerDurationDenomRequest, - Response: AccountLockedLongerDurationDenomResponse, -} as const; - -/** - * Params returns lockup params. - * - * @generated from rpc dymensionxyz.dymension.lockup.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - diff --git a/src/protobufs/dymension/lockup/query_pb.ts b/src/protobufs/dymension/lockup/query_pb.ts deleted file mode 100644 index 8239a2cb..00000000 --- a/src/protobufs/dymension/lockup/query_pb.ts +++ /dev/null @@ -1,1311 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/query.proto (package dymensionxyz.dymension.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { PeriodLock } from "./lock_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * @generated from message dymensionxyz.dymension.lockup.ModuleBalanceRequest - */ -export class ModuleBalanceRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.ModuleBalanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleBalanceRequest | PlainMessage | undefined, b: ModuleBalanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleBalanceRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.ModuleBalanceResponse - */ -export class ModuleBalanceResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.ModuleBalanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleBalanceResponse | PlainMessage | undefined, b: ModuleBalanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleBalanceResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.ModuleLockedAmountRequest - */ -export class ModuleLockedAmountRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.ModuleLockedAmountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleLockedAmountRequest | PlainMessage | undefined, b: ModuleLockedAmountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleLockedAmountRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.ModuleLockedAmountResponse - */ -export class ModuleLockedAmountResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.ModuleLockedAmountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleLockedAmountResponse | PlainMessage | undefined, b: ModuleLockedAmountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleLockedAmountResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockableCoinsRequest - */ -export class AccountUnlockableCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockableCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockableCoinsRequest | PlainMessage | undefined, b: AccountUnlockableCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockableCoinsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockableCoinsResponse - */ -export class AccountUnlockableCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockableCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockableCoinsResponse | PlainMessage | undefined, b: AccountUnlockableCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockableCoinsResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockingCoinsRequest - */ -export class AccountUnlockingCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockingCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockingCoinsRequest | PlainMessage | undefined, b: AccountUnlockingCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockingCoinsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockingCoinsResponse - */ -export class AccountUnlockingCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockingCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockingCoinsResponse | PlainMessage | undefined, b: AccountUnlockingCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockingCoinsResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedCoinsRequest - */ -export class AccountLockedCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedCoinsRequest | PlainMessage | undefined, b: AccountLockedCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedCoinsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedCoinsResponse - */ -export class AccountLockedCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedCoinsResponse | PlainMessage | undefined, b: AccountLockedCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedCoinsResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeRequest - */ -export class AccountLockedPastTimeRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeRequest | PlainMessage | undefined, b: AccountLockedPastTimeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeResponse - */ -export class AccountLockedPastTimeResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeResponse | PlainMessage | undefined, b: AccountLockedPastTimeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeNotUnlockingOnlyRequest - */ -export class AccountLockedPastTimeNotUnlockingOnlyRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeNotUnlockingOnlyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeNotUnlockingOnlyRequest | PlainMessage | undefined, b: AccountLockedPastTimeNotUnlockingOnlyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeNotUnlockingOnlyRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeNotUnlockingOnlyResponse - */ -export class AccountLockedPastTimeNotUnlockingOnlyResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeNotUnlockingOnlyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeNotUnlockingOnlyResponse | PlainMessage | undefined, b: AccountLockedPastTimeNotUnlockingOnlyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeNotUnlockingOnlyResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockedBeforeTimeRequest - */ -export class AccountUnlockedBeforeTimeRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockedBeforeTimeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockedBeforeTimeRequest | PlainMessage | undefined, b: AccountUnlockedBeforeTimeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockedBeforeTimeRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountUnlockedBeforeTimeResponse - */ -export class AccountUnlockedBeforeTimeResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountUnlockedBeforeTimeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockedBeforeTimeResponse | PlainMessage | undefined, b: AccountUnlockedBeforeTimeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockedBeforeTimeResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeDenomRequest - */ -export class AccountLockedPastTimeDenomRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - /** - * @generated from field: string denom = 3; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeDenomRequest | PlainMessage | undefined, b: AccountLockedPastTimeDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeDenomRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedPastTimeDenomResponse - */ -export class AccountLockedPastTimeDenomResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedPastTimeDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeDenomResponse | PlainMessage | undefined, b: AccountLockedPastTimeDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeDenomResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.LockedDenomRequest - */ -export class LockedDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.LockedDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: LockedDenomRequest | PlainMessage | undefined, b: LockedDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedDenomRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.LockedDenomResponse - */ -export class LockedDenomResponse extends Message { - /** - * @generated from field: string amount = 1; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.LockedDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: LockedDenomResponse | PlainMessage | undefined, b: LockedDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedDenomResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.LockedRequest - */ -export class LockedRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.LockedRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedRequest { - return new LockedRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedRequest { - return new LockedRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedRequest { - return new LockedRequest().fromJsonString(jsonString, options); - } - - static equals(a: LockedRequest | PlainMessage | undefined, b: LockedRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.LockedResponse - */ -export class LockedResponse extends Message { - /** - * @generated from field: dymensionxyz.dymension.lockup.PeriodLock lock = 1; - */ - lock?: PeriodLock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.LockedResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock", kind: "message", T: PeriodLock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedResponse { - return new LockedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedResponse { - return new LockedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedResponse { - return new LockedResponse().fromJsonString(jsonString, options); - } - - static equals(a: LockedResponse | PlainMessage | undefined, b: LockedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.NextLockIDRequest - */ -export class NextLockIDRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.NextLockIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: NextLockIDRequest | PlainMessage | undefined, b: NextLockIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NextLockIDRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.NextLockIDResponse - */ -export class NextLockIDResponse extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.NextLockIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: NextLockIDResponse | PlainMessage | undefined, b: NextLockIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NextLockIDResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationRequest - */ -export class AccountLockedLongerDurationRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationRequest | PlainMessage | undefined, b: AccountLockedLongerDurationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationResponse - */ -export class AccountLockedLongerDurationResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationResponse | PlainMessage | undefined, b: AccountLockedLongerDurationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedDurationRequest - */ -export class AccountLockedDurationRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedDurationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedDurationRequest | PlainMessage | undefined, b: AccountLockedDurationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedDurationRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedDurationResponse - */ -export class AccountLockedDurationResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedDurationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedDurationResponse | PlainMessage | undefined, b: AccountLockedDurationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedDurationResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationNotUnlockingOnlyRequest - */ -export class AccountLockedLongerDurationNotUnlockingOnlyRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationNotUnlockingOnlyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationNotUnlockingOnlyRequest | PlainMessage | undefined, b: AccountLockedLongerDurationNotUnlockingOnlyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationNotUnlockingOnlyRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationNotUnlockingOnlyResponse - */ -export class AccountLockedLongerDurationNotUnlockingOnlyResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationNotUnlockingOnlyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationNotUnlockingOnlyResponse | PlainMessage | undefined, b: AccountLockedLongerDurationNotUnlockingOnlyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationNotUnlockingOnlyResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationDenomRequest - */ -export class AccountLockedLongerDurationDenomRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * @generated from field: string denom = 3; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationDenomRequest | PlainMessage | undefined, b: AccountLockedLongerDurationDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationDenomRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.AccountLockedLongerDurationDenomResponse - */ -export class AccountLockedLongerDurationDenomResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.AccountLockedLongerDurationDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationDenomResponse | PlainMessage | undefined, b: AccountLockedLongerDurationDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationDenomResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * @generated from field: dymensionxyz.dymension.lockup.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/src/protobufs/dymension/lockup/tx_cosmes.ts b/src/protobufs/dymension/lockup/tx_cosmes.ts deleted file mode 100644 index af218df5..00000000 --- a/src/protobufs/dymension/lockup/tx_cosmes.ts +++ /dev/null @@ -1,67 +0,0 @@ -// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/lockup/tx.proto (package dymensionxyz.dymension.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgBeginUnlocking, MsgBeginUnlockingAll, MsgBeginUnlockingAllResponse, MsgBeginUnlockingResponse, MsgExtendLockup, MsgExtendLockupResponse, MsgForceUnlock, MsgForceUnlockResponse, MsgLockTokens, MsgLockTokensResponse } from "./tx_pb.js"; - -const TYPE_NAME = "dymensionxyz.dymension.lockup.Msg"; - -/** - * LockTokens lock tokens - * - * @generated from rpc dymensionxyz.dymension.lockup.Msg.LockTokens - */ -export const MsgLockTokensService = { - typeName: TYPE_NAME, - method: "LockTokens", - Request: MsgLockTokens, - Response: MsgLockTokensResponse, -} as const; - -/** - * BeginUnlockingAll begin unlocking all tokens - * - * @generated from rpc dymensionxyz.dymension.lockup.Msg.BeginUnlockingAll - */ -export const MsgBeginUnlockingAllService = { - typeName: TYPE_NAME, - method: "BeginUnlockingAll", - Request: MsgBeginUnlockingAll, - Response: MsgBeginUnlockingAllResponse, -} as const; - -/** - * MsgBeginUnlocking begins unlocking tokens by lock ID - * - * @generated from rpc dymensionxyz.dymension.lockup.Msg.BeginUnlocking - */ -export const MsgBeginUnlockingService = { - typeName: TYPE_NAME, - method: "BeginUnlocking", - Request: MsgBeginUnlocking, - Response: MsgBeginUnlockingResponse, -} as const; - -/** - * MsgEditLockup edits the existing lockups by lock ID - * - * @generated from rpc dymensionxyz.dymension.lockup.Msg.ExtendLockup - */ -export const MsgExtendLockupService = { - typeName: TYPE_NAME, - method: "ExtendLockup", - Request: MsgExtendLockup, - Response: MsgExtendLockupResponse, -} as const; - -/** - * @generated from rpc dymensionxyz.dymension.lockup.Msg.ForceUnlock - */ -export const MsgForceUnlockService = { - typeName: TYPE_NAME, - method: "ForceUnlock", - Request: MsgForceUnlock, - Response: MsgForceUnlockResponse, -} as const; - diff --git a/src/protobufs/dymension/lockup/tx_pb.ts b/src/protobufs/dymension/lockup/tx_pb.ts deleted file mode 100644 index 8844f77a..00000000 --- a/src/protobufs/dymension/lockup/tx_pb.ts +++ /dev/null @@ -1,447 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/tx.proto (package dymensionxyz.dymension.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { PeriodLock } from "./lock_pb.js"; - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgLockTokens - */ -export class MsgLockTokens extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgLockTokens"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockTokens | PlainMessage | undefined, b: MsgLockTokens | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockTokens, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgLockTokensResponse - */ -export class MsgLockTokensResponse extends Message { - /** - * @generated from field: uint64 ID = 1; - */ - ID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgLockTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockTokensResponse | PlainMessage | undefined, b: MsgLockTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockTokensResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgBeginUnlockingAll - */ -export class MsgBeginUnlockingAll extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgBeginUnlockingAll"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingAll | PlainMessage | undefined, b: MsgBeginUnlockingAll | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingAll, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgBeginUnlockingAllResponse - */ -export class MsgBeginUnlockingAllResponse extends Message { - /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock unlocks = 1; - */ - unlocks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgBeginUnlockingAllResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unlocks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingAllResponse | PlainMessage | undefined, b: MsgBeginUnlockingAllResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingAllResponse, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgBeginUnlocking - */ -export class MsgBeginUnlocking extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * Amount of unlocking coins. Unlock all if not set. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgBeginUnlocking"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlocking | PlainMessage | undefined, b: MsgBeginUnlocking | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlocking, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgBeginUnlockingResponse - */ -export class MsgBeginUnlockingResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * @generated from field: uint64 unlockingLockID = 2; - */ - unlockingLockID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgBeginUnlockingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "unlockingLockID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingResponse | PlainMessage | undefined, b: MsgBeginUnlockingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingResponse, a, b); - } -} - -/** - * MsgExtendLockup extends the existing lockup's duration. - * The new duration is longer than the original. - * - * @generated from message dymensionxyz.dymension.lockup.MsgExtendLockup - */ -export class MsgExtendLockup extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * duration to be set. fails if lower than the current duration, or is - * unlocking - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgExtendLockup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromJsonString(jsonString, options); - } - - static equals(a: MsgExtendLockup | PlainMessage | undefined, b: MsgExtendLockup | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExtendLockup, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgExtendLockupResponse - */ -export class MsgExtendLockupResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgExtendLockupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExtendLockupResponse | PlainMessage | undefined, b: MsgExtendLockupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExtendLockupResponse, a, b); - } -} - -/** - * MsgForceUnlock unlocks locks immediately for - * addresses registered via governance. - * - * @generated from message dymensionxyz.dymension.lockup.MsgForceUnlock - */ -export class MsgForceUnlock extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * Amount of unlocking coins. Unlock all if not set. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgForceUnlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceUnlock | PlainMessage | undefined, b: MsgForceUnlock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceUnlock, a, b); - } -} - -/** - * @generated from message dymensionxyz.dymension.lockup.MsgForceUnlockResponse - */ -export class MsgForceUnlockResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.MsgForceUnlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceUnlockResponse | PlainMessage | undefined, b: MsgForceUnlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceUnlockResponse, a, b); - } -} - diff --git a/src/protobufs/dymension/epochs/genesis_pb.ts b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/genesis_pb.ts similarity index 97% rename from src/protobufs/dymension/epochs/genesis_pb.ts rename to src/protobufs/dymensionxyz/dymension/epochs/v1beta1/genesis_pb.ts index 65bb2c12..3ae77e14 100644 --- a/src/protobufs/dymension/epochs/genesis_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/genesis_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/epochs/genesis.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/epochs/v1beta1/genesis.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/epochs/query_cosmes.ts b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_cosmes.ts similarity index 87% rename from src/protobufs/dymension/epochs/query_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_cosmes.ts index 2f1499f5..209eb3ce 100644 --- a/src/protobufs/dymension/epochs/query_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_cosmes.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/epochs/query.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/epochs/v1beta1/query.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/epochs/query_pb.ts b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_pb.ts similarity index 97% rename from src/protobufs/dymension/epochs/query_pb.ts rename to src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_pb.ts index 24fa4b26..fee3870c 100644 --- a/src/protobufs/dymension/epochs/query_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/epochs/v1beta1/query_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/epochs/query.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/epochs/v1beta1/query.proto (package dymensionxyz.dymension.epochs.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/gamm/pool-models/balancer/tx_cosmes.ts b/src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts similarity index 77% rename from src/protobufs/dymension/gamm/pool-models/balancer/tx_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts index 67694523..763dc81c 100644 --- a/src/protobufs/dymension/gamm/pool-models/balancer/tx_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/pool-models/balancer/tx.proto (package dymensionxyz.dymension.gamm.poolmodels.balancer.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx.proto (package dymensionxyz.dymension.gamm.poolmodels.balancer.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/gamm/pool-models/balancer/tx_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_pb.ts similarity index 94% rename from src/protobufs/dymension/gamm/pool-models/balancer/tx_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_pb.ts index 3ac32679..cb1269f1 100644 --- a/src/protobufs/dymension/gamm/pool-models/balancer/tx_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_pb.ts @@ -1,11 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/pool-models/balancer/tx.proto (package dymensionxyz.dymension.gamm.poolmodels.balancer.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx.proto (package dymensionxyz.dymension.gamm.poolmodels.balancer.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PoolAsset, PoolParams } from "./balancerPool_pb.js"; +import { PoolAsset, PoolParams } from "../../../v1beta1/balancerPool_pb.js"; /** * ===================== MsgCreatePool diff --git a/src/protobufs/dymension/gamm/pool-models/balancer/balancerPool_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/balancerPool_pb.ts similarity index 98% rename from src/protobufs/dymension/gamm/pool-models/balancer/balancerPool_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/balancerPool_pb.ts index 42c0e7be..1b5207f3 100644 --- a/src/protobufs/dymension/gamm/pool-models/balancer/balancerPool_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/balancerPool_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/pool-models/balancer/balancerPool.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/balancerPool.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -253,7 +253,7 @@ export class Pool extends Message { totalShares?: Coin; /** - * These are assumed to be sorted by denomiation. + * These are assumed to be sorted by denomination. * They contain the pool asset and the information about the weight * * @generated from field: repeated dymensionxyz.dymension.gamm.v1beta1.PoolAsset pool_assets = 6; diff --git a/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/genesis_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..0995fe70 --- /dev/null +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/genesis_pb.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dymensionxyz/dymension/gamm/v1beta1/genesis.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the gamm module's genesis state. + * + * @generated from message dymensionxyz.dymension.gamm.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated google.protobuf.Any pools = 1; + */ + pools: Any[] = []; + + /** + * will be renamed to next_pool_id in an upcoming version + * + * @generated from field: uint64 next_pool_number = 2; + */ + nextPoolNumber = protoInt64.zero; + + /** + * @generated from field: dymensionxyz.dymension.gamm.v1beta1.Params params = 3; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, + { no: 2, name: "next_pool_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/dymension/gamm/v1beta1/genesis_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/params_pb.ts similarity index 63% rename from src/protobufs/dymension/gamm/v1beta1/genesis_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/params_pb.ts index c838487a..fbf8b7fe 100644 --- a/src/protobufs/dymension/gamm/v1beta1/genesis_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/params_pb.ts @@ -1,64 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/genesis.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/params.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * GenesisState defines the gamm module's genesis state. - * - * @generated from message dymensionxyz.dymension.gamm.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * will be renamed to next_pool_id in an upcoming version - * - * @generated from field: uint64 next_pool_number = 2; - */ - nextPoolNumber = protoInt64.zero; - - /** - * @generated from field: dymensionxyz.dymension.gamm.v1beta1.Params params = 3; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "next_pool_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.Params @@ -84,6 +31,18 @@ export class Params extends Message { */ takerFee = ""; + /** + * @generated from field: repeated string allowed_pool_creation_denoms = 5; + */ + allowedPoolCreationDenoms: string[] = []; + + /** + * Minimum swap amount in base denom. applies to both exact in and out. + * + * @generated from field: string min_swap_amount = 6; + */ + minSwapAmount = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -96,6 +55,8 @@ export class Params extends Message { { no: 2, name: "enable_global_pool_fees", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "global_fees", kind: "message", T: GlobalFees }, { no: 4, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "allowed_pool_creation_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "min_swap_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/dymension/gamm/v1beta1/query_cosmes.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_cosmes.ts similarity index 97% rename from src/protobufs/dymension/gamm/v1beta1/query_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_cosmes.ts index ffa009d8..f8a66460 100644 --- a/src/protobufs/dymension/gamm/v1beta1/query_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_cosmes.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/query.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/query.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -8,7 +8,7 @@ import { QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromShar const TYPE_NAME = "dymensionxyz.dymension.gamm.v1beta1.Query"; /** - * Params returns lockup params. + * Params returns gamm module params. * * @generated from rpc dymensionxyz.dymension.gamm.v1beta1.Query.Params */ diff --git a/src/protobufs/dymension/gamm/v1beta1/query_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_pb.ts similarity index 99% rename from src/protobufs/dymension/gamm/v1beta1/query_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_pb.ts index 9c1797f8..75c7d2ad 100644 --- a/src/protobufs/dymension/gamm/v1beta1/query_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/query_pb.ts @@ -1,13 +1,13 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/query.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/query.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; /** diff --git a/src/protobufs/dymension/gamm/v1beta1/tx_cosmes.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_cosmes.ts similarity index 95% rename from src/protobufs/dymension/gamm/v1beta1/tx_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_cosmes.ts index e0ef67b4..a8239f36 100644 --- a/src/protobufs/dymension/gamm/v1beta1/tx_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_cosmes.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/tx.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/tx.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/gamm/v1beta1/tx_liquidity_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_liquidity_pb.ts similarity index 99% rename from src/protobufs/dymension/gamm/v1beta1/tx_liquidity_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_liquidity_pb.ts index e849cedd..972ece71 100644 --- a/src/protobufs/dymension/gamm/v1beta1/tx_liquidity_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_liquidity_pb.ts @@ -1,11 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/tx_liquidity.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/tx_liquidity.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; /** * ===================== MsgJoinPool diff --git a/src/protobufs/dymension/gamm/v1beta1/tx_swap_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_swap_pb.ts similarity index 97% rename from src/protobufs/dymension/gamm/v1beta1/tx_swap_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_swap_pb.ts index 5d029a4a..bad68776 100644 --- a/src/protobufs/dymension/gamm/v1beta1/tx_swap_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v1beta1/tx_swap_pb.ts @@ -1,12 +1,12 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/tx_swap.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v1beta1/tx_swap.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; /** * ===================== MsgSwapExactAmountIn diff --git a/src/protobufs/dymension/gamm/v2/query_cosmes.ts b/src/protobufs/dymensionxyz/dymension/gamm/v2/query_cosmes.ts similarity index 83% rename from src/protobufs/dymension/gamm/v2/query_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v2/query_cosmes.ts index 06f523d6..d0dbbdf2 100644 --- a/src/protobufs/dymension/gamm/v2/query_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v2/query_cosmes.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v2/query.proto (package dymensionxyz.dymension.gamm.v2, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v2/query.proto (package dymensionxyz.dymension.gamm.v2, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/gamm/v2/query_pb.ts b/src/protobufs/dymensionxyz/dymension/gamm/v2/query_pb.ts similarity index 96% rename from src/protobufs/dymension/gamm/v2/query_pb.ts rename to src/protobufs/dymensionxyz/dymension/gamm/v2/query_pb.ts index 69b09435..132aa012 100644 --- a/src/protobufs/dymension/gamm/v2/query_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/gamm/v2/query_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v2/query.proto (package dymensionxyz.dymension.gamm.v2, syntax proto3) +// @generated from file dymensionxyz/dymension/gamm/v2/query.proto (package dymensionxyz.dymension.gamm.v2, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/poolmanager/v1beta1/genesis_pb.ts b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/genesis_pb.ts similarity index 93% rename from src/protobufs/dymension/poolmanager/v1beta1/genesis_pb.ts rename to src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/genesis_pb.ts index 3bf61e08..0316c9fc 100644 --- a/src/protobufs/dymension/poolmanager/v1beta1/genesis_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/genesis_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/genesis.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/poolmanager/v1beta1/genesis.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/poolmanager/v1beta1/module_route_pb.ts b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/module_route_pb.ts similarity index 94% rename from src/protobufs/dymension/poolmanager/v1beta1/module_route_pb.ts rename to src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/module_route_pb.ts index 884a9a54..71e79db7 100644 --- a/src/protobufs/dymension/poolmanager/v1beta1/module_route_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/module_route_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/module_route.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/poolmanager/v1beta1/module_route.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymension/poolmanager/v1beta1/swap_route_pb.ts b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/swap_route_pb.ts similarity index 95% rename from src/protobufs/dymension/poolmanager/v1beta1/swap_route_pb.ts rename to src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/swap_route_pb.ts index 8d6073b5..1fdcc9b2 100644 --- a/src/protobufs/dymension/poolmanager/v1beta1/swap_route_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/poolmanager/v1beta1/swap_route_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/swap_route.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/poolmanager/v1beta1/swap_route.proto (package dymensionxyz.dymension.poolmanager.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/events_pb.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/events_pb.ts new file mode 100644 index 00000000..2edc50d1 --- /dev/null +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/events_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dymensionxyz/dymension/txfees/v1beta1/events.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message dymensionxyz.dymension.txfees.v1beta1.EventChargeFee + */ +export class EventChargeFee extends Message { + /** + * @generated from field: string payer = 1; + */ + payer = ""; + + /** + * @generated from field: string taker_fee = 2; + */ + takerFee = ""; + + /** + * Beneficiary is the address that will receive the fee. Optional: may be + * empty. + * + * @generated from field: string beneficiary = 3; + */ + beneficiary = ""; + + /** + * @generated from field: string beneficiary_revenue = 4; + */ + beneficiaryRevenue = ""; + + /** + * @generated from field: bool community_pool = 5; + */ + communityPool = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.EventChargeFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "payer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "beneficiary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "beneficiary_revenue", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "community_pool", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventChargeFee { + return new EventChargeFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventChargeFee { + return new EventChargeFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventChargeFee { + return new EventChargeFee().fromJsonString(jsonString, options); + } + + static equals(a: EventChargeFee | PlainMessage | undefined, b: EventChargeFee | PlainMessage | undefined): boolean { + return proto3.util.equals(EventChargeFee, a, b); + } +} + diff --git a/src/protobufs/dymension/txfees/v1beta1/feetoken_pb.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/feetoken_pb.ts similarity index 77% rename from src/protobufs/dymension/txfees/v1beta1/feetoken_pb.ts rename to src/protobufs/dymensionxyz/dymension/txfees/v1beta1/feetoken_pb.ts index c14d13b2..9db84271 100644 --- a/src/protobufs/dymension/txfees/v1beta1/feetoken_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/feetoken_pb.ts @@ -1,10 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/feetoken.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/txfees/v1beta1/feetoken.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { SwapAmountInRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; /** * FeeToken is a struct that specifies a coin denom, and pool ID pair. @@ -21,9 +22,9 @@ export class FeeToken extends Message { denom = ""; /** - * @generated from field: uint64 poolID = 2; + * @generated from field: repeated dymensionxyz.dymension.poolmanager.v1beta1.SwapAmountInRoute route = 3; */ - poolID = protoInt64.zero; + route: SwapAmountInRoute[] = []; constructor(data?: PartialMessage) { super(); @@ -34,7 +35,7 @@ export class FeeToken extends Message { static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.FeeToken"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "route", kind: "message", T: SwapAmountInRoute, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FeeToken { diff --git a/src/protobufs/dymension/txfees/v1beta1/genesis_pb.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/genesis_pb.ts similarity index 58% rename from src/protobufs/dymension/txfees/v1beta1/genesis_pb.ts rename to src/protobufs/dymensionxyz/dymension/txfees/v1beta1/genesis_pb.ts index 3647be3a..b1a8e038 100644 --- a/src/protobufs/dymension/txfees/v1beta1/genesis_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/genesis_pb.ts @@ -1,10 +1,11 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/genesis.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/txfees/v1beta1/genesis.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; import { FeeToken } from "./feetoken_pb.js"; /** @@ -60,45 +61,3 @@ export class GenesisState extends Message { } } -/** - * Params holds parameters for the incentives module - * - * @generated from message dymensionxyz.dymension.txfees.v1beta1.Params - */ -export class Params extends Message { - /** - * epoch_identifier is what epoch type swap and burn will be triggered by - * (day, week, etc.) - * - * @generated from field: string epoch_identifier = 1; - */ - epochIdentifier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/params_pb.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/params_pb.ts new file mode 100644 index 00000000..5be4867c --- /dev/null +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/params_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file dymensionxyz/dymension/txfees/v1beta1/params.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params holds parameters for the txfees module + * + * @generated from message dymensionxyz.dymension.txfees.v1beta1.Params + */ +export class Params extends Message { + /** + * epoch_identifier is what epoch type swap and burn will be triggered by + * (day, week, etc.) + * + * @generated from field: string epoch_identifier = 1; + */ + epochIdentifier = ""; + + /** + * fee_exempt_msgs is a list of msgTypes that are excluded from validating + * fees + * + * @generated from field: repeated string fee_exempt_msgs = 2; + */ + feeExemptMsgs: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "fee_exempt_msgs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/dymension/txfees/v1beta1/query_cosmes.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_cosmes.ts similarity index 61% rename from src/protobufs/dymension/txfees/v1beta1/query_cosmes.ts rename to src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_cosmes.ts index aa7097e7..34b32690 100644 --- a/src/protobufs/dymension/txfees/v1beta1/query_cosmes.ts +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_cosmes.ts @@ -1,9 +1,9 @@ // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/query.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/txfees/v1beta1/query.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck -import { QueryBaseDenomRequest, QueryBaseDenomResponse, QueryDenomPoolIdRequest, QueryDenomPoolIdResponse, QueryDenomSpotPriceRequest, QueryDenomSpotPriceResponse, QueryFeeTokensRequest, QueryFeeTokensResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; +import { QueryBaseDenomRequest, QueryBaseDenomResponse, QueryDenomRouteRequest, QueryDenomRouteResponse, QueryFeeTokenRequest, QueryFeeTokenResponse, QueryFeeTokensRequest, QueryFeeTokensResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "dymensionxyz.dymension.txfees.v1beta1.Query"; @@ -20,41 +20,41 @@ export const QueryParamsService = { } as const; /** - * FeeTokens returns a list of all the accepted fee tokens and their - * corresponding pools. It does not include the BaseDenom, which has its own - * query endpoint + * FeeToken returns a single fee token by denom * - * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.FeeTokens + * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.FeeToken */ -export const QueryFeeTokensService = { +export const QueryFeeTokenService = { typeName: TYPE_NAME, - method: "FeeTokens", - Request: QueryFeeTokensRequest, - Response: QueryFeeTokensResponse, + method: "FeeToken", + Request: QueryFeeTokenRequest, + Response: QueryFeeTokenResponse, } as const; /** - * DenomSpotPrice returns all spot prices by each registered token denom. + * FeeTokens returns a list of all the accepted fee tokens and their + * corresponding pools. + * It does not include the BaseDenom, which has its own query endpoint * - * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.DenomSpotPrice + * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.FeeTokens */ -export const QueryDenomSpotPriceService = { +export const QueryFeeTokensService = { typeName: TYPE_NAME, - method: "DenomSpotPrice", - Request: QueryDenomSpotPriceRequest, - Response: QueryDenomSpotPriceResponse, + method: "FeeTokens", + Request: QueryFeeTokensRequest, + Response: QueryFeeTokensResponse, } as const; /** - * Returns the poolID for a specified denom input. + * Returns the swap route for a specified denom * - * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.DenomPoolId + * @generated from rpc dymensionxyz.dymension.txfees.v1beta1.Query.DenomRoute */ -export const QueryDenomPoolIdService = { +export const QueryDenomRouteService = { typeName: TYPE_NAME, - method: "DenomPoolId", - Request: QueryDenomPoolIdRequest, - Response: QueryDenomPoolIdResponse, + method: "DenomRoute", + Request: QueryDenomRouteRequest, + Response: QueryDenomRouteResponse, } as const; /** diff --git a/src/protobufs/dymension/txfees/v1beta1/query_pb.ts b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_pb.ts similarity index 72% rename from src/protobufs/dymension/txfees/v1beta1/query_pb.ts rename to src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_pb.ts index cea90b6f..7892fdaf 100644 --- a/src/protobufs/dymension/txfees/v1beta1/query_pb.ts +++ b/src/protobufs/dymensionxyz/dymension/txfees/v1beta1/query_pb.ts @@ -1,12 +1,13 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/query.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) +// @generated from file dymensionxyz/dymension/txfees/v1beta1/query.proto (package dymensionxyz.dymension.txfees.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; +import { Params } from "./params_pb.js"; import { FeeToken } from "./feetoken_pb.js"; +import { SwapAmountInRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; /** * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryParamsRequest @@ -76,6 +77,80 @@ export class QueryParamsResponse extends Message { } } +/** + * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryFeeTokenRequest + */ +export class QueryFeeTokenRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryFeeTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokenRequest { + return new QueryFeeTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokenRequest { + return new QueryFeeTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokenRequest { + return new QueryFeeTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeTokenRequest | PlainMessage | undefined, b: QueryFeeTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeTokenRequest, a, b); + } +} + +/** + * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryFeeTokenResponse + */ +export class QueryFeeTokenResponse extends Message { + /** + * @generated from field: dymensionxyz.dymension.txfees.v1beta1.FeeToken fee_token = 1; + */ + feeToken?: FeeToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryFeeTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_token", kind: "message", T: FeeToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokenResponse { + return new QueryFeeTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokenResponse { + return new QueryFeeTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokenResponse { + return new QueryFeeTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeTokenResponse | PlainMessage | undefined, b: QueryFeeTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeTokenResponse, a, b); + } +} + /** * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryFeeTokensRequest */ @@ -145,88 +220,76 @@ export class QueryFeeTokensResponse extends Message { } /** - * QueryDenomSpotPriceRequest defines grpc request structure for querying spot - * price for the specified tx fee denom - * - * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryDenomSpotPriceRequest + * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryDenomRouteRequest */ -export class QueryDenomSpotPriceRequest extends Message { +export class QueryDenomRouteRequest extends Message { /** * @generated from field: string denom = 1; */ denom = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryDenomSpotPriceRequest"; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryDenomRouteRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomRouteRequest { + return new QueryDenomRouteRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomRouteRequest { + return new QueryDenomRouteRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryDenomRouteRequest { + return new QueryDenomRouteRequest().fromJsonString(jsonString, options); } - static equals(a: QueryDenomSpotPriceRequest | PlainMessage | undefined, b: QueryDenomSpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceRequest, a, b); + static equals(a: QueryDenomRouteRequest | PlainMessage | undefined, b: QueryDenomRouteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomRouteRequest, a, b); } } /** - * QueryDenomSpotPriceRequest defines grpc response structure for querying spot - * price for the specified tx fee denom - * - * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryDenomSpotPriceResponse + * @generated from message dymensionxyz.dymension.txfees.v1beta1.QueryDenomRouteResponse */ -export class QueryDenomSpotPriceResponse extends Message { +export class QueryDenomRouteResponse extends Message { /** - * @generated from field: uint64 poolID = 1; - */ - poolID = protoInt64.zero; - - /** - * @generated from field: string spot_price = 2; + * @generated from field: repeated dymensionxyz.dymension.poolmanager.v1beta1.SwapAmountInRoute route = 1; */ - spotPrice = ""; + route: SwapAmountInRoute[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryDenomSpotPriceResponse"; + static readonly typeName = "dymensionxyz.dymension.txfees.v1beta1.QueryDenomRouteResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "route", kind: "message", T: SwapAmountInRoute, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomRouteResponse { + return new QueryDenomRouteResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomRouteResponse { + return new QueryDenomRouteResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryDenomRouteResponse { + return new QueryDenomRouteResponse().fromJsonString(jsonString, options); } - static equals(a: QueryDenomSpotPriceResponse | PlainMessage | undefined, b: QueryDenomSpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceResponse, a, b); + static equals(a: QueryDenomRouteResponse | PlainMessage | undefined, b: QueryDenomRouteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomRouteResponse, a, b); } } diff --git a/src/protobufs/elys/accountedpool/accounted_pool_pb.ts b/src/protobufs/elys/accountedpool/accounted_pool_pb.ts new file mode 100644 index 00000000..7309a489 --- /dev/null +++ b/src/protobufs/elys/accountedpool/accounted_pool_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/accountedpool/accounted_pool.proto (package elys.accountedpool, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { PoolAsset } from "../amm/pool_asset_pb.js"; + +/** + * @generated from message elys.accountedpool.LegacyAccountedPool + */ +export class LegacyAccountedPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_shares = 2; + */ + totalShares?: Coin; + + /** + * @generated from field: repeated elys.amm.PoolAsset pool_assets = 3; + */ + poolAssets: PoolAsset[] = []; + + /** + * @generated from field: string total_weight = 4; + */ + totalWeight = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin non_amm_pool_tokens = 5; + */ + nonAmmPoolTokens: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.LegacyAccountedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_shares", kind: "message", T: Coin }, + { no: 3, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, + { no: 4, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "non_amm_pool_tokens", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyAccountedPool { + return new LegacyAccountedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyAccountedPool { + return new LegacyAccountedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyAccountedPool { + return new LegacyAccountedPool().fromJsonString(jsonString, options); + } + + static equals(a: LegacyAccountedPool | PlainMessage | undefined, b: LegacyAccountedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyAccountedPool, a, b); + } +} + +/** + * @generated from message elys.accountedpool.AccountedPool + */ +export class AccountedPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_tokens = 2; + */ + totalTokens: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin non_amm_pool_tokens = 3; + */ + nonAmmPoolTokens: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.AccountedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_tokens", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "non_amm_pool_tokens", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountedPool { + return new AccountedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountedPool { + return new AccountedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountedPool { + return new AccountedPool().fromJsonString(jsonString, options); + } + + static equals(a: AccountedPool | PlainMessage | undefined, b: AccountedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountedPool, a, b); + } +} + diff --git a/src/protobufs/elys/accountedpool/genesis_pb.ts b/src/protobufs/elys/accountedpool/genesis_pb.ts new file mode 100644 index 00000000..d7338f94 --- /dev/null +++ b/src/protobufs/elys/accountedpool/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/accountedpool/genesis.proto (package elys.accountedpool, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AccountedPool } from "./accounted_pool_pb.js"; + +/** + * GenesisState defines the tvl module's genesis state. + * + * @generated from message elys.accountedpool.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated elys.accountedpool.AccountedPool accounted_pool_list = 1; + */ + accountedPoolList: AccountedPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounted_pool_list", kind: "message", T: AccountedPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/accountedpool/query_cosmes.ts b/src/protobufs/elys/accountedpool/query_cosmes.ts new file mode 100644 index 00000000..44e98d84 --- /dev/null +++ b/src/protobufs/elys/accountedpool/query_cosmes.ts @@ -0,0 +1,31 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/accountedpool/query.proto (package elys.accountedpool, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllAccountedPoolRequest, QueryAllAccountedPoolResponse, QueryGetAccountedPoolRequest, QueryGetAccountedPoolResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.accountedpool.Query"; + +/** + * Queries a list of AccountedPool items. + * + * @generated from rpc elys.accountedpool.Query.AccountedPool + */ +export const QueryAccountedPoolService = { + typeName: TYPE_NAME, + method: "AccountedPool", + Request: QueryGetAccountedPoolRequest, + Response: QueryGetAccountedPoolResponse, +} as const; + +/** + * @generated from rpc elys.accountedpool.Query.AccountedPoolAll + */ +export const QueryAccountedPoolAllService = { + typeName: TYPE_NAME, + method: "AccountedPoolAll", + Request: QueryAllAccountedPoolRequest, + Response: QueryAllAccountedPoolResponse, +} as const; + diff --git a/src/protobufs/elys/accountedpool/query_pb.ts b/src/protobufs/elys/accountedpool/query_pb.ts new file mode 100644 index 00000000..4473c1d7 --- /dev/null +++ b/src/protobufs/elys/accountedpool/query_pb.ts @@ -0,0 +1,164 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/accountedpool/query.proto (package elys.accountedpool, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccountedPool } from "./accounted_pool_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * @generated from message elys.accountedpool.QueryGetAccountedPoolRequest + */ +export class QueryGetAccountedPoolRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.QueryGetAccountedPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAccountedPoolRequest { + return new QueryGetAccountedPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAccountedPoolRequest { + return new QueryGetAccountedPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAccountedPoolRequest { + return new QueryGetAccountedPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAccountedPoolRequest | PlainMessage | undefined, b: QueryGetAccountedPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAccountedPoolRequest, a, b); + } +} + +/** + * @generated from message elys.accountedpool.QueryGetAccountedPoolResponse + */ +export class QueryGetAccountedPoolResponse extends Message { + /** + * @generated from field: elys.accountedpool.AccountedPool accounted_pool = 1; + */ + accountedPool?: AccountedPool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.QueryGetAccountedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounted_pool", kind: "message", T: AccountedPool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAccountedPoolResponse { + return new QueryGetAccountedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAccountedPoolResponse { + return new QueryGetAccountedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAccountedPoolResponse { + return new QueryGetAccountedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAccountedPoolResponse | PlainMessage | undefined, b: QueryGetAccountedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAccountedPoolResponse, a, b); + } +} + +/** + * @generated from message elys.accountedpool.QueryAllAccountedPoolRequest + */ +export class QueryAllAccountedPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.QueryAllAccountedPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAccountedPoolRequest { + return new QueryAllAccountedPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAccountedPoolRequest { + return new QueryAllAccountedPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAccountedPoolRequest { + return new QueryAllAccountedPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAccountedPoolRequest | PlainMessage | undefined, b: QueryAllAccountedPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAccountedPoolRequest, a, b); + } +} + +/** + * @generated from message elys.accountedpool.QueryAllAccountedPoolResponse + */ +export class QueryAllAccountedPoolResponse extends Message { + /** + * @generated from field: repeated elys.accountedpool.AccountedPool accounted_pool = 1; + */ + accountedPool: AccountedPool[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.accountedpool.QueryAllAccountedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounted_pool", kind: "message", T: AccountedPool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAccountedPoolResponse { + return new QueryAllAccountedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAccountedPoolResponse { + return new QueryAllAccountedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAccountedPoolResponse { + return new QueryAllAccountedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAccountedPoolResponse | PlainMessage | undefined, b: QueryAllAccountedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAccountedPoolResponse, a, b); + } +} + diff --git a/src/protobufs/elys/accountedpool/tx_cosmes.ts b/src/protobufs/elys/accountedpool/tx_cosmes.ts new file mode 100644 index 00000000..03090100 --- /dev/null +++ b/src/protobufs/elys/accountedpool/tx_cosmes.ts @@ -0,0 +1,7 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/accountedpool/tx.proto (package elys.accountedpool, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +const TYPE_NAME = "elys.accountedpool.Msg"; + diff --git a/src/protobufs/elys/amm/denom_liquidity_pb.ts b/src/protobufs/elys/amm/denom_liquidity_pb.ts new file mode 100644 index 00000000..a5c9fa1e --- /dev/null +++ b/src/protobufs/elys/amm/denom_liquidity_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/denom_liquidity.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.amm.DenomLiquidity + */ +export class DenomLiquidity extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string liquidity = 2; + */ + liquidity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.DenomLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomLiquidity { + return new DenomLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomLiquidity { + return new DenomLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomLiquidity { + return new DenomLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: DenomLiquidity | PlainMessage | undefined, b: DenomLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomLiquidity, a, b); + } +} + diff --git a/src/protobufs/elys/amm/genesis_pb.ts b/src/protobufs/elys/amm/genesis_pb.ts new file mode 100644 index 00000000..c3da4e6e --- /dev/null +++ b/src/protobufs/elys/amm/genesis_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/genesis.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { OraclePoolSlippageTrack, Pool } from "./pool_pb.js"; +import { DenomLiquidity } from "./denom_liquidity_pb.js"; + +/** + * GenesisState defines the amm module's genesis state. + * + * @generated from message elys.amm.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.amm.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.amm.Pool pool_list = 2; + */ + poolList: Pool[] = []; + + /** + * @generated from field: repeated elys.amm.DenomLiquidity denom_liquidity_list = 3; + */ + denomLiquidityList: DenomLiquidity[] = []; + + /** + * @generated from field: repeated elys.amm.OraclePoolSlippageTrack slippage_tracks = 4; + */ + slippageTracks: OraclePoolSlippageTrack[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_list", kind: "message", T: Pool, repeated: true }, + { no: 3, name: "denom_liquidity_list", kind: "message", T: DenomLiquidity, repeated: true }, + { no: 4, name: "slippage_tracks", kind: "message", T: OraclePoolSlippageTrack, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/amm/params_pb.ts b/src/protobufs/elys/amm/params_pb.ts new file mode 100644 index 00000000..e32bc095 --- /dev/null +++ b/src/protobufs/elys/amm/params_pb.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/params.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.amm.Params + */ +export class Params extends Message { + /** + * @generated from field: string pool_creation_fee = 1; + */ + poolCreationFee = ""; + + /** + * default 1 week: 604,800 + * + * @generated from field: uint64 slippage_track_duration = 2; + */ + slippageTrackDuration = protoInt64.zero; + + /** + * @generated from field: repeated string base_assets = 3; + */ + baseAssets: string[] = []; + + /** + * @generated from field: string weight_breaking_fee_exponent = 4; + */ + weightBreakingFeeExponent = ""; + + /** + * @generated from field: string weight_breaking_fee_multiplier = 5; + */ + weightBreakingFeeMultiplier = ""; + + /** + * @generated from field: string weight_breaking_fee_portion = 6; + */ + weightBreakingFeePortion = ""; + + /** + * @generated from field: string weight_recovery_fee_portion = 7; + */ + weightRecoveryFeePortion = ""; + + /** + * @generated from field: string threshold_weight_difference = 8; + */ + thresholdWeightDifference = ""; + + /** + * @generated from field: repeated string allowed_pool_creators = 9; + */ + allowedPoolCreators: string[] = []; + + /** + * @generated from field: string threshold_weight_difference_swap_fee = 10; + */ + thresholdWeightDifferenceSwapFee = ""; + + /** + * @generated from field: uint64 lp_lockup_duration = 11; + */ + lpLockupDuration = protoInt64.zero; + + /** + * @generated from field: string min_slippage = 12; + */ + minSlippage = ""; + + /** + * @generated from field: repeated string allowed_upfront_swap_makers = 13; + */ + allowedUpfrontSwapMakers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_creation_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "slippage_track_duration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "base_assets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "weight_breaking_fee_exponent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "weight_breaking_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "weight_breaking_fee_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_recovery_fee_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "threshold_weight_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "allowed_pool_creators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "threshold_weight_difference_swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "lp_lockup_duration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "min_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "allowed_upfront_swap_makers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/amm/pool_asset_pb.ts b/src/protobufs/elys/amm/pool_asset_pb.ts new file mode 100644 index 00000000..5b49a233 --- /dev/null +++ b/src/protobufs/elys/amm/pool_asset_pb.ts @@ -0,0 +1,101 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/pool_asset.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message elys.amm.LegacyPoolAsset + */ +export class LegacyPoolAsset extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin token = 1; + */ + token?: Coin; + + /** + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.LegacyPoolAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "message", T: Coin }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPoolAsset { + return new LegacyPoolAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPoolAsset { + return new LegacyPoolAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPoolAsset { + return new LegacyPoolAsset().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPoolAsset | PlainMessage | undefined, b: LegacyPoolAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPoolAsset, a, b); + } +} + +/** + * @generated from message elys.amm.PoolAsset + */ +export class PoolAsset extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin token = 1; + */ + token?: Coin; + + /** + * @generated from field: string weight = 2; + */ + weight = ""; + + /** + * @generated from field: string external_liquidity_ratio = 3; + */ + externalLiquidityRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.PoolAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "message", T: Coin }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "external_liquidity_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolAsset { + return new PoolAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolAsset { + return new PoolAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolAsset { + return new PoolAsset().fromJsonString(jsonString, options); + } + + static equals(a: PoolAsset | PlainMessage | undefined, b: PoolAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolAsset, a, b); + } +} + diff --git a/src/protobufs/elys/amm/pool_params_pb.ts b/src/protobufs/elys/amm/pool_params_pb.ts new file mode 100644 index 00000000..6083693d --- /dev/null +++ b/src/protobufs/elys/amm/pool_params_pb.ts @@ -0,0 +1,146 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/pool_params.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.amm.LegacyPoolParams + */ +export class LegacyPoolParams extends Message { + /** + * @generated from field: string swap_fee = 1; + */ + swapFee = ""; + + /** + * @generated from field: string exit_fee = 2; + */ + exitFee = ""; + + /** + * @generated from field: bool use_oracle = 3; + */ + useOracle = false; + + /** + * @generated from field: string weight_breaking_fee_multiplier = 4; + */ + weightBreakingFeeMultiplier = ""; + + /** + * @generated from field: string weight_breaking_fee_exponent = 5; + */ + weightBreakingFeeExponent = ""; + + /** + * @generated from field: string weight_recovery_fee_portion = 6; + */ + weightRecoveryFeePortion = ""; + + /** + * @generated from field: string threshold_weight_difference = 7; + */ + thresholdWeightDifference = ""; + + /** + * @generated from field: string weight_breaking_fee_portion = 8; + */ + weightBreakingFeePortion = ""; + + /** + * denom for fee collection + * + * @generated from field: string fee_denom = 9; + */ + feeDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.LegacyPoolParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "exit_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "use_oracle", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "weight_breaking_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "weight_breaking_fee_exponent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "weight_recovery_fee_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "threshold_weight_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "weight_breaking_fee_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "fee_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPoolParams { + return new LegacyPoolParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPoolParams { + return new LegacyPoolParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPoolParams { + return new LegacyPoolParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPoolParams | PlainMessage | undefined, b: LegacyPoolParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPoolParams, a, b); + } +} + +/** + * @generated from message elys.amm.PoolParams + */ +export class PoolParams extends Message { + /** + * @generated from field: string swap_fee = 1; + */ + swapFee = ""; + + /** + * @generated from field: bool use_oracle = 2; + */ + useOracle = false; + + /** + * denom for fee collection + * + * @generated from field: string fee_denom = 3; + */ + feeDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.PoolParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "use_oracle", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "fee_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolParams { + return new PoolParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolParams { + return new PoolParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolParams { + return new PoolParams().fromJsonString(jsonString, options); + } + + static equals(a: PoolParams | PlainMessage | undefined, b: PoolParams | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolParams, a, b); + } +} + diff --git a/src/protobufs/elys/amm/pool_pb.ts b/src/protobufs/elys/amm/pool_pb.ts new file mode 100644 index 00000000..71b529b9 --- /dev/null +++ b/src/protobufs/elys/amm/pool_pb.ts @@ -0,0 +1,304 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/pool.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { LegacyPoolParams, PoolParams } from "./pool_params_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { PoolAsset } from "./pool_asset_pb.js"; + +/** + * @generated from message elys.amm.LegacyPool + */ +export class LegacyPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: elys.amm.LegacyPoolParams pool_params = 3; + */ + poolParams?: LegacyPoolParams; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_shares = 4; + */ + totalShares?: Coin; + + /** + * @generated from field: repeated elys.amm.PoolAsset pool_assets = 5; + */ + poolAssets: PoolAsset[] = []; + + /** + * @generated from field: string total_weight = 6; + */ + totalWeight = ""; + + /** + * @generated from field: string rebalance_treasury = 7; + */ + rebalanceTreasury = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.LegacyPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_params", kind: "message", T: LegacyPoolParams }, + { no: 4, name: "total_shares", kind: "message", T: Coin }, + { no: 5, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, + { no: 6, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "rebalance_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPool { + return new LegacyPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPool { + return new LegacyPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPool { + return new LegacyPool().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPool | PlainMessage | undefined, b: LegacyPool | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPool, a, b); + } +} + +/** + * @generated from message elys.amm.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 3; + */ + poolParams?: PoolParams; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_shares = 4; + */ + totalShares?: Coin; + + /** + * @generated from field: repeated elys.amm.PoolAsset pool_assets = 5; + */ + poolAssets: PoolAsset[] = []; + + /** + * @generated from field: string total_weight = 6; + */ + totalWeight = ""; + + /** + * @generated from field: string rebalance_treasury = 7; + */ + rebalanceTreasury = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_params", kind: "message", T: PoolParams }, + { no: 4, name: "total_shares", kind: "message", T: Coin }, + { no: 5, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, + { no: 6, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "rebalance_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message elys.amm.PoolExtraInfo + */ +export class PoolExtraInfo extends Message { + /** + * @generated from field: string tvl = 1; + */ + tvl = ""; + + /** + * @generated from field: string lp_token_price = 2; + */ + lpTokenPrice = ""; + + /** + * @generated from field: string lp_saved_apr = 3; + */ + lpSavedApr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.PoolExtraInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tvl", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lp_token_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lp_saved_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolExtraInfo { + return new PoolExtraInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolExtraInfo { + return new PoolExtraInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolExtraInfo { + return new PoolExtraInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolExtraInfo | PlainMessage | undefined, b: PoolExtraInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolExtraInfo, a, b); + } +} + +/** + * @generated from message elys.amm.OraclePoolSlippageTrack + */ +export class OraclePoolSlippageTrack extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin tracked = 3; + */ + tracked: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.OraclePoolSlippageTrack"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "tracked", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePoolSlippageTrack { + return new OraclePoolSlippageTrack().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePoolSlippageTrack { + return new OraclePoolSlippageTrack().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePoolSlippageTrack { + return new OraclePoolSlippageTrack().fromJsonString(jsonString, options); + } + + static equals(a: OraclePoolSlippageTrack | PlainMessage | undefined, b: OraclePoolSlippageTrack | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePoolSlippageTrack, a, b); + } +} + +/** + * @generated from message elys.amm.WeightBreakingSlippage + */ +export class WeightBreakingSlippage extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string date = 2; + */ + date = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.WeightBreakingSlippage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightBreakingSlippage { + return new WeightBreakingSlippage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightBreakingSlippage { + return new WeightBreakingSlippage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightBreakingSlippage { + return new WeightBreakingSlippage().fromJsonString(jsonString, options); + } + + static equals(a: WeightBreakingSlippage | PlainMessage | undefined, b: WeightBreakingSlippage | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightBreakingSlippage, a, b); + } +} + diff --git a/src/protobufs/elys/amm/proposal_pb.ts b/src/protobufs/elys/amm/proposal_pb.ts new file mode 100644 index 00000000..598ac2e6 --- /dev/null +++ b/src/protobufs/elys/amm/proposal_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/proposal.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PoolParams } from "./pool_params_pb.js"; +import { PoolAsset } from "./pool_asset_pb.js"; + +/** + * @generated from message elys.amm.ProposalCreateBalancerPool + */ +export class ProposalCreateBalancerPool extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 3; + */ + poolParams?: PoolParams; + + /** + * @generated from field: repeated elys.amm.PoolAsset pool_assets = 4; + */ + poolAssets: PoolAsset[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.ProposalCreateBalancerPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_params", kind: "message", T: PoolParams }, + { no: 4, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProposalCreateBalancerPool { + return new ProposalCreateBalancerPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProposalCreateBalancerPool { + return new ProposalCreateBalancerPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProposalCreateBalancerPool { + return new ProposalCreateBalancerPool().fromJsonString(jsonString, options); + } + + static equals(a: ProposalCreateBalancerPool | PlainMessage | undefined, b: ProposalCreateBalancerPool | PlainMessage | undefined): boolean { + return proto3.util.equals(ProposalCreateBalancerPool, a, b); + } +} + +/** + * @generated from message elys.amm.ProposalUpdatePoolParams + */ +export class ProposalUpdatePoolParams extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 4; + */ + poolParams?: PoolParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.ProposalUpdatePoolParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pool_params", kind: "message", T: PoolParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProposalUpdatePoolParams { + return new ProposalUpdatePoolParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProposalUpdatePoolParams { + return new ProposalUpdatePoolParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProposalUpdatePoolParams { + return new ProposalUpdatePoolParams().fromJsonString(jsonString, options); + } + + static equals(a: ProposalUpdatePoolParams | PlainMessage | undefined, b: ProposalUpdatePoolParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ProposalUpdatePoolParams, a, b); + } +} + diff --git a/src/protobufs/elys/amm/query_cosmes.ts b/src/protobufs/elys/amm/query_cosmes.ts new file mode 100644 index 00000000..f0487239 --- /dev/null +++ b/src/protobufs/elys/amm/query_cosmes.ts @@ -0,0 +1,197 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/amm/query.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllDenomLiquidityRequest, QueryAllDenomLiquidityResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryBalanceRequest, QueryBalanceResponse, QueryExitPoolEstimationRequest, QueryExitPoolEstimationResponse, QueryGetDenomLiquidityRequest, QueryGetDenomLiquidityResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryInRouteByDenomRequest, QueryInRouteByDenomResponse, QueryJoinPoolEstimationRequest, QueryJoinPoolEstimationResponse, QueryOutRouteByDenomRequest, QueryOutRouteByDenomResponse, QueryParamsRequest, QueryParamsResponse, QuerySlippageTrackAllRequest, QuerySlippageTrackAllResponse, QuerySlippageTrackRequest, QuerySlippageTrackResponse, QuerySwapEstimationByDenomRequest, QuerySwapEstimationByDenomResponse, QuerySwapEstimationExactAmountOutRequest, QuerySwapEstimationExactAmountOutResponse, QuerySwapEstimationRequest, QuerySwapEstimationResponse, QueryWeightAndSlippageFeeRequest, QueryWeightAndSlippageFeeResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.amm.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.amm.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of Pool items. + * + * @generated from rpc elys.amm.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * @generated from rpc elys.amm.Query.PoolAll + */ +export const QueryPoolAllService = { + typeName: TYPE_NAME, + method: "PoolAll", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * Queries a list of DenomLiquidity items. + * + * @generated from rpc elys.amm.Query.DenomLiquidity + */ +export const QueryDenomLiquidityService = { + typeName: TYPE_NAME, + method: "DenomLiquidity", + Request: QueryGetDenomLiquidityRequest, + Response: QueryGetDenomLiquidityResponse, +} as const; + +/** + * @generated from rpc elys.amm.Query.DenomLiquidityAll + */ +export const QueryDenomLiquidityAllService = { + typeName: TYPE_NAME, + method: "DenomLiquidityAll", + Request: QueryAllDenomLiquidityRequest, + Response: QueryAllDenomLiquidityResponse, +} as const; + +/** + * Queries a list of SwapEstimation items, uses swap exact amount in route. + * + * @generated from rpc elys.amm.Query.SwapEstimation + */ +export const QuerySwapEstimationService = { + typeName: TYPE_NAME, + method: "SwapEstimation", + Request: QuerySwapEstimationRequest, + Response: QuerySwapEstimationResponse, +} as const; + +/** + * Queries a list of SwapEstimation items, uses swap exact amount out route. + * + * @generated from rpc elys.amm.Query.SwapEstimationExactAmountOut + */ +export const QuerySwapEstimationExactAmountOutService = { + typeName: TYPE_NAME, + method: "SwapEstimationExactAmountOut", + Request: QuerySwapEstimationExactAmountOutRequest, + Response: QuerySwapEstimationExactAmountOutResponse, +} as const; + +/** + * Queries JoinPool estimation + * + * @generated from rpc elys.amm.Query.JoinPoolEstimation + */ +export const QueryJoinPoolEstimationService = { + typeName: TYPE_NAME, + method: "JoinPoolEstimation", + Request: QueryJoinPoolEstimationRequest, + Response: QueryJoinPoolEstimationResponse, +} as const; + +/** + * Queries ExistPool estimation + * + * @generated from rpc elys.amm.Query.ExitPoolEstimation + */ +export const QueryExitPoolEstimationService = { + typeName: TYPE_NAME, + method: "ExitPoolEstimation", + Request: QueryExitPoolEstimationRequest, + Response: QueryExitPoolEstimationResponse, +} as const; + +/** + * Queries slippage track for a week. + * + * @generated from rpc elys.amm.Query.SlippageTrack + */ +export const QuerySlippageTrackService = { + typeName: TYPE_NAME, + method: "SlippageTrack", + Request: QuerySlippageTrackRequest, + Response: QuerySlippageTrackResponse, +} as const; + +/** + * Queries all slippage tracks for a week. + * + * @generated from rpc elys.amm.Query.SlippageTrackAll + */ +export const QuerySlippageTrackAllService = { + typeName: TYPE_NAME, + method: "SlippageTrackAll", + Request: QuerySlippageTrackAllRequest, + Response: QuerySlippageTrackAllResponse, +} as const; + +/** + * Queries a list of Balance items. + * + * @generated from rpc elys.amm.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + +/** + * Queries a list of InRouteByDenom items. + * + * @generated from rpc elys.amm.Query.InRouteByDenom + */ +export const QueryInRouteByDenomService = { + typeName: TYPE_NAME, + method: "InRouteByDenom", + Request: QueryInRouteByDenomRequest, + Response: QueryInRouteByDenomResponse, +} as const; + +/** + * Queries a list of OutRouteByDenom items. + * + * @generated from rpc elys.amm.Query.OutRouteByDenom + */ +export const QueryOutRouteByDenomService = { + typeName: TYPE_NAME, + method: "OutRouteByDenom", + Request: QueryOutRouteByDenomRequest, + Response: QueryOutRouteByDenomResponse, +} as const; + +/** + * Queries a list of SwapEstimationByDenom items. + * + * @generated from rpc elys.amm.Query.SwapEstimationByDenom + */ +export const QuerySwapEstimationByDenomService = { + typeName: TYPE_NAME, + method: "SwapEstimationByDenom", + Request: QuerySwapEstimationByDenomRequest, + Response: QuerySwapEstimationByDenomResponse, +} as const; + +/** + * Queries WeightAndSlippageFee for a pool and date + * + * @generated from rpc elys.amm.Query.WeightAndSlippageFee + */ +export const QueryWeightAndSlippageFeeService = { + typeName: TYPE_NAME, + method: "WeightAndSlippageFee", + Request: QueryWeightAndSlippageFeeRequest, + Response: QueryWeightAndSlippageFeeResponse, +} as const; + diff --git a/src/protobufs/elys/amm/query_pb.ts b/src/protobufs/elys/amm/query_pb.ts new file mode 100644 index 00000000..3fe8f7b1 --- /dev/null +++ b/src/protobufs/elys/amm/query_pb.ts @@ -0,0 +1,1565 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/query.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { OraclePoolSlippageTrack, Pool, PoolExtraInfo } from "./pool_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { DenomLiquidity } from "./denom_liquidity_pb.js"; +import { SwapAmountInRoute, SwapAmountOutRoute } from "./swap_route_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.amm.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.amm.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.amm.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 days = 2; + */ + days = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: elys.amm.Pool pool = 1; + */ + pool?: Pool; + + /** + * @generated from field: elys.amm.PoolExtraInfo extra_info = 2; + */ + extraInfo?: PoolExtraInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + { no: 2, name: "extra_info", kind: "message", T: PoolExtraInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: uint64 days = 1; + */ + days = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated elys.amm.Pool pool = 1; + */ + pool: Pool[] = []; + + /** + * @generated from field: repeated elys.amm.PoolExtraInfo extra_infos = 2; + */ + extraInfos: PoolExtraInfo[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "extra_infos", kind: "message", T: PoolExtraInfo, repeated: true }, + { no: 3, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryGetDenomLiquidityRequest + */ +export class QueryGetDenomLiquidityRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryGetDenomLiquidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetDenomLiquidityRequest { + return new QueryGetDenomLiquidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetDenomLiquidityRequest { + return new QueryGetDenomLiquidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetDenomLiquidityRequest { + return new QueryGetDenomLiquidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetDenomLiquidityRequest | PlainMessage | undefined, b: QueryGetDenomLiquidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetDenomLiquidityRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryGetDenomLiquidityResponse + */ +export class QueryGetDenomLiquidityResponse extends Message { + /** + * @generated from field: elys.amm.DenomLiquidity denom_liquidity = 1; + */ + denomLiquidity?: DenomLiquidity; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryGetDenomLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_liquidity", kind: "message", T: DenomLiquidity }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetDenomLiquidityResponse { + return new QueryGetDenomLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetDenomLiquidityResponse { + return new QueryGetDenomLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetDenomLiquidityResponse { + return new QueryGetDenomLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetDenomLiquidityResponse | PlainMessage | undefined, b: QueryGetDenomLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetDenomLiquidityResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryAllDenomLiquidityRequest + */ +export class QueryAllDenomLiquidityRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryAllDenomLiquidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllDenomLiquidityRequest { + return new QueryAllDenomLiquidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllDenomLiquidityRequest { + return new QueryAllDenomLiquidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllDenomLiquidityRequest { + return new QueryAllDenomLiquidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllDenomLiquidityRequest | PlainMessage | undefined, b: QueryAllDenomLiquidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllDenomLiquidityRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryAllDenomLiquidityResponse + */ +export class QueryAllDenomLiquidityResponse extends Message { + /** + * @generated from field: repeated elys.amm.DenomLiquidity denom_liquidity = 1; + */ + denomLiquidity: DenomLiquidity[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryAllDenomLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_liquidity", kind: "message", T: DenomLiquidity, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllDenomLiquidityResponse { + return new QueryAllDenomLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllDenomLiquidityResponse { + return new QueryAllDenomLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllDenomLiquidityResponse { + return new QueryAllDenomLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllDenomLiquidityResponse | PlainMessage | undefined, b: QueryAllDenomLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllDenomLiquidityResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationRequest + */ +export class QuerySwapEstimationRequest extends Message { + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute routes = 1; + */ + routes: SwapAmountInRoute[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 2; + */ + tokenIn?: Coin; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, + { no: 2, name: "token_in", kind: "message", T: Coin }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationRequest { + return new QuerySwapEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationRequest { + return new QuerySwapEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationRequest { + return new QuerySwapEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationRequest | PlainMessage | undefined, b: QuerySwapEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationExactAmountOutRequest + */ +export class QuerySwapEstimationExactAmountOutRequest extends Message { + /** + * @generated from field: repeated elys.amm.SwapAmountOutRoute routes = 1; + */ + routes: SwapAmountOutRoute[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 2; + */ + tokenOut?: Coin; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationExactAmountOutRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, + { no: 2, name: "token_out", kind: "message", T: Coin }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationExactAmountOutRequest { + return new QuerySwapEstimationExactAmountOutRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationExactAmountOutRequest { + return new QuerySwapEstimationExactAmountOutRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationExactAmountOutRequest { + return new QuerySwapEstimationExactAmountOutRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationExactAmountOutRequest | PlainMessage | undefined, b: QuerySwapEstimationExactAmountOutRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationExactAmountOutRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryJoinPoolEstimationRequest + */ +export class QueryJoinPoolEstimationRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryJoinPoolEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryJoinPoolEstimationRequest { + return new QueryJoinPoolEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryJoinPoolEstimationRequest { + return new QueryJoinPoolEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryJoinPoolEstimationRequest { + return new QueryJoinPoolEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryJoinPoolEstimationRequest | PlainMessage | undefined, b: QueryJoinPoolEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryJoinPoolEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryJoinPoolEstimationResponse + */ +export class QueryJoinPoolEstimationResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin share_amount_out = 1; + */ + shareAmountOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: string slippage = 3; + */ + slippage = ""; + + /** + * @generated from field: string weight_balance_ratio = 4; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string swap_fee = 5; + */ + swapFee = ""; + + /** + * @generated from field: string taker_fee = 6; + */ + takerFee = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin weight_balance_reward_amount = 7; + */ + weightBalanceRewardAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryJoinPoolEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share_amount_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_balance_reward_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryJoinPoolEstimationResponse { + return new QueryJoinPoolEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryJoinPoolEstimationResponse { + return new QueryJoinPoolEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryJoinPoolEstimationResponse { + return new QueryJoinPoolEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryJoinPoolEstimationResponse | PlainMessage | undefined, b: QueryJoinPoolEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryJoinPoolEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryExitPoolEstimationRequest + */ +export class QueryExitPoolEstimationRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string share_amount_in = 2; + */ + shareAmountIn = ""; + + /** + * @generated from field: string token_out_denom = 3; + */ + tokenOutDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryExitPoolEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "share_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExitPoolEstimationRequest { + return new QueryExitPoolEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExitPoolEstimationRequest { + return new QueryExitPoolEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExitPoolEstimationRequest { + return new QueryExitPoolEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExitPoolEstimationRequest | PlainMessage | undefined, b: QueryExitPoolEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExitPoolEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryExitPoolEstimationResponse + */ +export class QueryExitPoolEstimationResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 1; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: string weight_balance_ratio = 2; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string slippage = 3; + */ + slippage = ""; + + /** + * @generated from field: string swap_fee = 4; + */ + swapFee = ""; + + /** + * @generated from field: string taker_fee = 5; + */ + takerFee = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin weight_balance_reward_amount = 6; + */ + weightBalanceRewardAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryExitPoolEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "weight_balance_reward_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExitPoolEstimationResponse { + return new QueryExitPoolEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExitPoolEstimationResponse { + return new QueryExitPoolEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExitPoolEstimationResponse { + return new QueryExitPoolEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExitPoolEstimationResponse | PlainMessage | undefined, b: QueryExitPoolEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExitPoolEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationResponse + */ +export class QuerySwapEstimationResponse extends Message { + /** + * @generated from field: string spot_price = 1; + */ + spotPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 2; + */ + tokenOut?: Coin; + + /** + * @generated from field: string swap_fee = 3; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 4; + */ + discount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin available_liquidity = 5; + */ + availableLiquidity?: Coin; + + /** + * @generated from field: string slippage = 6; + */ + slippage = ""; + + /** + * @generated from field: string weight_balance_ratio = 7; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string taker_fee = 8; + */ + takerFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_out", kind: "message", T: Coin }, + { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "available_liquidity", kind: "message", T: Coin }, + { no: 6, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationResponse { + return new QuerySwapEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationResponse { + return new QuerySwapEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationResponse { + return new QuerySwapEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationResponse | PlainMessage | undefined, b: QuerySwapEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationExactAmountOutResponse + */ +export class QuerySwapEstimationExactAmountOutResponse extends Message { + /** + * @generated from field: string spot_price = 1; + */ + spotPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 2; + */ + tokenIn?: Coin; + + /** + * @generated from field: string swap_fee = 3; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 4; + */ + discount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin available_liquidity = 5; + */ + availableLiquidity?: Coin; + + /** + * @generated from field: string slippage = 6; + */ + slippage = ""; + + /** + * @generated from field: string weight_balance_ratio = 7; + */ + weightBalanceRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationExactAmountOutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "message", T: Coin }, + { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "available_liquidity", kind: "message", T: Coin }, + { no: 6, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationExactAmountOutResponse { + return new QuerySwapEstimationExactAmountOutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationExactAmountOutResponse { + return new QuerySwapEstimationExactAmountOutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationExactAmountOutResponse { + return new QuerySwapEstimationExactAmountOutResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationExactAmountOutResponse | PlainMessage | undefined, b: QuerySwapEstimationExactAmountOutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationExactAmountOutResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySlippageTrackRequest + */ +export class QuerySlippageTrackRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySlippageTrackRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySlippageTrackRequest { + return new QuerySlippageTrackRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySlippageTrackRequest { + return new QuerySlippageTrackRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySlippageTrackRequest { + return new QuerySlippageTrackRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySlippageTrackRequest | PlainMessage | undefined, b: QuerySlippageTrackRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySlippageTrackRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySlippageTrackResponse + */ +export class QuerySlippageTrackResponse extends Message { + /** + * @generated from field: elys.amm.OraclePoolSlippageTrack track = 1; + */ + track?: OraclePoolSlippageTrack; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySlippageTrackResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "track", kind: "message", T: OraclePoolSlippageTrack }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySlippageTrackResponse { + return new QuerySlippageTrackResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySlippageTrackResponse { + return new QuerySlippageTrackResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySlippageTrackResponse { + return new QuerySlippageTrackResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySlippageTrackResponse | PlainMessage | undefined, b: QuerySlippageTrackResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySlippageTrackResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySlippageTrackAllRequest + */ +export class QuerySlippageTrackAllRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySlippageTrackAllRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySlippageTrackAllRequest { + return new QuerySlippageTrackAllRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySlippageTrackAllRequest { + return new QuerySlippageTrackAllRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySlippageTrackAllRequest { + return new QuerySlippageTrackAllRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySlippageTrackAllRequest | PlainMessage | undefined, b: QuerySlippageTrackAllRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySlippageTrackAllRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySlippageTrackAllResponse + */ +export class QuerySlippageTrackAllResponse extends Message { + /** + * @generated from field: repeated elys.amm.OraclePoolSlippageTrack tracks = 1; + */ + tracks: OraclePoolSlippageTrack[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySlippageTrackAllResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tracks", kind: "message", T: OraclePoolSlippageTrack, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySlippageTrackAllResponse { + return new QuerySlippageTrackAllResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySlippageTrackAllResponse { + return new QuerySlippageTrackAllResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySlippageTrackAllResponse { + return new QuerySlippageTrackAllResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySlippageTrackAllResponse | PlainMessage | undefined, b: QuerySlippageTrackAllResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySlippageTrackAllResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin balance = 1; + */ + balance?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryInRouteByDenomRequest + */ +export class QueryInRouteByDenomRequest extends Message { + /** + * @generated from field: string denom_in = 1; + */ + denomIn = ""; + + /** + * @generated from field: string denom_out = 2; + */ + denomOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryInRouteByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInRouteByDenomRequest { + return new QueryInRouteByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInRouteByDenomRequest { + return new QueryInRouteByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInRouteByDenomRequest { + return new QueryInRouteByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInRouteByDenomRequest | PlainMessage | undefined, b: QueryInRouteByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInRouteByDenomRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryInRouteByDenomResponse + */ +export class QueryInRouteByDenomResponse extends Message { + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute in_route = 1; + */ + inRoute: SwapAmountInRoute[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryInRouteByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "in_route", kind: "message", T: SwapAmountInRoute, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInRouteByDenomResponse { + return new QueryInRouteByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInRouteByDenomResponse { + return new QueryInRouteByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInRouteByDenomResponse { + return new QueryInRouteByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInRouteByDenomResponse | PlainMessage | undefined, b: QueryInRouteByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInRouteByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryOutRouteByDenomRequest + */ +export class QueryOutRouteByDenomRequest extends Message { + /** + * @generated from field: string denom_out = 1; + */ + denomOut = ""; + + /** + * @generated from field: string denom_in = 2; + */ + denomIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryOutRouteByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutRouteByDenomRequest { + return new QueryOutRouteByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutRouteByDenomRequest { + return new QueryOutRouteByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutRouteByDenomRequest { + return new QueryOutRouteByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutRouteByDenomRequest | PlainMessage | undefined, b: QueryOutRouteByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutRouteByDenomRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryOutRouteByDenomResponse + */ +export class QueryOutRouteByDenomResponse extends Message { + /** + * @generated from field: repeated elys.amm.SwapAmountOutRoute out_route = 1; + */ + outRoute: SwapAmountOutRoute[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryOutRouteByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "out_route", kind: "message", T: SwapAmountOutRoute, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutRouteByDenomResponse { + return new QueryOutRouteByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutRouteByDenomResponse { + return new QueryOutRouteByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutRouteByDenomResponse { + return new QueryOutRouteByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutRouteByDenomResponse | PlainMessage | undefined, b: QueryOutRouteByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutRouteByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationByDenomRequest + */ +export class QuerySwapEstimationByDenomRequest extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: string denom_in = 2; + */ + denomIn = ""; + + /** + * @generated from field: string denom_out = 3; + */ + denomOut = ""; + + /** + * @generated from field: string address = 4; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationByDenomRequest { + return new QuerySwapEstimationByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationByDenomRequest { + return new QuerySwapEstimationByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationByDenomRequest { + return new QuerySwapEstimationByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationByDenomRequest | PlainMessage | undefined, b: QuerySwapEstimationByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationByDenomRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QuerySwapEstimationByDenomResponse + */ +export class QuerySwapEstimationByDenomResponse extends Message { + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute in_route = 1; + */ + inRoute: SwapAmountInRoute[] = []; + + /** + * @generated from field: repeated elys.amm.SwapAmountOutRoute out_route = 2; + */ + outRoute: SwapAmountOutRoute[] = []; + + /** + * @generated from field: string spot_price = 3; + */ + spotPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + /** + * @generated from field: string swap_fee = 5; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 6; + */ + discount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin available_liquidity = 7; + */ + availableLiquidity?: Coin; + + /** + * @generated from field: string weight_balance_ratio = 8; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string slippage = 9; + */ + slippage = ""; + + /** + * @generated from field: string price_impact = 10; + */ + priceImpact = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin weight_balance_reward_amount = 11; + */ + weightBalanceRewardAmount?: Coin; + + /** + * @generated from field: string taker_fee = 12; + */ + takerFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QuerySwapEstimationByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "in_route", kind: "message", T: SwapAmountInRoute, repeated: true }, + { no: 2, name: "out_route", kind: "message", T: SwapAmountOutRoute, repeated: true }, + { no: 3, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "available_liquidity", kind: "message", T: Coin }, + { no: 8, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "weight_balance_reward_amount", kind: "message", T: Coin }, + { no: 12, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapEstimationByDenomResponse { + return new QuerySwapEstimationByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapEstimationByDenomResponse { + return new QuerySwapEstimationByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySwapEstimationByDenomResponse { + return new QuerySwapEstimationByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySwapEstimationByDenomResponse | PlainMessage | undefined, b: QuerySwapEstimationByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySwapEstimationByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.amm.QueryAMMPriceRequest + */ +export class QueryAMMPriceRequest extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 1; + */ + tokenIn?: Coin; + + /** + * @generated from field: string discount = 2; + */ + discount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryAMMPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_in", kind: "message", T: Coin }, + { no: 2, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAMMPriceRequest { + return new QueryAMMPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAMMPriceRequest { + return new QueryAMMPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAMMPriceRequest { + return new QueryAMMPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAMMPriceRequest | PlainMessage | undefined, b: QueryAMMPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAMMPriceRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryWeightAndSlippageFeeRequest + */ +export class QueryWeightAndSlippageFeeRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string date = 2; + */ + date = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryWeightAndSlippageFeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWeightAndSlippageFeeRequest { + return new QueryWeightAndSlippageFeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWeightAndSlippageFeeRequest { + return new QueryWeightAndSlippageFeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWeightAndSlippageFeeRequest { + return new QueryWeightAndSlippageFeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWeightAndSlippageFeeRequest | PlainMessage | undefined, b: QueryWeightAndSlippageFeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWeightAndSlippageFeeRequest, a, b); + } +} + +/** + * @generated from message elys.amm.QueryWeightAndSlippageFeeResponse + */ +export class QueryWeightAndSlippageFeeResponse extends Message { + /** + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryWeightAndSlippageFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWeightAndSlippageFeeResponse { + return new QueryWeightAndSlippageFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWeightAndSlippageFeeResponse { + return new QueryWeightAndSlippageFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWeightAndSlippageFeeResponse { + return new QueryWeightAndSlippageFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWeightAndSlippageFeeResponse | PlainMessage | undefined, b: QueryWeightAndSlippageFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWeightAndSlippageFeeResponse, a, b); + } +} + diff --git a/src/protobufs/elys/amm/swap_route_pb.ts b/src/protobufs/elys/amm/swap_route_pb.ts new file mode 100644 index 00000000..1012751f --- /dev/null +++ b/src/protobufs/elys/amm/swap_route_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/swap_route.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.amm.SwapAmountInRoute + */ +export class SwapAmountInRoute extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_out_denom = 2; + */ + tokenOutDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.SwapAmountInRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountInRoute { + return new SwapAmountInRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountInRoute { + return new SwapAmountInRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapAmountInRoute { + return new SwapAmountInRoute().fromJsonString(jsonString, options); + } + + static equals(a: SwapAmountInRoute | PlainMessage | undefined, b: SwapAmountInRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapAmountInRoute, a, b); + } +} + +/** + * @generated from message elys.amm.SwapAmountOutRoute + */ +export class SwapAmountOutRoute extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in_denom = 2; + */ + tokenInDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.SwapAmountOutRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountOutRoute { + return new SwapAmountOutRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountOutRoute { + return new SwapAmountOutRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapAmountOutRoute { + return new SwapAmountOutRoute().fromJsonString(jsonString, options); + } + + static equals(a: SwapAmountOutRoute | PlainMessage | undefined, b: SwapAmountOutRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapAmountOutRoute, a, b); + } +} + diff --git a/src/protobufs/elys/amm/tx_cosmes.ts b/src/protobufs/elys/amm/tx_cosmes.ts new file mode 100644 index 00000000..abeaa15a --- /dev/null +++ b/src/protobufs/elys/amm/tx_cosmes.ts @@ -0,0 +1,109 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/amm/tx.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCreatePool, MsgCreatePoolResponse, MsgExitPool, MsgExitPoolResponse, MsgFeedMultipleExternalLiquidity, MsgFeedMultipleExternalLiquidityResponse, MsgJoinPool, MsgJoinPoolResponse, MsgSwapByDenom, MsgSwapByDenomResponse, MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdatePoolParams, MsgUpdatePoolParamsResponse, MsgUpFrontSwapExactAmountIn, MsgUpFrontSwapExactAmountInResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.amm.Msg"; + +/** + * @generated from rpc elys.amm.Msg.CreatePool + */ +export const MsgCreatePoolService = { + typeName: TYPE_NAME, + method: "CreatePool", + Request: MsgCreatePool, + Response: MsgCreatePoolResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.JoinPool + */ +export const MsgJoinPoolService = { + typeName: TYPE_NAME, + method: "JoinPool", + Request: MsgJoinPool, + Response: MsgJoinPoolResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.ExitPool + */ +export const MsgExitPoolService = { + typeName: TYPE_NAME, + method: "ExitPool", + Request: MsgExitPool, + Response: MsgExitPoolResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.UpFrontSwapExactAmountIn + */ +export const MsgUpFrontSwapExactAmountInService = { + typeName: TYPE_NAME, + method: "UpFrontSwapExactAmountIn", + Request: MsgUpFrontSwapExactAmountIn, + Response: MsgUpFrontSwapExactAmountInResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.SwapExactAmountIn + */ +export const MsgSwapExactAmountInService = { + typeName: TYPE_NAME, + method: "SwapExactAmountIn", + Request: MsgSwapExactAmountIn, + Response: MsgSwapExactAmountInResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.SwapExactAmountOut + */ +export const MsgSwapExactAmountOutService = { + typeName: TYPE_NAME, + method: "SwapExactAmountOut", + Request: MsgSwapExactAmountOut, + Response: MsgSwapExactAmountOutResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.SwapByDenom + */ +export const MsgSwapByDenomService = { + typeName: TYPE_NAME, + method: "SwapByDenom", + Request: MsgSwapByDenom, + Response: MsgSwapByDenomResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.FeedMultipleExternalLiquidity + */ +export const MsgFeedMultipleExternalLiquidityService = { + typeName: TYPE_NAME, + method: "FeedMultipleExternalLiquidity", + Request: MsgFeedMultipleExternalLiquidity, + Response: MsgFeedMultipleExternalLiquidityResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.UpdatePoolParams + */ +export const MsgUpdatePoolParamsService = { + typeName: TYPE_NAME, + method: "UpdatePoolParams", + Request: MsgUpdatePoolParams, + Response: MsgUpdatePoolParamsResponse, +} as const; + +/** + * @generated from rpc elys.amm.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/elys/amm/tx_pb.ts b/src/protobufs/elys/amm/tx_pb.ts new file mode 100644 index 00000000..3c60a378 --- /dev/null +++ b/src/protobufs/elys/amm/tx_pb.ts @@ -0,0 +1,1142 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/tx.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PoolParams } from "./pool_params_pb.js"; +import { PoolAsset } from "./pool_asset_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { SwapAmountInRoute, SwapAmountOutRoute } from "./swap_route_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.amm.MsgCreatePool + */ +export class MsgCreatePool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 2; + */ + poolParams?: PoolParams; + + /** + * @generated from field: repeated elys.amm.PoolAsset pool_assets = 3; + */ + poolAssets: PoolAsset[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgCreatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_params", kind: "message", T: PoolParams }, + { no: 3, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePool | PlainMessage | undefined, b: MsgCreatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePool, a, b); + } +} + +/** + * @generated from message elys.amm.MsgCreatePoolResponse + */ +export class MsgCreatePoolResponse extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgCreatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePoolResponse | PlainMessage | undefined, b: MsgCreatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePoolResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgJoinPool + */ +export class MsgJoinPool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin max_amounts_in = 3; + */ + maxAmountsIn: Coin[] = []; + + /** + * @generated from field: string share_amount_out = 4; + */ + shareAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgJoinPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "max_amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "share_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinPool { + return new MsgJoinPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinPool { + return new MsgJoinPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinPool { + return new MsgJoinPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinPool | PlainMessage | undefined, b: MsgJoinPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinPool, a, b); + } +} + +/** + * @generated from message elys.amm.MsgJoinPoolResponse + */ +export class MsgJoinPoolResponse extends Message { + /** + * @generated from field: string share_amount_out = 1; + */ + shareAmountOut = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin token_in = 2; + */ + tokenIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgJoinPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinPoolResponse { + return new MsgJoinPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinPoolResponse { + return new MsgJoinPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinPoolResponse { + return new MsgJoinPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinPoolResponse | PlainMessage | undefined, b: MsgJoinPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinPoolResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgExitPool + */ +export class MsgExitPool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 3; + */ + minAmountsOut: Coin[] = []; + + /** + * @generated from field: string share_amount_in = 4; + */ + shareAmountIn = ""; + + /** + * @generated from field: string token_out_denom = 5; + */ + tokenOutDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgExitPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "share_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPool { + return new MsgExitPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPool { + return new MsgExitPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitPool { + return new MsgExitPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitPool | PlainMessage | undefined, b: MsgExitPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitPool, a, b); + } +} + +/** + * @generated from message elys.amm.MsgExitPoolResponse + */ +export class MsgExitPoolResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin token_out = 1; + */ + tokenOut: Coin[] = []; + + /** + * @generated from field: string weight_balance_ratio = 2; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string slippage = 3; + */ + slippage = ""; + + /** + * @generated from field: string swap_fee = 4; + */ + swapFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgExitPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_out", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitPoolResponse | PlainMessage | undefined, b: MsgExitPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitPoolResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpFrontSwapExactAmountIn + */ +export class MsgUpFrontSwapExactAmountIn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute routes = 2; + */ + routes: SwapAmountInRoute[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; + */ + tokenIn?: Coin; + + /** + * @generated from field: string token_out_min_amount = 4; + */ + tokenOutMinAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpFrontSwapExactAmountIn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, + { no: 3, name: "token_in", kind: "message", T: Coin }, + { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpFrontSwapExactAmountIn { + return new MsgUpFrontSwapExactAmountIn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpFrontSwapExactAmountIn { + return new MsgUpFrontSwapExactAmountIn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpFrontSwapExactAmountIn { + return new MsgUpFrontSwapExactAmountIn().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpFrontSwapExactAmountIn | PlainMessage | undefined, b: MsgUpFrontSwapExactAmountIn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpFrontSwapExactAmountIn, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpFrontSwapExactAmountInResponse + */ +export class MsgUpFrontSwapExactAmountInResponse extends Message { + /** + * @generated from field: string token_out_amount = 1; + */ + tokenOutAmount = ""; + + /** + * @generated from field: string swap_fee = 2; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpFrontSwapExactAmountInResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpFrontSwapExactAmountInResponse { + return new MsgUpFrontSwapExactAmountInResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpFrontSwapExactAmountInResponse { + return new MsgUpFrontSwapExactAmountInResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpFrontSwapExactAmountInResponse { + return new MsgUpFrontSwapExactAmountInResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpFrontSwapExactAmountInResponse | PlainMessage | undefined, b: MsgUpFrontSwapExactAmountInResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpFrontSwapExactAmountInResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapExactAmountIn + */ +export class MsgSwapExactAmountIn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute routes = 2; + */ + routes: SwapAmountInRoute[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; + */ + tokenIn?: Coin; + + /** + * @generated from field: string token_out_min_amount = 4; + */ + tokenOutMinAmount = ""; + + /** + * @generated from field: string recipient = 5; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapExactAmountIn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, + { no: 3, name: "token_in", kind: "message", T: Coin }, + { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountIn | PlainMessage | undefined, b: MsgSwapExactAmountIn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountIn, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapExactAmountInResponse + */ +export class MsgSwapExactAmountInResponse extends Message { + /** + * @generated from field: string token_out_amount = 1; + */ + tokenOutAmount = ""; + + /** + * @generated from field: string swap_fee = 2; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapExactAmountInResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountInResponse | PlainMessage | undefined, b: MsgSwapExactAmountInResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountInResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapExactAmountOut + */ +export class MsgSwapExactAmountOut extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated elys.amm.SwapAmountOutRoute routes = 2; + */ + routes: SwapAmountOutRoute[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 3; + */ + tokenOut?: Coin; + + /** + * @generated from field: string token_in_max_amount = 4; + */ + tokenInMaxAmount = ""; + + /** + * @generated from field: string recipient = 5; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapExactAmountOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, + { no: 3, name: "token_out", kind: "message", T: Coin }, + { no: 4, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountOut | PlainMessage | undefined, b: MsgSwapExactAmountOut | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountOut, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapExactAmountOutResponse + */ +export class MsgSwapExactAmountOutResponse extends Message { + /** + * @generated from field: string token_in_amount = 1; + */ + tokenInAmount = ""; + + /** + * @generated from field: string swap_fee = 2; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapExactAmountOutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountOutResponse | PlainMessage | undefined, b: MsgSwapExactAmountOutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountOutResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgFeedMultipleExternalLiquidity + */ +export class MsgFeedMultipleExternalLiquidity extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated elys.amm.ExternalLiquidity liquidity = 2; + */ + liquidity: ExternalLiquidity[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgFeedMultipleExternalLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "liquidity", kind: "message", T: ExternalLiquidity, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedMultipleExternalLiquidity { + return new MsgFeedMultipleExternalLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedMultipleExternalLiquidity { + return new MsgFeedMultipleExternalLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedMultipleExternalLiquidity { + return new MsgFeedMultipleExternalLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedMultipleExternalLiquidity | PlainMessage | undefined, b: MsgFeedMultipleExternalLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedMultipleExternalLiquidity, a, b); + } +} + +/** + * @generated from message elys.amm.MsgFeedMultipleExternalLiquidityResponse + */ +export class MsgFeedMultipleExternalLiquidityResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgFeedMultipleExternalLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedMultipleExternalLiquidityResponse { + return new MsgFeedMultipleExternalLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedMultipleExternalLiquidityResponse { + return new MsgFeedMultipleExternalLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedMultipleExternalLiquidityResponse { + return new MsgFeedMultipleExternalLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedMultipleExternalLiquidityResponse | PlainMessage | undefined, b: MsgFeedMultipleExternalLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedMultipleExternalLiquidityResponse, a, b); + } +} + +/** + * @generated from message elys.amm.AssetAmountDepth + */ +export class AssetAmountDepth extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string depth = 3; + */ + depth = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.AssetAmountDepth"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "depth", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetAmountDepth { + return new AssetAmountDepth().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetAmountDepth { + return new AssetAmountDepth().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetAmountDepth { + return new AssetAmountDepth().fromJsonString(jsonString, options); + } + + static equals(a: AssetAmountDepth | PlainMessage | undefined, b: AssetAmountDepth | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetAmountDepth, a, b); + } +} + +/** + * ExternalLiquidity defines price, volume, and time information for an exchange + * rate. + * + * @generated from message elys.amm.ExternalLiquidity + */ +export class ExternalLiquidity extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated elys.amm.AssetAmountDepth amount_depth_info = 2; + */ + amountDepthInfo: AssetAmountDepth[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.ExternalLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount_depth_info", kind: "message", T: AssetAmountDepth, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExternalLiquidity { + return new ExternalLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExternalLiquidity { + return new ExternalLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExternalLiquidity { + return new ExternalLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: ExternalLiquidity | PlainMessage | undefined, b: ExternalLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(ExternalLiquidity, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapByDenom + */ +export class MsgSwapByDenom extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin min_amount = 3; + */ + minAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin max_amount = 4; + */ + maxAmount?: Coin; + + /** + * @generated from field: string denom_in = 5; + */ + denomIn = ""; + + /** + * @generated from field: string denom_out = 6; + */ + denomOut = ""; + + /** + * @generated from field: string recipient = 7; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapByDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "min_amount", kind: "message", T: Coin }, + { no: 4, name: "max_amount", kind: "message", T: Coin }, + { no: 5, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapByDenom { + return new MsgSwapByDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapByDenom { + return new MsgSwapByDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapByDenom { + return new MsgSwapByDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapByDenom | PlainMessage | undefined, b: MsgSwapByDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapByDenom, a, b); + } +} + +/** + * @generated from message elys.amm.MsgSwapByDenomResponse + */ +export class MsgSwapByDenomResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: repeated elys.amm.SwapAmountInRoute in_route = 2; + */ + inRoute: SwapAmountInRoute[] = []; + + /** + * @generated from field: repeated elys.amm.SwapAmountOutRoute out_route = 3; + */ + outRoute: SwapAmountOutRoute[] = []; + + /** + * @generated from field: string spot_price = 4; + */ + spotPrice = ""; + + /** + * @generated from field: string swap_fee = 5; + */ + swapFee = ""; + + /** + * @generated from field: string discount = 6; + */ + discount = ""; + + /** + * @generated from field: string recipient = 7; + */ + recipient = ""; + + /** + * @generated from field: string slippage = 8; + */ + slippage = ""; + + /** + * @generated from field: string weight_bonus = 9; + */ + weightBonus = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgSwapByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "in_route", kind: "message", T: SwapAmountInRoute, repeated: true }, + { no: 3, name: "out_route", kind: "message", T: SwapAmountOutRoute, repeated: true }, + { no: 4, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "weight_bonus", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapByDenomResponse { + return new MsgSwapByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapByDenomResponse { + return new MsgSwapByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapByDenomResponse { + return new MsgSwapByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapByDenomResponse | PlainMessage | undefined, b: MsgSwapByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpdatePoolParams + */ +export class MsgUpdatePoolParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 3; + */ + poolParams?: PoolParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpdatePoolParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_params", kind: "message", T: PoolParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolParams { + return new MsgUpdatePoolParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolParams { + return new MsgUpdatePoolParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolParams { + return new MsgUpdatePoolParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolParams | PlainMessage | undefined, b: MsgUpdatePoolParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolParams, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpdatePoolParamsResponse + */ +export class MsgUpdatePoolParamsResponse extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: elys.amm.PoolParams pool_params = 2; + */ + poolParams?: PoolParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpdatePoolParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pool_params", kind: "message", T: PoolParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolParamsResponse { + return new MsgUpdatePoolParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolParamsResponse { + return new MsgUpdatePoolParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolParamsResponse { + return new MsgUpdatePoolParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolParamsResponse | PlainMessage | undefined, b: MsgUpdatePoolParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolParamsResponse, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.amm.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.amm.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/amm/types_pb.ts b/src/protobufs/elys/amm/types_pb.ts new file mode 100644 index 00000000..6f0f8043 --- /dev/null +++ b/src/protobufs/elys/amm/types_pb.ts @@ -0,0 +1,262 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/amm/types.proto (package elys.amm, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PageRequest } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { PoolAsset } from "./pool_asset_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum elys.amm.FilterType + */ +export enum FilterType { + /** + * @generated from enum value: FILTER_ALL = 0; + */ + FILTER_ALL = 0, + + /** + * @generated from enum value: FILTER_PERPETUAL = 1; + */ + FILTER_PERPETUAL = 1, + + /** + * @generated from enum value: FILTER_FIXED_WEIGHT = 2; + */ + FILTER_FIXED_WEIGHT = 2, + + /** + * @generated from enum value: FILTER_DYNAMIC_WEIGHT = 3; + */ + FILTER_DYNAMIC_WEIGHT = 3, + + /** + * @generated from enum value: FILTER_LEVERAGE = 4; + */ + FILTER_LEVERAGE = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(FilterType) +proto3.util.setEnumType(FilterType, "elys.amm.FilterType", [ + { no: 0, name: "FILTER_ALL" }, + { no: 1, name: "FILTER_PERPETUAL" }, + { no: 2, name: "FILTER_FIXED_WEIGHT" }, + { no: 3, name: "FILTER_DYNAMIC_WEIGHT" }, + { no: 4, name: "FILTER_LEVERAGE" }, +]); + +/** + * @generated from message elys.amm.QueryEarnPoolRequest + */ +export class QueryEarnPoolRequest extends Message { + /** + * @generated from field: repeated uint64 pool_ids = 1; + */ + poolIds: bigint[] = []; + + /** + * @generated from field: elys.amm.FilterType filter_type = 2; + */ + filterType = FilterType.FILTER_ALL; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryEarnPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "filter_type", kind: "enum", T: proto3.getEnumType(FilterType) }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEarnPoolRequest { + return new QueryEarnPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEarnPoolRequest { + return new QueryEarnPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEarnPoolRequest { + return new QueryEarnPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEarnPoolRequest | PlainMessage | undefined, b: QueryEarnPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEarnPoolRequest, a, b); + } +} + +/** + * @generated from message elys.amm.EarnPool + */ +export class EarnPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated elys.amm.PoolAsset assets = 2; + */ + assets: PoolAsset[] = []; + + /** + * @generated from field: string pool_ratio = 3; + */ + poolRatio = ""; + + /** + * @generated from field: string rewards_apr = 4; + */ + rewardsApr = ""; + + /** + * @generated from field: string borrow_apr = 5; + */ + borrowApr = ""; + + /** + * @generated from field: string leverage_lp = 6; + */ + leverageLp = ""; + + /** + * @generated from field: string perpetual = 7; + */ + perpetual = ""; + + /** + * @generated from field: string tvl = 8; + */ + tvl = ""; + + /** + * @generated from field: string lp_token_price = 9; + */ + lpTokenPrice = ""; + + /** + * @generated from field: string rewards_usd = 10; + */ + rewardsUsd = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward_coins = 11; + */ + rewardCoins: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_shares = 12; + */ + totalShares?: Coin; + + /** + * @generated from field: string swap_fee = 13; + */ + swapFee = ""; + + /** + * @generated from field: string fee_denom = 14; + */ + feeDenom = ""; + + /** + * @generated from field: bool use_oracle = 15; + */ + useOracle = false; + + /** + * @generated from field: bool is_leveragelp = 16; + */ + isLeveragelp = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.EarnPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "assets", kind: "message", T: PoolAsset, repeated: true }, + { no: 3, name: "pool_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "rewards_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "borrow_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "leverage_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "perpetual", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "tvl", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "lp_token_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "rewards_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "reward_coins", kind: "message", T: Coin, repeated: true }, + { no: 12, name: "total_shares", kind: "message", T: Coin }, + { no: 13, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "fee_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "use_oracle", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 16, name: "is_leveragelp", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EarnPool { + return new EarnPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EarnPool { + return new EarnPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EarnPool { + return new EarnPool().fromJsonString(jsonString, options); + } + + static equals(a: EarnPool | PlainMessage | undefined, b: EarnPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EarnPool, a, b); + } +} + +/** + * @generated from message elys.amm.QueryEarnPoolResponse + */ +export class QueryEarnPoolResponse extends Message { + /** + * @generated from field: repeated elys.amm.EarnPool pools = 1; + */ + pools: EarnPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.amm.QueryEarnPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: EarnPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEarnPoolResponse { + return new QueryEarnPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEarnPoolResponse { + return new QueryEarnPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEarnPoolResponse { + return new QueryEarnPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEarnPoolResponse | PlainMessage | undefined, b: QueryEarnPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEarnPoolResponse, a, b); + } +} + diff --git a/src/protobufs/elys/assetprofile/entry_pb.ts b/src/protobufs/elys/assetprofile/entry_pb.ts new file mode 100644 index 00000000..d031aa5c --- /dev/null +++ b/src/protobufs/elys/assetprofile/entry_pb.ts @@ -0,0 +1,153 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/assetprofile/entry.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.assetprofile.Entry + */ +export class Entry extends Message { + /** + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * @generated from field: uint64 decimals = 2; + */ + decimals = protoInt64.zero; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + /** + * @generated from field: string path = 4; + */ + path = ""; + + /** + * @generated from field: string ibc_channel_id = 5; + */ + ibcChannelId = ""; + + /** + * @generated from field: string ibc_counterparty_channel_id = 6; + */ + ibcCounterpartyChannelId = ""; + + /** + * @generated from field: string display_name = 7; + */ + displayName = ""; + + /** + * @generated from field: string display_symbol = 8; + */ + displaySymbol = ""; + + /** + * @generated from field: string network = 9; + */ + network = ""; + + /** + * @generated from field: string address = 10; + */ + address = ""; + + /** + * @generated from field: string external_symbol = 11; + */ + externalSymbol = ""; + + /** + * @generated from field: string transfer_limit = 12; + */ + transferLimit = ""; + + /** + * @generated from field: repeated string permissions = 13; + */ + permissions: string[] = []; + + /** + * @generated from field: string unit_denom = 14; + */ + unitDenom = ""; + + /** + * @generated from field: string ibc_counterparty_denom = 15; + */ + ibcCounterpartyDenom = ""; + + /** + * @generated from field: string ibc_counterparty_chain_id = 16; + */ + ibcCounterpartyChainId = ""; + + /** + * @generated from field: string authority = 17; + */ + authority = ""; + + /** + * @generated from field: bool commit_enabled = 18; + */ + commitEnabled = false; + + /** + * @generated from field: bool withdraw_enabled = 19; + */ + withdrawEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.Entry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "decimals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "ibc_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "ibc_counterparty_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "display_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "external_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "transfer_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 14, name: "unit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "ibc_counterparty_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "ibc_counterparty_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "commit_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 19, name: "withdraw_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Entry { + return new Entry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Entry { + return new Entry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Entry { + return new Entry().fromJsonString(jsonString, options); + } + + static equals(a: Entry | PlainMessage | undefined, b: Entry | PlainMessage | undefined): boolean { + return proto3.util.equals(Entry, a, b); + } +} + diff --git a/src/protobufs/elys/assetprofile/genesis_pb.ts b/src/protobufs/elys/assetprofile/genesis_pb.ts new file mode 100644 index 00000000..30716891 --- /dev/null +++ b/src/protobufs/elys/assetprofile/genesis_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/assetprofile/genesis.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Entry } from "./entry_pb.js"; + +/** + * GenesisState defines the assetprofile module's genesis state. + * + * @generated from message elys.assetprofile.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.assetprofile.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.assetprofile.Entry entry_list = 2; + */ + entryList: Entry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "entry_list", kind: "message", T: Entry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/assetprofile/params_pb.ts b/src/protobufs/elys/assetprofile/params_pb.ts new file mode 100644 index 00000000..17b9331d --- /dev/null +++ b/src/protobufs/elys/assetprofile/params_pb.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/assetprofile/params.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.assetprofile.Params + */ +export class Params extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/assetprofile/query_cosmes.ts b/src/protobufs/elys/assetprofile/query_cosmes.ts new file mode 100644 index 00000000..6aba22d0 --- /dev/null +++ b/src/protobufs/elys/assetprofile/query_cosmes.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/assetprofile/query.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllEntryRequest, QueryAllEntryResponse, QueryEntryByDenomRequest, QueryEntryByDenomResponse, QueryEntryRequest, QueryEntryResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.assetprofile.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.assetprofile.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of Entry items. + * + * @generated from rpc elys.assetprofile.Query.Entry + */ +export const QueryEntryService = { + typeName: TYPE_NAME, + method: "Entry", + Request: QueryEntryRequest, + Response: QueryEntryResponse, +} as const; + +/** + * @generated from rpc elys.assetprofile.Query.EntryByDenom + */ +export const QueryEntryByDenomService = { + typeName: TYPE_NAME, + method: "EntryByDenom", + Request: QueryEntryByDenomRequest, + Response: QueryEntryByDenomResponse, +} as const; + +/** + * @generated from rpc elys.assetprofile.Query.EntryAll + */ +export const QueryEntryAllService = { + typeName: TYPE_NAME, + method: "EntryAll", + Request: QueryAllEntryRequest, + Response: QueryAllEntryResponse, +} as const; + diff --git a/src/protobufs/elys/assetprofile/query_pb.ts b/src/protobufs/elys/assetprofile/query_pb.ts new file mode 100644 index 00000000..23aadd9b --- /dev/null +++ b/src/protobufs/elys/assetprofile/query_pb.ts @@ -0,0 +1,313 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/assetprofile/query.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Entry } from "./entry_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.assetprofile.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.assetprofile.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.assetprofile.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryEntryRequest + */ +export class QueryEntryRequest extends Message { + /** + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryEntryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEntryRequest { + return new QueryEntryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEntryRequest { + return new QueryEntryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEntryRequest { + return new QueryEntryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEntryRequest | PlainMessage | undefined, b: QueryEntryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEntryRequest, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryEntryByDenomRequest + */ +export class QueryEntryByDenomRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryEntryByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEntryByDenomRequest { + return new QueryEntryByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEntryByDenomRequest { + return new QueryEntryByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEntryByDenomRequest { + return new QueryEntryByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEntryByDenomRequest | PlainMessage | undefined, b: QueryEntryByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEntryByDenomRequest, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryEntryResponse + */ +export class QueryEntryResponse extends Message { + /** + * @generated from field: elys.assetprofile.Entry entry = 1; + */ + entry?: Entry; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryEntryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entry", kind: "message", T: Entry }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEntryResponse { + return new QueryEntryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEntryResponse { + return new QueryEntryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEntryResponse { + return new QueryEntryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEntryResponse | PlainMessage | undefined, b: QueryEntryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEntryResponse, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryEntryByDenomResponse + */ +export class QueryEntryByDenomResponse extends Message { + /** + * @generated from field: elys.assetprofile.Entry entry = 1; + */ + entry?: Entry; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryEntryByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entry", kind: "message", T: Entry }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEntryByDenomResponse { + return new QueryEntryByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEntryByDenomResponse { + return new QueryEntryByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEntryByDenomResponse { + return new QueryEntryByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEntryByDenomResponse | PlainMessage | undefined, b: QueryEntryByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEntryByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryAllEntryRequest + */ +export class QueryAllEntryRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryAllEntryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllEntryRequest { + return new QueryAllEntryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllEntryRequest { + return new QueryAllEntryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllEntryRequest { + return new QueryAllEntryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllEntryRequest | PlainMessage | undefined, b: QueryAllEntryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllEntryRequest, a, b); + } +} + +/** + * @generated from message elys.assetprofile.QueryAllEntryResponse + */ +export class QueryAllEntryResponse extends Message { + /** + * @generated from field: repeated elys.assetprofile.Entry entry = 1; + */ + entry: Entry[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.QueryAllEntryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entry", kind: "message", T: Entry, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllEntryResponse { + return new QueryAllEntryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllEntryResponse { + return new QueryAllEntryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllEntryResponse { + return new QueryAllEntryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllEntryResponse | PlainMessage | undefined, b: QueryAllEntryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllEntryResponse, a, b); + } +} + diff --git a/src/protobufs/elys/assetprofile/tx_cosmes.ts b/src/protobufs/elys/assetprofile/tx_cosmes.ts new file mode 100644 index 00000000..79dc41c7 --- /dev/null +++ b/src/protobufs/elys/assetprofile/tx_cosmes.ts @@ -0,0 +1,39 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/assetprofile/tx.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddEntry, MsgAddEntryResponse, MsgDeleteEntry, MsgDeleteEntryResponse, MsgUpdateEntry, MsgUpdateEntryResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.assetprofile.Msg"; + +/** + * @generated from rpc elys.assetprofile.Msg.UpdateEntry + */ +export const MsgUpdateEntryService = { + typeName: TYPE_NAME, + method: "UpdateEntry", + Request: MsgUpdateEntry, + Response: MsgUpdateEntryResponse, +} as const; + +/** + * @generated from rpc elys.assetprofile.Msg.DeleteEntry + */ +export const MsgDeleteEntryService = { + typeName: TYPE_NAME, + method: "DeleteEntry", + Request: MsgDeleteEntry, + Response: MsgDeleteEntryResponse, +} as const; + +/** + * @generated from rpc elys.assetprofile.Msg.AddEntry + */ +export const MsgAddEntryService = { + typeName: TYPE_NAME, + method: "AddEntry", + Request: MsgAddEntry, + Response: MsgAddEntryResponse, +} as const; + diff --git a/src/protobufs/elys/assetprofile/tx_pb.ts b/src/protobufs/elys/assetprofile/tx_pb.ts new file mode 100644 index 00000000..e432e650 --- /dev/null +++ b/src/protobufs/elys/assetprofile/tx_pb.ts @@ -0,0 +1,434 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/assetprofile/tx.proto (package elys.assetprofile, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.assetprofile.MsgUpdateEntry + */ +export class MsgUpdateEntry extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + /** + * @generated from field: uint64 decimals = 3; + */ + decimals = protoInt64.zero; + + /** + * @generated from field: string denom = 4; + */ + denom = ""; + + /** + * @generated from field: string path = 5; + */ + path = ""; + + /** + * @generated from field: string ibc_channel_id = 6; + */ + ibcChannelId = ""; + + /** + * @generated from field: string ibc_counterparty_channel_id = 7; + */ + ibcCounterpartyChannelId = ""; + + /** + * @generated from field: string display_name = 8; + */ + displayName = ""; + + /** + * @generated from field: string display_symbol = 9; + */ + displaySymbol = ""; + + /** + * @generated from field: string network = 10; + */ + network = ""; + + /** + * @generated from field: string address = 11; + */ + address = ""; + + /** + * @generated from field: string external_symbol = 12; + */ + externalSymbol = ""; + + /** + * @generated from field: string transfer_limit = 13; + */ + transferLimit = ""; + + /** + * @generated from field: repeated string permissions = 14; + */ + permissions: string[] = []; + + /** + * @generated from field: string unit_denom = 15; + */ + unitDenom = ""; + + /** + * @generated from field: string ibc_counterparty_denom = 16; + */ + ibcCounterpartyDenom = ""; + + /** + * @generated from field: string ibc_counterparty_chain_id = 17; + */ + ibcCounterpartyChainId = ""; + + /** + * @generated from field: bool commit_enabled = 18; + */ + commitEnabled = false; + + /** + * @generated from field: bool withdraw_enabled = 19; + */ + withdrawEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgUpdateEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "decimals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "ibc_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "ibc_counterparty_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "display_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "external_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "transfer_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 15, name: "unit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "ibc_counterparty_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "ibc_counterparty_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "commit_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 19, name: "withdraw_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEntry { + return new MsgUpdateEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEntry { + return new MsgUpdateEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEntry { + return new MsgUpdateEntry().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEntry | PlainMessage | undefined, b: MsgUpdateEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEntry, a, b); + } +} + +/** + * @generated from message elys.assetprofile.MsgUpdateEntryResponse + */ +export class MsgUpdateEntryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgUpdateEntryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEntryResponse { + return new MsgUpdateEntryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEntryResponse { + return new MsgUpdateEntryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEntryResponse { + return new MsgUpdateEntryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEntryResponse | PlainMessage | undefined, b: MsgUpdateEntryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEntryResponse, a, b); + } +} + +/** + * @generated from message elys.assetprofile.MsgDeleteEntry + */ +export class MsgDeleteEntry extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgDeleteEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteEntry { + return new MsgDeleteEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteEntry { + return new MsgDeleteEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteEntry { + return new MsgDeleteEntry().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteEntry | PlainMessage | undefined, b: MsgDeleteEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteEntry, a, b); + } +} + +/** + * @generated from message elys.assetprofile.MsgDeleteEntryResponse + */ +export class MsgDeleteEntryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgDeleteEntryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteEntryResponse { + return new MsgDeleteEntryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteEntryResponse { + return new MsgDeleteEntryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteEntryResponse { + return new MsgDeleteEntryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteEntryResponse | PlainMessage | undefined, b: MsgDeleteEntryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteEntryResponse, a, b); + } +} + +/** + * @generated from message elys.assetprofile.MsgAddEntry + */ +export class MsgAddEntry extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string baseDenom = 2; + */ + baseDenom = ""; + + /** + * @generated from field: uint64 decimals = 3; + */ + decimals = protoInt64.zero; + + /** + * @generated from field: string denom = 4; + */ + denom = ""; + + /** + * @generated from field: string path = 5; + */ + path = ""; + + /** + * @generated from field: string ibcChannelId = 6; + */ + ibcChannelId = ""; + + /** + * @generated from field: string ibcCounterpartyChannelId = 7; + */ + ibcCounterpartyChannelId = ""; + + /** + * @generated from field: string displayName = 8; + */ + displayName = ""; + + /** + * @generated from field: string displaySymbol = 9; + */ + displaySymbol = ""; + + /** + * @generated from field: string network = 10; + */ + network = ""; + + /** + * @generated from field: string address = 11; + */ + address = ""; + + /** + * @generated from field: string externalSymbol = 12; + */ + externalSymbol = ""; + + /** + * @generated from field: string transferLimit = 13; + */ + transferLimit = ""; + + /** + * @generated from field: repeated string permissions = 14; + */ + permissions: string[] = []; + + /** + * @generated from field: string unitDenom = 15; + */ + unitDenom = ""; + + /** + * @generated from field: string ibcCounterpartyDenom = 16; + */ + ibcCounterpartyDenom = ""; + + /** + * @generated from field: string ibcCounterpartyChainId = 17; + */ + ibcCounterpartyChainId = ""; + + /** + * @generated from field: bool commitEnabled = 18; + */ + commitEnabled = false; + + /** + * @generated from field: bool withdrawEnabled = 19; + */ + withdrawEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgAddEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "baseDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "decimals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "ibcChannelId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "ibcCounterpartyChannelId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "displayName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "displaySymbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "externalSymbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "transferLimit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 15, name: "unitDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "ibcCounterpartyDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "ibcCounterpartyChainId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "commitEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 19, name: "withdrawEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddEntry { + return new MsgAddEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddEntry { + return new MsgAddEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddEntry { + return new MsgAddEntry().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddEntry | PlainMessage | undefined, b: MsgAddEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddEntry, a, b); + } +} + +/** + * @generated from message elys.assetprofile.MsgAddEntryResponse + */ +export class MsgAddEntryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.assetprofile.MsgAddEntryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddEntryResponse { + return new MsgAddEntryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddEntryResponse { + return new MsgAddEntryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddEntryResponse { + return new MsgAddEntryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddEntryResponse | PlainMessage | undefined, b: MsgAddEntryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddEntryResponse, a, b); + } +} + diff --git a/src/protobufs/elys/burner/genesis_pb.ts b/src/protobufs/elys/burner/genesis_pb.ts new file mode 100644 index 00000000..d4454178 --- /dev/null +++ b/src/protobufs/elys/burner/genesis_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/burner/genesis.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { History } from "./history_pb.js"; + +/** + * GenesisState defines the burner module's genesis state. + * + * @generated from message elys.burner.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.burner.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.burner.History history_list = 2; + */ + historyList: History[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "history_list", kind: "message", T: History, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/burner/history_pb.ts b/src/protobufs/elys/burner/history_pb.ts new file mode 100644 index 00000000..6dfa3e25 --- /dev/null +++ b/src/protobufs/elys/burner/history_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/burner/history.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message elys.burner.History + */ +export class History extends Message { + /** + * renaming the tags because its not being used till now anywhere, mainnet or + * testnet or devnet + * + * @generated from field: uint64 block = 1; + */ + block = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin burned_coins = 2; + */ + burnedCoins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.History"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "burned_coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): History { + return new History().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): History { + return new History().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): History { + return new History().fromJsonString(jsonString, options); + } + + static equals(a: History | PlainMessage | undefined, b: History | PlainMessage | undefined): boolean { + return proto3.util.equals(History, a, b); + } +} + diff --git a/src/protobufs/dymension/lockup/params_pb.ts b/src/protobufs/elys/burner/params_pb.ts similarity index 71% rename from src/protobufs/dymension/lockup/params_pb.ts rename to src/protobufs/elys/burner/params_pb.ts index f860eccb..9f5aa1d6 100644 --- a/src/protobufs/dymension/lockup/params_pb.ts +++ b/src/protobufs/elys/burner/params_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/params.proto (package dymensionxyz.dymension.lockup, syntax proto3) +// @generated from file elys/burner/params.proto (package elys.burner, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,13 +7,15 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * @generated from message dymensionxyz.dymension.lockup.Params + * Params defines the parameters for the module. + * + * @generated from message elys.burner.Params */ export class Params extends Message { /** - * @generated from field: repeated string force_unlock_allowed_addresses = 1; + * @generated from field: string epoch_identifier = 1; */ - forceUnlockAllowedAddresses: string[] = []; + epochIdentifier = ""; constructor(data?: PartialMessage) { super(); @@ -21,9 +23,9 @@ export class Params extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.Params"; + static readonly typeName = "elys.burner.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "force_unlock_allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 1, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/elys/burner/query_cosmes.ts b/src/protobufs/elys/burner/query_cosmes.ts new file mode 100644 index 00000000..2c8f1ba9 --- /dev/null +++ b/src/protobufs/elys/burner/query_cosmes.ts @@ -0,0 +1,43 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/burner/query.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllHistoryRequest, QueryAllHistoryResponse, QueryGetHistoryRequest, QueryGetHistoryResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.burner.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.burner.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of History items. + * + * @generated from rpc elys.burner.Query.History + */ +export const QueryHistoryService = { + typeName: TYPE_NAME, + method: "History", + Request: QueryGetHistoryRequest, + Response: QueryGetHistoryResponse, +} as const; + +/** + * @generated from rpc elys.burner.Query.HistoryAll + */ +export const QueryHistoryAllService = { + typeName: TYPE_NAME, + method: "HistoryAll", + Request: QueryAllHistoryRequest, + Response: QueryAllHistoryResponse, +} as const; + diff --git a/src/protobufs/elys/burner/query_pb.ts b/src/protobufs/elys/burner/query_pb.ts new file mode 100644 index 00000000..e653f508 --- /dev/null +++ b/src/protobufs/elys/burner/query_pb.ts @@ -0,0 +1,239 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/burner/query.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { History } from "./history_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.burner.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.burner.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.burner.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.burner.QueryGetHistoryRequest + */ +export class QueryGetHistoryRequest extends Message { + /** + * @generated from field: uint64 block = 1; + */ + block = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryGetHistoryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHistoryRequest { + return new QueryGetHistoryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHistoryRequest { + return new QueryGetHistoryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHistoryRequest { + return new QueryGetHistoryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHistoryRequest | PlainMessage | undefined, b: QueryGetHistoryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHistoryRequest, a, b); + } +} + +/** + * @generated from message elys.burner.QueryGetHistoryResponse + */ +export class QueryGetHistoryResponse extends Message { + /** + * @generated from field: elys.burner.History history = 1; + */ + history?: History; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryGetHistoryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "history", kind: "message", T: History }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHistoryResponse { + return new QueryGetHistoryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHistoryResponse { + return new QueryGetHistoryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHistoryResponse { + return new QueryGetHistoryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHistoryResponse | PlainMessage | undefined, b: QueryGetHistoryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHistoryResponse, a, b); + } +} + +/** + * @generated from message elys.burner.QueryAllHistoryRequest + */ +export class QueryAllHistoryRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryAllHistoryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHistoryRequest { + return new QueryAllHistoryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHistoryRequest { + return new QueryAllHistoryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHistoryRequest { + return new QueryAllHistoryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHistoryRequest | PlainMessage | undefined, b: QueryAllHistoryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHistoryRequest, a, b); + } +} + +/** + * @generated from message elys.burner.QueryAllHistoryResponse + */ +export class QueryAllHistoryResponse extends Message { + /** + * @generated from field: repeated elys.burner.History history = 1; + */ + history: History[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.QueryAllHistoryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "history", kind: "message", T: History, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHistoryResponse { + return new QueryAllHistoryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHistoryResponse { + return new QueryAllHistoryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHistoryResponse { + return new QueryAllHistoryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHistoryResponse | PlainMessage | undefined, b: QueryAllHistoryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHistoryResponse, a, b); + } +} + diff --git a/src/protobufs/elys/burner/tx_cosmes.ts b/src/protobufs/elys/burner/tx_cosmes.ts new file mode 100644 index 00000000..049bb643 --- /dev/null +++ b/src/protobufs/elys/burner/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/burner/tx.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.burner.Msg"; + +/** + * @generated from rpc elys.burner.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/elys/burner/tx_pb.ts b/src/protobufs/elys/burner/tx_pb.ts new file mode 100644 index 00000000..2436a46c --- /dev/null +++ b/src/protobufs/elys/burner/tx_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/burner/tx.proto (package elys.burner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.burner.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.burner.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.burner.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.burner.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/airdrop_pb.ts b/src/protobufs/elys/commitment/airdrop_pb.ts new file mode 100644 index 00000000..77372d9f --- /dev/null +++ b/src/protobufs/elys/commitment/airdrop_pb.ts @@ -0,0 +1,370 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/airdrop.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.commitment.AtomStaker + */ +export class AtomStaker extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.AtomStaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AtomStaker { + return new AtomStaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AtomStaker { + return new AtomStaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AtomStaker { + return new AtomStaker().fromJsonString(jsonString, options); + } + + static equals(a: AtomStaker | PlainMessage | undefined, b: AtomStaker | PlainMessage | undefined): boolean { + return proto3.util.equals(AtomStaker, a, b); + } +} + +/** + * @generated from message elys.commitment.NftHolder + */ +export class NftHolder extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.NftHolder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NftHolder { + return new NftHolder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NftHolder { + return new NftHolder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NftHolder { + return new NftHolder().fromJsonString(jsonString, options); + } + + static equals(a: NftHolder | PlainMessage | undefined, b: NftHolder | PlainMessage | undefined): boolean { + return proto3.util.equals(NftHolder, a, b); + } +} + +/** + * @generated from message elys.commitment.Cadet + */ +export class Cadet extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.Cadet"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Cadet { + return new Cadet().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Cadet { + return new Cadet().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Cadet { + return new Cadet().fromJsonString(jsonString, options); + } + + static equals(a: Cadet | PlainMessage | undefined, b: Cadet | PlainMessage | undefined): boolean { + return proto3.util.equals(Cadet, a, b); + } +} + +/** + * @generated from message elys.commitment.Governor + */ +export class Governor extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.Governor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Governor { + return new Governor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Governor { + return new Governor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Governor { + return new Governor().fromJsonString(jsonString, options); + } + + static equals(a: Governor | PlainMessage | undefined, b: Governor | PlainMessage | undefined): boolean { + return proto3.util.equals(Governor, a, b); + } +} + +/** + * @generated from message elys.commitment.AirdropClaimed + */ +export class AirdropClaimed extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: bool claimed = 2; + */ + claimed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.AirdropClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AirdropClaimed { + return new AirdropClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AirdropClaimed { + return new AirdropClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AirdropClaimed { + return new AirdropClaimed().fromJsonString(jsonString, options); + } + + static equals(a: AirdropClaimed | PlainMessage | undefined, b: AirdropClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(AirdropClaimed, a, b); + } +} + +/** + * @generated from message elys.commitment.TotalClaimed + */ +export class TotalClaimed extends Message { + /** + * @generated from field: string total_elys_claimed = 1; + */ + totalElysClaimed = ""; + + /** + * @generated from field: string total_eden_claimed = 2; + */ + totalEdenClaimed = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.TotalClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_elys_claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_eden_claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalClaimed { + return new TotalClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalClaimed { + return new TotalClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalClaimed { + return new TotalClaimed().fromJsonString(jsonString, options); + } + + static equals(a: TotalClaimed | PlainMessage | undefined, b: TotalClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalClaimed, a, b); + } +} + +/** + * @generated from message elys.commitment.KolList + */ +export class KolList extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: bool claimed = 3; + */ + claimed = false; + + /** + * @generated from field: bool refunded = 4; + */ + refunded = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.KolList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "refunded", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KolList { + return new KolList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KolList { + return new KolList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KolList { + return new KolList().fromJsonString(jsonString, options); + } + + static equals(a: KolList | PlainMessage | undefined, b: KolList | PlainMessage | undefined): boolean { + return proto3.util.equals(KolList, a, b); + } +} + +/** + * @generated from message elys.commitment.RewardProgram + */ +export class RewardProgram extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: bool claimed = 3; + */ + claimed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.RewardProgram"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardProgram { + return new RewardProgram().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardProgram { + return new RewardProgram().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardProgram { + return new RewardProgram().fromJsonString(jsonString, options); + } + + static equals(a: RewardProgram | PlainMessage | undefined, b: RewardProgram | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardProgram, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/commitments_pb.ts b/src/protobufs/elys/commitment/commitments_pb.ts new file mode 100644 index 00000000..6e569320 --- /dev/null +++ b/src/protobufs/elys/commitment/commitments_pb.ts @@ -0,0 +1,274 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/commitments.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the commitment module's genesis state. + * + * @generated from message elys.commitment.Commitments + */ +export class Commitments extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated elys.commitment.CommittedTokens committed_tokens = 2; + */ + committedTokens: CommittedTokens[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin claimed = 3; + */ + claimed: Coin[] = []; + + /** + * @generated from field: repeated elys.commitment.VestingTokens vesting_tokens = 4; + */ + vestingTokens: VestingTokens[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.Commitments"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "committed_tokens", kind: "message", T: CommittedTokens, repeated: true }, + { no: 3, name: "claimed", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "vesting_tokens", kind: "message", T: VestingTokens, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Commitments { + return new Commitments().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Commitments { + return new Commitments().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Commitments { + return new Commitments().fromJsonString(jsonString, options); + } + + static equals(a: Commitments | PlainMessage | undefined, b: Commitments | PlainMessage | undefined): boolean { + return proto3.util.equals(Commitments, a, b); + } +} + +/** + * @generated from message elys.commitment.Lockup + */ +export class Lockup extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * @generated from field: uint64 unlock_timestamp = 2; + */ + unlockTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.Lockup"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "unlock_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Lockup { + return new Lockup().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Lockup { + return new Lockup().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Lockup { + return new Lockup().fromJsonString(jsonString, options); + } + + static equals(a: Lockup | PlainMessage | undefined, b: Lockup | PlainMessage | undefined): boolean { + return proto3.util.equals(Lockup, a, b); + } +} + +/** + * @generated from message elys.commitment.CommittedTokens + */ +export class CommittedTokens extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: repeated elys.commitment.Lockup lockups = 3; + */ + lockups: Lockup[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.CommittedTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lockups", kind: "message", T: Lockup, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommittedTokens { + return new CommittedTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommittedTokens { + return new CommittedTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommittedTokens { + return new CommittedTokens().fromJsonString(jsonString, options); + } + + static equals(a: CommittedTokens | PlainMessage | undefined, b: CommittedTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(CommittedTokens, a, b); + } +} + +/** + * @generated from message elys.commitment.VestingTokens + */ +export class VestingTokens extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string total_amount = 2; + */ + totalAmount = ""; + + /** + * @generated from field: string claimed_amount = 3; + */ + claimedAmount = ""; + + /** + * @generated from field: int64 num_blocks = 5; + */ + numBlocks = protoInt64.zero; + + /** + * @generated from field: int64 start_block = 6; + */ + startBlock = protoInt64.zero; + + /** + * @generated from field: int64 vest_started_timestamp = 7; + */ + vestStartedTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.VestingTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "claimed_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "num_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "start_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "vest_started_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VestingTokens { + return new VestingTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VestingTokens { + return new VestingTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VestingTokens { + return new VestingTokens().fromJsonString(jsonString, options); + } + + static equals(a: VestingTokens | PlainMessage | undefined, b: VestingTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(VestingTokens, a, b); + } +} + +/** + * @generated from message elys.commitment.TotalSupply + */ +export class TotalSupply extends Message { + /** + * @generated from field: string total_eden_supply = 1; + */ + totalEdenSupply = ""; + + /** + * @generated from field: string total_edenb_supply = 2; + */ + totalEdenbSupply = ""; + + /** + * @generated from field: string total_eden_vested = 3; + */ + totalEdenVested = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.TotalSupply"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_eden_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_edenb_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_eden_vested", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalSupply { + return new TotalSupply().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalSupply { + return new TotalSupply().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalSupply { + return new TotalSupply().fromJsonString(jsonString, options); + } + + static equals(a: TotalSupply | PlainMessage | undefined, b: TotalSupply | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalSupply, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/genesis_pb.ts b/src/protobufs/elys/commitment/genesis_pb.ts new file mode 100644 index 00000000..7987c2f4 --- /dev/null +++ b/src/protobufs/elys/commitment/genesis_pb.ts @@ -0,0 +1,86 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/genesis.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Commitments } from "./commitments_pb.js"; +import { AtomStaker, Cadet, Governor, KolList, NftHolder } from "./airdrop_pb.js"; + +/** + * GenesisState defines the commitment module's genesis state. + * + * @generated from message elys.commitment.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.commitment.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.commitment.Commitments commitments = 2; + */ + commitments: Commitments[] = []; + + /** + * @generated from field: repeated elys.commitment.AtomStaker atom_stakers = 3; + */ + atomStakers: AtomStaker[] = []; + + /** + * @generated from field: repeated elys.commitment.NftHolder nft_holders = 4; + */ + nftHolders: NftHolder[] = []; + + /** + * @generated from field: repeated elys.commitment.Cadet cadets = 5; + */ + cadets: Cadet[] = []; + + /** + * @generated from field: repeated elys.commitment.Governor governors = 6; + */ + governors: Governor[] = []; + + /** + * @generated from field: repeated elys.commitment.KolList kol_list = 7; + */ + kolList: KolList[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "commitments", kind: "message", T: Commitments, repeated: true }, + { no: 3, name: "atom_stakers", kind: "message", T: AtomStaker, repeated: true }, + { no: 4, name: "nft_holders", kind: "message", T: NftHolder, repeated: true }, + { no: 5, name: "cadets", kind: "message", T: Cadet, repeated: true }, + { no: 6, name: "governors", kind: "message", T: Governor, repeated: true }, + { no: 7, name: "kol_list", kind: "message", T: KolList, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/params_pb.ts b/src/protobufs/elys/commitment/params_pb.ts new file mode 100644 index 00000000..ce39928a --- /dev/null +++ b/src/protobufs/elys/commitment/params_pb.ts @@ -0,0 +1,314 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/params.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum elys.commitment.EarnType + */ +export enum EarnType { + /** + * @generated from enum value: ALL_PROGRAM = 0; + */ + ALL_PROGRAM = 0, + + /** + * @generated from enum value: USDC_PROGRAM = 1; + */ + USDC_PROGRAM = 1, + + /** + * @generated from enum value: ELYS_PROGRAM = 2; + */ + ELYS_PROGRAM = 2, + + /** + * @generated from enum value: EDEN_PROGRAM = 3; + */ + EDEN_PROGRAM = 3, + + /** + * @generated from enum value: EDENB_PROGRAM = 4; + */ + EDENB_PROGRAM = 4, + + /** + * @generated from enum value: LP_MINING_PROGRAM = 5; + */ + LP_MINING_PROGRAM = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(EarnType) +proto3.util.setEnumType(EarnType, "elys.commitment.EarnType", [ + { no: 0, name: "ALL_PROGRAM" }, + { no: 1, name: "USDC_PROGRAM" }, + { no: 2, name: "ELYS_PROGRAM" }, + { no: 3, name: "EDEN_PROGRAM" }, + { no: 4, name: "EDENB_PROGRAM" }, + { no: 5, name: "LP_MINING_PROGRAM" }, +]); + +/** + * @generated from message elys.commitment.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: repeated elys.commitment.VestingInfo vesting_infos = 1; + */ + vestingInfos: VestingInfo[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_committed = 2; + */ + totalCommitted: Coin[] = []; + + /** + * @generated from field: uint64 number_of_commitments = 3; + */ + numberOfCommitments = protoInt64.zero; + + /** + * @generated from field: bool enable_vest_now = 4; + */ + enableVestNow = false; + + /** + * @generated from field: uint64 start_atom_stakers_height = 5; + */ + startAtomStakersHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_atom_stakers_height = 6; + */ + endAtomStakersHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_cadets_height = 7; + */ + startCadetsHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_cadets_height = 8; + */ + endCadetsHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_nft_holders_height = 9; + */ + startNftHoldersHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_nft_holders_height = 10; + */ + endNftHoldersHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_governors_height = 11; + */ + startGovernorsHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_governors_height = 12; + */ + endGovernorsHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vesting_infos", kind: "message", T: VestingInfo, repeated: true }, + { no: 2, name: "total_committed", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "number_of_commitments", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "enable_vest_now", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "start_atom_stakers_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "end_atom_stakers_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "start_cadets_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "end_cadets_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "start_nft_holders_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "end_nft_holders_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "start_governors_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "end_governors_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * @generated from message elys.commitment.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated elys.commitment.VestingInfo vesting_infos = 1; + */ + vestingInfos: VestingInfo[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_committed = 2; + */ + totalCommitted: Coin[] = []; + + /** + * @generated from field: uint64 number_of_commitments = 3; + */ + numberOfCommitments = protoInt64.zero; + + /** + * @generated from field: bool enable_vest_now = 4; + */ + enableVestNow = false; + + /** + * @generated from field: uint64 start_airdrop_claim_height = 5; + */ + startAirdropClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_airdrop_claim_height = 6; + */ + endAirdropClaimHeight = protoInt64.zero; + + /** + * @generated from field: bool enable_claim = 7; + */ + enableClaim = false; + + /** + * @generated from field: uint64 start_kol_claim_height = 8; + */ + startKolClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_kol_claim_height = 9; + */ + endKolClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_reward_program_claim_height = 10; + */ + startRewardProgramClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_reward_program_claim_height = 11; + */ + endRewardProgramClaimHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vesting_infos", kind: "message", T: VestingInfo, repeated: true }, + { no: 2, name: "total_committed", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "number_of_commitments", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "enable_vest_now", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "start_airdrop_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "end_airdrop_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "enable_claim", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "start_kol_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "end_kol_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "start_reward_program_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "end_reward_program_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * @generated from message elys.commitment.VestingInfo + */ +export class VestingInfo extends Message { + /** + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * @generated from field: string vesting_denom = 2; + */ + vestingDenom = ""; + + /** + * @generated from field: int64 num_blocks = 3; + */ + numBlocks = protoInt64.zero; + + /** + * @generated from field: string vest_now_factor = 4; + */ + vestNowFactor = ""; + + /** + * @generated from field: int64 num_max_vestings = 5; + */ + numMaxVestings = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.VestingInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "num_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "vest_now_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "num_max_vestings", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VestingInfo { + return new VestingInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VestingInfo { + return new VestingInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VestingInfo { + return new VestingInfo().fromJsonString(jsonString, options); + } + + static equals(a: VestingInfo | PlainMessage | undefined, b: VestingInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(VestingInfo, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/query_cosmes.ts b/src/protobufs/elys/commitment/query_cosmes.ts new file mode 100644 index 00000000..5f19a357 --- /dev/null +++ b/src/protobufs/elys/commitment/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/commitment/query.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAirDropRequest, QueryAirDropResponse, QueryCommitmentVestingInfoRequest, QueryCommitmentVestingInfoResponse, QueryCommittedTokensLockedRequest, QueryCommittedTokensLockedResponse, QueryKolRequest, QueryKolResponse, QueryNumberOfCommitmentsRequest, QueryNumberOfCommitmentsResponse, QueryParamsRequest, QueryParamsResponse, QueryRewardProgramRequest, QueryRewardProgramResponse, QueryShowCommitmentsRequest, QueryShowCommitmentsResponse, QueryTotalAirDropClaimedRequest, QueryTotalAirDropClaimedResponse, QueryTotalRewardProgramClaimedRequest, QueryTotalRewardProgramClaimedResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.commitment.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.commitment.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Commitment item. + * + * @generated from rpc elys.commitment.Query.ShowCommitments + */ +export const QueryShowCommitmentsService = { + typeName: TYPE_NAME, + method: "ShowCommitments", + Request: QueryShowCommitmentsRequest, + Response: QueryShowCommitmentsResponse, +} as const; + +/** + * Queries sum of committed tokens locked and not unlockable + * + * @generated from rpc elys.commitment.Query.CommittedTokensLocked + */ +export const QueryCommittedTokensLockedService = { + typeName: TYPE_NAME, + method: "CommittedTokensLocked", + Request: QueryCommittedTokensLockedRequest, + Response: QueryCommittedTokensLockedResponse, +} as const; + +/** + * Queries the total number of commitment items. + * + * @generated from rpc elys.commitment.Query.NumberOfCommitments + */ +export const QueryNumberOfCommitmentsService = { + typeName: TYPE_NAME, + method: "NumberOfCommitments", + Request: QueryNumberOfCommitmentsRequest, + Response: QueryNumberOfCommitmentsResponse, +} as const; + +/** + * Queries a list of CommitmentVestingInfo items. + * + * @generated from rpc elys.commitment.Query.CommitmentVestingInfo + */ +export const QueryCommitmentVestingInfoService = { + typeName: TYPE_NAME, + method: "CommitmentVestingInfo", + Request: QueryCommitmentVestingInfoRequest, + Response: QueryCommitmentVestingInfoResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.AirDrop + */ +export const QueryAirDropService = { + typeName: TYPE_NAME, + method: "AirDrop", + Request: QueryAirDropRequest, + Response: QueryAirDropResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.TotalAirdropClaimed + */ +export const QueryTotalAirdropClaimedService = { + typeName: TYPE_NAME, + method: "TotalAirdropClaimed", + Request: QueryTotalAirDropClaimedRequest, + Response: QueryTotalAirDropClaimedResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.Kol + */ +export const QueryKolService = { + typeName: TYPE_NAME, + method: "Kol", + Request: QueryKolRequest, + Response: QueryKolResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.TotalSupply + */ +export const QueryTotalSupplyService = { + typeName: TYPE_NAME, + method: "TotalSupply", + Request: QueryTotalSupplyRequest, + Response: QueryTotalSupplyResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.RewardProgram + */ +export const QueryRewardProgramService = { + typeName: TYPE_NAME, + method: "RewardProgram", + Request: QueryRewardProgramRequest, + Response: QueryRewardProgramResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Query.TotalRewardProgramClaimed + */ +export const QueryTotalRewardProgramClaimedService = { + typeName: TYPE_NAME, + method: "TotalRewardProgramClaimed", + Request: QueryTotalRewardProgramClaimedRequest, + Response: QueryTotalRewardProgramClaimedResponse, +} as const; + diff --git a/src/protobufs/elys/commitment/query_pb.ts b/src/protobufs/elys/commitment/query_pb.ts new file mode 100644 index 00000000..281545b6 --- /dev/null +++ b/src/protobufs/elys/commitment/query_pb.ts @@ -0,0 +1,940 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/query.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Commitments } from "./commitments_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.commitment.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.commitment.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.commitment.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryShowCommitmentsRequest + */ +export class QueryShowCommitmentsRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryShowCommitmentsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowCommitmentsRequest { + return new QueryShowCommitmentsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowCommitmentsRequest { + return new QueryShowCommitmentsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryShowCommitmentsRequest { + return new QueryShowCommitmentsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryShowCommitmentsRequest | PlainMessage | undefined, b: QueryShowCommitmentsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryShowCommitmentsRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryShowCommitmentsResponse + */ +export class QueryShowCommitmentsResponse extends Message { + /** + * @generated from field: elys.commitment.Commitments commitments = 1; + */ + commitments?: Commitments; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryShowCommitmentsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commitments", kind: "message", T: Commitments }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowCommitmentsResponse { + return new QueryShowCommitmentsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowCommitmentsResponse { + return new QueryShowCommitmentsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryShowCommitmentsResponse { + return new QueryShowCommitmentsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryShowCommitmentsResponse | PlainMessage | undefined, b: QueryShowCommitmentsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryShowCommitmentsResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryNumberOfCommitmentsRequest + */ +export class QueryNumberOfCommitmentsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryNumberOfCommitmentsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumberOfCommitmentsRequest { + return new QueryNumberOfCommitmentsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumberOfCommitmentsRequest { + return new QueryNumberOfCommitmentsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNumberOfCommitmentsRequest { + return new QueryNumberOfCommitmentsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNumberOfCommitmentsRequest | PlainMessage | undefined, b: QueryNumberOfCommitmentsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNumberOfCommitmentsRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryNumberOfCommitmentsResponse + */ +export class QueryNumberOfCommitmentsResponse extends Message { + /** + * @generated from field: int64 number = 1; + */ + number = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryNumberOfCommitmentsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumberOfCommitmentsResponse { + return new QueryNumberOfCommitmentsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumberOfCommitmentsResponse { + return new QueryNumberOfCommitmentsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNumberOfCommitmentsResponse { + return new QueryNumberOfCommitmentsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNumberOfCommitmentsResponse | PlainMessage | undefined, b: QueryNumberOfCommitmentsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNumberOfCommitmentsResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryCommittedTokensLockedRequest + */ +export class QueryCommittedTokensLockedRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryCommittedTokensLockedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommittedTokensLockedRequest | PlainMessage | undefined, b: QueryCommittedTokensLockedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommittedTokensLockedRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryCommittedTokensLockedResponse + */ +export class QueryCommittedTokensLockedResponse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin locked_committed = 2; + */ + lockedCommitted: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_committed = 3; + */ + totalCommitted: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryCommittedTokensLockedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "locked_committed", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "total_committed", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommittedTokensLockedResponse | PlainMessage | undefined, b: QueryCommittedTokensLockedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommittedTokensLockedResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryCommitmentVestingInfoRequest + */ +export class QueryCommitmentVestingInfoRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryCommitmentVestingInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitmentVestingInfoRequest { + return new QueryCommitmentVestingInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitmentVestingInfoRequest { + return new QueryCommitmentVestingInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitmentVestingInfoRequest { + return new QueryCommitmentVestingInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitmentVestingInfoRequest | PlainMessage | undefined, b: QueryCommitmentVestingInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitmentVestingInfoRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryCommitmentVestingInfoResponse + */ +export class QueryCommitmentVestingInfoResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + /** + * @generated from field: repeated elys.commitment.VestingDetails vesting_details = 2; + */ + vestingDetails: VestingDetails[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryCommitmentVestingInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_details", kind: "message", T: VestingDetails, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitmentVestingInfoResponse { + return new QueryCommitmentVestingInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitmentVestingInfoResponse { + return new QueryCommitmentVestingInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitmentVestingInfoResponse { + return new QueryCommitmentVestingInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitmentVestingInfoResponse | PlainMessage | undefined, b: QueryCommitmentVestingInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitmentVestingInfoResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.VestingDetails + */ +export class VestingDetails extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + /** + * @generated from field: string total_vesting = 2; + */ + totalVesting = ""; + + /** + * @generated from field: string claimed = 3; + */ + claimed = ""; + + /** + * @generated from field: string vested_so_far = 4; + */ + vestedSoFar = ""; + + /** + * @generated from field: int64 remaining_blocks = 5; + */ + remainingBlocks = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.VestingDetails"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_vesting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "vested_so_far", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "remaining_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VestingDetails { + return new VestingDetails().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VestingDetails { + return new VestingDetails().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VestingDetails { + return new VestingDetails().fromJsonString(jsonString, options); + } + + static equals(a: VestingDetails | PlainMessage | undefined, b: VestingDetails | PlainMessage | undefined): boolean { + return proto3.util.equals(VestingDetails, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryAirDropRequest + */ +export class QueryAirDropRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryAirDropRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAirDropRequest { + return new QueryAirDropRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAirDropRequest { + return new QueryAirDropRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAirDropRequest { + return new QueryAirDropRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAirDropRequest | PlainMessage | undefined, b: QueryAirDropRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAirDropRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryAirDropResponse + */ +export class QueryAirDropResponse extends Message { + /** + * @generated from field: string atom_staking = 1; + */ + atomStaking = ""; + + /** + * @generated from field: string cadet = 2; + */ + cadet = ""; + + /** + * @generated from field: string nft_holder = 3; + */ + nftHolder = ""; + + /** + * @generated from field: string governor = 4; + */ + governor = ""; + + /** + * @generated from field: bool claimed = 5; + */ + claimed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryAirDropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "atom_staking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cadet", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "nft_holder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "governor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAirDropResponse { + return new QueryAirDropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAirDropResponse { + return new QueryAirDropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAirDropResponse { + return new QueryAirDropResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAirDropResponse | PlainMessage | undefined, b: QueryAirDropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAirDropResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalAirDropClaimedRequest + */ +export class QueryTotalAirDropClaimedRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalAirDropClaimedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAirDropClaimedRequest { + return new QueryTotalAirDropClaimedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAirDropClaimedRequest { + return new QueryTotalAirDropClaimedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalAirDropClaimedRequest { + return new QueryTotalAirDropClaimedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalAirDropClaimedRequest | PlainMessage | undefined, b: QueryTotalAirDropClaimedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalAirDropClaimedRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalAirDropClaimedResponse + */ +export class QueryTotalAirDropClaimedResponse extends Message { + /** + * @generated from field: string total_elys_claimed = 1; + */ + totalElysClaimed = ""; + + /** + * @generated from field: string total_eden_claimed = 2; + */ + totalEdenClaimed = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalAirDropClaimedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_elys_claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_eden_claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAirDropClaimedResponse { + return new QueryTotalAirDropClaimedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAirDropClaimedResponse { + return new QueryTotalAirDropClaimedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalAirDropClaimedResponse { + return new QueryTotalAirDropClaimedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalAirDropClaimedResponse | PlainMessage | undefined, b: QueryTotalAirDropClaimedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalAirDropClaimedResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryKolRequest + */ +export class QueryKolRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryKolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryKolRequest { + return new QueryKolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryKolRequest { + return new QueryKolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryKolRequest { + return new QueryKolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryKolRequest | PlainMessage | undefined, b: QueryKolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryKolRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryKolResponse + */ +export class QueryKolResponse extends Message { + /** + * @generated from field: string elys_amount = 1; + */ + elysAmount = ""; + + /** + * @generated from field: bool claimed = 2; + */ + claimed = false; + + /** + * @generated from field: bool refunded = 3; + */ + refunded = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryKolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "elys_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "refunded", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryKolResponse { + return new QueryKolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryKolResponse { + return new QueryKolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryKolResponse { + return new QueryKolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryKolResponse | PlainMessage | undefined, b: QueryKolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryKolResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalSupplyRequest + */ +export class QueryTotalSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalSupplyResponse + */ +export class QueryTotalSupplyResponse extends Message { + /** + * @generated from field: string total_eden = 1; + */ + totalEden = ""; + + /** + * @generated from field: string total_edenb = 2; + */ + totalEdenb = ""; + + /** + * @generated from field: string total_eden_vested = 3; + */ + totalEdenVested = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_eden", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_edenb", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_eden_vested", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryRewardProgramRequest + */ +export class QueryRewardProgramRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryRewardProgramRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardProgramRequest { + return new QueryRewardProgramRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardProgramRequest { + return new QueryRewardProgramRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardProgramRequest { + return new QueryRewardProgramRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardProgramRequest | PlainMessage | undefined, b: QueryRewardProgramRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardProgramRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryRewardProgramResponse + */ +export class QueryRewardProgramResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * @generated from field: bool claimed = 2; + */ + claimed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryRewardProgramResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "claimed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardProgramResponse { + return new QueryRewardProgramResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardProgramResponse { + return new QueryRewardProgramResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardProgramResponse { + return new QueryRewardProgramResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardProgramResponse | PlainMessage | undefined, b: QueryRewardProgramResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardProgramResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalRewardProgramClaimedRequest + */ +export class QueryTotalRewardProgramClaimedRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalRewardProgramClaimedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRewardProgramClaimedRequest { + return new QueryTotalRewardProgramClaimedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRewardProgramClaimedRequest { + return new QueryTotalRewardProgramClaimedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalRewardProgramClaimedRequest { + return new QueryTotalRewardProgramClaimedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalRewardProgramClaimedRequest | PlainMessage | undefined, b: QueryTotalRewardProgramClaimedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalRewardProgramClaimedRequest, a, b); + } +} + +/** + * @generated from message elys.commitment.QueryTotalRewardProgramClaimedResponse + */ +export class QueryTotalRewardProgramClaimedResponse extends Message { + /** + * @generated from field: string total_eden_claimed = 1; + */ + totalEdenClaimed = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.QueryTotalRewardProgramClaimedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_eden_claimed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRewardProgramClaimedResponse { + return new QueryTotalRewardProgramClaimedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRewardProgramClaimedResponse { + return new QueryTotalRewardProgramClaimedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalRewardProgramClaimedResponse { + return new QueryTotalRewardProgramClaimedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalRewardProgramClaimedResponse | PlainMessage | undefined, b: QueryTotalRewardProgramClaimedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalRewardProgramClaimedResponse, a, b); + } +} + diff --git a/src/protobufs/elys/commitment/tx_cosmes.ts b/src/protobufs/elys/commitment/tx_cosmes.ts new file mode 100644 index 00000000..9fb8eb34 --- /dev/null +++ b/src/protobufs/elys/commitment/tx_cosmes.ts @@ -0,0 +1,184 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/commitment/tx.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCancelVest, MsgCancelVestResponse, MsgClaimAirdrop, MsgClaimAirdropResponse, MsgClaimKol, MsgClaimKolResponse, MsgClaimRewardProgram, MsgClaimRewardProgramResponse, MsgClaimVesting, MsgClaimVestingResponse, MsgCommitClaimedRewards, MsgCommitClaimedRewardsResponse, MsgStake, MsgStakeResponse, MsgUncommitTokens, MsgUncommitTokensResponse, MsgUnstake, MsgUnstakeResponse, MsgUpdateAirdropParams, MsgUpdateAirdropParamsResponse, MsgUpdateEnableVestNow, MsgUpdateEnableVestNowResponse, MsgUpdateVestingInfo, MsgUpdateVestingInfoResponse, MsgVest, MsgVestLiquid, MsgVestLiquidResponse, MsgVestNow, MsgVestNowResponse, MsgVestResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.commitment.Msg"; + +/** + * CommitClaimedRewards commit the tokens on claimed store to committed + * + * @generated from rpc elys.commitment.Msg.CommitClaimedRewards + */ +export const MsgCommitClaimedRewardsService = { + typeName: TYPE_NAME, + method: "CommitClaimedRewards", + Request: MsgCommitClaimedRewards, + Response: MsgCommitClaimedRewardsResponse, +} as const; + +/** + * UncommitTokens uncommits the tokens from committed store and make it liquid + * immediately + * + * @generated from rpc elys.commitment.Msg.UncommitTokens + */ +export const MsgUncommitTokensService = { + typeName: TYPE_NAME, + method: "UncommitTokens", + Request: MsgUncommitTokens, + Response: MsgUncommitTokensResponse, +} as const; + +/** + * Vest converts user's commitment to vesting - start with unclaimed rewards + * and if it's not enough deduct from committed bucket mainly utilized for + * Eden + * + * @generated from rpc elys.commitment.Msg.Vest + */ +export const MsgVestService = { + typeName: TYPE_NAME, + method: "Vest", + Request: MsgVest, + Response: MsgVestResponse, +} as const; + +/** + * VestNow provides functionality to get the token immediately but lower + * amount than original e.g. user can burn 1000 ueden and get 800 uelys when + * the ratio is 80% + * + * @generated from rpc elys.commitment.Msg.VestNow + */ +export const MsgVestNowService = { + typeName: TYPE_NAME, + method: "VestNow", + Request: MsgVestNow, + Response: MsgVestNowResponse, +} as const; + +/** + * VestLiquid converts user's balance to vesting to be utilized for normal + * tokens vesting like ATOM vesting + * + * @generated from rpc elys.commitment.Msg.VestLiquid + */ +export const MsgVestLiquidService = { + typeName: TYPE_NAME, + method: "VestLiquid", + Request: MsgVestLiquid, + Response: MsgVestLiquidResponse, +} as const; + +/** + * CancelVest cancel the user's vesting and the user reject to get vested + * tokens + * + * @generated from rpc elys.commitment.Msg.CancelVest + */ +export const MsgCancelVestService = { + typeName: TYPE_NAME, + method: "CancelVest", + Request: MsgCancelVest, + Response: MsgCancelVestResponse, +} as const; + +/** + * ClaimVesting claims already vested amount + * + * @generated from rpc elys.commitment.Msg.ClaimVesting + */ +export const MsgClaimVestingService = { + typeName: TYPE_NAME, + method: "ClaimVesting", + Request: MsgClaimVesting, + Response: MsgClaimVestingResponse, +} as const; + +/** + * UpdateVestingInfo add/update specific vesting info by denom on Params + * + * @generated from rpc elys.commitment.Msg.UpdateVestingInfo + */ +export const MsgUpdateVestingInfoService = { + typeName: TYPE_NAME, + method: "UpdateVestingInfo", + Request: MsgUpdateVestingInfo, + Response: MsgUpdateVestingInfoResponse, +} as const; + +/** + * UpdateEnableVestNow add/update enable vest now on Params + * + * @generated from rpc elys.commitment.Msg.UpdateEnableVestNow + */ +export const MsgUpdateEnableVestNowService = { + typeName: TYPE_NAME, + method: "UpdateEnableVestNow", + Request: MsgUpdateEnableVestNow, + Response: MsgUpdateEnableVestNowResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.UpdateAirdropParams + */ +export const MsgUpdateAirdropParamsService = { + typeName: TYPE_NAME, + method: "UpdateAirdropParams", + Request: MsgUpdateAirdropParams, + Response: MsgUpdateAirdropParamsResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.Stake + */ +export const MsgStakeService = { + typeName: TYPE_NAME, + method: "Stake", + Request: MsgStake, + Response: MsgStakeResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.Unstake + */ +export const MsgUnstakeService = { + typeName: TYPE_NAME, + method: "Unstake", + Request: MsgUnstake, + Response: MsgUnstakeResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.ClaimAirdrop + */ +export const MsgClaimAirdropService = { + typeName: TYPE_NAME, + method: "ClaimAirdrop", + Request: MsgClaimAirdrop, + Response: MsgClaimAirdropResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.ClaimKol + */ +export const MsgClaimKolService = { + typeName: TYPE_NAME, + method: "ClaimKol", + Request: MsgClaimKol, + Response: MsgClaimKolResponse, +} as const; + +/** + * @generated from rpc elys.commitment.Msg.ClaimRewardProgram + */ +export const MsgClaimRewardProgramService = { + typeName: TYPE_NAME, + method: "ClaimRewardProgram", + Request: MsgClaimRewardProgram, + Response: MsgClaimRewardProgramResponse, +} as const; + diff --git a/src/protobufs/elys/commitment/tx_pb.ts b/src/protobufs/elys/commitment/tx_pb.ts new file mode 100644 index 00000000..0a2bb90c --- /dev/null +++ b/src/protobufs/elys/commitment/tx_pb.ts @@ -0,0 +1,1274 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/commitment/tx.proto (package elys.commitment, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.commitment.MsgCommitClaimedRewards + */ +export class MsgCommitClaimedRewards extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgCommitClaimedRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommitClaimedRewards { + return new MsgCommitClaimedRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommitClaimedRewards { + return new MsgCommitClaimedRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCommitClaimedRewards { + return new MsgCommitClaimedRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgCommitClaimedRewards | PlainMessage | undefined, b: MsgCommitClaimedRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCommitClaimedRewards, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgCommitClaimedRewardsResponse + */ +export class MsgCommitClaimedRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgCommitClaimedRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommitClaimedRewardsResponse { + return new MsgCommitClaimedRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommitClaimedRewardsResponse { + return new MsgCommitClaimedRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCommitClaimedRewardsResponse { + return new MsgCommitClaimedRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCommitClaimedRewardsResponse | PlainMessage | undefined, b: MsgCommitClaimedRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCommitClaimedRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUncommitTokens + */ +export class MsgUncommitTokens extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUncommitTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUncommitTokens { + return new MsgUncommitTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUncommitTokens { + return new MsgUncommitTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUncommitTokens { + return new MsgUncommitTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgUncommitTokens | PlainMessage | undefined, b: MsgUncommitTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUncommitTokens, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUncommitTokensResponse + */ +export class MsgUncommitTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUncommitTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUncommitTokensResponse { + return new MsgUncommitTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUncommitTokensResponse { + return new MsgUncommitTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUncommitTokensResponse { + return new MsgUncommitTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUncommitTokensResponse | PlainMessage | undefined, b: MsgUncommitTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUncommitTokensResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVest + */ +export class MsgVest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVest { + return new MsgVest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVest { + return new MsgVest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVest { + return new MsgVest().fromJsonString(jsonString, options); + } + + static equals(a: MsgVest | PlainMessage | undefined, b: MsgVest | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVest, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVestResponse + */ +export class MsgVestResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVestResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVestResponse { + return new MsgVestResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVestResponse { + return new MsgVestResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVestResponse { + return new MsgVestResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVestResponse | PlainMessage | undefined, b: MsgVestResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVestResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgCancelVest + */ +export class MsgCancelVest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgCancelVest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelVest { + return new MsgCancelVest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelVest { + return new MsgCancelVest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelVest { + return new MsgCancelVest().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelVest | PlainMessage | undefined, b: MsgCancelVest | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelVest, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgCancelVestResponse + */ +export class MsgCancelVestResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgCancelVestResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelVestResponse { + return new MsgCancelVestResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelVestResponse { + return new MsgCancelVestResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelVestResponse { + return new MsgCancelVestResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelVestResponse | PlainMessage | undefined, b: MsgCancelVestResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelVestResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimVesting + */ +export class MsgClaimVesting extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimVesting"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimVesting { + return new MsgClaimVesting().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimVesting { + return new MsgClaimVesting().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimVesting { + return new MsgClaimVesting().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimVesting | PlainMessage | undefined, b: MsgClaimVesting | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimVesting, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimVestingResponse + */ +export class MsgClaimVestingResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimVestingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimVestingResponse { + return new MsgClaimVestingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimVestingResponse { + return new MsgClaimVestingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimVestingResponse { + return new MsgClaimVestingResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimVestingResponse | PlainMessage | undefined, b: MsgClaimVestingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimVestingResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVestNow + */ +export class MsgVestNow extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVestNow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVestNow { + return new MsgVestNow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVestNow { + return new MsgVestNow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVestNow { + return new MsgVestNow().fromJsonString(jsonString, options); + } + + static equals(a: MsgVestNow | PlainMessage | undefined, b: MsgVestNow | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVestNow, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVestNowResponse + */ +export class MsgVestNowResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVestNowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVestNowResponse { + return new MsgVestNowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVestNowResponse { + return new MsgVestNowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVestNowResponse { + return new MsgVestNowResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVestNowResponse | PlainMessage | undefined, b: MsgVestNowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVestNowResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateVestingInfo + */ +export class MsgUpdateVestingInfo extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + /** + * @generated from field: string vesting_denom = 3; + */ + vestingDenom = ""; + + /** + * @generated from field: int64 num_blocks = 4; + */ + numBlocks = protoInt64.zero; + + /** + * @generated from field: int64 vest_now_factor = 5; + */ + vestNowFactor = protoInt64.zero; + + /** + * @generated from field: int64 num_max_vestings = 6; + */ + numMaxVestings = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateVestingInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vesting_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "num_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "vest_now_factor", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "num_max_vestings", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVestingInfo { + return new MsgUpdateVestingInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVestingInfo { + return new MsgUpdateVestingInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVestingInfo { + return new MsgUpdateVestingInfo().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVestingInfo | PlainMessage | undefined, b: MsgUpdateVestingInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVestingInfo, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateVestingInfoResponse + */ +export class MsgUpdateVestingInfoResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateVestingInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVestingInfoResponse { + return new MsgUpdateVestingInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVestingInfoResponse { + return new MsgUpdateVestingInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVestingInfoResponse { + return new MsgUpdateVestingInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVestingInfoResponse | PlainMessage | undefined, b: MsgUpdateVestingInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVestingInfoResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateEnableVestNow + */ +export class MsgUpdateEnableVestNow extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: bool enable_vest_now = 2; + */ + enableVestNow = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateEnableVestNow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enable_vest_now", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnableVestNow { + return new MsgUpdateEnableVestNow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnableVestNow { + return new MsgUpdateEnableVestNow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnableVestNow { + return new MsgUpdateEnableVestNow().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnableVestNow | PlainMessage | undefined, b: MsgUpdateEnableVestNow | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnableVestNow, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateEnableVestNowResponse + */ +export class MsgUpdateEnableVestNowResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateEnableVestNowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnableVestNowResponse { + return new MsgUpdateEnableVestNowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnableVestNowResponse { + return new MsgUpdateEnableVestNowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnableVestNowResponse { + return new MsgUpdateEnableVestNowResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnableVestNowResponse | PlainMessage | undefined, b: MsgUpdateEnableVestNowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnableVestNowResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVestLiquid + */ +export class MsgVestLiquid extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVestLiquid"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVestLiquid { + return new MsgVestLiquid().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVestLiquid { + return new MsgVestLiquid().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVestLiquid { + return new MsgVestLiquid().fromJsonString(jsonString, options); + } + + static equals(a: MsgVestLiquid | PlainMessage | undefined, b: MsgVestLiquid | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVestLiquid, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgVestLiquidResponse + */ +export class MsgVestLiquidResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgVestLiquidResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVestLiquidResponse { + return new MsgVestLiquidResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVestLiquidResponse { + return new MsgVestLiquidResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVestLiquidResponse { + return new MsgVestLiquidResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVestLiquidResponse | PlainMessage | undefined, b: MsgVestLiquidResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVestLiquidResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgStake + */ +export class MsgStake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string asset = 3; + */ + asset = ""; + + /** + * @generated from field: string validator_address = 4; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgStake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStake { + return new MsgStake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStake { + return new MsgStake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStake { + return new MsgStake().fromJsonString(jsonString, options); + } + + static equals(a: MsgStake | PlainMessage | undefined, b: MsgStake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStake, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgStakeResponse + */ +export class MsgStakeResponse extends Message { + /** + * @generated from field: uint64 code = 1; + */ + code = protoInt64.zero; + + /** + * @generated from field: string result = 2; + */ + result = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgStakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakeResponse | PlainMessage | undefined, b: MsgStakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakeResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUnstake + */ +export class MsgUnstake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string asset = 3; + */ + asset = ""; + + /** + * @generated from field: string validator_address = 4; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstake { + return new MsgUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstake { + return new MsgUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstake { + return new MsgUnstake().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstake | PlainMessage | undefined, b: MsgUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstake, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUnstakeResponse + */ +export class MsgUnstakeResponse extends Message { + /** + * @generated from field: uint64 code = 1; + */ + code = protoInt64.zero; + + /** + * @generated from field: string result = 2; + */ + result = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUnstakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstakeResponse | PlainMessage | undefined, b: MsgUnstakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstakeResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimAirdrop + */ +export class MsgClaimAirdrop extends Message { + /** + * @generated from field: string claim_address = 1; + */ + claimAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimAirdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "claim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAirdrop | PlainMessage | undefined, b: MsgClaimAirdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAirdrop, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimAirdropResponse + */ +export class MsgClaimAirdropResponse extends Message { + /** + * @generated from field: string elys_amount = 1; + */ + elysAmount = ""; + + /** + * @generated from field: string eden_amount = 2; + */ + edenAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "elys_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "eden_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAirdropResponse | PlainMessage | undefined, b: MsgClaimAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimKol + */ +export class MsgClaimKol extends Message { + /** + * @generated from field: string claim_address = 1; + */ + claimAddress = ""; + + /** + * @generated from field: bool refund = 2; + */ + refund = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimKol"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "claim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "refund", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimKol { + return new MsgClaimKol().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimKol { + return new MsgClaimKol().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimKol { + return new MsgClaimKol().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimKol | PlainMessage | undefined, b: MsgClaimKol | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimKol, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimKolResponse + */ +export class MsgClaimKolResponse extends Message { + /** + * @generated from field: string elys_amount = 1; + */ + elysAmount = ""; + + /** + * @generated from field: string vested_elys_amount = 2; + */ + vestedElysAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimKolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "elys_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vested_elys_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimKolResponse { + return new MsgClaimKolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimKolResponse { + return new MsgClaimKolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimKolResponse { + return new MsgClaimKolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimKolResponse | PlainMessage | undefined, b: MsgClaimKolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimKolResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateAirdropParams + */ +export class MsgUpdateAirdropParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: bool enable_claim = 2; + */ + enableClaim = false; + + /** + * @generated from field: uint64 start_airdrop_claim_height = 3; + */ + startAirdropClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_airdrop_claim_height = 4; + */ + endAirdropClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_kol_claim_height = 5; + */ + startKolClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_kol_claim_height = 6; + */ + endKolClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 start_reward_program_claim_height = 7; + */ + startRewardProgramClaimHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_reward_program_claim_height = 8; + */ + endRewardProgramClaimHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateAirdropParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enable_claim", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "start_airdrop_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "end_airdrop_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "start_kol_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "end_kol_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "start_reward_program_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "end_reward_program_claim_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAirdropParams { + return new MsgUpdateAirdropParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAirdropParams { + return new MsgUpdateAirdropParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAirdropParams { + return new MsgUpdateAirdropParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAirdropParams | PlainMessage | undefined, b: MsgUpdateAirdropParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAirdropParams, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgUpdateAirdropParamsResponse + */ +export class MsgUpdateAirdropParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgUpdateAirdropParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAirdropParamsResponse { + return new MsgUpdateAirdropParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAirdropParamsResponse { + return new MsgUpdateAirdropParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAirdropParamsResponse { + return new MsgUpdateAirdropParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAirdropParamsResponse | PlainMessage | undefined, b: MsgUpdateAirdropParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAirdropParamsResponse, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimRewardProgram + */ +export class MsgClaimRewardProgram extends Message { + /** + * @generated from field: string claim_address = 1; + */ + claimAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimRewardProgram"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "claim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardProgram { + return new MsgClaimRewardProgram().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardProgram { + return new MsgClaimRewardProgram().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardProgram { + return new MsgClaimRewardProgram().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardProgram | PlainMessage | undefined, b: MsgClaimRewardProgram | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardProgram, a, b); + } +} + +/** + * @generated from message elys.commitment.MsgClaimRewardProgramResponse + */ +export class MsgClaimRewardProgramResponse extends Message { + /** + * @generated from field: string eden_amount = 1; + */ + edenAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.commitment.MsgClaimRewardProgramResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "eden_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardProgramResponse { + return new MsgClaimRewardProgramResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardProgramResponse { + return new MsgClaimRewardProgramResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardProgramResponse { + return new MsgClaimRewardProgramResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardProgramResponse | PlainMessage | undefined, b: MsgClaimRewardProgramResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardProgramResponse, a, b); + } +} + diff --git a/src/protobufs/elys/epochs/v1/genesis_pb.ts b/src/protobufs/elys/epochs/v1/genesis_pb.ts new file mode 100644 index 00000000..bfe69aba --- /dev/null +++ b/src/protobufs/elys/epochs/v1/genesis_pb.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/epochs/v1/genesis.proto (package elys.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * EpochInfo defines the message interface containing the relevant informations + * about an epoch. + * + * @generated from message elys.epochs.v1.EpochInfo + */ +export class EpochInfo extends Message { + /** + * identifier of the epoch + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + /** + * start_time of the epoch + * + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime?: Timestamp; + + /** + * duration of the epoch + * + * @generated from field: google.protobuf.Duration duration = 3; + */ + duration?: Duration; + + /** + * current_epoch is the integer identifier of the epoch + * + * @generated from field: int64 current_epoch = 4; + */ + currentEpoch = protoInt64.zero; + + /** + * current_epoch_start_time defines the timestamp of the start of the epoch + * + * @generated from field: google.protobuf.Timestamp current_epoch_start_time = 5; + */ + currentEpochStartTime?: Timestamp; + + /** + * epoch_counting_started reflects if the counting for the epoch has started + * + * @generated from field: bool epoch_counting_started = 6; + */ + epochCountingStarted = false; + + /** + * current_epoch_start_height of the epoch + * + * @generated from field: int64 current_epoch_start_height = 7; + */ + currentEpochStartHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.EpochInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_time", kind: "message", T: Timestamp }, + { no: 3, name: "duration", kind: "message", T: Duration }, + { no: 4, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "current_epoch_start_time", kind: "message", T: Timestamp }, + { no: 6, name: "epoch_counting_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "current_epoch_start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EpochInfo { + return new EpochInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EpochInfo { + return new EpochInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EpochInfo { + return new EpochInfo().fromJsonString(jsonString, options); + } + + static equals(a: EpochInfo | PlainMessage | undefined, b: EpochInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(EpochInfo, a, b); + } +} + +/** + * GenesisState defines the epochs module's genesis state. + * + * @generated from message elys.epochs.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * epochs is a slice of EpochInfo that defines the epochs in the genesis state + * + * @generated from field: repeated elys.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/epochs/v1/query_cosmes.ts b/src/protobufs/elys/epochs/v1/query_cosmes.ts new file mode 100644 index 00000000..f5dc6efb --- /dev/null +++ b/src/protobufs/elys/epochs/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/epochs/v1/query.proto (package elys.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCurrentEpochRequest, QueryCurrentEpochResponse, QueryEpochsInfoRequest, QueryEpochsInfoResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.epochs.v1.Query"; + +/** + * EpochInfos provide running epochInfos + * + * @generated from rpc elys.epochs.v1.Query.EpochInfos + */ +export const QueryEpochInfosService = { + typeName: TYPE_NAME, + method: "EpochInfos", + Request: QueryEpochsInfoRequest, + Response: QueryEpochsInfoResponse, +} as const; + +/** + * CurrentEpoch provide current epoch of specified identifier + * + * @generated from rpc elys.epochs.v1.Query.CurrentEpoch + */ +export const QueryCurrentEpochService = { + typeName: TYPE_NAME, + method: "CurrentEpoch", + Request: QueryCurrentEpochRequest, + Response: QueryCurrentEpochResponse, +} as const; + diff --git a/src/protobufs/elys/epochs/v1/query_pb.ts b/src/protobufs/elys/epochs/v1/query_pb.ts new file mode 100644 index 00000000..f75f7820 --- /dev/null +++ b/src/protobufs/elys/epochs/v1/query_pb.ts @@ -0,0 +1,186 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/epochs/v1/query.proto (package elys.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { EpochInfo } from "./genesis_pb.js"; + +/** + * QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC + * method. + * + * @generated from message elys.epochs.v1.QueryEpochsInfoRequest + */ +export class QueryEpochsInfoRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.QueryEpochsInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsInfoRequest | PlainMessage | undefined, b: QueryEpochsInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsInfoRequest, a, b); + } +} + +/** + * QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC + * method. + * + * @generated from message elys.epochs.v1.QueryEpochsInfoResponse + */ +export class QueryEpochsInfoResponse extends Message { + /** + * epochs is a slice of all EpochInfos + * + * @generated from field: repeated elys.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.QueryEpochsInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsInfoResponse | PlainMessage | undefined, b: QueryEpochsInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsInfoResponse, a, b); + } +} + +/** + * QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC + * method. + * + * @generated from message elys.epochs.v1.QueryCurrentEpochRequest + */ +export class QueryCurrentEpochRequest extends Message { + /** + * identifier of the current epoch + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.QueryCurrentEpochRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochRequest, a, b); + } +} + +/** + * QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC + * method. + * + * @generated from message elys.epochs.v1.QueryCurrentEpochResponse + */ +export class QueryCurrentEpochResponse extends Message { + /** + * current_epoch is the number of the current epoch + * + * @generated from field: int64 current_epoch = 1; + */ + currentEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.epochs.v1.QueryCurrentEpochResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochResponse, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/dex_rewards_tracker_pb.ts b/src/protobufs/elys/estaking/dex_rewards_tracker_pb.ts new file mode 100644 index 00000000..105df86a --- /dev/null +++ b/src/protobufs/elys/estaking/dex_rewards_tracker_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/dex_rewards_tracker.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * DexRewardsTracker is used for tracking rewards for stakers and LPs, all + * amount here is in USDC + * + * @generated from message elys.estaking.DexRewardsTracker + */ +export class DexRewardsTracker extends Message { + /** + * Number of blocks since start of epoch (distribution epoch) + * + * @generated from field: int64 num_blocks = 1; + */ + numBlocks = protoInt64.zero; + + /** + * Accumulated amount at distribution epoch - recalculated at every + * distribution epoch + * + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.DexRewardsTracker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "num_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DexRewardsTracker { + return new DexRewardsTracker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DexRewardsTracker { + return new DexRewardsTracker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DexRewardsTracker { + return new DexRewardsTracker().fromJsonString(jsonString, options); + } + + static equals(a: DexRewardsTracker | PlainMessage | undefined, b: DexRewardsTracker | PlainMessage | undefined): boolean { + return proto3.util.equals(DexRewardsTracker, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/elys_staked_pb.ts b/src/protobufs/elys/estaking/elys_staked_pb.ts new file mode 100644 index 00000000..0309ad49 --- /dev/null +++ b/src/protobufs/elys/estaking/elys_staked_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/elys_staked.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Elys staked amount is tracked because EdenBoost has to be burnt when unstake + * ELYS event happens, and there's no way to track staked amount change from + * staking hook and this struct is added. + * + * @generated from message elys.estaking.ElysStaked + */ +export class ElysStaked extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.ElysStaked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ElysStaked { + return new ElysStaked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ElysStaked { + return new ElysStaked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ElysStaked { + return new ElysStaked().fromJsonString(jsonString, options); + } + + static equals(a: ElysStaked | PlainMessage | undefined, b: ElysStaked | PlainMessage | undefined): boolean { + return proto3.util.equals(ElysStaked, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/genesis_pb.ts b/src/protobufs/elys/estaking/genesis_pb.ts new file mode 100644 index 00000000..0cd2e82f --- /dev/null +++ b/src/protobufs/elys/estaking/genesis_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/genesis.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ElysStaked } from "./elys_staked_pb.js"; + +/** + * GenesisState defines the estaking module's genesis state. + * + * @generated from message elys.estaking.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.estaking.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.estaking.ElysStaked staking_snapshots = 2; + */ + stakingSnapshots: ElysStaked[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "staking_snapshots", kind: "message", T: ElysStaked, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/incentive_pb.ts b/src/protobufs/elys/estaking/incentive_pb.ts new file mode 100644 index 00000000..1a8314e9 --- /dev/null +++ b/src/protobufs/elys/estaking/incentive_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/incentive.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.estaking.IncentiveInfo + */ +export class IncentiveInfo extends Message { + /** + * reward amount in eden for 1 year + * + * @generated from field: string eden_amount_per_year = 1; + */ + edenAmountPerYear = ""; + + /** + * blocks distributed + * + * @generated from field: int64 blocks_distributed = 2; + */ + blocksDistributed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.IncentiveInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "eden_amount_per_year", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "blocks_distributed", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromJsonString(jsonString, options); + } + + static equals(a: IncentiveInfo | PlainMessage | undefined, b: IncentiveInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(IncentiveInfo, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/params_pb.ts b/src/protobufs/elys/estaking/params_pb.ts new file mode 100644 index 00000000..9ef1c516 --- /dev/null +++ b/src/protobufs/elys/estaking/params_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/params.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { IncentiveInfo } from "./incentive_pb.js"; +import { DexRewardsTracker } from "./dex_rewards_tracker_pb.js"; + +/** + * @generated from message elys.estaking.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: elys.estaking.IncentiveInfo stake_incentives = 1; + */ + stakeIncentives?: IncentiveInfo; + + /** + * @generated from field: string eden_commit_val = 2; + */ + edenCommitVal = ""; + + /** + * @generated from field: string edenb_commit_val = 3; + */ + edenbCommitVal = ""; + + /** + * Maximum eden reward apr for stakers - [0 - 0.3] + * + * @generated from field: string max_eden_reward_apr_stakers = 4; + */ + maxEdenRewardAprStakers = ""; + + /** + * @generated from field: string eden_boost_apr = 5; + */ + edenBoostApr = ""; + + /** + * Tracking dex rewards given to stakers + * + * @generated from field: elys.estaking.DexRewardsTracker dex_rewards_stakers = 6; + */ + dexRewardsStakers?: DexRewardsTracker; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stake_incentives", kind: "message", T: IncentiveInfo }, + { no: 2, name: "eden_commit_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "edenb_commit_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_eden_reward_apr_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "eden_boost_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "dex_rewards_stakers", kind: "message", T: DexRewardsTracker }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.estaking.Params + */ +export class Params extends Message { + /** + * @generated from field: elys.estaking.IncentiveInfo stake_incentives = 1; + */ + stakeIncentives?: IncentiveInfo; + + /** + * @generated from field: string eden_commit_val = 2; + */ + edenCommitVal = ""; + + /** + * @generated from field: string edenb_commit_val = 3; + */ + edenbCommitVal = ""; + + /** + * Maximum eden reward apr for stakers - [0 - 0.3] + * + * @generated from field: string max_eden_reward_apr_stakers = 4; + */ + maxEdenRewardAprStakers = ""; + + /** + * @generated from field: string eden_boost_apr = 5; + */ + edenBoostApr = ""; + + /** + * @generated from field: string provider_vesting_epoch_identifier = 6; + */ + providerVestingEpochIdentifier = ""; + + /** + * @generated from field: string provider_staking_rewards_portion = 7; + */ + providerStakingRewardsPortion = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stake_incentives", kind: "message", T: IncentiveInfo }, + { no: 2, name: "eden_commit_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "edenb_commit_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_eden_reward_apr_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "eden_boost_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "provider_vesting_epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "provider_staking_rewards_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/query_cosmes.ts b/src/protobufs/elys/estaking/query_cosmes.ts new file mode 100644 index 00000000..fd71958f --- /dev/null +++ b/src/protobufs/elys/estaking/query_cosmes.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/estaking/query.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryEdenBBurnAmountRequest, QueryEdenBBurnAmountResponse, QueryInvariantRequest, QueryInvariantResponse, QueryParamsRequest, QueryParamsResponse, QueryRewardsRequest, QueryRewardsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.estaking.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.estaking.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Rewards queries the total rewards accrued by a delegation + * + * @generated from rpc elys.estaking.Query.Rewards + */ +export const QueryRewardsService = { + typeName: TYPE_NAME, + method: "Rewards", + Request: QueryRewardsRequest, + Response: QueryRewardsResponse, +} as const; + +/** + * Invariant queries the invariant values + * + * @generated from rpc elys.estaking.Query.Invariant + */ +export const QueryInvariantService = { + typeName: TYPE_NAME, + method: "Invariant", + Request: QueryInvariantRequest, + Response: QueryInvariantResponse, +} as const; + +/** + * EdenBBurnAmount queries the amount of EdenB that will be burned when + * unstaking + * + * @generated from rpc elys.estaking.Query.EdenBBurnAmount + */ +export const QueryEdenBBurnAmountService = { + typeName: TYPE_NAME, + method: "EdenBBurnAmount", + Request: QueryEdenBBurnAmountRequest, + Response: QueryEdenBBurnAmountResponse, +} as const; + diff --git a/src/protobufs/elys/estaking/query_pb.ts b/src/protobufs/elys/estaking/query_pb.ts new file mode 100644 index 00000000..922cb3e8 --- /dev/null +++ b/src/protobufs/elys/estaking/query_pb.ts @@ -0,0 +1,391 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/query.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum elys.estaking.TokenType + */ +export enum TokenType { + /** + * @generated from enum value: TOKEN_TYPE_ELYS = 0; + */ + ELYS = 0, + + /** + * @generated from enum value: TOKEN_TYPE_EDEN = 1; + */ + EDEN = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(TokenType) +proto3.util.setEnumType(TokenType, "elys.estaking.TokenType", [ + { no: 0, name: "TOKEN_TYPE_ELYS" }, + { no: 1, name: "TOKEN_TYPE_EDEN" }, +]); + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.estaking.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.estaking.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.estaking.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryRewardsRequest + */ +export class QueryRewardsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsRequest | PlainMessage | undefined, b: QueryRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsRequest, a, b); + } +} + +/** + * @generated from message elys.estaking.DelegationDelegatorReward + */ +export class DelegationDelegatorReward extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward = 2; + */ + reward: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.DelegationDelegatorReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromJsonString(jsonString, options); + } + + static equals(a: DelegationDelegatorReward | PlainMessage | undefined, b: DelegationDelegatorReward | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegationDelegatorReward, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryRewardsResponse + */ +export class QueryRewardsResponse extends Message { + /** + * rewards defines all the rewards accrued by a delegator. + * + * @generated from field: repeated elys.estaking.DelegationDelegatorReward rewards = 1; + */ + rewards: DelegationDelegatorReward[] = []; + + /** + * total defines the sum of all the rewards. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin total = 2; + */ + total: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DelegationDelegatorReward, repeated: true }, + { no: 2, name: "total", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsResponse | PlainMessage | undefined, b: QueryRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryInvariantRequest + */ +export class QueryInvariantRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryInvariantRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvariantRequest { + return new QueryInvariantRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvariantRequest { + return new QueryInvariantRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvariantRequest { + return new QueryInvariantRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvariantRequest | PlainMessage | undefined, b: QueryInvariantRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvariantRequest, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryInvariantResponse + */ +export class QueryInvariantResponse extends Message { + /** + * @generated from field: string total_bonded = 1; + */ + totalBonded = ""; + + /** + * @generated from field: string bonded_validator_tokens_sum = 2; + */ + bondedValidatorTokensSum = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryInvariantResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_bonded", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bonded_validator_tokens_sum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvariantResponse { + return new QueryInvariantResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvariantResponse { + return new QueryInvariantResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvariantResponse { + return new QueryInvariantResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvariantResponse | PlainMessage | undefined, b: QueryInvariantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvariantResponse, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryEdenBBurnAmountRequest + */ +export class QueryEdenBBurnAmountRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: elys.estaking.TokenType token_type = 2; + */ + tokenType = TokenType.ELYS; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryEdenBBurnAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_type", kind: "enum", T: proto3.getEnumType(TokenType) }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEdenBBurnAmountRequest { + return new QueryEdenBBurnAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEdenBBurnAmountRequest { + return new QueryEdenBBurnAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEdenBBurnAmountRequest { + return new QueryEdenBBurnAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEdenBBurnAmountRequest | PlainMessage | undefined, b: QueryEdenBBurnAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEdenBBurnAmountRequest, a, b); + } +} + +/** + * @generated from message elys.estaking.QueryEdenBBurnAmountResponse + */ +export class QueryEdenBBurnAmountResponse extends Message { + /** + * @generated from field: string burn_edenb_amount = 1; + */ + burnEdenbAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.QueryEdenBBurnAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "burn_edenb_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEdenBBurnAmountResponse { + return new QueryEdenBBurnAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEdenBBurnAmountResponse { + return new QueryEdenBBurnAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEdenBBurnAmountResponse { + return new QueryEdenBBurnAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEdenBBurnAmountResponse | PlainMessage | undefined, b: QueryEdenBBurnAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEdenBBurnAmountResponse, a, b); + } +} + diff --git a/src/protobufs/elys/estaking/tx_cosmes.ts b/src/protobufs/elys/estaking/tx_cosmes.ts new file mode 100644 index 00000000..ee56cf38 --- /dev/null +++ b/src/protobufs/elys/estaking/tx_cosmes.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/estaking/tx.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUnjailGovernor, MsgUnjailGovernorResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawAllRewards, MsgWithdrawAllRewardsResponse, MsgWithdrawElysStakingRewards, MsgWithdrawElysStakingRewardsResponse, MsgWithdrawReward, MsgWithdrawRewardResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.estaking.Msg"; + +/** + * UpdateParams defines a governance operation for updating the x/distribution + * module parameters. The authority is defined in the keeper. + * + * @generated from rpc elys.estaking.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * WithdrawReward defines a method to withdraw rewards of delegator from a + * single validator. + * + * @generated from rpc elys.estaking.Msg.WithdrawReward + */ +export const MsgWithdrawRewardService = { + typeName: TYPE_NAME, + method: "WithdrawReward", + Request: MsgWithdrawReward, + Response: MsgWithdrawRewardResponse, +} as const; + +/** + * WithdrawElysStakingRewards defines a method to withdraw rewards of + * delegator from all the validators. + * + * @generated from rpc elys.estaking.Msg.WithdrawElysStakingRewards + */ +export const MsgWithdrawElysStakingRewardsService = { + typeName: TYPE_NAME, + method: "WithdrawElysStakingRewards", + Request: MsgWithdrawElysStakingRewards, + Response: MsgWithdrawElysStakingRewardsResponse, +} as const; + +/** + * WithdrawAllRewards defines a method to withdraw rewards of delegator from + * all the validators and Eden/EdenB commitment. + * + * @generated from rpc elys.estaking.Msg.WithdrawAllRewards + */ +export const MsgWithdrawAllRewardsService = { + typeName: TYPE_NAME, + method: "WithdrawAllRewards", + Request: MsgWithdrawAllRewards, + Response: MsgWithdrawAllRewardsResponse, +} as const; + +/** + * @generated from rpc elys.estaking.Msg.UnjailGovernor + */ +export const MsgUnjailGovernorService = { + typeName: TYPE_NAME, + method: "UnjailGovernor", + Request: MsgUnjailGovernor, + Response: MsgUnjailGovernorResponse, +} as const; + diff --git a/src/protobufs/elys/estaking/tx_pb.ts b/src/protobufs/elys/estaking/tx_pb.ts new file mode 100644 index 00000000..5a670e7a --- /dev/null +++ b/src/protobufs/elys/estaking/tx_pb.ts @@ -0,0 +1,403 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/estaking/tx.proto (package elys.estaking, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message elys.estaking.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.estaking.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message elys.estaking.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgWithdrawReward represents delegation withdrawal to a delegator from a + * single validator. + * + * @generated from message elys.estaking.MsgWithdrawReward + */ +export class MsgWithdrawReward extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawReward { + return new MsgWithdrawReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawReward { + return new MsgWithdrawReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawReward { + return new MsgWithdrawReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawReward | PlainMessage | undefined, b: MsgWithdrawReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawReward, a, b); + } +} + +/** + * MsgWithdrawRewardResponse defines the Msg/WithdrawDelegatorReward response + * type. + * + * @generated from message elys.estaking.MsgWithdrawRewardResponse + */ +export class MsgWithdrawRewardResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawRewardResponse { + return new MsgWithdrawRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawRewardResponse { + return new MsgWithdrawRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawRewardResponse { + return new MsgWithdrawRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawRewardResponse | PlainMessage | undefined, b: MsgWithdrawRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawRewardResponse, a, b); + } +} + +/** + * MsgWithdrawElysStakingRewards represents delegation withdrawal to a delegator + * from all the validators. + * + * @generated from message elys.estaking.MsgWithdrawElysStakingRewards + */ +export class MsgWithdrawElysStakingRewards extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawElysStakingRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawElysStakingRewards { + return new MsgWithdrawElysStakingRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawElysStakingRewards { + return new MsgWithdrawElysStakingRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawElysStakingRewards { + return new MsgWithdrawElysStakingRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawElysStakingRewards | PlainMessage | undefined, b: MsgWithdrawElysStakingRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawElysStakingRewards, a, b); + } +} + +/** + * MsgWithdrawElysStakingRewards defines the Msg/WithdrawElysStakingRewards + * response type. + * + * @generated from message elys.estaking.MsgWithdrawElysStakingRewardsResponse + */ +export class MsgWithdrawElysStakingRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawElysStakingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawElysStakingRewardsResponse { + return new MsgWithdrawElysStakingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawElysStakingRewardsResponse { + return new MsgWithdrawElysStakingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawElysStakingRewardsResponse { + return new MsgWithdrawElysStakingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawElysStakingRewardsResponse | PlainMessage | undefined, b: MsgWithdrawElysStakingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawElysStakingRewardsResponse, a, b); + } +} + +/** + * MsgWithdrawAllRewards represents delegation withdrawal to a delegator from + * all the validators and Eden/EdenB commitment. + * + * @generated from message elys.estaking.MsgWithdrawAllRewards + */ +export class MsgWithdrawAllRewards extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawAllRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawAllRewards { + return new MsgWithdrawAllRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawAllRewards { + return new MsgWithdrawAllRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawAllRewards { + return new MsgWithdrawAllRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawAllRewards | PlainMessage | undefined, b: MsgWithdrawAllRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawAllRewards, a, b); + } +} + +/** + * MsgWithdrawAllRewardsResponse defines the Msg/WithdrawAllRewards response + * type. + * + * @generated from message elys.estaking.MsgWithdrawAllRewardsResponse + */ +export class MsgWithdrawAllRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgWithdrawAllRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawAllRewardsResponse { + return new MsgWithdrawAllRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawAllRewardsResponse { + return new MsgWithdrawAllRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawAllRewardsResponse { + return new MsgWithdrawAllRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawAllRewardsResponse | PlainMessage | undefined, b: MsgWithdrawAllRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawAllRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.estaking.MsgUnjailGovernor + */ +export class MsgUnjailGovernor extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgUnjailGovernor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnjailGovernor { + return new MsgUnjailGovernor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnjailGovernor { + return new MsgUnjailGovernor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnjailGovernor { + return new MsgUnjailGovernor().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnjailGovernor | PlainMessage | undefined, b: MsgUnjailGovernor | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnjailGovernor, a, b); + } +} + +/** + * @generated from message elys.estaking.MsgUnjailGovernorResponse + */ +export class MsgUnjailGovernorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.estaking.MsgUnjailGovernorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnjailGovernorResponse { + return new MsgUnjailGovernorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnjailGovernorResponse { + return new MsgUnjailGovernorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnjailGovernorResponse { + return new MsgUnjailGovernorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnjailGovernorResponse | PlainMessage | undefined, b: MsgUnjailGovernorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnjailGovernorResponse, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/genesis_pb.ts b/src/protobufs/elys/leveragelp/genesis_pb.ts new file mode 100644 index 00000000..5add059f --- /dev/null +++ b/src/protobufs/elys/leveragelp/genesis_pb.ts @@ -0,0 +1,86 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/genesis.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Pool } from "./pool_pb.js"; +import { ADLCounter, FallbackCounter, Position, PositionCounter } from "./types_pb.js"; + +/** + * GenesisState defines the leveragelp module's genesis state. + * + * @generated from message elys.leveragelp.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.leveragelp.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.leveragelp.Pool pool_list = 2; + */ + poolList: Pool[] = []; + + /** + * @generated from field: repeated elys.leveragelp.Position position_list = 3; + */ + positionList: Position[] = []; + + /** + * @generated from field: repeated string address_whitelist = 4; + */ + addressWhitelist: string[] = []; + + /** + * @generated from field: repeated elys.leveragelp.PositionCounter position_counter = 5; + */ + positionCounter: PositionCounter[] = []; + + /** + * @generated from field: repeated elys.leveragelp.ADLCounter adl_counter = 6; + */ + adlCounter: ADLCounter[] = []; + + /** + * @generated from field: elys.leveragelp.FallbackCounter fallback_counter = 7; + */ + fallbackCounter?: FallbackCounter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_list", kind: "message", T: Pool, repeated: true }, + { no: 3, name: "position_list", kind: "message", T: Position, repeated: true }, + { no: 4, name: "address_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "position_counter", kind: "message", T: PositionCounter, repeated: true }, + { no: 6, name: "adl_counter", kind: "message", T: ADLCounter, repeated: true }, + { no: 7, name: "fallback_counter", kind: "message", T: FallbackCounter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/params_pb.ts b/src/protobufs/elys/leveragelp/params_pb.ts new file mode 100644 index 00000000..cf207ba6 --- /dev/null +++ b/src/protobufs/elys/leveragelp/params_pb.ts @@ -0,0 +1,198 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/params.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.leveragelp.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: string leverage_max = 1; + */ + leverageMax = ""; + + /** + * @generated from field: int64 max_open_positions = 2; + */ + maxOpenPositions = protoInt64.zero; + + /** + * @generated from field: string pool_open_threshold = 3; + */ + poolOpenThreshold = ""; + + /** + * @generated from field: string safety_factor = 4; + */ + safetyFactor = ""; + + /** + * @generated from field: bool whitelisting_enabled = 5; + */ + whitelistingEnabled = false; + + /** + * @generated from field: int64 epoch_length = 6; + */ + epochLength = protoInt64.zero; + + /** + * @generated from field: bool fallback_enabled = 7; + */ + fallbackEnabled = false; + + /** + * Number of positions to process per block + * + * @generated from field: int64 number_per_block = 8; + */ + numberPerBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_open_positions", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "pool_open_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "whitelisting_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "epoch_length", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "fallback_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "number_per_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.leveragelp.Params + */ +export class Params extends Message { + /** + * @generated from field: string leverage_max = 1; + */ + leverageMax = ""; + + /** + * @generated from field: int64 max_open_positions = 2; + */ + maxOpenPositions = protoInt64.zero; + + /** + * @generated from field: string pool_open_threshold = 3; + */ + poolOpenThreshold = ""; + + /** + * @generated from field: string safety_factor = 4; + */ + safetyFactor = ""; + + /** + * @generated from field: bool whitelisting_enabled = 5; + */ + whitelistingEnabled = false; + + /** + * @generated from field: int64 epoch_length = 6; + */ + epochLength = protoInt64.zero; + + /** + * @generated from field: bool fallback_enabled = 7; + */ + fallbackEnabled = false; + + /** + * Number of positions to process per block + * + * @generated from field: int64 number_per_block = 8; + */ + numberPerBlock = protoInt64.zero; + + /** + * @generated from field: repeated uint64 enabled_pools = 9; + */ + enabledPools: bigint[] = []; + + /** + * @generated from field: string exit_buffer = 10; + */ + exitBuffer = ""; + + /** + * @generated from field: bool stop_loss_enabled = 11; + */ + stopLossEnabled = false; + + /** + * @generated from field: string liabilities_factor = 12; + */ + liabilitiesFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_open_positions", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "pool_open_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "whitelisting_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "epoch_length", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "fallback_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "number_per_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "enabled_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 10, name: "exit_buffer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "stop_loss_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "liabilities_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/pool_pb.ts b/src/protobufs/elys/leveragelp/pool_pb.ts new file mode 100644 index 00000000..0298c6a8 --- /dev/null +++ b/src/protobufs/elys/leveragelp/pool_pb.ts @@ -0,0 +1,179 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/pool.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.leveragelp.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string health = 2; + */ + health = ""; + + /** + * @generated from field: string leveraged_lp_amount = 3; + */ + leveragedLpAmount = ""; + + /** + * @generated from field: string leverage_max = 4; + */ + leverageMax = ""; + + /** + * @generated from field: string max_leveragelp_ratio = 5; + */ + maxLeveragelpRatio = ""; + + /** + * @generated from field: repeated elys.leveragelp.AssetLeverageAmount asset_leverage_amounts = 6; + */ + assetLeverageAmounts: AssetLeverageAmount[] = []; + + /** + * @generated from field: string adl_trigger_ratio = 7; + */ + adlTriggerRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "health", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "leveraged_lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_leveragelp_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "asset_leverage_amounts", kind: "message", T: AssetLeverageAmount, repeated: true }, + { no: 7, name: "adl_trigger_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.LegacyPool + */ +export class LegacyPool extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string health = 2; + */ + health = ""; + + /** + * @generated from field: string leveraged_lp_amount = 3; + */ + leveragedLpAmount = ""; + + /** + * @generated from field: string leverage_max = 4; + */ + leverageMax = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.LegacyPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "health", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "leveraged_lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPool { + return new LegacyPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPool { + return new LegacyPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPool { + return new LegacyPool().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPool | PlainMessage | undefined, b: LegacyPool | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.AssetLeverageAmount + */ +export class AssetLeverageAmount extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string leveraged_amount = 2; + */ + leveragedAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.AssetLeverageAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "leveraged_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetLeverageAmount { + return new AssetLeverageAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetLeverageAmount { + return new AssetLeverageAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetLeverageAmount { + return new AssetLeverageAmount().fromJsonString(jsonString, options); + } + + static equals(a: AssetLeverageAmount | PlainMessage | undefined, b: AssetLeverageAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetLeverageAmount, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/query_cosmes.ts b/src/protobufs/elys/leveragelp/query_cosmes.ts new file mode 100644 index 00000000..0e43770c --- /dev/null +++ b/src/protobufs/elys/leveragelp/query_cosmes.ts @@ -0,0 +1,188 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/leveragelp/query.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { IsWhitelistedRequest, IsWhitelistedResponse, ParamsRequest, ParamsResponse, PositionCounterRequest, PositionCounterResponse, PositionResponse, PositionsByPoolRequest, PositionsByPoolResponse, PositionsForAddressRequest, PositionsForAddressResponse, PositionsRequest, PositionsResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryCloseEstRequest, QueryCloseEstResponse, QueryCommittedTokensLockedRequest, QueryCommittedTokensLockedResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryLiquidationPriceRequest, QueryLiquidationPriceResponse, QueryOpenEstRequest, QueryOpenEstResponse, QueryRewardsRequest, QueryRewardsResponse, WhitelistRequest, WhitelistResponse } from "./query_pb.js"; +import { PositionRequest } from "./types_pb.js"; + +const TYPE_NAME = "elys.leveragelp.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.leveragelp.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: ParamsRequest, + Response: ParamsResponse, +} as const; + +/** + * Queries a list of GetPositions items. + * + * @generated from rpc elys.leveragelp.Query.QueryPositions + */ +export const QueryQueryPositionsService = { + typeName: TYPE_NAME, + method: "QueryPositions", + Request: PositionsRequest, + Response: PositionsResponse, +} as const; + +/** + * Queries a list of GetPositionsByPool items. + * + * @generated from rpc elys.leveragelp.Query.QueryPositionsByPool + */ +export const QueryQueryPositionsByPoolService = { + typeName: TYPE_NAME, + method: "QueryPositionsByPool", + Request: PositionsByPoolRequest, + Response: PositionsByPoolResponse, +} as const; + +/** + * Queries a list of GetCounter items. + * + * @generated from rpc elys.leveragelp.Query.QueryPositionCounter + */ +export const QueryQueryPositionCounterService = { + typeName: TYPE_NAME, + method: "QueryPositionCounter", + Request: PositionCounterRequest, + Response: PositionCounterResponse, +} as const; + +/** + * Queries a list of GetPositionsForAddress items. + * + * @generated from rpc elys.leveragelp.Query.QueryPositionsForAddress + */ +export const QueryQueryPositionsForAddressService = { + typeName: TYPE_NAME, + method: "QueryPositionsForAddress", + Request: PositionsForAddressRequest, + Response: PositionsForAddressResponse, +} as const; + +/** + * Queries a list of GetWhitelist items. + * + * @generated from rpc elys.leveragelp.Query.GetWhitelist + */ +export const QueryGetWhitelistService = { + typeName: TYPE_NAME, + method: "GetWhitelist", + Request: WhitelistRequest, + Response: WhitelistResponse, +} as const; + +/** + * Queries a list of IsWhitelisted items. + * + * @generated from rpc elys.leveragelp.Query.IsWhitelisted + */ +export const QueryIsWhitelistedService = { + typeName: TYPE_NAME, + method: "IsWhitelisted", + Request: IsWhitelistedRequest, + Response: IsWhitelistedResponse, +} as const; + +/** + * Queries a list of Pool items. + * + * @generated from rpc elys.leveragelp.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * Queries a list of Position items. + * + * @generated from rpc elys.leveragelp.Query.Position + */ +export const QueryPositionService = { + typeName: TYPE_NAME, + method: "Position", + Request: PositionRequest, + Response: PositionResponse, +} as const; + +/** + * Query a liquidation price for a position + * + * @generated from rpc elys.leveragelp.Query.LiquidationPrice + */ +export const QueryLiquidationPriceService = { + typeName: TYPE_NAME, + method: "LiquidationPrice", + Request: QueryLiquidationPriceRequest, + Response: QueryLiquidationPriceResponse, +} as const; + +/** + * Get estimated amount of return value opening a position + * + * @generated from rpc elys.leveragelp.Query.OpenEst + */ +export const QueryOpenEstService = { + typeName: TYPE_NAME, + method: "OpenEst", + Request: QueryOpenEstRequest, + Response: QueryOpenEstResponse, +} as const; + +/** + * Get estimated amount of return value closing a position + * + * @generated from rpc elys.leveragelp.Query.CloseEst + */ +export const QueryCloseEstService = { + typeName: TYPE_NAME, + method: "CloseEst", + Request: QueryCloseEstRequest, + Response: QueryCloseEstResponse, +} as const; + +/** + * Queries rewards on leveragelp + * + * @generated from rpc elys.leveragelp.Query.Rewards + */ +export const QueryRewardsService = { + typeName: TYPE_NAME, + method: "Rewards", + Request: QueryRewardsRequest, + Response: QueryRewardsResponse, +} as const; + +/** + * Queries a list of CommittedTokensLocked items. + * + * @generated from rpc elys.leveragelp.Query.CommittedTokensLocked + */ +export const QueryCommittedTokensLockedService = { + typeName: TYPE_NAME, + method: "CommittedTokensLocked", + Request: QueryCommittedTokensLockedRequest, + Response: QueryCommittedTokensLockedResponse, +} as const; + diff --git a/src/protobufs/elys/leveragelp/query_pb.ts b/src/protobufs/elys/leveragelp/query_pb.ts new file mode 100644 index 00000000..2cb82a30 --- /dev/null +++ b/src/protobufs/elys/leveragelp/query_pb.ts @@ -0,0 +1,1394 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/query.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { PositionAndInterest, PositionCounter, QueryPosition } from "./types_pb.js"; +import { Pool } from "./pool_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * ParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.leveragelp.ParamsRequest + */ +export class ParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.ParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { + return new ParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsRequest, a, b); + } +} + +/** + * ParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.leveragelp.ParamsResponse + */ +export class ParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.leveragelp.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.ParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { + return new ParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsRequest + */ +export class PositionsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsRequest { + return new PositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsRequest { + return new PositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsRequest { + return new PositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsRequest | PlainMessage | undefined, b: PositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsResponse + */ +export class PositionsResponse extends Message { + /** + * @generated from field: repeated elys.leveragelp.QueryPosition positions = 1; + */ + positions: QueryPosition[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: QueryPosition, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsResponse { + return new PositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsResponse { + return new PositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsResponse { + return new PositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsResponse | PlainMessage | undefined, b: PositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsByPoolRequest + */ +export class PositionsByPoolRequest extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsByPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsByPoolRequest | PlainMessage | undefined, b: PositionsByPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsByPoolRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsByPoolResponse + */ +export class PositionsByPoolResponse extends Message { + /** + * @generated from field: repeated elys.leveragelp.QueryPosition positions = 1; + */ + positions: QueryPosition[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsByPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: QueryPosition, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsByPoolResponse | PlainMessage | undefined, b: PositionsByPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsByPoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionCounterRequest + */ +export class PositionCounterRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionCounterRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionCounterRequest { + return new PositionCounterRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionCounterRequest { + return new PositionCounterRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionCounterRequest { + return new PositionCounterRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionCounterRequest | PlainMessage | undefined, b: PositionCounterRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionCounterRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionCounterResponse + */ +export class PositionCounterResponse extends Message { + /** + * @generated from field: elys.leveragelp.PositionCounter result = 1; + */ + result?: PositionCounter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionCounterResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: PositionCounter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionCounterResponse { + return new PositionCounterResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionCounterResponse { + return new PositionCounterResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionCounterResponse { + return new PositionCounterResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionCounterResponse | PlainMessage | undefined, b: PositionCounterResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionCounterResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsForAddressRequest + */ +export class PositionsForAddressRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsForAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsForAddressRequest | PlainMessage | undefined, b: PositionsForAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsForAddressRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionsForAddressResponse + */ +export class PositionsForAddressResponse extends Message { + /** + * @generated from field: repeated elys.leveragelp.PositionAndInterest positions = 1; + */ + positions: PositionAndInterest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionsForAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionAndInterest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsForAddressResponse | PlainMessage | undefined, b: PositionsForAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsForAddressResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.WhitelistRequest + */ +export class WhitelistRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.WhitelistRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistRequest | PlainMessage | undefined, b: WhitelistRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.WhitelistResponse + */ +export class WhitelistResponse extends Message { + /** + * @generated from field: repeated string whitelist = 1; + */ + whitelist: string[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.WhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistResponse | PlainMessage | undefined, b: WhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.IsWhitelistedRequest + */ +export class IsWhitelistedRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.IsWhitelistedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromJsonString(jsonString, options); + } + + static equals(a: IsWhitelistedRequest | PlainMessage | undefined, b: IsWhitelistedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(IsWhitelistedRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.IsWhitelistedResponse + */ +export class IsWhitelistedResponse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: bool is_whitelisted = 2; + */ + isWhitelisted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.IsWhitelistedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_whitelisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromJsonString(jsonString, options); + } + + static equals(a: IsWhitelistedResponse | PlainMessage | undefined, b: IsWhitelistedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(IsWhitelistedResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: uint64 index = 1; + */ + index = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: elys.leveragelp.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated elys.leveragelp.Pool pool = 1; + */ + pool: Pool[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionResponse + */ +export class PositionResponse extends Message { + /** + * @generated from field: elys.leveragelp.QueryPosition position = 1; + */ + position?: QueryPosition; + + /** + * @generated from field: string locked_lp_token = 2; + */ + lockedLpToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: QueryPosition }, + { no: 2, name: "locked_lp_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionResponse { + return new PositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionResponse { + return new PositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionResponse { + return new PositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionResponse | PlainMessage | undefined, b: PositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryLiquidationPriceRequest + */ +export class QueryLiquidationPriceRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 position_id = 2; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryLiquidationPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidationPriceRequest { + return new QueryLiquidationPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidationPriceRequest { + return new QueryLiquidationPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidationPriceRequest { + return new QueryLiquidationPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidationPriceRequest | PlainMessage | undefined, b: QueryLiquidationPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidationPriceRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryLiquidationPriceResponse + */ +export class QueryLiquidationPriceResponse extends Message { + /** + * @generated from field: string price = 1; + */ + price = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryLiquidationPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidationPriceResponse { + return new QueryLiquidationPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidationPriceResponse { + return new QueryLiquidationPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidationPriceResponse { + return new QueryLiquidationPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidationPriceResponse | PlainMessage | undefined, b: QueryLiquidationPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidationPriceResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryOpenEstRequest + */ +export class QueryOpenEstRequest extends Message { + /** + * @generated from field: string collateral_asset = 1; + */ + collateralAsset = ""; + + /** + * @generated from field: string collateral_amount = 2; + */ + collateralAmount = ""; + + /** + * @generated from field: uint64 amm_pool_id = 3; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string leverage = 4; + */ + leverage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryOpenEstRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstRequest { + return new QueryOpenEstRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstRequest { + return new QueryOpenEstRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstRequest { + return new QueryOpenEstRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstRequest | PlainMessage | undefined, b: QueryOpenEstRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryOpenEstResponse + */ +export class QueryOpenEstResponse extends Message { + /** + * @generated from field: string position_size = 1; + */ + positionSize = ""; + + /** + * @generated from field: string weight_balance_ratio = 2; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string borrow_fee = 3; + */ + borrowFee = ""; + + /** + * @generated from field: string slippage = 4; + */ + slippage = ""; + + /** + * @generated from field: string swap_fee = 5; + */ + swapFee = ""; + + /** + * @generated from field: string taker_fee = 6; + */ + takerFee = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin weight_balance_reward_amount = 7; + */ + weightBalanceRewardAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryOpenEstResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "borrow_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_balance_reward_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstResponse { + return new QueryOpenEstResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstResponse { + return new QueryOpenEstResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstResponse { + return new QueryOpenEstResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstResponse | PlainMessage | undefined, b: QueryOpenEstResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryCloseEstRequest + */ +export class QueryCloseEstRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string lp_amount = 3; + */ + lpAmount = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryCloseEstRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCloseEstRequest { + return new QueryCloseEstRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCloseEstRequest { + return new QueryCloseEstRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCloseEstRequest { + return new QueryCloseEstRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCloseEstRequest | PlainMessage | undefined, b: QueryCloseEstRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCloseEstRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryRewardsRequest + */ +export class QueryRewardsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsRequest | PlainMessage | undefined, b: QueryRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.RewardInfo + */ +export class RewardInfo extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward = 1; + */ + reward: Coin[] = []; + + /** + * @generated from field: uint64 position_id = 2; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.RewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reward", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardInfo { + return new RewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardInfo { + return new RewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardInfo { + return new RewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: RewardInfo | PlainMessage | undefined, b: RewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardInfo, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryRewardsResponse + */ +export class QueryRewardsResponse extends Message { + /** + * @generated from field: repeated elys.leveragelp.RewardInfo rewards = 1; + */ + rewards: RewardInfo[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_rewards = 2; + */ + totalRewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: RewardInfo, repeated: true }, + { no: 2, name: "total_rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsResponse | PlainMessage | undefined, b: QueryRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryCloseEstResponse + */ +export class QueryCloseEstResponse extends Message { + /** + * @generated from field: string repay_amount = 1; + */ + repayAmount = ""; + + /** + * @generated from field: string final_closing_ratio = 2; + */ + finalClosingRatio = ""; + + /** + * @generated from field: string closing_lp_amount = 3; + */ + closingLpAmount = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin coins_to_amm = 4; + */ + coinsToAmm: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin user_return_tokens = 5; + */ + userReturnTokens: Coin[] = []; + + /** + * @generated from field: string exit_weight_fee = 6; + */ + exitWeightFee = ""; + + /** + * @generated from field: string weight_breaking_fee = 7; + */ + weightBreakingFee = ""; + + /** + * @generated from field: string exit_slippage_fee = 8; + */ + exitSlippageFee = ""; + + /** + * @generated from field: string exit_swap_fee = 9; + */ + exitSwapFee = ""; + + /** + * @generated from field: string exit_taker_fee = 10; + */ + exitTakerFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryCloseEstResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "repay_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "final_closing_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "closing_lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "coins_to_amm", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "user_return_tokens", kind: "message", T: Coin, repeated: true }, + { no: 6, name: "exit_weight_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "weight_breaking_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "exit_slippage_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "exit_swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "exit_taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCloseEstResponse { + return new QueryCloseEstResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCloseEstResponse { + return new QueryCloseEstResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCloseEstResponse { + return new QueryCloseEstResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCloseEstResponse | PlainMessage | undefined, b: QueryCloseEstResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCloseEstResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryCommittedTokensLockedRequest + */ +export class QueryCommittedTokensLockedRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryCommittedTokensLockedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommittedTokensLockedRequest { + return new QueryCommittedTokensLockedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommittedTokensLockedRequest | PlainMessage | undefined, b: QueryCommittedTokensLockedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommittedTokensLockedRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionCommitedToken + */ +export class PositionCommitedToken extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: uint64 position_id = 2; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: uint64 borrow_pool_id = 3; + */ + borrowPoolId = protoInt64.zero; + + /** + * @generated from field: string collateral_denom = 4; + */ + collateralDenom = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin locked_committed = 5; + */ + lockedCommitted?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_committed = 6; + */ + totalCommitted?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionCommitedToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "borrow_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "collateral_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "locked_committed", kind: "message", T: Coin }, + { no: 6, name: "total_committed", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionCommitedToken { + return new PositionCommitedToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionCommitedToken { + return new PositionCommitedToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionCommitedToken { + return new PositionCommitedToken().fromJsonString(jsonString, options); + } + + static equals(a: PositionCommitedToken | PlainMessage | undefined, b: PositionCommitedToken | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionCommitedToken, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryCommittedTokensLockedResponse + */ +export class QueryCommittedTokensLockedResponse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: repeated elys.leveragelp.PositionCommitedToken position_commited_token = 2; + */ + positionCommitedToken: PositionCommitedToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryCommittedTokensLockedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position_commited_token", kind: "message", T: PositionCommitedToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommittedTokensLockedResponse { + return new QueryCommittedTokensLockedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommittedTokensLockedResponse | PlainMessage | undefined, b: QueryCommittedTokensLockedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommittedTokensLockedResponse, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/tx_cosmes.ts b/src/protobufs/elys/leveragelp/tx_cosmes.ts new file mode 100644 index 00000000..8928b8b5 --- /dev/null +++ b/src/protobufs/elys/leveragelp/tx_cosmes.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/leveragelp/tx.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddPool, MsgAddPoolResponse, MsgClaimAllUserRewards, MsgClaimAllUserRewardsResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgClose, MsgClosePositions, MsgClosePositionsResponse, MsgCloseResponse, MsgDewhitelist, MsgDewhitelistResponse, MsgOpen, MsgOpenResponse, MsgRemovePool, MsgRemovePoolResponse, MsgUpdateEnabledPools, MsgUpdateEnabledPoolsResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdatePool, MsgUpdatePoolResponse, MsgUpdateStopLoss, MsgUpdateStopLossResponse, MsgWhitelist, MsgWhitelistResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.leveragelp.Msg"; + +/** + * @generated from rpc elys.leveragelp.Msg.Open + */ +export const MsgOpenService = { + typeName: TYPE_NAME, + method: "Open", + Request: MsgOpen, + Response: MsgOpenResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.Close + */ +export const MsgCloseService = { + typeName: TYPE_NAME, + method: "Close", + Request: MsgClose, + Response: MsgCloseResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.AddPool + */ +export const MsgAddPoolService = { + typeName: TYPE_NAME, + method: "AddPool", + Request: MsgAddPool, + Response: MsgAddPoolResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.RemovePool + */ +export const MsgRemovePoolService = { + typeName: TYPE_NAME, + method: "RemovePool", + Request: MsgRemovePool, + Response: MsgRemovePoolResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.Whitelist + */ +export const MsgWhitelistService = { + typeName: TYPE_NAME, + method: "Whitelist", + Request: MsgWhitelist, + Response: MsgWhitelistResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.Dewhitelist + */ +export const MsgDewhitelistService = { + typeName: TYPE_NAME, + method: "Dewhitelist", + Request: MsgDewhitelist, + Response: MsgDewhitelistResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.UpdateStopLoss + */ +export const MsgUpdateStopLossService = { + typeName: TYPE_NAME, + method: "UpdateStopLoss", + Request: MsgUpdateStopLoss, + Response: MsgUpdateStopLossResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.ClosePositions + */ +export const MsgClosePositionsService = { + typeName: TYPE_NAME, + method: "ClosePositions", + Request: MsgClosePositions, + Response: MsgClosePositionsResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.UpdatePool + */ +export const MsgUpdatePoolService = { + typeName: TYPE_NAME, + method: "UpdatePool", + Request: MsgUpdatePool, + Response: MsgUpdatePoolResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.UpdateEnabledPools + */ +export const MsgUpdateEnabledPoolsService = { + typeName: TYPE_NAME, + method: "UpdateEnabledPools", + Request: MsgUpdateEnabledPools, + Response: MsgUpdateEnabledPoolsResponse, +} as const; + +/** + * @generated from rpc elys.leveragelp.Msg.ClaimAllUserRewards + */ +export const MsgClaimAllUserRewardsService = { + typeName: TYPE_NAME, + method: "ClaimAllUserRewards", + Request: MsgClaimAllUserRewards, + Response: MsgClaimAllUserRewardsResponse, +} as const; + diff --git a/src/protobufs/elys/leveragelp/tx_pb.ts b/src/protobufs/elys/leveragelp/tx_pb.ts new file mode 100644 index 00000000..89ce3933 --- /dev/null +++ b/src/protobufs/elys/leveragelp/tx_pb.ts @@ -0,0 +1,1124 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/tx.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PositionRequest } from "./types_pb.js"; + +/** + * @generated from message elys.leveragelp.MsgOpen + */ +export class MsgOpen extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string collateral_asset = 2; + */ + collateralAsset = ""; + + /** + * @generated from field: string collateral_amount = 3; + */ + collateralAmount = ""; + + /** + * @generated from field: uint64 amm_pool_id = 4; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string leverage = 5; + */ + leverage = ""; + + /** + * @generated from field: string stop_loss_price = 6; + */ + stopLossPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgOpen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOpen { + return new MsgOpen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOpen { + return new MsgOpen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOpen { + return new MsgOpen().fromJsonString(jsonString, options); + } + + static equals(a: MsgOpen | PlainMessage | undefined, b: MsgOpen | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOpen, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgOpenResponse + */ +export class MsgOpenResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgOpenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgOpenResponse | PlainMessage | undefined, b: MsgOpenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOpenResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClose + */ +export class MsgClose extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string lp_amount = 3; + */ + lpAmount = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClose"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClose { + return new MsgClose().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClose { + return new MsgClose().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClose { + return new MsgClose().fromJsonString(jsonString, options); + } + + static equals(a: MsgClose | PlainMessage | undefined, b: MsgClose | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClose, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgCloseResponse + */ +export class MsgCloseResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgCloseResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCloseResponse | PlainMessage | undefined, b: MsgCloseResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCloseResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * not used anymore + * + * @generated from field: repeated uint64 ids = 2; + */ + ids: bigint[] = []; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 position_id = 4; + */ + positionId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.leveragelp.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgWhitelist + */ +export class MsgWhitelist extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string whitelisted_address = 2; + */ + whitelistedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelist | PlainMessage | undefined, b: MsgWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelist, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgWhitelistResponse + */ +export class MsgWhitelistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgWhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelistResponse | PlainMessage | undefined, b: MsgWhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgDewhitelist + */ +export class MsgDewhitelist extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string whitelisted_address = 2; + */ + whitelistedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgDewhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgDewhitelist | PlainMessage | undefined, b: MsgDewhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDewhitelist, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgDewhitelistResponse + */ +export class MsgDewhitelistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgDewhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDewhitelistResponse | PlainMessage | undefined, b: MsgDewhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDewhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateStopLoss + */ +export class MsgUpdateStopLoss extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 position = 2; + */ + position = protoInt64.zero; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateStopLoss"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateStopLoss | PlainMessage | undefined, b: MsgUpdateStopLoss | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateStopLoss, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateStopLossResponse + */ +export class MsgUpdateStopLossResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateStopLossResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateStopLossResponse | PlainMessage | undefined, b: MsgUpdateStopLossResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateStopLossResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.AddPool + */ +export class AddPool extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string pool_max_leverage_ratio = 2; + */ + poolMaxLeverageRatio = ""; + + /** + * @generated from field: string leverage_max = 3; + */ + leverageMax = ""; + + /** + * @generated from field: string adl_trigger_ratio = 4; + */ + adlTriggerRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.AddPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pool_max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "adl_trigger_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddPool { + return new AddPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddPool { + return new AddPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddPool { + return new AddPool().fromJsonString(jsonString, options); + } + + static equals(a: AddPool | PlainMessage | undefined, b: AddPool | PlainMessage | undefined): boolean { + return proto3.util.equals(AddPool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgAddPool + */ +export class MsgAddPool extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.leveragelp.AddPool pool = 2; + */ + pool?: AddPool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgAddPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool", kind: "message", T: AddPool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPool { + return new MsgAddPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPool { + return new MsgAddPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPool { + return new MsgAddPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPool | PlainMessage | undefined, b: MsgAddPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgAddPoolResponse + */ +export class MsgAddPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgAddPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPoolResponse | PlainMessage | undefined, b: MsgAddPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgRemovePool + */ +export class MsgRemovePool extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgRemovePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemovePool { + return new MsgRemovePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemovePool { + return new MsgRemovePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemovePool { + return new MsgRemovePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemovePool | PlainMessage | undefined, b: MsgRemovePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemovePool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgRemovePoolResponse + */ +export class MsgRemovePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgRemovePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemovePoolResponse { + return new MsgRemovePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemovePoolResponse { + return new MsgRemovePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemovePoolResponse { + return new MsgRemovePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemovePoolResponse | PlainMessage | undefined, b: MsgRemovePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemovePoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClosePositions + */ +export class MsgClosePositions extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated elys.leveragelp.PositionRequest liquidate = 2; + */ + liquidate: PositionRequest[] = []; + + /** + * @generated from field: repeated elys.leveragelp.PositionRequest stop_loss = 3; + */ + stopLoss: PositionRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClosePositions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "liquidate", kind: "message", T: PositionRequest, repeated: true }, + { no: 3, name: "stop_loss", kind: "message", T: PositionRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromJsonString(jsonString, options); + } + + static equals(a: MsgClosePositions | PlainMessage | undefined, b: MsgClosePositions | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClosePositions, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClosePositionsResponse + */ +export class MsgClosePositionsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClosePositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClosePositionsResponse | PlainMessage | undefined, b: MsgClosePositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClosePositionsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdatePool + */ +export class MsgUpdatePool extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string leverage_max = 3; + */ + leverageMax = ""; + + /** + * @generated from field: string max_leveragelp_ratio = 4; + */ + maxLeveragelpRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_leveragelp_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePool | PlainMessage | undefined, b: MsgUpdatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePool, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdatePoolResponse + */ +export class MsgUpdatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolResponse | PlainMessage | undefined, b: MsgUpdatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateEnabledPools + */ +export class MsgUpdateEnabledPools extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated uint64 enabled_pools = 2; + */ + enabledPools: bigint[] = []; + + /** + * @generated from field: repeated uint64 add_pools = 3; + */ + addPools: bigint[] = []; + + /** + * @generated from field: repeated uint64 remove_pools = 4; + */ + removePools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateEnabledPools"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enabled_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "add_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 4, name: "remove_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnabledPools | PlainMessage | undefined, b: MsgUpdateEnabledPools | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnabledPools, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgUpdateEnabledPoolsResponse + */ +export class MsgUpdateEnabledPoolsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgUpdateEnabledPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnabledPoolsResponse | PlainMessage | undefined, b: MsgUpdateEnabledPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnabledPoolsResponse, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClaimAllUserRewards + */ +export class MsgClaimAllUserRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClaimAllUserRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAllUserRewards { + return new MsgClaimAllUserRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAllUserRewards { + return new MsgClaimAllUserRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAllUserRewards { + return new MsgClaimAllUserRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAllUserRewards | PlainMessage | undefined, b: MsgClaimAllUserRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAllUserRewards, a, b); + } +} + +/** + * @generated from message elys.leveragelp.MsgClaimAllUserRewardsResponse + */ +export class MsgClaimAllUserRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.MsgClaimAllUserRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAllUserRewardsResponse { + return new MsgClaimAllUserRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAllUserRewardsResponse { + return new MsgClaimAllUserRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAllUserRewardsResponse { + return new MsgClaimAllUserRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAllUserRewardsResponse | PlainMessage | undefined, b: MsgClaimAllUserRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAllUserRewardsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/leveragelp/types_pb.ts b/src/protobufs/elys/leveragelp/types_pb.ts new file mode 100644 index 00000000..355e16de --- /dev/null +++ b/src/protobufs/elys/leveragelp/types_pb.ts @@ -0,0 +1,384 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/leveragelp/types.proto (package elys.leveragelp, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message elys.leveragelp.PositionRequest + */ +export class PositionRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionRequest { + return new PositionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionRequest { + return new PositionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionRequest { + return new PositionRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionRequest | PlainMessage | undefined, b: PositionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionRequest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.Position + */ +export class Position extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 2; + */ + collateral?: Coin; + + /** + * For recording + * + * @generated from field: string liabilities = 3; + */ + liabilities = ""; + + /** + * @generated from field: string leveraged_lp_amount = 4; + */ + leveragedLpAmount = ""; + + /** + * @generated from field: string position_health = 5; + */ + positionHealth = ""; + + /** + * @generated from field: uint64 id = 6; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 amm_pool_id = 7; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string stop_loss_price = 8; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 borrow_pool_id = 9; + */ + borrowPoolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral", kind: "message", T: Coin }, + { no: 3, name: "liabilities", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "leveraged_lp_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "position_health", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "borrow_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + +/** + * @generated from message elys.leveragelp.QueryPosition + */ +export class QueryPosition extends Message { + /** + * @generated from field: elys.leveragelp.Position position = 1; + */ + position?: Position; + + /** + * @generated from field: string updated_leverage = 2; + */ + updatedLeverage = ""; + + /** + * @generated from field: string position_usd_value = 3; + */ + positionUsdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.QueryPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: Position }, + { no: 2, name: "updated_leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "position_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPosition { + return new QueryPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPosition { + return new QueryPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPosition { + return new QueryPosition().fromJsonString(jsonString, options); + } + + static equals(a: QueryPosition | PlainMessage | undefined, b: QueryPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPosition, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionAndInterest + */ +export class PositionAndInterest extends Message { + /** + * @generated from field: elys.leveragelp.QueryPosition position = 1; + */ + position?: QueryPosition; + + /** + * @generated from field: string interest_rate_hour = 2; + */ + interestRateHour = ""; + + /** + * @generated from field: string interest_rate_hour_usd = 3; + */ + interestRateHourUsd = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionAndInterest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: QueryPosition }, + { no: 2, name: "interest_rate_hour", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_rate_hour_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionAndInterest { + return new PositionAndInterest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionAndInterest { + return new PositionAndInterest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionAndInterest { + return new PositionAndInterest().fromJsonString(jsonString, options); + } + + static equals(a: PositionAndInterest | PlainMessage | undefined, b: PositionAndInterest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionAndInterest, a, b); + } +} + +/** + * @generated from message elys.leveragelp.PositionCounter + */ +export class PositionCounter extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 counter = 2; + */ + counter = protoInt64.zero; + + /** + * @generated from field: uint64 total_open = 3; + */ + totalOpen = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.PositionCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "total_open", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionCounter { + return new PositionCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionCounter { + return new PositionCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionCounter { + return new PositionCounter().fromJsonString(jsonString, options); + } + + static equals(a: PositionCounter | PlainMessage | undefined, b: PositionCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionCounter, a, b); + } +} + +/** + * @generated from message elys.leveragelp.ADLCounter + */ +export class ADLCounter extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 counter = 2; + */ + counter = protoInt64.zero; + + /** + * @generated from field: bytes next_key = 3; + */ + nextKey = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.ADLCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "next_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ADLCounter { + return new ADLCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ADLCounter { + return new ADLCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ADLCounter { + return new ADLCounter().fromJsonString(jsonString, options); + } + + static equals(a: ADLCounter | PlainMessage | undefined, b: ADLCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(ADLCounter, a, b); + } +} + +/** + * @generated from message elys.leveragelp.FallbackCounter + */ +export class FallbackCounter extends Message { + /** + * @generated from field: uint64 counter = 1; + */ + counter = protoInt64.zero; + + /** + * @generated from field: bytes next_key = 2; + */ + nextKey = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.leveragelp.FallbackCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "next_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FallbackCounter { + return new FallbackCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FallbackCounter { + return new FallbackCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FallbackCounter { + return new FallbackCounter().fromJsonString(jsonString, options); + } + + static equals(a: FallbackCounter | PlainMessage | undefined, b: FallbackCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(FallbackCounter, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/external_incentive_pb.ts b/src/protobufs/elys/masterchef/external_incentive_pb.ts new file mode 100644 index 00000000..48d76882 --- /dev/null +++ b/src/protobufs/elys/masterchef/external_incentive_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/external_incentive.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * ExternalIncentive defines the external incentives. + * + * @generated from message elys.masterchef.ExternalIncentive + */ +export class ExternalIncentive extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 from_block = 4; + */ + fromBlock = protoInt64.zero; + + /** + * @generated from field: int64 to_block = 5; + */ + toBlock = protoInt64.zero; + + /** + * @generated from field: string amount_per_block = 6; + */ + amountPerBlock = ""; + + /** + * @generated from field: string apr = 7; + */ + apr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.ExternalIncentive"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "from_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "to_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "amount_per_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExternalIncentive { + return new ExternalIncentive().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExternalIncentive { + return new ExternalIncentive().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExternalIncentive { + return new ExternalIncentive().fromJsonString(jsonString, options); + } + + static equals(a: ExternalIncentive | PlainMessage | undefined, b: ExternalIncentive | PlainMessage | undefined): boolean { + return proto3.util.equals(ExternalIncentive, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/genesis_pb.ts b/src/protobufs/elys/masterchef/genesis_pb.ts new file mode 100644 index 00000000..9854ddf3 --- /dev/null +++ b/src/protobufs/elys/masterchef/genesis_pb.ts @@ -0,0 +1,86 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/genesis.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ExternalIncentive } from "./external_incentive_pb.js"; +import { PoolInfo, PoolRewardInfo, PoolRewardsAccum, UserRewardInfo } from "./pool_pb.js"; + +/** + * GenesisState defines the masterchef module's genesis state. + * + * @generated from message elys.masterchef.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.masterchef.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.masterchef.ExternalIncentive external_incentives = 2; + */ + externalIncentives: ExternalIncentive[] = []; + + /** + * @generated from field: uint64 external_incentive_index = 3; + */ + externalIncentiveIndex = protoInt64.zero; + + /** + * @generated from field: repeated elys.masterchef.PoolInfo pool_infos = 4; + */ + poolInfos: PoolInfo[] = []; + + /** + * @generated from field: repeated elys.masterchef.PoolRewardInfo pool_reward_infos = 5; + */ + poolRewardInfos: PoolRewardInfo[] = []; + + /** + * @generated from field: repeated elys.masterchef.UserRewardInfo user_reward_infos = 6; + */ + userRewardInfos: UserRewardInfo[] = []; + + /** + * @generated from field: repeated elys.masterchef.PoolRewardsAccum pool_rewards_accum = 7; + */ + poolRewardsAccum: PoolRewardsAccum[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "external_incentives", kind: "message", T: ExternalIncentive, repeated: true }, + { no: 3, name: "external_incentive_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pool_infos", kind: "message", T: PoolInfo, repeated: true }, + { no: 5, name: "pool_reward_infos", kind: "message", T: PoolRewardInfo, repeated: true }, + { no: 6, name: "user_reward_infos", kind: "message", T: UserRewardInfo, repeated: true }, + { no: 7, name: "pool_rewards_accum", kind: "message", T: PoolRewardsAccum, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/incentive_pb.ts b/src/protobufs/elys/masterchef/incentive_pb.ts new file mode 100644 index 00000000..51f83b87 --- /dev/null +++ b/src/protobufs/elys/masterchef/incentive_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/incentive.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Incentive Info + * + * @generated from message elys.masterchef.LegacyIncentiveInfo + */ +export class LegacyIncentiveInfo extends Message { + /** + * reward amount in eden for 1 year + * + * @generated from field: string eden_amount_per_year = 1; + */ + edenAmountPerYear = ""; + + /** + * starting block height of the distribution + * + * @generated from field: string distribution_start_block = 2; + */ + distributionStartBlock = ""; + + /** + * distribution duration - block number per year + * + * @generated from field: string total_blocks_per_year = 3; + */ + totalBlocksPerYear = ""; + + /** + * blocks distributed + * + * @generated from field: string blocks_distributed = 4; + */ + blocksDistributed = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.LegacyIncentiveInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "eden_amount_per_year", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "distribution_start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_blocks_per_year", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "blocks_distributed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyIncentiveInfo { + return new LegacyIncentiveInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyIncentiveInfo { + return new LegacyIncentiveInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyIncentiveInfo { + return new LegacyIncentiveInfo().fromJsonString(jsonString, options); + } + + static equals(a: LegacyIncentiveInfo | PlainMessage | undefined, b: LegacyIncentiveInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyIncentiveInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.IncentiveInfo + */ +export class IncentiveInfo extends Message { + /** + * reward amount in eden for 1 year + * + * @generated from field: string eden_amount_per_year = 1; + */ + edenAmountPerYear = ""; + + /** + * blocks distributed + * + * @generated from field: int64 blocks_distributed = 2; + */ + blocksDistributed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.IncentiveInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "eden_amount_per_year", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "blocks_distributed", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IncentiveInfo { + return new IncentiveInfo().fromJsonString(jsonString, options); + } + + static equals(a: IncentiveInfo | PlainMessage | undefined, b: IncentiveInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(IncentiveInfo, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/params_pb.ts b/src/protobufs/elys/masterchef/params_pb.ts new file mode 100644 index 00000000..89bc8af2 --- /dev/null +++ b/src/protobufs/elys/masterchef/params_pb.ts @@ -0,0 +1,210 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/params.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { IncentiveInfo, LegacyIncentiveInfo } from "./incentive_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.masterchef.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: elys.masterchef.LegacyIncentiveInfo lp_incentives = 1; + */ + lpIncentives?: LegacyIncentiveInfo; + + /** + * gas fees and swap fees portion for lps, `100 - reward_portion_for_lps - + * reward_portion_for_stakers = revenue percent for protocol`. + * + * @generated from field: string reward_portion_for_lps = 2; + */ + rewardPortionForLps = ""; + + /** + * gas fees and swap fees portion for stakers, `100 - reward_portion_for_lps - + * reward_portion_for_stakers = revenue percent for protocol`. + * + * @generated from field: string reward_portion_for_stakers = 3; + */ + rewardPortionForStakers = ""; + + /** + * Maximum eden reward apr for lps - [0 - 0.3] + * + * @generated from field: string max_eden_reward_apr_lps = 4; + */ + maxEdenRewardAprLps = ""; + + /** + * @generated from field: repeated elys.masterchef.SupportedRewardDenom supported_reward_denoms = 5; + */ + supportedRewardDenoms: SupportedRewardDenom[] = []; + + /** + * @generated from field: string protocol_revenue_address = 6; + */ + protocolRevenueAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lp_incentives", kind: "message", T: LegacyIncentiveInfo }, + { no: 2, name: "reward_portion_for_lps", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_portion_for_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_eden_reward_apr_lps", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "supported_reward_denoms", kind: "message", T: SupportedRewardDenom, repeated: true }, + { no: 6, name: "protocol_revenue_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * @generated from message elys.masterchef.Params + */ +export class Params extends Message { + /** + * @generated from field: elys.masterchef.IncentiveInfo lp_incentives = 1; + */ + lpIncentives?: IncentiveInfo; + + /** + * gas fees and swap fees portion for lps, `100 - reward_portion_for_lps - + * reward_portion_for_stakers = revenue percent for protocol`. + * + * @generated from field: string reward_portion_for_lps = 2; + */ + rewardPortionForLps = ""; + + /** + * gas fees and swap fees portion for stakers, `100 - reward_portion_for_lps - + * reward_portion_for_stakers = revenue percent for protocol`. + * + * @generated from field: string reward_portion_for_stakers = 3; + */ + rewardPortionForStakers = ""; + + /** + * Maximum eden reward apr for lps - [0 - 0.3] + * + * @generated from field: string max_eden_reward_apr_lps = 4; + */ + maxEdenRewardAprLps = ""; + + /** + * @generated from field: repeated elys.masterchef.SupportedRewardDenom supported_reward_denoms = 5; + */ + supportedRewardDenoms: SupportedRewardDenom[] = []; + + /** + * @generated from field: string protocol_revenue_address = 6; + */ + protocolRevenueAddress = ""; + + /** + * @generated from field: string taker_manager = 7; + */ + takerManager = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lp_incentives", kind: "message", T: IncentiveInfo }, + { no: 2, name: "reward_portion_for_lps", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_portion_for_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_eden_reward_apr_lps", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "supported_reward_denoms", kind: "message", T: SupportedRewardDenom, repeated: true }, + { no: 6, name: "protocol_revenue_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "taker_manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * @generated from message elys.masterchef.SupportedRewardDenom + */ +export class SupportedRewardDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string min_amount = 2; + */ + minAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.SupportedRewardDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SupportedRewardDenom { + return new SupportedRewardDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SupportedRewardDenom { + return new SupportedRewardDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SupportedRewardDenom { + return new SupportedRewardDenom().fromJsonString(jsonString, options); + } + + static equals(a: SupportedRewardDenom | PlainMessage | undefined, b: SupportedRewardDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(SupportedRewardDenom, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/pool_pb.ts b/src/protobufs/elys/masterchef/pool_pb.ts new file mode 100644 index 00000000..fc202ab4 --- /dev/null +++ b/src/protobufs/elys/masterchef/pool_pb.ts @@ -0,0 +1,385 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/pool.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.masterchef.PoolInfo + */ +export class PoolInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * reward wallet address + * + * @generated from field: string reward_wallet = 2; + */ + rewardWallet = ""; + + /** + * multiplier for lp rewards + * + * @generated from field: string multiplier = 3; + */ + multiplier = ""; + + /** + * Eden APR, updated at every distribution + * + * @generated from field: string eden_apr = 4; + */ + edenApr = ""; + + /** + * Dex APR, updated based on 24hr accumulation + * + * @generated from field: string dex_apr = 5; + */ + dexApr = ""; + + /** + * Gas APR, updated based on 24hr accumulation + * + * @generated from field: string gas_apr = 6; + */ + gasApr = ""; + + /** + * External Incentive APR, updated at every distribution + * + * @generated from field: string external_incentive_apr = 7; + */ + externalIncentiveApr = ""; + + /** + * external reward denoms on the pool + * + * @generated from field: repeated string external_reward_denoms = 8; + */ + externalRewardDenoms: string[] = []; + + /** + * Enable or disable eden rewards + * + * @generated from field: bool enable_eden_rewards = 9; + */ + enableEdenRewards = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eden_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "dex_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "gas_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "external_incentive_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "external_reward_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "enable_eden_rewards", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolInfo { + return new PoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolInfo { + return new PoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolInfo { + return new PoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolInfo | PlainMessage | undefined, b: PoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.LegacyPoolInfo + */ +export class LegacyPoolInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * reward wallet address + * + * @generated from field: string reward_wallet = 2; + */ + rewardWallet = ""; + + /** + * multiplier for lp rewards + * + * @generated from field: string multiplier = 3; + */ + multiplier = ""; + + /** + * Eden APR, updated at every distribution + * + * @generated from field: string eden_apr = 4; + */ + edenApr = ""; + + /** + * Dex APR, updated based on 24hr accumulation + * + * @generated from field: string dex_apr = 5; + */ + dexApr = ""; + + /** + * Gas APR, updated based on 24hr accumulation + * + * @generated from field: string gas_apr = 6; + */ + gasApr = ""; + + /** + * External Incentive APR, updated at every distribution + * + * @generated from field: string external_incentive_apr = 7; + */ + externalIncentiveApr = ""; + + /** + * external reward denoms on the pool + * + * @generated from field: repeated string external_reward_denoms = 8; + */ + externalRewardDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.LegacyPoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eden_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "dex_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "gas_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "external_incentive_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "external_reward_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPoolInfo { + return new LegacyPoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPoolInfo { + return new LegacyPoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPoolInfo { + return new LegacyPoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPoolInfo | PlainMessage | undefined, b: LegacyPoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPoolInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.PoolRewardInfo + */ +export class PoolRewardInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + /** + * @generated from field: string pool_acc_reward_per_share = 3; + */ + poolAccRewardPerShare = ""; + + /** + * @generated from field: uint64 last_updated_block = 4; + */ + lastUpdatedBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolRewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_acc_reward_per_share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "last_updated_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewardInfo | PlainMessage | undefined, b: PoolRewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewardInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.UserRewardInfo + */ +export class UserRewardInfo extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 3; + */ + rewardDenom = ""; + + /** + * @generated from field: string reward_debt = 4; + */ + rewardDebt = ""; + + /** + * @generated from field: string reward_pending = 5; + */ + rewardPending = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.UserRewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reward_debt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "reward_pending", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: UserRewardInfo | PlainMessage | undefined, b: UserRewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(UserRewardInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.PoolRewardsAccum + */ +export class PoolRewardsAccum extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 block_height = 2; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: string dex_reward = 4; + */ + dexReward = ""; + + /** + * @generated from field: string gas_reward = 5; + */ + gasReward = ""; + + /** + * @generated from field: string eden_reward = 6; + */ + edenReward = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolRewardsAccum"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "dex_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "eden_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewardsAccum | PlainMessage | undefined, b: PoolRewardsAccum | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewardsAccum, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/query_cosmes.ts b/src/protobufs/elys/masterchef/query_cosmes.ts new file mode 100644 index 00000000..bfd81964 --- /dev/null +++ b/src/protobufs/elys/masterchef/query_cosmes.ts @@ -0,0 +1,201 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/masterchef/query.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllLiquidityPoolTVLRequest, QueryAllLiquidityPoolTVLResponse, QueryAprRequest, QueryAprResponse, QueryAprsRequest, QueryAprsResponse, QueryChainTVLRequest, QueryChainTVLResponse, QueryExternalIncentiveRequest, QueryExternalIncentiveResponse, QueryListFeeInfoRequest, QueryListFeeInfoResponse, QueryListPoolInfosRequest, QueryListPoolInfosResponse, QueryParamsRequest, QueryParamsResponse, QueryPendingRewardsRequest, QueryPendingRewardsResponse, QueryPoolAprsRequest, QueryPoolAprsResponse, QueryPoolInfoRequest, QueryPoolInfoResponse, QueryPoolRewardInfoRequest, QueryPoolRewardInfoResponse, QueryPoolRewardsRequest, QueryPoolRewardsResponse, QueryShowFeeInfoRequest, QueryShowFeeInfoResponse, QueryStableStakeAprRequest, QueryStableStakeAprResponse, QueryTotalPendingRewardsRequest, QueryTotalPendingRewardsResponse, QueryUserPendingRewardRequest, QueryUserPendingRewardResponse, QueryUserRewardInfoRequest, QueryUserRewardInfoResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.masterchef.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.masterchef.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.ExternalIncentive + */ +export const QueryExternalIncentiveService = { + typeName: TYPE_NAME, + method: "ExternalIncentive", + Request: QueryExternalIncentiveRequest, + Response: QueryExternalIncentiveResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.PoolInfo + */ +export const QueryPoolInfoService = { + typeName: TYPE_NAME, + method: "PoolInfo", + Request: QueryPoolInfoRequest, + Response: QueryPoolInfoResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.ListPoolInfos + */ +export const QueryListPoolInfosService = { + typeName: TYPE_NAME, + method: "ListPoolInfos", + Request: QueryListPoolInfosRequest, + Response: QueryListPoolInfosResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.PoolRewardInfo + */ +export const QueryPoolRewardInfoService = { + typeName: TYPE_NAME, + method: "PoolRewardInfo", + Request: QueryPoolRewardInfoRequest, + Response: QueryPoolRewardInfoResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.UserRewardInfo + */ +export const QueryUserRewardInfoService = { + typeName: TYPE_NAME, + method: "UserRewardInfo", + Request: QueryUserRewardInfoRequest, + Response: QueryUserRewardInfoResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.UserPendingReward + */ +export const QueryUserPendingRewardService = { + typeName: TYPE_NAME, + method: "UserPendingReward", + Request: QueryUserPendingRewardRequest, + Response: QueryUserPendingRewardResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.StableStakeApr + */ +export const QueryStableStakeAprService = { + typeName: TYPE_NAME, + method: "StableStakeApr", + Request: QueryStableStakeAprRequest, + Response: QueryStableStakeAprResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.PoolAprs + */ +export const QueryPoolAprsService = { + typeName: TYPE_NAME, + method: "PoolAprs", + Request: QueryPoolAprsRequest, + Response: QueryPoolAprsResponse, +} as const; + +/** + * Queries a list of ShowFeeInfo items. + * + * @generated from rpc elys.masterchef.Query.ShowFeeInfo + */ +export const QueryShowFeeInfoService = { + typeName: TYPE_NAME, + method: "ShowFeeInfo", + Request: QueryShowFeeInfoRequest, + Response: QueryShowFeeInfoResponse, +} as const; + +/** + * Queries a list of ListFeeInfo items. + * + * @generated from rpc elys.masterchef.Query.ListFeeInfo + */ +export const QueryListFeeInfoService = { + typeName: TYPE_NAME, + method: "ListFeeInfo", + Request: QueryListFeeInfoRequest, + Response: QueryListFeeInfoResponse, +} as const; + +/** + * Calculate APR + * + * @generated from rpc elys.masterchef.Query.Apr + */ +export const QueryAprService = { + typeName: TYPE_NAME, + method: "Apr", + Request: QueryAprRequest, + Response: QueryAprResponse, +} as const; + +/** + * Calculate APRs + * + * @generated from rpc elys.masterchef.Query.Aprs + */ +export const QueryAprsService = { + typeName: TYPE_NAME, + method: "Aprs", + Request: QueryAprsRequest, + Response: QueryAprsResponse, +} as const; + +/** + * Queries PoolReward items + * + * @generated from rpc elys.masterchef.Query.PoolRewards + */ +export const QueryPoolRewardsService = { + typeName: TYPE_NAME, + method: "PoolRewards", + Request: QueryPoolRewardsRequest, + Response: QueryPoolRewardsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.AllLiquidityPoolTVL + */ +export const QueryAllLiquidityPoolTVLService = { + typeName: TYPE_NAME, + method: "AllLiquidityPoolTVL", + Request: QueryAllLiquidityPoolTVLRequest, + Response: QueryAllLiquidityPoolTVLResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.ChainTVL + */ +export const QueryChainTVLService = { + typeName: TYPE_NAME, + method: "ChainTVL", + Request: QueryChainTVLRequest, + Response: QueryChainTVLResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.TotalPendingRewards + */ +export const QueryTotalPendingRewardsService = { + typeName: TYPE_NAME, + method: "TotalPendingRewards", + Request: QueryTotalPendingRewardsRequest, + Response: QueryTotalPendingRewardsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Query.PendingRewards + */ +export const QueryPendingRewardsService = { + typeName: TYPE_NAME, + method: "PendingRewards", + Request: QueryPendingRewardsRequest, + Response: QueryPendingRewardsResponse, +} as const; + diff --git a/src/protobufs/elys/masterchef/query_pb.ts b/src/protobufs/elys/masterchef/query_pb.ts new file mode 100644 index 00000000..d1440385 --- /dev/null +++ b/src/protobufs/elys/masterchef/query_pb.ts @@ -0,0 +1,1668 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/query.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; +import { ExternalIncentive } from "./external_incentive_pb.js"; +import { PoolInfo, PoolRewardInfo, UserRewardInfo } from "./pool_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { FeeInfo } from "./types_pb.js"; +import { EarnType } from "../commitment/params_pb.js"; + +/** + * @generated from message elys.masterchef.QueryAllLiquidityPoolTVLRequest + */ +export class QueryAllLiquidityPoolTVLRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAllLiquidityPoolTVLRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLiquidityPoolTVLRequest { + return new QueryAllLiquidityPoolTVLRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLiquidityPoolTVLRequest { + return new QueryAllLiquidityPoolTVLRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLiquidityPoolTVLRequest { + return new QueryAllLiquidityPoolTVLRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLiquidityPoolTVLRequest | PlainMessage | undefined, b: QueryAllLiquidityPoolTVLRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLiquidityPoolTVLRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryAllLiquidityPoolTVLResponse + */ +export class QueryAllLiquidityPoolTVLResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + /** + * @generated from field: string pools = 2; + */ + pools = ""; + + /** + * @generated from field: string usdc_staking = 3; + */ + usdcStaking = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAllLiquidityPoolTVLResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pools", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "usdc_staking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLiquidityPoolTVLResponse { + return new QueryAllLiquidityPoolTVLResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLiquidityPoolTVLResponse { + return new QueryAllLiquidityPoolTVLResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLiquidityPoolTVLResponse { + return new QueryAllLiquidityPoolTVLResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLiquidityPoolTVLResponse | PlainMessage | undefined, b: QueryAllLiquidityPoolTVLResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLiquidityPoolTVLResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryChainTVLRequest + */ +export class QueryChainTVLRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryChainTVLRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainTVLRequest { + return new QueryChainTVLRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainTVLRequest { + return new QueryChainTVLRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChainTVLRequest { + return new QueryChainTVLRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryChainTVLRequest | PlainMessage | undefined, b: QueryChainTVLRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChainTVLRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryChainTVLResponse + */ +export class QueryChainTVLResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + /** + * @generated from field: string pools = 2; + */ + pools = ""; + + /** + * @generated from field: string net_vault_stakings = 3; + */ + netVaultStakings = ""; + + /** + * @generated from field: string staked_elys = 4; + */ + stakedElys = ""; + + /** + * @generated from field: string staked_eden = 5; + */ + stakedEden = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin net_stakings = 6; + */ + netStakings: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin vault_tokens = 7; + */ + vaultTokens: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryChainTVLResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pools", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "net_vault_stakings", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "staked_elys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "staked_eden", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "net_stakings", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "vault_tokens", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainTVLResponse { + return new QueryChainTVLResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainTVLResponse { + return new QueryChainTVLResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryChainTVLResponse { + return new QueryChainTVLResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryChainTVLResponse | PlainMessage | undefined, b: QueryChainTVLResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryChainTVLResponse, a, b); + } +} + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.masterchef.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.masterchef.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.masterchef.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryExternalIncentiveRequest + */ +export class QueryExternalIncentiveRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryExternalIncentiveRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalIncentiveRequest { + return new QueryExternalIncentiveRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalIncentiveRequest { + return new QueryExternalIncentiveRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExternalIncentiveRequest { + return new QueryExternalIncentiveRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExternalIncentiveRequest | PlainMessage | undefined, b: QueryExternalIncentiveRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExternalIncentiveRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryExternalIncentiveResponse + */ +export class QueryExternalIncentiveResponse extends Message { + /** + * @generated from field: elys.masterchef.ExternalIncentive external_incentive = 1; + */ + externalIncentive?: ExternalIncentive; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryExternalIncentiveResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "external_incentive", kind: "message", T: ExternalIncentive }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalIncentiveResponse { + return new QueryExternalIncentiveResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalIncentiveResponse { + return new QueryExternalIncentiveResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExternalIncentiveResponse { + return new QueryExternalIncentiveResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExternalIncentiveResponse | PlainMessage | undefined, b: QueryExternalIncentiveResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExternalIncentiveResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolInfoRequest + */ +export class QueryPoolInfoRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolInfoRequest { + return new QueryPoolInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolInfoRequest { + return new QueryPoolInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolInfoRequest { + return new QueryPoolInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolInfoRequest | PlainMessage | undefined, b: QueryPoolInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolInfoRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolInfoResponse + */ +export class QueryPoolInfoResponse extends Message { + /** + * @generated from field: elys.masterchef.PoolInfo pool_info = 1; + */ + poolInfo?: PoolInfo; + + /** + * @generated from field: string stable_apr = 2; + */ + stableApr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_info", kind: "message", T: PoolInfo }, + { no: 2, name: "stable_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolInfoResponse { + return new QueryPoolInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolInfoResponse { + return new QueryPoolInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolInfoResponse { + return new QueryPoolInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolInfoResponse | PlainMessage | undefined, b: QueryPoolInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolInfoResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryListPoolInfosRequest + */ +export class QueryListPoolInfosRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryListPoolInfosRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPoolInfosRequest { + return new QueryListPoolInfosRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPoolInfosRequest { + return new QueryListPoolInfosRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryListPoolInfosRequest { + return new QueryListPoolInfosRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryListPoolInfosRequest | PlainMessage | undefined, b: QueryListPoolInfosRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryListPoolInfosRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryListPoolInfosResponse + */ +export class QueryListPoolInfosResponse extends Message { + /** + * @generated from field: repeated elys.masterchef.QueryPoolInfoResponse list = 1; + */ + list: QueryPoolInfoResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryListPoolInfosResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list", kind: "message", T: QueryPoolInfoResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPoolInfosResponse { + return new QueryListPoolInfosResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPoolInfosResponse { + return new QueryListPoolInfosResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryListPoolInfosResponse { + return new QueryListPoolInfosResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryListPoolInfosResponse | PlainMessage | undefined, b: QueryListPoolInfosResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryListPoolInfosResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolRewardInfoRequest + */ +export class QueryPoolRewardInfoRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolRewardInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRewardInfoRequest { + return new QueryPoolRewardInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRewardInfoRequest { + return new QueryPoolRewardInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRewardInfoRequest { + return new QueryPoolRewardInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRewardInfoRequest | PlainMessage | undefined, b: QueryPoolRewardInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRewardInfoRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolRewardInfoResponse + */ +export class QueryPoolRewardInfoResponse extends Message { + /** + * @generated from field: elys.masterchef.PoolRewardInfo pool_reward_info = 1; + */ + poolRewardInfo?: PoolRewardInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolRewardInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_reward_info", kind: "message", T: PoolRewardInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRewardInfoResponse { + return new QueryPoolRewardInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRewardInfoResponse { + return new QueryPoolRewardInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRewardInfoResponse { + return new QueryPoolRewardInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRewardInfoResponse | PlainMessage | undefined, b: QueryPoolRewardInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRewardInfoResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryUserRewardInfoRequest + */ +export class QueryUserRewardInfoRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 3; + */ + rewardDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryUserRewardInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserRewardInfoRequest { + return new QueryUserRewardInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserRewardInfoRequest { + return new QueryUserRewardInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserRewardInfoRequest { + return new QueryUserRewardInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserRewardInfoRequest | PlainMessage | undefined, b: QueryUserRewardInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserRewardInfoRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryUserRewardInfoResponse + */ +export class QueryUserRewardInfoResponse extends Message { + /** + * @generated from field: elys.masterchef.UserRewardInfo user_reward_info = 1; + */ + userRewardInfo?: UserRewardInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryUserRewardInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_reward_info", kind: "message", T: UserRewardInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserRewardInfoResponse { + return new QueryUserRewardInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserRewardInfoResponse { + return new QueryUserRewardInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserRewardInfoResponse { + return new QueryUserRewardInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserRewardInfoResponse | PlainMessage | undefined, b: QueryUserRewardInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserRewardInfoResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryUserPendingRewardRequest + */ +export class QueryUserPendingRewardRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryUserPendingRewardRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserPendingRewardRequest { + return new QueryUserPendingRewardRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserPendingRewardRequest { + return new QueryUserPendingRewardRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserPendingRewardRequest { + return new QueryUserPendingRewardRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserPendingRewardRequest | PlainMessage | undefined, b: QueryUserPendingRewardRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserPendingRewardRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.RewardInfo + */ +export class RewardInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward = 2; + */ + reward: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.RewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardInfo { + return new RewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardInfo { + return new RewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardInfo { + return new RewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: RewardInfo | PlainMessage | undefined, b: RewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardInfo, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryUserPendingRewardResponse + */ +export class QueryUserPendingRewardResponse extends Message { + /** + * @generated from field: repeated elys.masterchef.RewardInfo rewards = 1; + */ + rewards: RewardInfo[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_rewards = 2; + */ + totalRewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryUserPendingRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: RewardInfo, repeated: true }, + { no: 2, name: "total_rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserPendingRewardResponse { + return new QueryUserPendingRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserPendingRewardResponse { + return new QueryUserPendingRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserPendingRewardResponse { + return new QueryUserPendingRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserPendingRewardResponse | PlainMessage | undefined, b: QueryUserPendingRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserPendingRewardResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryStableStakeAprRequest + */ +export class QueryStableStakeAprRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryStableStakeAprRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStableStakeAprRequest { + return new QueryStableStakeAprRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStableStakeAprRequest { + return new QueryStableStakeAprRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStableStakeAprRequest { + return new QueryStableStakeAprRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStableStakeAprRequest | PlainMessage | undefined, b: QueryStableStakeAprRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStableStakeAprRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryStableStakeAprResponse + */ +export class QueryStableStakeAprResponse extends Message { + /** + * @generated from field: string apr = 1; + */ + apr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryStableStakeAprResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStableStakeAprResponse { + return new QueryStableStakeAprResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStableStakeAprResponse { + return new QueryStableStakeAprResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStableStakeAprResponse { + return new QueryStableStakeAprResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStableStakeAprResponse | PlainMessage | undefined, b: QueryStableStakeAprResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStableStakeAprResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolAprsRequest + */ +export class QueryPoolAprsRequest extends Message { + /** + * @generated from field: repeated uint64 pool_ids = 1; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolAprsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolAprsRequest { + return new QueryPoolAprsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolAprsRequest { + return new QueryPoolAprsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolAprsRequest { + return new QueryPoolAprsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolAprsRequest | PlainMessage | undefined, b: QueryPoolAprsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolAprsRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolAprsResponse + */ +export class QueryPoolAprsResponse extends Message { + /** + * @generated from field: repeated elys.masterchef.PoolApr data = 1; + */ + data: PoolApr[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolAprsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: PoolApr, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolAprsResponse { + return new QueryPoolAprsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolAprsResponse { + return new QueryPoolAprsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolAprsResponse { + return new QueryPoolAprsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolAprsResponse | PlainMessage | undefined, b: QueryPoolAprsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolAprsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.PoolApr + */ +export class PoolApr extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string eden_apr = 2; + */ + edenApr = ""; + + /** + * @generated from field: string usdc_dex_apr = 3; + */ + usdcDexApr = ""; + + /** + * @generated from field: string usdc_gas_apr = 4; + */ + usdcGasApr = ""; + + /** + * @generated from field: string total_apr = 5; + */ + totalApr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolApr"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "eden_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "usdc_dex_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "usdc_gas_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "total_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolApr { + return new PoolApr().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolApr { + return new PoolApr().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolApr { + return new PoolApr().fromJsonString(jsonString, options); + } + + static equals(a: PoolApr | PlainMessage | undefined, b: PoolApr | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolApr, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryShowFeeInfoRequest + */ +export class QueryShowFeeInfoRequest extends Message { + /** + * @generated from field: string date = 1; + */ + date = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryShowFeeInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowFeeInfoRequest { + return new QueryShowFeeInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowFeeInfoRequest { + return new QueryShowFeeInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryShowFeeInfoRequest { + return new QueryShowFeeInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryShowFeeInfoRequest | PlainMessage | undefined, b: QueryShowFeeInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryShowFeeInfoRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryShowFeeInfoResponse + */ +export class QueryShowFeeInfoResponse extends Message { + /** + * @generated from field: elys.masterchef.FeeInfo fee_info = 1; + */ + feeInfo?: FeeInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryShowFeeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_info", kind: "message", T: FeeInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowFeeInfoResponse { + return new QueryShowFeeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowFeeInfoResponse { + return new QueryShowFeeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryShowFeeInfoResponse { + return new QueryShowFeeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryShowFeeInfoResponse | PlainMessage | undefined, b: QueryShowFeeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryShowFeeInfoResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryListFeeInfoRequest + */ +export class QueryListFeeInfoRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryListFeeInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListFeeInfoRequest { + return new QueryListFeeInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListFeeInfoRequest { + return new QueryListFeeInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryListFeeInfoRequest { + return new QueryListFeeInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryListFeeInfoRequest | PlainMessage | undefined, b: QueryListFeeInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryListFeeInfoRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryListFeeInfoResponse + */ +export class QueryListFeeInfoResponse extends Message { + /** + * @generated from field: repeated elys.masterchef.FeeInfo fee_info = 1; + */ + feeInfo: FeeInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryListFeeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_info", kind: "message", T: FeeInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListFeeInfoResponse { + return new QueryListFeeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListFeeInfoResponse { + return new QueryListFeeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryListFeeInfoResponse { + return new QueryListFeeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryListFeeInfoResponse | PlainMessage | undefined, b: QueryListFeeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryListFeeInfoResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryAprRequest + */ +export class QueryAprRequest extends Message { + /** + * @generated from field: elys.commitment.EarnType withdraw_type = 1; + */ + withdrawType = EarnType.ALL_PROGRAM; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: uint64 days = 3; + */ + days = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAprRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "withdraw_type", kind: "enum", T: proto3.getEnumType(EarnType) }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAprRequest { + return new QueryAprRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAprRequest { + return new QueryAprRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAprRequest { + return new QueryAprRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAprRequest | PlainMessage | undefined, b: QueryAprRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAprRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryAprResponse + */ +export class QueryAprResponse extends Message { + /** + * @generated from field: string apr = 1; + */ + apr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAprResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAprResponse { + return new QueryAprResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAprResponse { + return new QueryAprResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAprResponse { + return new QueryAprResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAprResponse | PlainMessage | undefined, b: QueryAprResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAprResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryAprsRequest + */ +export class QueryAprsRequest extends Message { + /** + * @generated from field: uint64 days = 1; + */ + days = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAprsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAprsRequest { + return new QueryAprsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAprsRequest { + return new QueryAprsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAprsRequest { + return new QueryAprsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAprsRequest | PlainMessage | undefined, b: QueryAprsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAprsRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryAprsResponse + */ +export class QueryAprsResponse extends Message { + /** + * @generated from field: string usdc_apr_usdc = 1; + */ + usdcAprUsdc = ""; + + /** + * @generated from field: string eden_apr_usdc = 2; + */ + edenAprUsdc = ""; + + /** + * @generated from field: string usdc_apr_edenb = 3; + */ + usdcAprEdenb = ""; + + /** + * @generated from field: string eden_apr_edenb = 4; + */ + edenAprEdenb = ""; + + /** + * @generated from field: string usdc_apr_eden = 5; + */ + usdcAprEden = ""; + + /** + * @generated from field: string eden_apr_eden = 6; + */ + edenAprEden = ""; + + /** + * @generated from field: string edenb_apr_eden = 7; + */ + edenbAprEden = ""; + + /** + * @generated from field: string usdc_apr_elys = 8; + */ + usdcAprElys = ""; + + /** + * @generated from field: string eden_apr_elys = 9; + */ + edenAprElys = ""; + + /** + * @generated from field: string edenb_apr_elys = 10; + */ + edenbAprElys = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryAprsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usdc_apr_usdc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "eden_apr_usdc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "usdc_apr_edenb", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eden_apr_edenb", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "usdc_apr_eden", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "eden_apr_eden", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "edenb_apr_eden", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "usdc_apr_elys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "eden_apr_elys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "edenb_apr_elys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAprsResponse { + return new QueryAprsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAprsResponse { + return new QueryAprsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAprsResponse { + return new QueryAprsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAprsResponse | PlainMessage | undefined, b: QueryAprsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAprsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolRewardsRequest + */ +export class QueryPoolRewardsRequest extends Message { + /** + * @generated from field: repeated uint64 pool_ids = 1; + */ + poolIds: bigint[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRewardsRequest { + return new QueryPoolRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRewardsRequest { + return new QueryPoolRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRewardsRequest { + return new QueryPoolRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRewardsRequest | PlainMessage | undefined, b: QueryPoolRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRewardsRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.PoolRewards + */ +export class PoolRewards extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string rewards_usd = 2; + */ + rewardsUsd = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward_coins = 3; + */ + rewardCoins: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin eden_forward = 4; + */ + edenForward?: Coin; + + /** + * @generated from field: string rewards_usd_apr = 5; + */ + rewardsUsdApr = ""; + + /** + * @generated from field: string external_rewards_apr = 6; + */ + externalRewardsApr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "rewards_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_coins", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "eden_forward", kind: "message", T: Coin }, + { no: 5, name: "rewards_usd_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "external_rewards_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewards { + return new PoolRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewards { + return new PoolRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewards { + return new PoolRewards().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewards | PlainMessage | undefined, b: PoolRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewards, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPoolRewardsResponse + */ +export class QueryPoolRewardsResponse extends Message { + /** + * @generated from field: repeated elys.masterchef.PoolRewards pools = 1; + */ + pools: PoolRewards[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPoolRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: PoolRewards, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRewardsResponse { + return new QueryPoolRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRewardsResponse { + return new QueryPoolRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRewardsResponse { + return new QueryPoolRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRewardsResponse | PlainMessage | undefined, b: QueryPoolRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryTotalPendingRewardsRequest + */ +export class QueryTotalPendingRewardsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryTotalPendingRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPendingRewardsRequest { + return new QueryTotalPendingRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPendingRewardsRequest { + return new QueryTotalPendingRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalPendingRewardsRequest { + return new QueryTotalPendingRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalPendingRewardsRequest | PlainMessage | undefined, b: QueryTotalPendingRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalPendingRewardsRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryTotalPendingRewardsResponse + */ +export class QueryTotalPendingRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_pending_rewards = 1; + */ + totalPendingRewards: Coin[] = []; + + /** + * @generated from field: uint64 count = 2; + */ + count = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryTotalPendingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_pending_rewards", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPendingRewardsResponse { + return new QueryTotalPendingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPendingRewardsResponse { + return new QueryTotalPendingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalPendingRewardsResponse { + return new QueryTotalPendingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalPendingRewardsResponse | PlainMessage | undefined, b: QueryTotalPendingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalPendingRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPendingRewardsRequest + */ +export class QueryPendingRewardsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPendingRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewardsRequest { + return new QueryPendingRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewardsRequest { + return new QueryPendingRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewardsRequest { + return new QueryPendingRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewardsRequest | PlainMessage | undefined, b: QueryPendingRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewardsRequest, a, b); + } +} + +/** + * @generated from message elys.masterchef.QueryPendingRewardsResponse + */ +export class QueryPendingRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_pending_rewards = 1; + */ + totalPendingRewards: Coin[] = []; + + /** + * @generated from field: uint64 count = 2; + */ + count = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.QueryPendingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_pending_rewards", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewardsResponse | PlainMessage | undefined, b: QueryPendingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewardsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/tx_cosmes.ts b/src/protobufs/elys/masterchef/tx_cosmes.ts new file mode 100644 index 00000000..7c22f118 --- /dev/null +++ b/src/protobufs/elys/masterchef/tx_cosmes.ts @@ -0,0 +1,79 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/masterchef/tx.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddExternalIncentive, MsgAddExternalIncentiveResponse, MsgAddExternalRewardDenom, MsgAddExternalRewardDenomResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgTogglePoolEdenRewards, MsgTogglePoolEdenRewardsResponse, MsgToggleTakerFeeSwapAndBurn, MsgToggleTakerFeeSwapAndBurnResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdatePoolMultipliers, MsgUpdatePoolMultipliersResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.masterchef.Msg"; + +/** + * @generated from rpc elys.masterchef.Msg.AddExternalRewardDenom + */ +export const MsgAddExternalRewardDenomService = { + typeName: TYPE_NAME, + method: "AddExternalRewardDenom", + Request: MsgAddExternalRewardDenom, + Response: MsgAddExternalRewardDenomResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.AddExternalIncentive + */ +export const MsgAddExternalIncentiveService = { + typeName: TYPE_NAME, + method: "AddExternalIncentive", + Request: MsgAddExternalIncentive, + Response: MsgAddExternalIncentiveResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.UpdatePoolMultipliers + */ +export const MsgUpdatePoolMultipliersService = { + typeName: TYPE_NAME, + method: "UpdatePoolMultipliers", + Request: MsgUpdatePoolMultipliers, + Response: MsgUpdatePoolMultipliersResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.TogglePoolEdenRewards + */ +export const MsgTogglePoolEdenRewardsService = { + typeName: TYPE_NAME, + method: "TogglePoolEdenRewards", + Request: MsgTogglePoolEdenRewards, + Response: MsgTogglePoolEdenRewardsResponse, +} as const; + +/** + * @generated from rpc elys.masterchef.Msg.ToggleTakerFeeSwapAndBurn + */ +export const MsgToggleTakerFeeSwapAndBurnService = { + typeName: TYPE_NAME, + method: "ToggleTakerFeeSwapAndBurn", + Request: MsgToggleTakerFeeSwapAndBurn, + Response: MsgToggleTakerFeeSwapAndBurnResponse, +} as const; + diff --git a/src/protobufs/elys/masterchef/tx_pb.ts b/src/protobufs/elys/masterchef/tx_pb.ts new file mode 100644 index 00000000..8eed57dc --- /dev/null +++ b/src/protobufs/elys/masterchef/tx_pb.ts @@ -0,0 +1,606 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/tx.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.masterchef.MsgAddExternalRewardDenom + */ +export class MsgAddExternalRewardDenom extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + /** + * @generated from field: string min_amount = 3; + */ + minAmount = ""; + + /** + * @generated from field: bool supported = 4; + */ + supported = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgAddExternalRewardDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddExternalRewardDenom { + return new MsgAddExternalRewardDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddExternalRewardDenom { + return new MsgAddExternalRewardDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddExternalRewardDenom { + return new MsgAddExternalRewardDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddExternalRewardDenom | PlainMessage | undefined, b: MsgAddExternalRewardDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddExternalRewardDenom, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgAddExternalRewardDenomResponse + */ +export class MsgAddExternalRewardDenomResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgAddExternalRewardDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddExternalRewardDenomResponse { + return new MsgAddExternalRewardDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddExternalRewardDenomResponse { + return new MsgAddExternalRewardDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddExternalRewardDenomResponse { + return new MsgAddExternalRewardDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddExternalRewardDenomResponse | PlainMessage | undefined, b: MsgAddExternalRewardDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddExternalRewardDenomResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgAddExternalIncentive + */ +export class MsgAddExternalIncentive extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 from_block = 4; + */ + fromBlock = protoInt64.zero; + + /** + * @generated from field: int64 to_block = 5; + */ + toBlock = protoInt64.zero; + + /** + * @generated from field: string amount_per_block = 6; + */ + amountPerBlock = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgAddExternalIncentive"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "from_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "to_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "amount_per_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddExternalIncentive { + return new MsgAddExternalIncentive().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddExternalIncentive { + return new MsgAddExternalIncentive().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddExternalIncentive { + return new MsgAddExternalIncentive().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddExternalIncentive | PlainMessage | undefined, b: MsgAddExternalIncentive | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddExternalIncentive, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgAddExternalIncentiveResponse + */ +export class MsgAddExternalIncentiveResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgAddExternalIncentiveResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddExternalIncentiveResponse { + return new MsgAddExternalIncentiveResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddExternalIncentiveResponse { + return new MsgAddExternalIncentiveResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddExternalIncentiveResponse { + return new MsgAddExternalIncentiveResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddExternalIncentiveResponse | PlainMessage | undefined, b: MsgAddExternalIncentiveResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddExternalIncentiveResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.masterchef.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.PoolMultiplier + */ +export class PoolMultiplier extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string multiplier = 2; + */ + multiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.PoolMultiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolMultiplier { + return new PoolMultiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolMultiplier { + return new PoolMultiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolMultiplier { + return new PoolMultiplier().fromJsonString(jsonString, options); + } + + static equals(a: PoolMultiplier | PlainMessage | undefined, b: PoolMultiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolMultiplier, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgUpdatePoolMultipliers + */ +export class MsgUpdatePoolMultipliers extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated elys.masterchef.PoolMultiplier pool_multipliers = 2; + */ + poolMultipliers: PoolMultiplier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgUpdatePoolMultipliers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_multipliers", kind: "message", T: PoolMultiplier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolMultipliers { + return new MsgUpdatePoolMultipliers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolMultipliers { + return new MsgUpdatePoolMultipliers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolMultipliers { + return new MsgUpdatePoolMultipliers().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolMultipliers | PlainMessage | undefined, b: MsgUpdatePoolMultipliers | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolMultipliers, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgUpdatePoolMultipliersResponse + */ +export class MsgUpdatePoolMultipliersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgUpdatePoolMultipliersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolMultipliersResponse { + return new MsgUpdatePoolMultipliersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolMultipliersResponse { + return new MsgUpdatePoolMultipliersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolMultipliersResponse { + return new MsgUpdatePoolMultipliersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolMultipliersResponse | PlainMessage | undefined, b: MsgUpdatePoolMultipliersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolMultipliersResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated uint64 pool_ids = 2; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgTogglePoolEdenRewards + */ +export class MsgTogglePoolEdenRewards extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool enable = 3; + */ + enable = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgTogglePoolEdenRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "enable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTogglePoolEdenRewards { + return new MsgTogglePoolEdenRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTogglePoolEdenRewards { + return new MsgTogglePoolEdenRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTogglePoolEdenRewards { + return new MsgTogglePoolEdenRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgTogglePoolEdenRewards | PlainMessage | undefined, b: MsgTogglePoolEdenRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTogglePoolEdenRewards, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgTogglePoolEdenRewardsResponse + */ +export class MsgTogglePoolEdenRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgTogglePoolEdenRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTogglePoolEdenRewardsResponse { + return new MsgTogglePoolEdenRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTogglePoolEdenRewardsResponse { + return new MsgTogglePoolEdenRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTogglePoolEdenRewardsResponse { + return new MsgTogglePoolEdenRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTogglePoolEdenRewardsResponse | PlainMessage | undefined, b: MsgTogglePoolEdenRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTogglePoolEdenRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgToggleTakerFeeSwapAndBurn + */ +export class MsgToggleTakerFeeSwapAndBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgToggleTakerFeeSwapAndBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleTakerFeeSwapAndBurn { + return new MsgToggleTakerFeeSwapAndBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleTakerFeeSwapAndBurn { + return new MsgToggleTakerFeeSwapAndBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleTakerFeeSwapAndBurn { + return new MsgToggleTakerFeeSwapAndBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleTakerFeeSwapAndBurn | PlainMessage | undefined, b: MsgToggleTakerFeeSwapAndBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleTakerFeeSwapAndBurn, a, b); + } +} + +/** + * @generated from message elys.masterchef.MsgToggleTakerFeeSwapAndBurnResponse + */ +export class MsgToggleTakerFeeSwapAndBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.MsgToggleTakerFeeSwapAndBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleTakerFeeSwapAndBurnResponse { + return new MsgToggleTakerFeeSwapAndBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleTakerFeeSwapAndBurnResponse { + return new MsgToggleTakerFeeSwapAndBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleTakerFeeSwapAndBurnResponse { + return new MsgToggleTakerFeeSwapAndBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleTakerFeeSwapAndBurnResponse | PlainMessage | undefined, b: MsgToggleTakerFeeSwapAndBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleTakerFeeSwapAndBurnResponse, a, b); + } +} + diff --git a/src/protobufs/elys/masterchef/types_pb.ts b/src/protobufs/elys/masterchef/types_pb.ts new file mode 100644 index 00000000..09161ca2 --- /dev/null +++ b/src/protobufs/elys/masterchef/types_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/masterchef/types.proto (package elys.masterchef, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.masterchef.FeeInfo + */ +export class FeeInfo extends Message { + /** + * @generated from field: string gas_lp = 1; + */ + gasLp = ""; + + /** + * @generated from field: string gas_stakers = 2; + */ + gasStakers = ""; + + /** + * @generated from field: string gas_protocol = 3; + */ + gasProtocol = ""; + + /** + * @generated from field: string dex_lp = 4; + */ + dexLp = ""; + + /** + * @generated from field: string dex_stakers = 5; + */ + dexStakers = ""; + + /** + * @generated from field: string dex_protocol = 6; + */ + dexProtocol = ""; + + /** + * @generated from field: string perp_lp = 7; + */ + perpLp = ""; + + /** + * @generated from field: string perp_stakers = 8; + */ + perpStakers = ""; + + /** + * @generated from field: string perp_protocol = 9; + */ + perpProtocol = ""; + + /** + * @generated from field: string eden_lp = 10; + */ + edenLp = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.masterchef.FeeInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gas_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "gas_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "gas_protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "dex_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "dex_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "dex_protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "perp_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "perp_stakers", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "perp_protocol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "eden_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeInfo { + return new FeeInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeInfo { + return new FeeInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeInfo { + return new FeeInfo().fromJsonString(jsonString, options); + } + + static equals(a: FeeInfo | PlainMessage | undefined, b: FeeInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeInfo, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/asset_info_pb.ts b/src/protobufs/elys/oracle/asset_info_pb.ts new file mode 100644 index 00000000..49ce54d1 --- /dev/null +++ b/src/protobufs/elys/oracle/asset_info_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/asset_info.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.oracle.AssetInfo + */ +export class AssetInfo extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string display = 2; + */ + display = ""; + + /** + * @generated from field: string band_ticker = 3; + */ + bandTicker = ""; + + /** + * @generated from field: string elys_ticker = 4; + */ + elysTicker = ""; + + /** + * @generated from field: uint64 decimal = 5; + */ + decimal = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.AssetInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "display", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "band_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "elys_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "decimal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetInfo { + return new AssetInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetInfo { + return new AssetInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetInfo { + return new AssetInfo().fromJsonString(jsonString, options); + } + + static equals(a: AssetInfo | PlainMessage | undefined, b: AssetInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetInfo, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/band_price_pb.ts b/src/protobufs/elys/oracle/band_price_pb.ts new file mode 100644 index 00000000..967aa258 --- /dev/null +++ b/src/protobufs/elys/oracle/band_price_pb.ts @@ -0,0 +1,88 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/band_price.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.oracle.BandPriceCallData + */ +export class BandPriceCallData extends Message { + /** + * @generated from field: repeated string symbols = 1; + */ + symbols: string[] = []; + + /** + * @generated from field: uint64 multiplier = 2; + */ + multiplier = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.BandPriceCallData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "symbols", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "multiplier", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BandPriceCallData { + return new BandPriceCallData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BandPriceCallData { + return new BandPriceCallData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BandPriceCallData { + return new BandPriceCallData().fromJsonString(jsonString, options); + } + + static equals(a: BandPriceCallData | PlainMessage | undefined, b: BandPriceCallData | PlainMessage | undefined): boolean { + return proto3.util.equals(BandPriceCallData, a, b); + } +} + +/** + * @generated from message elys.oracle.BandPriceResult + */ +export class BandPriceResult extends Message { + /** + * @generated from field: repeated uint64 rates = 1; + */ + rates: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.BandPriceResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rates", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BandPriceResult { + return new BandPriceResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BandPriceResult { + return new BandPriceResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BandPriceResult { + return new BandPriceResult().fromJsonString(jsonString, options); + } + + static equals(a: BandPriceResult | PlainMessage | undefined, b: BandPriceResult | PlainMessage | undefined): boolean { + return proto3.util.equals(BandPriceResult, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/genesis_pb.ts b/src/protobufs/elys/oracle/genesis_pb.ts new file mode 100644 index 00000000..330981c4 --- /dev/null +++ b/src/protobufs/elys/oracle/genesis_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/genesis.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { AssetInfo } from "./asset_info_pb.js"; +import { Price } from "./price_pb.js"; +import { PriceFeeder } from "./price_feeder_pb.js"; + +/** + * GenesisState defines the oracle module's genesis state. + * + * @generated from message elys.oracle.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.oracle.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: repeated elys.oracle.AssetInfo asset_infos = 3; + */ + assetInfos: AssetInfo[] = []; + + /** + * @generated from field: repeated elys.oracle.Price prices = 4; + */ + prices: Price[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated elys.oracle.PriceFeeder price_feeders = 5; + */ + priceFeeders: PriceFeeder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_infos", kind: "message", T: AssetInfo, repeated: true }, + { no: 4, name: "prices", kind: "message", T: Price, repeated: true }, + { no: 5, name: "price_feeders", kind: "message", T: PriceFeeder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/params_pb.ts b/src/protobufs/elys/oracle/params_pb.ts new file mode 100644 index 00000000..f0c01e05 --- /dev/null +++ b/src/protobufs/elys/oracle/params_pb.ts @@ -0,0 +1,114 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/params.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.oracle.Params + */ +export class Params extends Message { + /** + * @generated from field: string band_channel_source = 1; + */ + bandChannelSource = ""; + + /** + * @generated from field: uint64 oracle_script_id = 2; + */ + oracleScriptId = protoInt64.zero; + + /** + * @generated from field: uint64 multiplier = 3; + */ + multiplier = protoInt64.zero; + + /** + * @generated from field: uint64 ask_count = 4; + */ + askCount = protoInt64.zero; + + /** + * @generated from field: uint64 min_count = 5; + */ + minCount = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin fee_limit = 6; + */ + feeLimit: Coin[] = []; + + /** + * @generated from field: uint64 prepare_gas = 7; + */ + prepareGas = protoInt64.zero; + + /** + * @generated from field: uint64 execute_gas = 8; + */ + executeGas = protoInt64.zero; + + /** + * @generated from field: string client_id = 9; + */ + clientId = ""; + + /** + * @generated from field: string band_epoch = 10; + */ + bandEpoch = ""; + + /** + * @generated from field: uint64 price_expiry_time = 11; + */ + priceExpiryTime = protoInt64.zero; + + /** + * @generated from field: uint64 life_time_in_blocks = 12; + */ + lifeTimeInBlocks = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "band_channel_source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_script_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "multiplier", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "ask_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "min_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "fee_limit", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "prepare_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "execute_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "band_epoch", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "price_expiry_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "life_time_in_blocks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/price_feeder_pb.ts b/src/protobufs/elys/oracle/price_feeder_pb.ts new file mode 100644 index 00000000..6fe7cf7c --- /dev/null +++ b/src/protobufs/elys/oracle/price_feeder_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/price_feeder.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.oracle.PriceFeeder + */ +export class PriceFeeder extends Message { + /** + * @generated from field: string feeder = 1; + */ + feeder = ""; + + /** + * @generated from field: bool is_active = 2; + */ + isActive = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.PriceFeeder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PriceFeeder { + return new PriceFeeder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PriceFeeder { + return new PriceFeeder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PriceFeeder { + return new PriceFeeder().fromJsonString(jsonString, options); + } + + static equals(a: PriceFeeder | PlainMessage | undefined, b: PriceFeeder | PlainMessage | undefined): boolean { + return proto3.util.equals(PriceFeeder, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/price_pb.ts b/src/protobufs/elys/oracle/price_pb.ts new file mode 100644 index 00000000..691a315f --- /dev/null +++ b/src/protobufs/elys/oracle/price_pb.ts @@ -0,0 +1,136 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/price.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.oracle.Price + */ +export class Price extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: string source = 3; + */ + source = ""; + + /** + * @generated from field: string provider = 4; + */ + provider = ""; + + /** + * @generated from field: uint64 timestamp = 5; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: uint64 block_height = 6; + */ + blockHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.Price"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Price { + return new Price().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Price { + return new Price().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Price { + return new Price().fromJsonString(jsonString, options); + } + + static equals(a: Price | PlainMessage | undefined, b: Price | PlainMessage | undefined): boolean { + return proto3.util.equals(Price, a, b); + } +} + +/** + * @generated from message elys.oracle.LegacyPrice + */ +export class LegacyPrice extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: string source = 3; + */ + source = ""; + + /** + * @generated from field: string provider = 4; + */ + provider = ""; + + /** + * @generated from field: uint64 timestamp = 5; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.LegacyPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPrice { + return new LegacyPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPrice { + return new LegacyPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPrice { + return new LegacyPrice().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPrice | PlainMessage | undefined, b: LegacyPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPrice, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/query_cosmes.ts b/src/protobufs/elys/oracle/query_cosmes.ts new file mode 100644 index 00000000..c9cdee7f --- /dev/null +++ b/src/protobufs/elys/oracle/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/oracle/query.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllAssetInfoRequest, QueryAllAssetInfoResponse, QueryAllPriceFeederRequest, QueryAllPriceFeederResponse, QueryAllPriceRequest, QueryAllPriceResponse, QueryGetAssetInfoRequest, QueryGetAssetInfoResponse, QueryGetPriceFeederRequest, QueryGetPriceFeederResponse, QueryGetPriceRequest, QueryGetPriceResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.oracle.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.oracle.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a AssetInfo by denom. + * + * @generated from rpc elys.oracle.Query.AssetInfo + */ +export const QueryAssetInfoService = { + typeName: TYPE_NAME, + method: "AssetInfo", + Request: QueryGetAssetInfoRequest, + Response: QueryGetAssetInfoResponse, +} as const; + +/** + * Queries a list of AssetInfo items. + * + * @generated from rpc elys.oracle.Query.AssetInfoAll + */ +export const QueryAssetInfoAllService = { + typeName: TYPE_NAME, + method: "AssetInfoAll", + Request: QueryAllAssetInfoRequest, + Response: QueryAllAssetInfoResponse, +} as const; + +/** + * Queries a Price by asset. + * + * @generated from rpc elys.oracle.Query.Price + */ +export const QueryPriceService = { + typeName: TYPE_NAME, + method: "Price", + Request: QueryGetPriceRequest, + Response: QueryGetPriceResponse, +} as const; + +/** + * Queries a list of Price items. + * + * @generated from rpc elys.oracle.Query.PriceAll + */ +export const QueryPriceAllService = { + typeName: TYPE_NAME, + method: "PriceAll", + Request: QueryAllPriceRequest, + Response: QueryAllPriceResponse, +} as const; + +/** + * Queries a PriceFeeder by feeder. + * + * @generated from rpc elys.oracle.Query.PriceFeeder + */ +export const QueryPriceFeederService = { + typeName: TYPE_NAME, + method: "PriceFeeder", + Request: QueryGetPriceFeederRequest, + Response: QueryGetPriceFeederResponse, +} as const; + +/** + * Queries a list of PriceFeeder items. + * + * @generated from rpc elys.oracle.Query.PriceFeederAll + */ +export const QueryPriceFeederAllService = { + typeName: TYPE_NAME, + method: "PriceFeederAll", + Request: QueryAllPriceFeederRequest, + Response: QueryAllPriceFeederResponse, +} as const; + diff --git a/src/protobufs/elys/oracle/query_pb.ts b/src/protobufs/elys/oracle/query_pb.ts new file mode 100644 index 00000000..459261b2 --- /dev/null +++ b/src/protobufs/elys/oracle/query_pb.ts @@ -0,0 +1,561 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/query.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { AssetInfo } from "./asset_info_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Price } from "./price_pb.js"; +import { PriceFeeder } from "./price_feeder_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.oracle.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.oracle.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.oracle.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetAssetInfoRequest + */ +export class QueryGetAssetInfoRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetAssetInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetInfoRequest { + return new QueryGetAssetInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetInfoRequest { + return new QueryGetAssetInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetInfoRequest { + return new QueryGetAssetInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetInfoRequest | PlainMessage | undefined, b: QueryGetAssetInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetInfoRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetAssetInfoResponse + */ +export class QueryGetAssetInfoResponse extends Message { + /** + * @generated from field: elys.oracle.AssetInfo asset_info = 1; + */ + assetInfo?: AssetInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetAssetInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_info", kind: "message", T: AssetInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetInfoResponse { + return new QueryGetAssetInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetInfoResponse { + return new QueryGetAssetInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetInfoResponse { + return new QueryGetAssetInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetInfoResponse | PlainMessage | undefined, b: QueryGetAssetInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetInfoResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllAssetInfoRequest + */ +export class QueryAllAssetInfoRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllAssetInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetInfoRequest { + return new QueryAllAssetInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetInfoRequest { + return new QueryAllAssetInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetInfoRequest { + return new QueryAllAssetInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetInfoRequest | PlainMessage | undefined, b: QueryAllAssetInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetInfoRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllAssetInfoResponse + */ +export class QueryAllAssetInfoResponse extends Message { + /** + * @generated from field: repeated elys.oracle.AssetInfo asset_info = 1; + */ + assetInfo: AssetInfo[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllAssetInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_info", kind: "message", T: AssetInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetInfoResponse { + return new QueryAllAssetInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetInfoResponse { + return new QueryAllAssetInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetInfoResponse { + return new QueryAllAssetInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetInfoResponse | PlainMessage | undefined, b: QueryAllAssetInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetInfoResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetPriceRequest + */ +export class QueryGetPriceRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: string source = 2; + */ + source = ""; + + /** + * @generated from field: uint64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPriceRequest { + return new QueryGetPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPriceRequest { + return new QueryGetPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPriceRequest { + return new QueryGetPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPriceRequest | PlainMessage | undefined, b: QueryGetPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPriceRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetPriceResponse + */ +export class QueryGetPriceResponse extends Message { + /** + * @generated from field: elys.oracle.Price price = 1; + */ + price?: Price; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "message", T: Price }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPriceResponse { + return new QueryGetPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPriceResponse { + return new QueryGetPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPriceResponse { + return new QueryGetPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPriceResponse | PlainMessage | undefined, b: QueryGetPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPriceResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllPriceRequest + */ +export class QueryAllPriceRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPriceRequest { + return new QueryAllPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPriceRequest { + return new QueryAllPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPriceRequest { + return new QueryAllPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPriceRequest | PlainMessage | undefined, b: QueryAllPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPriceRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllPriceResponse + */ +export class QueryAllPriceResponse extends Message { + /** + * @generated from field: repeated elys.oracle.Price price = 1; + */ + price: Price[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "message", T: Price, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPriceResponse { + return new QueryAllPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPriceResponse { + return new QueryAllPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPriceResponse { + return new QueryAllPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPriceResponse | PlainMessage | undefined, b: QueryAllPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPriceResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetPriceFeederRequest + */ +export class QueryGetPriceFeederRequest extends Message { + /** + * @generated from field: string feeder = 1; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetPriceFeederRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPriceFeederRequest { + return new QueryGetPriceFeederRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPriceFeederRequest { + return new QueryGetPriceFeederRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPriceFeederRequest { + return new QueryGetPriceFeederRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPriceFeederRequest | PlainMessage | undefined, b: QueryGetPriceFeederRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPriceFeederRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryGetPriceFeederResponse + */ +export class QueryGetPriceFeederResponse extends Message { + /** + * @generated from field: elys.oracle.PriceFeeder price_feeder = 1; + */ + priceFeeder?: PriceFeeder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryGetPriceFeederResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price_feeder", kind: "message", T: PriceFeeder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPriceFeederResponse { + return new QueryGetPriceFeederResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPriceFeederResponse { + return new QueryGetPriceFeederResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPriceFeederResponse { + return new QueryGetPriceFeederResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPriceFeederResponse | PlainMessage | undefined, b: QueryGetPriceFeederResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPriceFeederResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllPriceFeederRequest + */ +export class QueryAllPriceFeederRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllPriceFeederRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPriceFeederRequest { + return new QueryAllPriceFeederRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPriceFeederRequest { + return new QueryAllPriceFeederRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPriceFeederRequest { + return new QueryAllPriceFeederRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPriceFeederRequest | PlainMessage | undefined, b: QueryAllPriceFeederRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPriceFeederRequest, a, b); + } +} + +/** + * @generated from message elys.oracle.QueryAllPriceFeederResponse + */ +export class QueryAllPriceFeederResponse extends Message { + /** + * @generated from field: repeated elys.oracle.PriceFeeder price_feeder = 1; + */ + priceFeeder: PriceFeeder[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.QueryAllPriceFeederResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price_feeder", kind: "message", T: PriceFeeder, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPriceFeederResponse { + return new QueryAllPriceFeederResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPriceFeederResponse { + return new QueryAllPriceFeederResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPriceFeederResponse { + return new QueryAllPriceFeederResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPriceFeederResponse | PlainMessage | undefined, b: QueryAllPriceFeederResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPriceFeederResponse, a, b); + } +} + diff --git a/src/protobufs/elys/oracle/tx_cosmes.ts b/src/protobufs/elys/oracle/tx_cosmes.ts new file mode 100644 index 00000000..447a26a4 --- /dev/null +++ b/src/protobufs/elys/oracle/tx_cosmes.ts @@ -0,0 +1,103 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/oracle/tx.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddPriceFeeders, MsgAddPriceFeedersResponse, MsgCreateAssetInfo, MsgCreateAssetInfoResponse, MsgDeletePriceFeeder, MsgDeletePriceFeederResponse, MsgFeedMultiplePrices, MsgFeedMultiplePricesResponse, MsgFeedPrice, MsgFeedPriceResponse, MsgRemoveAssetInfo, MsgRemoveAssetInfoResponse, MsgRemovePriceFeeders, MsgRemovePriceFeedersResponse, MsgSetPriceFeeder, MsgSetPriceFeederResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.oracle.Msg"; + +/** + * @generated from rpc elys.oracle.Msg.FeedPrice + */ +export const MsgFeedPriceService = { + typeName: TYPE_NAME, + method: "FeedPrice", + Request: MsgFeedPrice, + Response: MsgFeedPriceResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.FeedMultiplePrices + */ +export const MsgFeedMultiplePricesService = { + typeName: TYPE_NAME, + method: "FeedMultiplePrices", + Request: MsgFeedMultiplePrices, + Response: MsgFeedMultiplePricesResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.SetPriceFeeder + */ +export const MsgSetPriceFeederService = { + typeName: TYPE_NAME, + method: "SetPriceFeeder", + Request: MsgSetPriceFeeder, + Response: MsgSetPriceFeederResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.DeletePriceFeeder + */ +export const MsgDeletePriceFeederService = { + typeName: TYPE_NAME, + method: "DeletePriceFeeder", + Request: MsgDeletePriceFeeder, + Response: MsgDeletePriceFeederResponse, +} as const; + +/** + * proposals + * + * @generated from rpc elys.oracle.Msg.RemoveAssetInfo + */ +export const MsgRemoveAssetInfoService = { + typeName: TYPE_NAME, + method: "RemoveAssetInfo", + Request: MsgRemoveAssetInfo, + Response: MsgRemoveAssetInfoResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.AddPriceFeeders + */ +export const MsgAddPriceFeedersService = { + typeName: TYPE_NAME, + method: "AddPriceFeeders", + Request: MsgAddPriceFeeders, + Response: MsgAddPriceFeedersResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.RemovePriceFeeders + */ +export const MsgRemovePriceFeedersService = { + typeName: TYPE_NAME, + method: "RemovePriceFeeders", + Request: MsgRemovePriceFeeders, + Response: MsgRemovePriceFeedersResponse, +} as const; + +/** + * @generated from rpc elys.oracle.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc elys.oracle.Msg.CreateAssetInfo + */ +export const MsgCreateAssetInfoService = { + typeName: TYPE_NAME, + method: "CreateAssetInfo", + Request: MsgCreateAssetInfo, + Response: MsgCreateAssetInfoResponse, +} as const; + diff --git a/src/protobufs/elys/oracle/tx_pb.ts b/src/protobufs/elys/oracle/tx_pb.ts new file mode 100644 index 00000000..d9633206 --- /dev/null +++ b/src/protobufs/elys/oracle/tx_pb.ts @@ -0,0 +1,746 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/oracle/tx.proto (package elys.oracle, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.oracle.FeedPrice + */ +export class FeedPrice extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: string source = 3; + */ + source = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.FeedPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeedPrice { + return new FeedPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeedPrice { + return new FeedPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeedPrice { + return new FeedPrice().fromJsonString(jsonString, options); + } + + static equals(a: FeedPrice | PlainMessage | undefined, b: FeedPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(FeedPrice, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgFeedPrice + */ +export class MsgFeedPrice extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + /** + * @generated from field: elys.oracle.FeedPrice feed_price = 2; + */ + feedPrice?: FeedPrice; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgFeedPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feed_price", kind: "message", T: FeedPrice }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedPrice { + return new MsgFeedPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedPrice { + return new MsgFeedPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedPrice { + return new MsgFeedPrice().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedPrice | PlainMessage | undefined, b: MsgFeedPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedPrice, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgFeedPriceResponse + */ +export class MsgFeedPriceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgFeedPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedPriceResponse { + return new MsgFeedPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedPriceResponse { + return new MsgFeedPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedPriceResponse { + return new MsgFeedPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedPriceResponse | PlainMessage | undefined, b: MsgFeedPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedPriceResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgSetPriceFeeder + */ +export class MsgSetPriceFeeder extends Message { + /** + * @generated from field: string feeder = 1; + */ + feeder = ""; + + /** + * @generated from field: bool is_active = 2; + */ + isActive = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgSetPriceFeeder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPriceFeeder { + return new MsgSetPriceFeeder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPriceFeeder { + return new MsgSetPriceFeeder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPriceFeeder { + return new MsgSetPriceFeeder().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPriceFeeder | PlainMessage | undefined, b: MsgSetPriceFeeder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPriceFeeder, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgSetPriceFeederResponse + */ +export class MsgSetPriceFeederResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgSetPriceFeederResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPriceFeederResponse { + return new MsgSetPriceFeederResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPriceFeederResponse { + return new MsgSetPriceFeederResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPriceFeederResponse { + return new MsgSetPriceFeederResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPriceFeederResponse | PlainMessage | undefined, b: MsgSetPriceFeederResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPriceFeederResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgDeletePriceFeeder + */ +export class MsgDeletePriceFeeder extends Message { + /** + * @generated from field: string feeder = 1; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgDeletePriceFeeder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeletePriceFeeder { + return new MsgDeletePriceFeeder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeletePriceFeeder { + return new MsgDeletePriceFeeder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeletePriceFeeder { + return new MsgDeletePriceFeeder().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeletePriceFeeder | PlainMessage | undefined, b: MsgDeletePriceFeeder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeletePriceFeeder, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgDeletePriceFeederResponse + */ +export class MsgDeletePriceFeederResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgDeletePriceFeederResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeletePriceFeederResponse { + return new MsgDeletePriceFeederResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeletePriceFeederResponse { + return new MsgDeletePriceFeederResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeletePriceFeederResponse { + return new MsgDeletePriceFeederResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeletePriceFeederResponse | PlainMessage | undefined, b: MsgDeletePriceFeederResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeletePriceFeederResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgFeedMultiplePrices + */ +export class MsgFeedMultiplePrices extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated elys.oracle.FeedPrice feed_prices = 2; + */ + feedPrices: FeedPrice[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgFeedMultiplePrices"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feed_prices", kind: "message", T: FeedPrice, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedMultiplePrices { + return new MsgFeedMultiplePrices().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedMultiplePrices { + return new MsgFeedMultiplePrices().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedMultiplePrices { + return new MsgFeedMultiplePrices().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedMultiplePrices | PlainMessage | undefined, b: MsgFeedMultiplePrices | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedMultiplePrices, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgFeedMultiplePricesResponse + */ +export class MsgFeedMultiplePricesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgFeedMultiplePricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeedMultiplePricesResponse { + return new MsgFeedMultiplePricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeedMultiplePricesResponse { + return new MsgFeedMultiplePricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeedMultiplePricesResponse { + return new MsgFeedMultiplePricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeedMultiplePricesResponse | PlainMessage | undefined, b: MsgFeedMultiplePricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeedMultiplePricesResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgRemoveAssetInfo + */ +export class MsgRemoveAssetInfo extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgRemoveAssetInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAssetInfo { + return new MsgRemoveAssetInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAssetInfo { + return new MsgRemoveAssetInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAssetInfo { + return new MsgRemoveAssetInfo().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAssetInfo | PlainMessage | undefined, b: MsgRemoveAssetInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAssetInfo, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgRemoveAssetInfoResponse + */ +export class MsgRemoveAssetInfoResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgRemoveAssetInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAssetInfoResponse { + return new MsgRemoveAssetInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAssetInfoResponse { + return new MsgRemoveAssetInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAssetInfoResponse { + return new MsgRemoveAssetInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAssetInfoResponse | PlainMessage | undefined, b: MsgRemoveAssetInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAssetInfoResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgAddPriceFeeders + */ +export class MsgAddPriceFeeders extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated string feeders = 2; + */ + feeders: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgAddPriceFeeders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPriceFeeders { + return new MsgAddPriceFeeders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPriceFeeders { + return new MsgAddPriceFeeders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPriceFeeders { + return new MsgAddPriceFeeders().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPriceFeeders | PlainMessage | undefined, b: MsgAddPriceFeeders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPriceFeeders, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgAddPriceFeedersResponse + */ +export class MsgAddPriceFeedersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgAddPriceFeedersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPriceFeedersResponse { + return new MsgAddPriceFeedersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPriceFeedersResponse { + return new MsgAddPriceFeedersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPriceFeedersResponse { + return new MsgAddPriceFeedersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPriceFeedersResponse | PlainMessage | undefined, b: MsgAddPriceFeedersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPriceFeedersResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgRemovePriceFeeders + */ +export class MsgRemovePriceFeeders extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated string feeders = 2; + */ + feeders: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgRemovePriceFeeders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemovePriceFeeders { + return new MsgRemovePriceFeeders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemovePriceFeeders { + return new MsgRemovePriceFeeders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemovePriceFeeders { + return new MsgRemovePriceFeeders().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemovePriceFeeders | PlainMessage | undefined, b: MsgRemovePriceFeeders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemovePriceFeeders, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgRemovePriceFeedersResponse + */ +export class MsgRemovePriceFeedersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgRemovePriceFeedersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemovePriceFeedersResponse { + return new MsgRemovePriceFeedersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemovePriceFeedersResponse { + return new MsgRemovePriceFeedersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemovePriceFeedersResponse { + return new MsgRemovePriceFeedersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemovePriceFeedersResponse | PlainMessage | undefined, b: MsgRemovePriceFeedersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemovePriceFeedersResponse, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.oracle.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * this line is used by starport scaffolding # proto/tx/message + * + * @generated from message elys.oracle.MsgCreateAssetInfo + */ +export class MsgCreateAssetInfo extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string display = 3; + */ + display = ""; + + /** + * @generated from field: string band_ticker = 4; + */ + bandTicker = ""; + + /** + * @generated from field: string elys_ticker = 5; + */ + elysTicker = ""; + + /** + * @generated from field: uint64 decimal = 6; + */ + decimal = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgCreateAssetInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "display", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "band_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "elys_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "decimal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAssetInfo { + return new MsgCreateAssetInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAssetInfo { + return new MsgCreateAssetInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAssetInfo { + return new MsgCreateAssetInfo().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAssetInfo | PlainMessage | undefined, b: MsgCreateAssetInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAssetInfo, a, b); + } +} + +/** + * @generated from message elys.oracle.MsgCreateAssetInfoResponse + */ +export class MsgCreateAssetInfoResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.oracle.MsgCreateAssetInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAssetInfoResponse { + return new MsgCreateAssetInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAssetInfoResponse { + return new MsgCreateAssetInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAssetInfoResponse { + return new MsgCreateAssetInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAssetInfoResponse | PlainMessage | undefined, b: MsgCreateAssetInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAssetInfoResponse, a, b); + } +} + diff --git a/src/protobufs/elys/parameter/genesis_pb.ts b/src/protobufs/elys/parameter/genesis_pb.ts new file mode 100644 index 00000000..1cddea17 --- /dev/null +++ b/src/protobufs/elys/parameter/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/parameter/genesis.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the parameter module's genesis state. + * + * @generated from message elys.parameter.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.parameter.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/parameter/params_pb.ts b/src/protobufs/elys/parameter/params_pb.ts new file mode 100644 index 00000000..d9d56910 --- /dev/null +++ b/src/protobufs/elys/parameter/params_pb.ts @@ -0,0 +1,160 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/parameter/params.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.parameter.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: string min_commission_rate = 1; + */ + minCommissionRate = ""; + + /** + * @generated from field: string max_voting_power = 2; + */ + maxVotingPower = ""; + + /** + * @generated from field: string min_self_delegation = 3; + */ + minSelfDelegation = ""; + + /** + * @generated from field: uint64 total_blocks_per_year = 4; + */ + totalBlocksPerYear = protoInt64.zero; + + /** + * default 1 day = 86400 + * + * @generated from field: uint64 rewards_data_lifetime = 5; + */ + rewardsDataLifetime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_voting_power", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_blocks_per_year", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "rewards_data_lifetime", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.parameter.Params + */ +export class Params extends Message { + /** + * @generated from field: string min_commission_rate = 1; + */ + minCommissionRate = ""; + + /** + * @generated from field: string max_voting_power = 2; + */ + maxVotingPower = ""; + + /** + * @generated from field: string min_self_delegation = 3; + */ + minSelfDelegation = ""; + + /** + * @generated from field: uint64 total_blocks_per_year = 4; + */ + totalBlocksPerYear = protoInt64.zero; + + /** + * default 1 day = 86400 + * + * @generated from field: uint64 rewards_data_lifetime = 5; + */ + rewardsDataLifetime = protoInt64.zero; + + /** + * @generated from field: string taker_fees = 6; + */ + takerFees = ""; + + /** + * @generated from field: string taker_fee_collection_address = 7; + */ + takerFeeCollectionAddress = ""; + + /** + * @generated from field: bool enable_taker_fee_swap = 8; + */ + enableTakerFeeSwap = false; + + /** + * @generated from field: uint64 taker_fee_collection_interval = 9; + */ + takerFeeCollectionInterval = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_voting_power", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_blocks_per_year", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "rewards_data_lifetime", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "taker_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "taker_fee_collection_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "enable_taker_fee_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "taker_fee_collection_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/parameter/query_cosmes.ts b/src/protobufs/elys/parameter/query_cosmes.ts new file mode 100644 index 00000000..5785fd94 --- /dev/null +++ b/src/protobufs/elys/parameter/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/parameter/query.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.parameter.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.parameter.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/elys/parameter/query_pb.ts b/src/protobufs/elys/parameter/query_pb.ts new file mode 100644 index 00000000..ccb7458e --- /dev/null +++ b/src/protobufs/elys/parameter/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/parameter/query.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.parameter.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.parameter.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.parameter.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/parameter/tx_cosmes.ts b/src/protobufs/elys/parameter/tx_cosmes.ts new file mode 100644 index 00000000..60445b1c --- /dev/null +++ b/src/protobufs/elys/parameter/tx_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/parameter/tx.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateMaxVotingPower, MsgUpdateMaxVotingPowerResponse, MsgUpdateMinCommission, MsgUpdateMinCommissionResponse, MsgUpdateMinSelfDelegation, MsgUpdateMinSelfDelegationResponse, MsgUpdateRewardsDataLifetime, MsgUpdateRewardsDataLifetimeResponse, MsgUpdateTakerFees, MsgUpdateTakerFeesResponse, MsgUpdateTotalBlocksPerYear, MsgUpdateTotalBlocksPerYearResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.parameter.Msg"; + +/** + * @generated from rpc elys.parameter.Msg.UpdateMinCommission + */ +export const MsgUpdateMinCommissionService = { + typeName: TYPE_NAME, + method: "UpdateMinCommission", + Request: MsgUpdateMinCommission, + Response: MsgUpdateMinCommissionResponse, +} as const; + +/** + * @generated from rpc elys.parameter.Msg.UpdateMaxVotingPower + */ +export const MsgUpdateMaxVotingPowerService = { + typeName: TYPE_NAME, + method: "UpdateMaxVotingPower", + Request: MsgUpdateMaxVotingPower, + Response: MsgUpdateMaxVotingPowerResponse, +} as const; + +/** + * @generated from rpc elys.parameter.Msg.UpdateMinSelfDelegation + */ +export const MsgUpdateMinSelfDelegationService = { + typeName: TYPE_NAME, + method: "UpdateMinSelfDelegation", + Request: MsgUpdateMinSelfDelegation, + Response: MsgUpdateMinSelfDelegationResponse, +} as const; + +/** + * @generated from rpc elys.parameter.Msg.UpdateTotalBlocksPerYear + */ +export const MsgUpdateTotalBlocksPerYearService = { + typeName: TYPE_NAME, + method: "UpdateTotalBlocksPerYear", + Request: MsgUpdateTotalBlocksPerYear, + Response: MsgUpdateTotalBlocksPerYearResponse, +} as const; + +/** + * @generated from rpc elys.parameter.Msg.UpdateRewardsDataLifetime + */ +export const MsgUpdateRewardsDataLifetimeService = { + typeName: TYPE_NAME, + method: "UpdateRewardsDataLifetime", + Request: MsgUpdateRewardsDataLifetime, + Response: MsgUpdateRewardsDataLifetimeResponse, +} as const; + +/** + * @generated from rpc elys.parameter.Msg.UpdateTakerFees + */ +export const MsgUpdateTakerFeesService = { + typeName: TYPE_NAME, + method: "UpdateTakerFees", + Request: MsgUpdateTakerFees, + Response: MsgUpdateTakerFeesResponse, +} as const; + diff --git a/src/protobufs/elys/parameter/tx_pb.ts b/src/protobufs/elys/parameter/tx_pb.ts new file mode 100644 index 00000000..b05eec16 --- /dev/null +++ b/src/protobufs/elys/parameter/tx_pb.ts @@ -0,0 +1,464 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/parameter/tx.proto (package elys.parameter, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.parameter.MsgUpdateMinCommission + */ +export class MsgUpdateMinCommission extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string min_commission = 2; + */ + minCommission = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMinCommission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMinCommission { + return new MsgUpdateMinCommission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMinCommission { + return new MsgUpdateMinCommission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMinCommission { + return new MsgUpdateMinCommission().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMinCommission | PlainMessage | undefined, b: MsgUpdateMinCommission | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMinCommission, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateMinCommissionResponse + */ +export class MsgUpdateMinCommissionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMinCommissionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMinCommissionResponse { + return new MsgUpdateMinCommissionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMinCommissionResponse { + return new MsgUpdateMinCommissionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMinCommissionResponse { + return new MsgUpdateMinCommissionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMinCommissionResponse | PlainMessage | undefined, b: MsgUpdateMinCommissionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMinCommissionResponse, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateMaxVotingPower + */ +export class MsgUpdateMaxVotingPower extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string max_voting_power = 2; + */ + maxVotingPower = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMaxVotingPower"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_voting_power", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaxVotingPower { + return new MsgUpdateMaxVotingPower().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaxVotingPower { + return new MsgUpdateMaxVotingPower().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaxVotingPower { + return new MsgUpdateMaxVotingPower().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaxVotingPower | PlainMessage | undefined, b: MsgUpdateMaxVotingPower | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaxVotingPower, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateMaxVotingPowerResponse + */ +export class MsgUpdateMaxVotingPowerResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMaxVotingPowerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaxVotingPowerResponse { + return new MsgUpdateMaxVotingPowerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaxVotingPowerResponse { + return new MsgUpdateMaxVotingPowerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaxVotingPowerResponse { + return new MsgUpdateMaxVotingPowerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaxVotingPowerResponse | PlainMessage | undefined, b: MsgUpdateMaxVotingPowerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaxVotingPowerResponse, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateMinSelfDelegation + */ +export class MsgUpdateMinSelfDelegation extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string min_self_delegation = 2; + */ + minSelfDelegation = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMinSelfDelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMinSelfDelegation { + return new MsgUpdateMinSelfDelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMinSelfDelegation { + return new MsgUpdateMinSelfDelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMinSelfDelegation { + return new MsgUpdateMinSelfDelegation().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMinSelfDelegation | PlainMessage | undefined, b: MsgUpdateMinSelfDelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMinSelfDelegation, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateMinSelfDelegationResponse + */ +export class MsgUpdateMinSelfDelegationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateMinSelfDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMinSelfDelegationResponse { + return new MsgUpdateMinSelfDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMinSelfDelegationResponse { + return new MsgUpdateMinSelfDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMinSelfDelegationResponse { + return new MsgUpdateMinSelfDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMinSelfDelegationResponse | PlainMessage | undefined, b: MsgUpdateMinSelfDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMinSelfDelegationResponse, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateTotalBlocksPerYear + */ +export class MsgUpdateTotalBlocksPerYear extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 total_blocks_per_year = 2; + */ + totalBlocksPerYear = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateTotalBlocksPerYear"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_blocks_per_year", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTotalBlocksPerYear { + return new MsgUpdateTotalBlocksPerYear().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTotalBlocksPerYear { + return new MsgUpdateTotalBlocksPerYear().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTotalBlocksPerYear { + return new MsgUpdateTotalBlocksPerYear().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTotalBlocksPerYear | PlainMessage | undefined, b: MsgUpdateTotalBlocksPerYear | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTotalBlocksPerYear, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateTotalBlocksPerYearResponse + */ +export class MsgUpdateTotalBlocksPerYearResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateTotalBlocksPerYearResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTotalBlocksPerYearResponse { + return new MsgUpdateTotalBlocksPerYearResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTotalBlocksPerYearResponse { + return new MsgUpdateTotalBlocksPerYearResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTotalBlocksPerYearResponse { + return new MsgUpdateTotalBlocksPerYearResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTotalBlocksPerYearResponse | PlainMessage | undefined, b: MsgUpdateTotalBlocksPerYearResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTotalBlocksPerYearResponse, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateRewardsDataLifetime + */ +export class MsgUpdateRewardsDataLifetime extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 rewards_data_lifetime = 2; + */ + rewardsDataLifetime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateRewardsDataLifetime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "rewards_data_lifetime", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRewardsDataLifetime { + return new MsgUpdateRewardsDataLifetime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRewardsDataLifetime { + return new MsgUpdateRewardsDataLifetime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRewardsDataLifetime { + return new MsgUpdateRewardsDataLifetime().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRewardsDataLifetime | PlainMessage | undefined, b: MsgUpdateRewardsDataLifetime | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRewardsDataLifetime, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateRewardsDataLifetimeResponse + */ +export class MsgUpdateRewardsDataLifetimeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateRewardsDataLifetimeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRewardsDataLifetimeResponse { + return new MsgUpdateRewardsDataLifetimeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRewardsDataLifetimeResponse { + return new MsgUpdateRewardsDataLifetimeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRewardsDataLifetimeResponse { + return new MsgUpdateRewardsDataLifetimeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRewardsDataLifetimeResponse | PlainMessage | undefined, b: MsgUpdateRewardsDataLifetimeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRewardsDataLifetimeResponse, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateTakerFees + */ +export class MsgUpdateTakerFees extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string taker_fees = 2; + */ + takerFees = ""; + + /** + * @generated from field: bool enable_taker_fee_swap = 3; + */ + enableTakerFeeSwap = false; + + /** + * @generated from field: uint64 taker_fee_collection_interval = 4; + */ + takerFeeCollectionInterval = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateTakerFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "enable_taker_fee_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "taker_fee_collection_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTakerFees { + return new MsgUpdateTakerFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTakerFees { + return new MsgUpdateTakerFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTakerFees { + return new MsgUpdateTakerFees().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTakerFees | PlainMessage | undefined, b: MsgUpdateTakerFees | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTakerFees, a, b); + } +} + +/** + * @generated from message elys.parameter.MsgUpdateTakerFeesResponse + */ +export class MsgUpdateTakerFeesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.parameter.MsgUpdateTakerFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTakerFeesResponse { + return new MsgUpdateTakerFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTakerFeesResponse { + return new MsgUpdateTakerFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTakerFeesResponse { + return new MsgUpdateTakerFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTakerFeesResponse | PlainMessage | undefined, b: MsgUpdateTakerFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTakerFeesResponse, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/genesis_pb.ts b/src/protobufs/elys/perpetual/genesis_pb.ts new file mode 100644 index 00000000..b1fcaabf --- /dev/null +++ b/src/protobufs/elys/perpetual/genesis_pb.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/genesis.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PerpetualCounter, Pool } from "./pool_pb.js"; +import { MTP } from "./types_pb.js"; + +/** + * GenesisState defines the perpetual module's genesis state. + * + * @generated from message elys.perpetual.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.perpetual.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.perpetual.Pool pool_list = 2; + */ + poolList: Pool[] = []; + + /** + * @generated from field: repeated elys.perpetual.MTP mtp_list = 3; + */ + mtpList: MTP[] = []; + + /** + * @generated from field: repeated string address_whitelist = 4; + */ + addressWhitelist: string[] = []; + + /** + * @generated from field: repeated elys.perpetual.PerpetualCounter perpetual_counter = 5; + */ + perpetualCounter: PerpetualCounter[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_list", kind: "message", T: Pool, repeated: true }, + { no: 3, name: "mtp_list", kind: "message", T: MTP, repeated: true }, + { no: 4, name: "address_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "perpetual_counter", kind: "message", T: PerpetualCounter, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/params_pb.ts b/src/protobufs/elys/perpetual/params_pb.ts new file mode 100644 index 00000000..51eb4d24 --- /dev/null +++ b/src/protobufs/elys/perpetual/params_pb.ts @@ -0,0 +1,223 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/params.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.perpetual.Params + */ +export class Params extends Message { + /** + * @generated from field: string leverage_max = 1; + */ + leverageMax = ""; + + /** + * @generated from field: string borrow_interest_rate_max = 2; + */ + borrowInterestRateMax = ""; + + /** + * @generated from field: string borrow_interest_rate_min = 3; + */ + borrowInterestRateMin = ""; + + /** + * @generated from field: string borrow_interest_rate_increase = 4; + */ + borrowInterestRateIncrease = ""; + + /** + * @generated from field: string borrow_interest_rate_decrease = 5; + */ + borrowInterestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 6; + */ + healthGainFactor = ""; + + /** + * @generated from field: int64 max_open_positions = 7; + */ + maxOpenPositions = protoInt64.zero; + + /** + * @generated from field: string pool_max_liabilities_threshold = 8; + */ + poolMaxLiabilitiesThreshold = ""; + + /** + * @generated from field: string borrow_interest_payment_fund_percentage = 9; + */ + borrowInterestPaymentFundPercentage = ""; + + /** + * @generated from field: string safety_factor = 10; + */ + safetyFactor = ""; + + /** + * @generated from field: bool borrow_interest_payment_enabled = 11; + */ + borrowInterestPaymentEnabled = false; + + /** + * @generated from field: bool whitelisting_enabled = 12; + */ + whitelistingEnabled = false; + + /** + * @generated from field: string perpetual_swap_fee = 13; + */ + perpetualSwapFee = ""; + + /** + * @generated from field: int64 max_limit_order = 14; + */ + maxLimitOrder = protoInt64.zero; + + /** + * @generated from field: string fixed_funding_rate = 15; + */ + fixedFundingRate = ""; + + /** + * minimum value for take_profit_price/current price for long, should be + * greater than 1 + * + * @generated from field: string minimum_long_take_profit_price_ratio = 16; + */ + minimumLongTakeProfitPriceRatio = ""; + + /** + * max value for take_profit_price/current price for long, should be greater + * than 1 + * + * @generated from field: string maximum_long_take_profit_price_ratio = 17; + */ + maximumLongTakeProfitPriceRatio = ""; + + /** + * max value for take_profit_price/current price for short, should be less + * than 1 + * + * No need for minimumShortTakeProfitPriceRatio as it will be 0, checked in + * validate message + * + * @generated from field: string maximum_short_take_profit_price_ratio = 18; + */ + maximumShortTakeProfitPriceRatio = ""; + + /** + * We create this and send this value to estimate swap ONLY when opening and + * closing the position Ideally this value is set to half. When trader open a + * position if they receive a weight balance bonus (which is half of weight + * breaking fee, ideally) then while closing position they are charged weight + * breaking fee. So we just directly apply half weight breaking fee on + * perpetual swaps Question: does each need to have separate value of this + * because PoolParams.WeightRecoveryFeePortion can be different Also, if + * trader has no bonus only fee, then overall we are only applying the fee + * half time + * + * @generated from field: string weight_breaking_fee_factor = 19; + */ + weightBreakingFeeFactor = ""; + + /** + * @generated from field: repeated uint64 enabled_pools = 20; + */ + enabledPools: bigint[] = []; + + /** + * @generated from field: string minimum_notional_value = 21; + */ + minimumNotionalValue = ""; + + /** + * @generated from field: string long_minimum_liability_amount = 22; + */ + longMinimumLiabilityAmount = ""; + + /** + * @generated from field: string exit_buffer = 23; + */ + exitBuffer = ""; + + /** + * @generated from field: string taker_fee = 24; + */ + takerFee = ""; + + /** + * @generated from field: string minimum_funding_rate = 25; + */ + minimumFundingRate = ""; + + /** + * @generated from field: string second_liquidation_trigger_ratio = 26; + */ + secondLiquidationTriggerRatio = ""; + + /** + * @generated from field: string first_liquidation_closing_ratio = 27; + */ + firstLiquidationClosingRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrow_interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "borrow_interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "borrow_interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "borrow_interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "max_open_positions", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "pool_max_liabilities_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "borrow_interest_payment_fund_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "borrow_interest_payment_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "whitelisting_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "perpetual_swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "max_limit_order", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 15, name: "fixed_funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "minimum_long_take_profit_price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "maximum_long_take_profit_price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "maximum_short_take_profit_price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "weight_breaking_fee_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "enabled_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 21, name: "minimum_notional_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "long_minimum_liability_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 23, name: "exit_buffer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 24, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 25, name: "minimum_funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 26, name: "second_liquidation_trigger_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 27, name: "first_liquidation_closing_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/pool_pb.ts b/src/protobufs/elys/perpetual/pool_pb.ts new file mode 100644 index 00000000..7c1ec75d --- /dev/null +++ b/src/protobufs/elys/perpetual/pool_pb.ts @@ -0,0 +1,212 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/pool.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message elys.perpetual.PoolAsset + */ +export class PoolAsset extends Message { + /** + * @generated from field: string asset_denom = 1; + */ + assetDenom = ""; + + /** + * @generated from field: string liabilities = 2; + */ + liabilities = ""; + + /** + * @generated from field: string custody = 3; + */ + custody = ""; + + /** + * @generated from field: string collateral = 4; + */ + collateral = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PoolAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "liabilities", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "custody", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolAsset { + return new PoolAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolAsset { + return new PoolAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolAsset { + return new PoolAsset().fromJsonString(jsonString, options); + } + + static equals(a: PoolAsset | PlainMessage | undefined, b: PoolAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolAsset, a, b); + } +} + +/** + * @generated from message elys.perpetual.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string base_asset_liabilities_ratio = 2; + */ + baseAssetLiabilitiesRatio = ""; + + /** + * @generated from field: string quote_asset_liabilities_ratio = 3; + */ + quoteAssetLiabilitiesRatio = ""; + + /** + * @generated from field: string borrow_interest_rate = 4; + */ + borrowInterestRate = ""; + + /** + * @generated from field: repeated elys.perpetual.PoolAsset pool_assets_long = 5; + */ + poolAssetsLong: PoolAsset[] = []; + + /** + * @generated from field: repeated elys.perpetual.PoolAsset pool_assets_short = 6; + */ + poolAssetsShort: PoolAsset[] = []; + + /** + * @generated from field: int64 last_height_borrow_interest_rate_computed = 7; + */ + lastHeightBorrowInterestRateComputed = protoInt64.zero; + + /** + * funding rate, if positive longs pay shorts, if negative shorts pay longs + * + * @generated from field: string funding_rate = 8; + */ + fundingRate = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin fees_collected = 9; + */ + feesCollected: Coin[] = []; + + /** + * @generated from field: string leverage_max = 10; + */ + leverageMax = ""; + + /** + * @generated from field: string mtp_safety_factor = 11; + */ + mtpSafetyFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "base_asset_liabilities_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_asset_liabilities_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pool_assets_long", kind: "message", T: PoolAsset, repeated: true }, + { no: 6, name: "pool_assets_short", kind: "message", T: PoolAsset, repeated: true }, + { no: 7, name: "last_height_borrow_interest_rate_computed", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "fees_collected", kind: "message", T: Coin, repeated: true }, + { no: 10, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "mtp_safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message elys.perpetual.PerpetualCounter + */ +export class PerpetualCounter extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: uint64 counter = 2; + */ + counter = protoInt64.zero; + + /** + * @generated from field: uint64 total_open = 3; + */ + totalOpen = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PerpetualCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "total_open", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualCounter { + return new PerpetualCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualCounter { + return new PerpetualCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualCounter { + return new PerpetualCounter().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualCounter | PlainMessage | undefined, b: PerpetualCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualCounter, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/query_cosmes.ts b/src/protobufs/elys/perpetual/query_cosmes.ts new file mode 100644 index 00000000..8c4b8d83 --- /dev/null +++ b/src/protobufs/elys/perpetual/query_cosmes.ts @@ -0,0 +1,161 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/perpetual/query.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { IsWhitelistedRequest, IsWhitelistedResponse, MTPRequest, MTPResponse, ParamsRequest, ParamsResponse, PerpetualCounterRequest, PerpetualCounterResponse, PositionsByPoolRequest, PositionsByPoolResponse, PositionsForAddressRequest, PositionsForAddressResponse, PositionsRequest, PositionsResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryCloseEstimationRequest, QueryCloseEstimationResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryOpenEstimationByFinalRequest, QueryOpenEstimationByFinalResponse, QueryOpenEstimationRequest, QueryOpenEstimationResponse, WhitelistRequest, WhitelistResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.perpetual.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.perpetual.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: ParamsRequest, + Response: ParamsResponse, +} as const; + +/** + * Queries a list of positions. + * + * @generated from rpc elys.perpetual.Query.GetPositions + */ +export const QueryGetPositionsService = { + typeName: TYPE_NAME, + method: "GetPositions", + Request: PositionsRequest, + Response: PositionsResponse, +} as const; + +/** + * Queries a list of mtp positions by pool. + * + * @generated from rpc elys.perpetual.Query.GetPositionsByPool + */ +export const QueryGetPositionsByPoolService = { + typeName: TYPE_NAME, + method: "GetPositionsByPool", + Request: PositionsByPoolRequest, + Response: PositionsByPoolResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Query.PerpetualCounter + */ +export const QueryPerpetualCounterService = { + typeName: TYPE_NAME, + method: "PerpetualCounter", + Request: PerpetualCounterRequest, + Response: PerpetualCounterResponse, +} as const; + +/** + * Queries a list of mtp positions for a given address. + * + * @generated from rpc elys.perpetual.Query.GetPositionsForAddress + */ +export const QueryGetPositionsForAddressService = { + typeName: TYPE_NAME, + method: "GetPositionsForAddress", + Request: PositionsForAddressRequest, + Response: PositionsForAddressResponse, +} as const; + +/** + * Queries a list of whitelisted addresses. + * + * @generated from rpc elys.perpetual.Query.GetWhitelist + */ +export const QueryGetWhitelistService = { + typeName: TYPE_NAME, + method: "GetWhitelist", + Request: WhitelistRequest, + Response: WhitelistResponse, +} as const; + +/** + * Is an address whitelisted? + * + * @generated from rpc elys.perpetual.Query.IsWhitelisted + */ +export const QueryIsWhitelistedService = { + typeName: TYPE_NAME, + method: "IsWhitelisted", + Request: IsWhitelistedRequest, + Response: IsWhitelistedResponse, +} as const; + +/** + * Queries a single pool given its index. + * + * @generated from rpc elys.perpetual.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * Queries a list of all pools. + * + * @generated from rpc elys.perpetual.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * Queries a single mtp position given its address and id. + * + * @generated from rpc elys.perpetual.Query.MTP + */ +export const QueryMTPService = { + typeName: TYPE_NAME, + method: "MTP", + Request: MTPRequest, + Response: MTPResponse, +} as const; + +/** + * Queries an estimation of a new open position details. + * + * @generated from rpc elys.perpetual.Query.OpenEstimation + */ +export const QueryOpenEstimationService = { + typeName: TYPE_NAME, + method: "OpenEstimation", + Request: QueryOpenEstimationRequest, + Response: QueryOpenEstimationResponse, +} as const; + +/** + * Queries a list of CloseEstimation items. + * + * @generated from rpc elys.perpetual.Query.CloseEstimation + */ +export const QueryCloseEstimationService = { + typeName: TYPE_NAME, + method: "CloseEstimation", + Request: QueryCloseEstimationRequest, + Response: QueryCloseEstimationResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Query.OpenEstimationByFinal + */ +export const QueryOpenEstimationByFinalService = { + typeName: TYPE_NAME, + method: "OpenEstimationByFinal", + Request: QueryOpenEstimationByFinalRequest, + Response: QueryOpenEstimationByFinalResponse, +} as const; + diff --git a/src/protobufs/elys/perpetual/query_pb.ts b/src/protobufs/elys/perpetual/query_pb.ts new file mode 100644 index 00000000..ef09a70b --- /dev/null +++ b/src/protobufs/elys/perpetual/query_pb.ts @@ -0,0 +1,1703 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/query.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { MTP, Position } from "./types_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { PerpetualCounter, PoolAsset } from "./pool_pb.js"; + +/** + * @generated from message elys.perpetual.Fees + */ +export class Fees extends Message { + /** + * @generated from field: string total_fees_base_currency = 1; + */ + totalFeesBaseCurrency = ""; + + /** + * @generated from field: string borrow_interest_fees_liability_asset = 2; + */ + borrowInterestFeesLiabilityAsset = ""; + + /** + * @generated from field: string borrow_interest_fees_base_currency = 3; + */ + borrowInterestFeesBaseCurrency = ""; + + /** + * @generated from field: string funding_fees_liquidity_asset = 4; + */ + fundingFeesLiquidityAsset = ""; + + /** + * @generated from field: string funding_fees_base_currency = 5; + */ + fundingFeesBaseCurrency = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.Fees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_fees_base_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrow_interest_fees_liability_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "borrow_interest_fees_base_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "funding_fees_liquidity_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "funding_fees_base_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Fees { + return new Fees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Fees { + return new Fees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Fees { + return new Fees().fromJsonString(jsonString, options); + } + + static equals(a: Fees | PlainMessage | undefined, b: Fees | PlainMessage | undefined): boolean { + return proto3.util.equals(Fees, a, b); + } +} + +/** + * @generated from message elys.perpetual.MtpAndPrice + */ +export class MtpAndPrice extends Message { + /** + * @generated from field: elys.perpetual.MTP mtp = 1; + */ + mtp?: MTP; + + /** + * @generated from field: string trading_asset_price = 2; + */ + tradingAssetPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin pnl = 3; + */ + pnl?: Coin; + + /** + * @generated from field: string effective_leverage = 4; + */ + effectiveLeverage = ""; + + /** + * @generated from field: string liquidation_price = 5; + */ + liquidationPrice = ""; + + /** + * @generated from field: elys.perpetual.Fees fees = 6; + */ + fees?: Fees; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MtpAndPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mtp", kind: "message", T: MTP }, + { no: 2, name: "trading_asset_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pnl", kind: "message", T: Coin }, + { no: 4, name: "effective_leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "fees", kind: "message", T: Fees }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MtpAndPrice { + return new MtpAndPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MtpAndPrice { + return new MtpAndPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MtpAndPrice { + return new MtpAndPrice().fromJsonString(jsonString, options); + } + + static equals(a: MtpAndPrice | PlainMessage | undefined, b: MtpAndPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(MtpAndPrice, a, b); + } +} + +/** + * ParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.perpetual.ParamsRequest + */ +export class ParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.ParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { + return new ParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsRequest, a, b); + } +} + +/** + * ParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.perpetual.ParamsResponse + */ +export class ParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.perpetual.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.ParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { + return new ParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsRequest + */ +export class PositionsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsRequest { + return new PositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsRequest { + return new PositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsRequest { + return new PositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsRequest | PlainMessage | undefined, b: PositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsResponse + */ +export class PositionsResponse extends Message { + /** + * @generated from field: repeated elys.perpetual.MtpAndPrice mtps = 1; + */ + mtps: MtpAndPrice[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mtps", kind: "message", T: MtpAndPrice, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsResponse { + return new PositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsResponse { + return new PositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsResponse { + return new PositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsResponse | PlainMessage | undefined, b: PositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsByPoolRequest + */ +export class PositionsByPoolRequest extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsByPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsByPoolRequest { + return new PositionsByPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsByPoolRequest | PlainMessage | undefined, b: PositionsByPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsByPoolRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsByPoolResponse + */ +export class PositionsByPoolResponse extends Message { + /** + * @generated from field: repeated elys.perpetual.MtpAndPrice mtps = 1; + */ + mtps: MtpAndPrice[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsByPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mtps", kind: "message", T: MtpAndPrice, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsByPoolResponse { + return new PositionsByPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsByPoolResponse | PlainMessage | undefined, b: PositionsByPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsByPoolResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PerpetualCounterRequest + */ +export class PerpetualCounterRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PerpetualCounterRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualCounterRequest { + return new PerpetualCounterRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualCounterRequest { + return new PerpetualCounterRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualCounterRequest { + return new PerpetualCounterRequest().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualCounterRequest | PlainMessage | undefined, b: PerpetualCounterRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualCounterRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.PerpetualCounterResponse + */ +export class PerpetualCounterResponse extends Message { + /** + * @generated from field: elys.perpetual.PerpetualCounter result = 1; + */ + result?: PerpetualCounter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PerpetualCounterResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: PerpetualCounter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualCounterResponse { + return new PerpetualCounterResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualCounterResponse { + return new PerpetualCounterResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualCounterResponse { + return new PerpetualCounterResponse().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualCounterResponse | PlainMessage | undefined, b: PerpetualCounterResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualCounterResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsForAddressRequest + */ +export class PositionsForAddressRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsForAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsForAddressRequest { + return new PositionsForAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionsForAddressRequest | PlainMessage | undefined, b: PositionsForAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsForAddressRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionsForAddressResponse + */ +export class PositionsForAddressResponse extends Message { + /** + * @generated from field: repeated elys.perpetual.MtpAndPrice mtps = 1; + */ + mtps: MtpAndPrice[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionsForAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mtps", kind: "message", T: MtpAndPrice, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsForAddressResponse { + return new PositionsForAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: PositionsForAddressResponse | PlainMessage | undefined, b: PositionsForAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsForAddressResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.WhitelistRequest + */ +export class WhitelistRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.WhitelistRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistRequest { + return new WhitelistRequest().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistRequest | PlainMessage | undefined, b: WhitelistRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.WhitelistResponse + */ +export class WhitelistResponse extends Message { + /** + * @generated from field: repeated string whitelist = 1; + */ + whitelist: string[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.WhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistResponse { + return new WhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistResponse | PlainMessage | undefined, b: WhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.IsWhitelistedRequest + */ +export class IsWhitelistedRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.IsWhitelistedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IsWhitelistedRequest { + return new IsWhitelistedRequest().fromJsonString(jsonString, options); + } + + static equals(a: IsWhitelistedRequest | PlainMessage | undefined, b: IsWhitelistedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(IsWhitelistedRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.IsWhitelistedResponse + */ +export class IsWhitelistedResponse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: bool is_whitelisted = 2; + */ + isWhitelisted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.IsWhitelistedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_whitelisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IsWhitelistedResponse { + return new IsWhitelistedResponse().fromJsonString(jsonString, options); + } + + static equals(a: IsWhitelistedResponse | PlainMessage | undefined, b: IsWhitelistedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(IsWhitelistedResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: uint64 index = 1; + */ + index = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: elys.perpetual.PoolResponse pool = 1; + */ + pool?: PoolResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: PoolResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated elys.perpetual.PoolResponse pool = 1; + */ + pool: PoolResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: PoolResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MTPRequest + */ +export class MTPRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MTPRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MTPRequest { + return new MTPRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MTPRequest { + return new MTPRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MTPRequest { + return new MTPRequest().fromJsonString(jsonString, options); + } + + static equals(a: MTPRequest | PlainMessage | undefined, b: MTPRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(MTPRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.MTPResponse + */ +export class MTPResponse extends Message { + /** + * @generated from field: elys.perpetual.MtpAndPrice mtp = 1; + */ + mtp?: MtpAndPrice; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MTPResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mtp", kind: "message", T: MtpAndPrice }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MTPResponse { + return new MTPResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MTPResponse { + return new MTPResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MTPResponse { + return new MTPResponse().fromJsonString(jsonString, options); + } + + static equals(a: MTPResponse | PlainMessage | undefined, b: MTPResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MTPResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryOpenEstimationRequest + */ +export class QueryOpenEstimationRequest extends Message { + /** + * @generated from field: elys.perpetual.Position position = 1; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: string leverage = 2; + */ + leverage = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 3; + */ + collateral?: Coin; + + /** + * @generated from field: string address = 4; + */ + address = ""; + + /** + * @generated from field: string take_profit_price = 5; + */ + takeProfitPrice = ""; + + /** + * @generated from field: uint64 poolId = 6; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string limit_price = 7; + */ + limitPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryOpenEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 2, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral", kind: "message", T: Coin }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "poolId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstimationRequest { + return new QueryOpenEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstimationRequest { + return new QueryOpenEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstimationRequest { + return new QueryOpenEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstimationRequest | PlainMessage | undefined, b: QueryOpenEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryOpenEstimationResponse + */ +export class QueryOpenEstimationResponse extends Message { + /** + * @generated from field: elys.perpetual.Position position = 1; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: string effective_leverage = 2; + */ + effectiveLeverage = ""; + + /** + * @generated from field: string trading_asset = 3; + */ + tradingAsset = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 4; + */ + collateral?: Coin; + + /** + * @generated from field: string hourly_interest_rate = 5; + */ + hourlyInterestRate = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin position_size = 6; + */ + positionSize?: Coin; + + /** + * @generated from field: string open_price = 7; + */ + openPrice = ""; + + /** + * @generated from field: string take_profit_price = 8; + */ + takeProfitPrice = ""; + + /** + * @generated from field: string liquidation_price = 9; + */ + liquidationPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin estimated_pnl = 10; + */ + estimatedPnl?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin available_liquidity = 11; + */ + availableLiquidity?: Coin; + + /** + * @generated from field: string slippage = 12; + */ + slippage = ""; + + /** + * @generated from field: string borrow_interest_rate = 13; + */ + borrowInterestRate = ""; + + /** + * @generated from field: string funding_rate = 14; + */ + fundingRate = ""; + + /** + * @generated from field: string price_impact = 15; + */ + priceImpact = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin custody = 16; + */ + custody?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin liabilities = 17; + */ + liabilities?: Coin; + + /** + * @generated from field: string limit_price = 18; + */ + limitPrice = ""; + + /** + * @generated from field: string weight_breaking_fee = 19; + */ + weightBreakingFee = ""; + + /** + * @generated from field: string swap_fees = 20; + */ + swapFees = ""; + + /** + * @generated from field: string taker_fees = 21; + */ + takerFees = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryOpenEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 2, name: "effective_leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "trading_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "message", T: Coin }, + { no: 5, name: "hourly_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "position_size", kind: "message", T: Coin }, + { no: 7, name: "open_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "estimated_pnl", kind: "message", T: Coin }, + { no: 11, name: "available_liquidity", kind: "message", T: Coin }, + { no: 12, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "custody", kind: "message", T: Coin }, + { no: 17, name: "liabilities", kind: "message", T: Coin }, + { no: 18, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "weight_breaking_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "swap_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "taker_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstimationResponse { + return new QueryOpenEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstimationResponse { + return new QueryOpenEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstimationResponse { + return new QueryOpenEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstimationResponse | PlainMessage | undefined, b: QueryOpenEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PoolResponse + */ +export class PoolResponse extends Message { + /** + * @generated from field: uint64 amm_pool_id = 1; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string base_asset_liabilities_ratio = 2; + */ + baseAssetLiabilitiesRatio = ""; + + /** + * @generated from field: string quote_asset_liabilities_ratio = 3; + */ + quoteAssetLiabilitiesRatio = ""; + + /** + * @generated from field: string borrow_interest_rate = 4; + */ + borrowInterestRate = ""; + + /** + * @generated from field: repeated elys.perpetual.PoolAsset pool_assets_long = 5; + */ + poolAssetsLong: PoolAsset[] = []; + + /** + * @generated from field: repeated elys.perpetual.PoolAsset pool_assets_short = 6; + */ + poolAssetsShort: PoolAsset[] = []; + + /** + * @generated from field: int64 last_height_borrow_interest_rate_computed = 7; + */ + lastHeightBorrowInterestRateComputed = protoInt64.zero; + + /** + * funding rate, if positive longs pay shorts, if negative shorts pay longs + * + * @generated from field: string funding_rate = 8; + */ + fundingRate = ""; + + /** + * @generated from field: string net_open_interest = 9; + */ + netOpenInterest = ""; + + /** + * Rate at which long pays/receive from short + * if negative longs pay, if positive long receives + * + * @generated from field: string long_rate = 10; + */ + longRate = ""; + + /** + * @generated from field: string short_rate = 11; + */ + shortRate = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin total_liabilities = 12; + */ + totalLiabilities?: Coin; + + /** + * @generated from field: string total_long_open_interest = 13; + */ + totalLongOpenInterest = ""; + + /** + * @generated from field: string total_short_open_interest = 14; + */ + totalShortOpenInterest = ""; + + /** + * @generated from field: string leverage_max = 15; + */ + leverageMax = ""; + + /** + * @generated from field: string mtp_safety_factor = 16; + */ + mtpSafetyFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "base_asset_liabilities_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_asset_liabilities_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pool_assets_long", kind: "message", T: PoolAsset, repeated: true }, + { no: 6, name: "pool_assets_short", kind: "message", T: PoolAsset, repeated: true }, + { no: 7, name: "last_height_borrow_interest_rate_computed", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "net_open_interest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "long_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "short_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "total_liabilities", kind: "message", T: Coin }, + { no: 13, name: "total_long_open_interest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "total_short_open_interest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "mtp_safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolResponse { + return new PoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolResponse { + return new PoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolResponse { + return new PoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: PoolResponse | PlainMessage | undefined, b: PoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryCloseEstimationRequest + */ +export class QueryCloseEstimationRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 position_id = 2; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: string close_amount = 3; + */ + closeAmount = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryCloseEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "close_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCloseEstimationRequest { + return new QueryCloseEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCloseEstimationRequest { + return new QueryCloseEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCloseEstimationRequest { + return new QueryCloseEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCloseEstimationRequest | PlainMessage | undefined, b: QueryCloseEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCloseEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryCloseEstimationResponse + */ +export class QueryCloseEstimationResponse extends Message { + /** + * @generated from field: elys.perpetual.Position position = 1; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: cosmos.base.v1beta1.Coin position_size = 2; + */ + positionSize?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin liabilities = 3; + */ + liabilities?: Coin; + + /** + * @generated from field: string price_impact = 4; + */ + priceImpact = ""; + + /** + * @generated from field: string liquidation_price = 5; + */ + liquidationPrice = ""; + + /** + * @generated from field: string max_close_amount = 6; + */ + maxCloseAmount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin borrow_interest_unpaid_liability = 7; + */ + borrowInterestUnpaidLiability?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin returning_amount = 8; + */ + returningAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin paying_liabilities = 9; + */ + payingLiabilities?: Coin; + + /** + * @generated from field: string closing_price = 10; + */ + closingPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin custody = 11; + */ + custody?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 12; + */ + collateral?: Coin; + + /** + * @generated from field: string weight_breaking_fee = 13; + */ + weightBreakingFee = ""; + + /** + * @generated from field: string slippage = 14; + */ + slippage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryCloseEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 2, name: "position_size", kind: "message", T: Coin }, + { no: 3, name: "liabilities", kind: "message", T: Coin }, + { no: 4, name: "price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "max_close_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "borrow_interest_unpaid_liability", kind: "message", T: Coin }, + { no: 8, name: "returning_amount", kind: "message", T: Coin }, + { no: 9, name: "paying_liabilities", kind: "message", T: Coin }, + { no: 10, name: "closing_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "custody", kind: "message", T: Coin }, + { no: 12, name: "collateral", kind: "message", T: Coin }, + { no: 13, name: "weight_breaking_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCloseEstimationResponse { + return new QueryCloseEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCloseEstimationResponse { + return new QueryCloseEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCloseEstimationResponse { + return new QueryCloseEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCloseEstimationResponse | PlainMessage | undefined, b: QueryCloseEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCloseEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryOpenEstimationByFinalRequest + */ +export class QueryOpenEstimationByFinalRequest extends Message { + /** + * @generated from field: elys.perpetual.Position position = 1; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: string leverage = 2; + */ + leverage = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin final_amount = 3; + */ + finalAmount?: Coin; + + /** + * @generated from field: string address = 4; + */ + address = ""; + + /** + * @generated from field: string take_profit_price = 5; + */ + takeProfitPrice = ""; + + /** + * @generated from field: uint64 poolId = 6; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string collateral_denom = 7; + */ + collateralDenom = ""; + + /** + * @generated from field: string limit_price = 8; + */ + limitPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryOpenEstimationByFinalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 2, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "final_amount", kind: "message", T: Coin }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "poolId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "collateral_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstimationByFinalRequest { + return new QueryOpenEstimationByFinalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstimationByFinalRequest { + return new QueryOpenEstimationByFinalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstimationByFinalRequest { + return new QueryOpenEstimationByFinalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstimationByFinalRequest | PlainMessage | undefined, b: QueryOpenEstimationByFinalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstimationByFinalRequest, a, b); + } +} + +/** + * @generated from message elys.perpetual.QueryOpenEstimationByFinalResponse + */ +export class QueryOpenEstimationByFinalResponse extends Message { + /** + * @generated from field: elys.perpetual.Position position = 1; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: string effective_leverage = 2; + */ + effectiveLeverage = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 3; + */ + collateral?: Coin; + + /** + * @generated from field: string hourly_interest_rate = 4; + */ + hourlyInterestRate = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin position_size = 5; + */ + positionSize?: Coin; + + /** + * @generated from field: string open_price = 6; + */ + openPrice = ""; + + /** + * @generated from field: string take_profit_price = 7; + */ + takeProfitPrice = ""; + + /** + * @generated from field: string liquidation_price = 8; + */ + liquidationPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin estimated_pnl = 9; + */ + estimatedPnl?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin available_liquidity = 10; + */ + availableLiquidity?: Coin; + + /** + * @generated from field: string slippage = 11; + */ + slippage = ""; + + /** + * @generated from field: string borrow_interest_rate = 12; + */ + borrowInterestRate = ""; + + /** + * @generated from field: string funding_rate = 13; + */ + fundingRate = ""; + + /** + * @generated from field: string price_impact = 14; + */ + priceImpact = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin custody = 15; + */ + custody?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin liabilities = 16; + */ + liabilities?: Coin; + + /** + * @generated from field: string limit_price = 17; + */ + limitPrice = ""; + + /** + * @generated from field: string weight_breaking_fee = 18; + */ + weightBreakingFee = ""; + + /** + * @generated from field: string swap_fees = 19; + */ + swapFees = ""; + + /** + * @generated from field: string taker_fees = 20; + */ + takerFees = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.QueryOpenEstimationByFinalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 2, name: "effective_leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral", kind: "message", T: Coin }, + { no: 4, name: "hourly_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "position_size", kind: "message", T: Coin }, + { no: 6, name: "open_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "estimated_pnl", kind: "message", T: Coin }, + { no: 10, name: "available_liquidity", kind: "message", T: Coin }, + { no: 11, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "custody", kind: "message", T: Coin }, + { no: 16, name: "liabilities", kind: "message", T: Coin }, + { no: 17, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "weight_breaking_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "swap_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "taker_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenEstimationByFinalResponse { + return new QueryOpenEstimationByFinalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenEstimationByFinalResponse { + return new QueryOpenEstimationByFinalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenEstimationByFinalResponse { + return new QueryOpenEstimationByFinalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenEstimationByFinalResponse | PlainMessage | undefined, b: QueryOpenEstimationByFinalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenEstimationByFinalResponse, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/tx_cosmes.ts b/src/protobufs/elys/perpetual/tx_cosmes.ts new file mode 100644 index 00000000..034d59df --- /dev/null +++ b/src/protobufs/elys/perpetual/tx_cosmes.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/perpetual/tx.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddCollateral, MsgAddCollateralResponse, MsgClose, MsgClosePositions, MsgClosePositionsResponse, MsgCloseResponse, MsgDewhitelist, MsgDewhitelistResponse, MsgOpen, MsgOpenResponse, MsgUpdateEnabledPools, MsgUpdateEnabledPoolsResponse, MsgUpdateMaxLeverageForPool, MsgUpdateMaxLeverageForPoolResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateStopLoss, MsgUpdateStopLossResponse, MsgUpdateTakeProfitPrice, MsgUpdateTakeProfitPriceResponse, MsgWhitelist, MsgWhitelistResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.perpetual.Msg"; + +/** + * @generated from rpc elys.perpetual.Msg.Open + */ +export const MsgOpenService = { + typeName: TYPE_NAME, + method: "Open", + Request: MsgOpen, + Response: MsgOpenResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.AddCollateral + */ +export const MsgAddCollateralService = { + typeName: TYPE_NAME, + method: "AddCollateral", + Request: MsgAddCollateral, + Response: MsgAddCollateralResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.Close + */ +export const MsgCloseService = { + typeName: TYPE_NAME, + method: "Close", + Request: MsgClose, + Response: MsgCloseResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.Whitelist + */ +export const MsgWhitelistService = { + typeName: TYPE_NAME, + method: "Whitelist", + Request: MsgWhitelist, + Response: MsgWhitelistResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.Dewhitelist + */ +export const MsgDewhitelistService = { + typeName: TYPE_NAME, + method: "Dewhitelist", + Request: MsgDewhitelist, + Response: MsgDewhitelistResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.UpdateStopLoss + */ +export const MsgUpdateStopLossService = { + typeName: TYPE_NAME, + method: "UpdateStopLoss", + Request: MsgUpdateStopLoss, + Response: MsgUpdateStopLossResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.ClosePositions + */ +export const MsgClosePositionsService = { + typeName: TYPE_NAME, + method: "ClosePositions", + Request: MsgClosePositions, + Response: MsgClosePositionsResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.UpdateTakeProfitPrice + */ +export const MsgUpdateTakeProfitPriceService = { + typeName: TYPE_NAME, + method: "UpdateTakeProfitPrice", + Request: MsgUpdateTakeProfitPrice, + Response: MsgUpdateTakeProfitPriceResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.UpdateMaxLeverageForPool + */ +export const MsgUpdateMaxLeverageForPoolService = { + typeName: TYPE_NAME, + method: "UpdateMaxLeverageForPool", + Request: MsgUpdateMaxLeverageForPool, + Response: MsgUpdateMaxLeverageForPoolResponse, +} as const; + +/** + * @generated from rpc elys.perpetual.Msg.UpdateEnabledPools + */ +export const MsgUpdateEnabledPoolsService = { + typeName: TYPE_NAME, + method: "UpdateEnabledPools", + Request: MsgUpdateEnabledPools, + Response: MsgUpdateEnabledPoolsResponse, +} as const; + diff --git a/src/protobufs/elys/perpetual/tx_pb.ts b/src/protobufs/elys/perpetual/tx_pb.ts new file mode 100644 index 00000000..3c4081d9 --- /dev/null +++ b/src/protobufs/elys/perpetual/tx_pb.ts @@ -0,0 +1,1017 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/tx.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Position, PositionRequest } from "./types_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.perpetual.MsgOpen + */ +export class MsgOpen extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: elys.perpetual.Position position = 2; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: string leverage = 3; + */ + leverage = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 4; + */ + collateral?: Coin; + + /** + * @generated from field: string take_profit_price = 5; + */ + takeProfitPrice = ""; + + /** + * @generated from field: string stop_loss_price = 6; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 pool_id = 7; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgOpen"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 3, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "message", T: Coin }, + { no: 5, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOpen { + return new MsgOpen().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOpen { + return new MsgOpen().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOpen { + return new MsgOpen().fromJsonString(jsonString, options); + } + + static equals(a: MsgOpen | PlainMessage | undefined, b: MsgOpen | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOpen, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgOpenResponse + */ +export class MsgOpenResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgOpenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOpenResponse { + return new MsgOpenResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgOpenResponse | PlainMessage | undefined, b: MsgOpenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOpenResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgClose + */ +export class MsgClose extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgClose"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClose { + return new MsgClose().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClose { + return new MsgClose().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClose { + return new MsgClose().fromJsonString(jsonString, options); + } + + static equals(a: MsgClose | PlainMessage | undefined, b: MsgClose | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClose, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgCloseResponse + */ +export class MsgCloseResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgCloseResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCloseResponse { + return new MsgCloseResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCloseResponse | PlainMessage | undefined, b: MsgCloseResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCloseResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.perpetual.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgWhitelist + */ +export class MsgWhitelist extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string whitelisted_address = 2; + */ + whitelistedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgWhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelist { + return new MsgWhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelist | PlainMessage | undefined, b: MsgWhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelist, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgWhitelistResponse + */ +export class MsgWhitelistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgWhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistResponse { + return new MsgWhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelistResponse | PlainMessage | undefined, b: MsgWhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgDewhitelist + */ +export class MsgDewhitelist extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string whitelisted_address = 2; + */ + whitelistedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgDewhitelist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDewhitelist { + return new MsgDewhitelist().fromJsonString(jsonString, options); + } + + static equals(a: MsgDewhitelist | PlainMessage | undefined, b: MsgDewhitelist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDewhitelist, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgDewhitelistResponse + */ +export class MsgDewhitelistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgDewhitelistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDewhitelistResponse { + return new MsgDewhitelistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDewhitelistResponse | PlainMessage | undefined, b: MsgDewhitelistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDewhitelistResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgClosePositions + */ +export class MsgClosePositions extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated elys.perpetual.PositionRequest liquidate = 2; + */ + liquidate: PositionRequest[] = []; + + /** + * @generated from field: repeated elys.perpetual.PositionRequest stop_loss = 3; + */ + stopLoss: PositionRequest[] = []; + + /** + * @generated from field: repeated elys.perpetual.PositionRequest take_profit = 4; + */ + takeProfit: PositionRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgClosePositions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "liquidate", kind: "message", T: PositionRequest, repeated: true }, + { no: 3, name: "stop_loss", kind: "message", T: PositionRequest, repeated: true }, + { no: 4, name: "take_profit", kind: "message", T: PositionRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClosePositions { + return new MsgClosePositions().fromJsonString(jsonString, options); + } + + static equals(a: MsgClosePositions | PlainMessage | undefined, b: MsgClosePositions | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClosePositions, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgClosePositionsResponse + */ +export class MsgClosePositionsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgClosePositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClosePositionsResponse { + return new MsgClosePositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClosePositionsResponse | PlainMessage | undefined, b: MsgClosePositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClosePositionsResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateStopLoss + */ +export class MsgUpdateStopLoss extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateStopLoss"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateStopLoss { + return new MsgUpdateStopLoss().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateStopLoss | PlainMessage | undefined, b: MsgUpdateStopLoss | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateStopLoss, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateStopLossResponse + */ +export class MsgUpdateStopLossResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateStopLossResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateStopLossResponse { + return new MsgUpdateStopLossResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateStopLossResponse | PlainMessage | undefined, b: MsgUpdateStopLossResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateStopLossResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateTakeProfitPrice + */ +export class MsgUpdateTakeProfitPrice extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateTakeProfitPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTakeProfitPrice { + return new MsgUpdateTakeProfitPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTakeProfitPrice { + return new MsgUpdateTakeProfitPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTakeProfitPrice { + return new MsgUpdateTakeProfitPrice().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTakeProfitPrice | PlainMessage | undefined, b: MsgUpdateTakeProfitPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTakeProfitPrice, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateTakeProfitPriceResponse + */ +export class MsgUpdateTakeProfitPriceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateTakeProfitPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTakeProfitPriceResponse { + return new MsgUpdateTakeProfitPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTakeProfitPriceResponse { + return new MsgUpdateTakeProfitPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTakeProfitPriceResponse { + return new MsgUpdateTakeProfitPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTakeProfitPriceResponse | PlainMessage | undefined, b: MsgUpdateTakeProfitPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTakeProfitPriceResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateMaxLeverageForPool + */ +export class MsgUpdateMaxLeverageForPool extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string leverage_max = 3; + */ + leverageMax = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateMaxLeverageForPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaxLeverageForPool { + return new MsgUpdateMaxLeverageForPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaxLeverageForPool { + return new MsgUpdateMaxLeverageForPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaxLeverageForPool { + return new MsgUpdateMaxLeverageForPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaxLeverageForPool | PlainMessage | undefined, b: MsgUpdateMaxLeverageForPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaxLeverageForPool, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateMaxLeverageForPoolResponse + */ +export class MsgUpdateMaxLeverageForPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateMaxLeverageForPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaxLeverageForPoolResponse { + return new MsgUpdateMaxLeverageForPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaxLeverageForPoolResponse { + return new MsgUpdateMaxLeverageForPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaxLeverageForPoolResponse { + return new MsgUpdateMaxLeverageForPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaxLeverageForPoolResponse | PlainMessage | undefined, b: MsgUpdateMaxLeverageForPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaxLeverageForPoolResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.PoolParams + */ +export class PoolParams extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string mtp_safety_factor = 2; + */ + mtpSafetyFactor = ""; + + /** + * @generated from field: string leverage_max = 3; + */ + leverageMax = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PoolParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "mtp_safety_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "leverage_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolParams { + return new PoolParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolParams { + return new PoolParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolParams { + return new PoolParams().fromJsonString(jsonString, options); + } + + static equals(a: PoolParams | PlainMessage | undefined, b: PoolParams | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolParams, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateEnabledPools + */ +export class MsgUpdateEnabledPools extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: repeated uint64 enabled_pools = 2; + */ + enabledPools: bigint[] = []; + + /** + * @generated from field: repeated uint64 add_pools = 3; + */ + addPools: bigint[] = []; + + /** + * @generated from field: repeated uint64 remove_pools = 4; + */ + removePools: bigint[] = []; + + /** + * @generated from field: repeated elys.perpetual.PoolParams update_pool_params = 5; + */ + updatePoolParams: PoolParams[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateEnabledPools"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enabled_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "add_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 4, name: "remove_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 5, name: "update_pool_params", kind: "message", T: PoolParams, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnabledPools { + return new MsgUpdateEnabledPools().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnabledPools | PlainMessage | undefined, b: MsgUpdateEnabledPools | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnabledPools, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgUpdateEnabledPoolsResponse + */ +export class MsgUpdateEnabledPoolsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgUpdateEnabledPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateEnabledPoolsResponse { + return new MsgUpdateEnabledPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateEnabledPoolsResponse | PlainMessage | undefined, b: MsgUpdateEnabledPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateEnabledPoolsResponse, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgAddCollateral + */ +export class MsgAddCollateral extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin add_collateral = 3; + */ + addCollateral?: Coin; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgAddCollateral"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "add_collateral", kind: "message", T: Coin }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCollateral { + return new MsgAddCollateral().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCollateral { + return new MsgAddCollateral().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddCollateral { + return new MsgAddCollateral().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddCollateral | PlainMessage | undefined, b: MsgAddCollateral | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddCollateral, a, b); + } +} + +/** + * @generated from message elys.perpetual.MsgAddCollateralResponse + */ +export class MsgAddCollateralResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MsgAddCollateralResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCollateralResponse { + return new MsgAddCollateralResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCollateralResponse { + return new MsgAddCollateralResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddCollateralResponse { + return new MsgAddCollateralResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddCollateralResponse | PlainMessage | undefined, b: MsgAddCollateralResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddCollateralResponse, a, b); + } +} + diff --git a/src/protobufs/elys/perpetual/types_pb.ts b/src/protobufs/elys/perpetual/types_pb.ts new file mode 100644 index 00000000..c03e5856 --- /dev/null +++ b/src/protobufs/elys/perpetual/types_pb.ts @@ -0,0 +1,417 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/perpetual/types.proto (package elys.perpetual, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from enum elys.perpetual.Position + */ +export enum Position { + /** + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: LONG = 1; + */ + LONG = 1, + + /** + * @generated from enum value: SHORT = 2; + */ + SHORT = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Position) +proto3.util.setEnumType(Position, "elys.perpetual.Position", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "LONG" }, + { no: 2, name: "SHORT" }, +]); + +/** + * @generated from message elys.perpetual.MTP + */ +export class MTP extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string collateral_asset = 2; + */ + collateralAsset = ""; + + /** + * @generated from field: string trading_asset = 3; + */ + tradingAsset = ""; + + /** + * @generated from field: string liabilities_asset = 4; + */ + liabilitiesAsset = ""; + + /** + * @generated from field: string custody_asset = 5; + */ + custodyAsset = ""; + + /** + * @generated from field: string collateral = 6; + */ + collateral = ""; + + /** + * @generated from field: string liabilities = 7; + */ + liabilities = ""; + + /** + * @generated from field: string borrow_interest_paid_custody = 8; + */ + borrowInterestPaidCustody = ""; + + /** + * @generated from field: string borrow_interest_unpaid_liability = 10; + */ + borrowInterestUnpaidLiability = ""; + + /** + * @generated from field: string custody = 11; + */ + custody = ""; + + /** + * @generated from field: string mtp_health = 12; + */ + mtpHealth = ""; + + /** + * @generated from field: elys.perpetual.Position position = 13; + */ + position = Position.UNSPECIFIED; + + /** + * @generated from field: uint64 id = 14; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 amm_pool_id = 15; + */ + ammPoolId = protoInt64.zero; + + /** + * @generated from field: string take_profit_price = 16; + */ + takeProfitPrice = ""; + + /** + * @generated from field: string take_profit_borrow_factor = 17; + */ + takeProfitBorrowFactor = ""; + + /** + * @generated from field: string funding_fee_paid_custody = 18; + */ + fundingFeePaidCustody = ""; + + /** + * @generated from field: string funding_fee_received_custody = 19; + */ + fundingFeeReceivedCustody = ""; + + /** + * @generated from field: string open_price = 20; + */ + openPrice = ""; + + /** + * @generated from field: string stop_loss_price = 21; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 last_interest_calc_time = 22; + */ + lastInterestCalcTime = protoInt64.zero; + + /** + * @generated from field: uint64 last_interest_calc_block = 23; + */ + lastInterestCalcBlock = protoInt64.zero; + + /** + * @generated from field: uint64 last_funding_calc_time = 24; + */ + lastFundingCalcTime = protoInt64.zero; + + /** + * @generated from field: uint64 last_funding_calc_block = 25; + */ + lastFundingCalcBlock = protoInt64.zero; + + /** + * @generated from field: bool partial_liquidation_done = 26; + */ + partialLiquidationDone = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.MTP"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "trading_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "liabilities_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "custody_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "collateral", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "liabilities", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "borrow_interest_paid_custody", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "borrow_interest_unpaid_liability", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "custody", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "mtp_health", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "position", kind: "enum", T: proto3.getEnumType(Position) }, + { no: 14, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 15, name: "amm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 16, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "take_profit_borrow_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "funding_fee_paid_custody", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "funding_fee_received_custody", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "open_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "last_interest_calc_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 23, name: "last_interest_calc_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 24, name: "last_funding_calc_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 25, name: "last_funding_calc_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 26, name: "partial_liquidation_done", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MTP { + return new MTP().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MTP { + return new MTP().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MTP { + return new MTP().fromJsonString(jsonString, options); + } + + static equals(a: MTP | PlainMessage | undefined, b: MTP | PlainMessage | undefined): boolean { + return proto3.util.equals(MTP, a, b); + } +} + +/** + * @generated from message elys.perpetual.InterestBlock + */ +export class InterestBlock extends Message { + /** + * @generated from field: string interest_rate = 1; + */ + interestRate = ""; + + /** + * @generated from field: int64 block_height = 2; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: int64 block_time = 3; + */ + blockTime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.InterestBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "block_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterestBlock { + return new InterestBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterestBlock { + return new InterestBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterestBlock { + return new InterestBlock().fromJsonString(jsonString, options); + } + + static equals(a: InterestBlock | PlainMessage | undefined, b: InterestBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(InterestBlock, a, b); + } +} + +/** + * @generated from message elys.perpetual.FundingRateBlock + */ +export class FundingRateBlock extends Message { + /** + * @generated from field: string funding_rate_long = 1; + */ + fundingRateLong = ""; + + /** + * @generated from field: string funding_rate_short = 2; + */ + fundingRateShort = ""; + + /** + * @generated from field: string funding_share_short = 3; + */ + fundingShareShort = ""; + + /** + * @generated from field: string funding_share_long = 4; + */ + fundingShareLong = ""; + + /** + * @generated from field: int64 block_height = 5; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: int64 block_time = 6; + */ + blockTime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.FundingRateBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funding_rate_long", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "funding_rate_short", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "funding_share_short", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "funding_share_long", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FundingRateBlock { + return new FundingRateBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FundingRateBlock { + return new FundingRateBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FundingRateBlock { + return new FundingRateBlock().fromJsonString(jsonString, options); + } + + static equals(a: FundingRateBlock | PlainMessage | undefined, b: FundingRateBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(FundingRateBlock, a, b); + } +} + +/** + * @generated from message elys.perpetual.WhiteList + */ +export class WhiteList extends Message { + /** + * @generated from field: repeated string validator_list = 1; + */ + validatorList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.WhiteList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhiteList { + return new WhiteList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhiteList { + return new WhiteList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhiteList { + return new WhiteList().fromJsonString(jsonString, options); + } + + static equals(a: WhiteList | PlainMessage | undefined, b: WhiteList | PlainMessage | undefined): boolean { + return proto3.util.equals(WhiteList, a, b); + } +} + +/** + * @generated from message elys.perpetual.PositionRequest + */ +export class PositionRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.perpetual.PositionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionRequest { + return new PositionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionRequest { + return new PositionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionRequest { + return new PositionRequest().fromJsonString(jsonString, options); + } + + static equals(a: PositionRequest | PlainMessage | undefined, b: PositionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionRequest, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/debt_pb.ts b/src/protobufs/elys/stablestake/debt_pb.ts new file mode 100644 index 00000000..5c4368a5 --- /dev/null +++ b/src/protobufs/elys/stablestake/debt_pb.ts @@ -0,0 +1,87 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/debt.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.stablestake.Debt + */ +export class Debt extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string borrowed = 2; + */ + borrowed = ""; + + /** + * @generated from field: string interest_paid = 3; + */ + interestPaid = ""; + + /** + * @generated from field: string interest_stacked = 4; + */ + interestStacked = ""; + + /** + * @generated from field: uint64 borrow_time = 5; + */ + borrowTime = protoInt64.zero; + + /** + * @generated from field: uint64 last_interest_calc_time = 6; + */ + lastInterestCalcTime = protoInt64.zero; + + /** + * @generated from field: uint64 last_interest_calc_block = 7; + */ + lastInterestCalcBlock = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 8; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.Debt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrowed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_paid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "interest_stacked", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "borrow_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "last_interest_calc_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "last_interest_calc_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Debt { + return new Debt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Debt { + return new Debt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Debt { + return new Debt().fromJsonString(jsonString, options); + } + + static equals(a: Debt | PlainMessage | undefined, b: Debt | PlainMessage | undefined): boolean { + return proto3.util.equals(Debt, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/genesis_pb.ts b/src/protobufs/elys/stablestake/genesis_pb.ts new file mode 100644 index 00000000..641aebb7 --- /dev/null +++ b/src/protobufs/elys/stablestake/genesis_pb.ts @@ -0,0 +1,75 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/genesis.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Debt } from "./debt_pb.js"; +import { InterestBlock } from "./types_pb.js"; +import { AmmPool, Pool } from "./pool_pb.js"; + +/** + * GenesisState defines the stablestake module's genesis state. + * + * @generated from message elys.stablestake.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.stablestake.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.stablestake.Debt debt_list = 2; + */ + debtList: Debt[] = []; + + /** + * @generated from field: repeated elys.stablestake.InterestBlock interest_list = 3; + */ + interestList: InterestBlock[] = []; + + /** + * @generated from field: repeated elys.stablestake.Pool pools = 4; + */ + pools: Pool[] = []; + + /** + * @generated from field: repeated elys.stablestake.AmmPool amm_pools = 5; + */ + ammPools: AmmPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "debt_list", kind: "message", T: Debt, repeated: true }, + { no: 3, name: "interest_list", kind: "message", T: InterestBlock, repeated: true }, + { no: 4, name: "pools", kind: "message", T: Pool, repeated: true }, + { no: 5, name: "amm_pools", kind: "message", T: AmmPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/params_pb.ts b/src/protobufs/elys/stablestake/params_pb.ts new file mode 100644 index 00000000..81ab4bb7 --- /dev/null +++ b/src/protobufs/elys/stablestake/params_pb.ts @@ -0,0 +1,204 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/params.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.stablestake.LegacyParams + */ +export class LegacyParams extends Message { + /** + * @generated from field: string deposit_denom = 1; + */ + depositDenom = ""; + + /** + * @generated from field: string redemption_rate = 2; + */ + redemptionRate = ""; + + /** + * @generated from field: int64 epoch_length = 3; + */ + epochLength = protoInt64.zero; + + /** + * @generated from field: string interest_rate = 4; + */ + interestRate = ""; + + /** + * @generated from field: string interest_rate_max = 5; + */ + interestRateMax = ""; + + /** + * @generated from field: string interest_rate_min = 6; + */ + interestRateMin = ""; + + /** + * @generated from field: string interest_rate_increase = 7; + */ + interestRateIncrease = ""; + + /** + * @generated from field: string interest_rate_decrease = 8; + */ + interestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 9; + */ + healthGainFactor = ""; + + /** + * @generated from field: string total_value = 10; + */ + totalValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.LegacyParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "redemption_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "epoch_length", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyParams { + return new LegacyParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyParams { + return new LegacyParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyParams { + return new LegacyParams().fromJsonString(jsonString, options); + } + + static equals(a: LegacyParams | PlainMessage | undefined, b: LegacyParams | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyParams, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.stablestake.Params + */ +export class Params extends Message { + /** + * @generated from field: string legacy_deposit_denom = 1; + */ + legacyDepositDenom = ""; + + /** + * @generated from field: string legacy_redemption_rate = 2; + */ + legacyRedemptionRate = ""; + + /** + * @generated from field: int64 epoch_length = 3; + */ + epochLength = protoInt64.zero; + + /** + * @generated from field: string legacy_interest_rate = 4; + */ + legacyInterestRate = ""; + + /** + * @generated from field: string legacy_interest_rate_max = 5; + */ + legacyInterestRateMax = ""; + + /** + * @generated from field: string legacy_interest_rate_min = 6; + */ + legacyInterestRateMin = ""; + + /** + * @generated from field: string legacy_interest_rate_increase = 7; + */ + legacyInterestRateIncrease = ""; + + /** + * @generated from field: string legacy_interest_rate_decrease = 8; + */ + legacyInterestRateDecrease = ""; + + /** + * @generated from field: string legacy_health_gain_factor = 9; + */ + legacyHealthGainFactor = ""; + + /** + * @generated from field: string total_value = 10; + */ + totalValue = ""; + + /** + * @generated from field: string legacy_max_leverage_ratio = 11; + */ + legacyMaxLeverageRatio = ""; + + /** + * @generated from field: string legacy_max_withdraw_ratio = 12; + */ + legacyMaxWithdrawRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "legacy_deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "legacy_redemption_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "epoch_length", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "legacy_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "legacy_interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "legacy_interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "legacy_interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "legacy_interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "legacy_health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "legacy_max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "legacy_max_withdraw_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/pool_pb.ts b/src/protobufs/elys/stablestake/pool_pb.ts new file mode 100644 index 00000000..2317de86 --- /dev/null +++ b/src/protobufs/elys/stablestake/pool_pb.ts @@ -0,0 +1,149 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/pool.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message elys.stablestake.Pool + */ +export class Pool extends Message { + /** + * @generated from field: string deposit_denom = 1; + */ + depositDenom = ""; + + /** + * @generated from field: string interest_rate = 2; + */ + interestRate = ""; + + /** + * @generated from field: string interest_rate_max = 3; + */ + interestRateMax = ""; + + /** + * @generated from field: string interest_rate_min = 4; + */ + interestRateMin = ""; + + /** + * @generated from field: string interest_rate_increase = 5; + */ + interestRateIncrease = ""; + + /** + * @generated from field: string interest_rate_decrease = 6; + */ + interestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 7; + */ + healthGainFactor = ""; + + /** + * @generated from field: string net_amount = 8; + */ + netAmount = ""; + + /** + * @generated from field: string max_leverage_ratio = 9; + */ + maxLeverageRatio = ""; + + /** + * @generated from field: string max_withdraw_ratio = 10; + */ + maxWithdrawRatio = ""; + + /** + * @generated from field: uint64 id = 11; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "net_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "max_withdraw_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message elys.stablestake.AmmPool + */ +export class AmmPool extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_liabilities = 2; + */ + totalLiabilities: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.AmmPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_liabilities", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AmmPool { + return new AmmPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AmmPool { + return new AmmPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AmmPool { + return new AmmPool().fromJsonString(jsonString, options); + } + + static equals(a: AmmPool | PlainMessage | undefined, b: AmmPool | PlainMessage | undefined): boolean { + return proto3.util.equals(AmmPool, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/query_cosmes.ts b/src/protobufs/elys/stablestake/query_cosmes.ts new file mode 100644 index 00000000..0bba922f --- /dev/null +++ b/src/protobufs/elys/stablestake/query_cosmes.ts @@ -0,0 +1,107 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/stablestake/query.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MaxBondableAmountRequest, MaxBondableAmountResponse, QueryAllAmmPoolsRequest, QueryAllAmmPoolsResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAmmPoolRequest, QueryAmmPoolResponse, QueryBorrowRatioRequest, QueryBorrowRatioResponse, QueryDebtRequest, QueryDebtResponse, QueryGetInterestRequest, QueryGetInterestResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.stablestake.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.stablestake.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * BorrowRatio queries the borrow ratio compared to total deposit + * + * @generated from rpc elys.stablestake.Query.BorrowRatio + */ +export const QueryBorrowRatioService = { + typeName: TYPE_NAME, + method: "BorrowRatio", + Request: QueryBorrowRatioRequest, + Response: QueryBorrowRatioResponse, +} as const; + +/** + * Queries a single pool given its index. + * + * @generated from rpc elys.stablestake.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * Queries a list of all pools. + * + * @generated from rpc elys.stablestake.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Query.AmmPool + */ +export const QueryAmmPoolService = { + typeName: TYPE_NAME, + method: "AmmPool", + Request: QueryAmmPoolRequest, + Response: QueryAmmPoolResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Query.AllAmmPools + */ +export const QueryAllAmmPoolsService = { + typeName: TYPE_NAME, + method: "AllAmmPools", + Request: QueryAllAmmPoolsRequest, + Response: QueryAllAmmPoolsResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Query.Debt + */ +export const QueryDebtService = { + typeName: TYPE_NAME, + method: "Debt", + Request: QueryDebtRequest, + Response: QueryDebtResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Query.GetInterest + */ +export const QueryGetInterestService = { + typeName: TYPE_NAME, + method: "GetInterest", + Request: QueryGetInterestRequest, + Response: QueryGetInterestResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Query.MaxBondableAmount + */ +export const QueryMaxBondableAmountService = { + typeName: TYPE_NAME, + method: "MaxBondableAmount", + Request: MaxBondableAmountRequest, + Response: MaxBondableAmountResponse, +} as const; + diff --git a/src/protobufs/elys/stablestake/query_pb.ts b/src/protobufs/elys/stablestake/query_pb.ts new file mode 100644 index 00000000..387e73ce --- /dev/null +++ b/src/protobufs/elys/stablestake/query_pb.ts @@ -0,0 +1,829 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/query.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { AmmPool } from "./pool_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Debt } from "./debt_pb.js"; +import { InterestBlock } from "./types_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.stablestake.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.stablestake.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.stablestake.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAmmPoolRequest + */ +export class QueryAmmPoolRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAmmPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAmmPoolRequest { + return new QueryAmmPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAmmPoolRequest { + return new QueryAmmPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAmmPoolRequest { + return new QueryAmmPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAmmPoolRequest | PlainMessage | undefined, b: QueryAmmPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAmmPoolRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAmmPoolResponse + */ +export class QueryAmmPoolResponse extends Message { + /** + * @generated from field: elys.stablestake.AmmPool amm_pool = 1; + */ + ammPool?: AmmPool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAmmPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pool", kind: "message", T: AmmPool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAmmPoolResponse { + return new QueryAmmPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAmmPoolResponse { + return new QueryAmmPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAmmPoolResponse { + return new QueryAmmPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAmmPoolResponse | PlainMessage | undefined, b: QueryAmmPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAmmPoolResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAllAmmPoolsRequest + */ +export class QueryAllAmmPoolsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAllAmmPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAmmPoolsRequest { + return new QueryAllAmmPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAmmPoolsRequest { + return new QueryAllAmmPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAmmPoolsRequest { + return new QueryAllAmmPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAmmPoolsRequest | PlainMessage | undefined, b: QueryAllAmmPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAmmPoolsRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAllAmmPoolsResponse + */ +export class QueryAllAmmPoolsResponse extends Message { + /** + * @generated from field: repeated elys.stablestake.AmmPool amm_pools = 1; + */ + ammPools: AmmPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAllAmmPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_pools", kind: "message", T: AmmPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAmmPoolsResponse { + return new QueryAllAmmPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAmmPoolsResponse { + return new QueryAllAmmPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAmmPoolsResponse { + return new QueryAllAmmPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAmmPoolsResponse | PlainMessage | undefined, b: QueryAllAmmPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAmmPoolsResponse, a, b); + } +} + +/** + * QueryBorrowRatioRequest is request type for the Query/BorrowRatio RPC method. + * + * @generated from message elys.stablestake.QueryBorrowRatioRequest + */ +export class QueryBorrowRatioRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryBorrowRatioRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBorrowRatioRequest { + return new QueryBorrowRatioRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBorrowRatioRequest { + return new QueryBorrowRatioRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBorrowRatioRequest { + return new QueryBorrowRatioRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBorrowRatioRequest | PlainMessage | undefined, b: QueryBorrowRatioRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBorrowRatioRequest, a, b); + } +} + +/** + * QueryBorrowRatioResponse is response type for the Query/BorrowRatio RPC + * method. + * + * @generated from message elys.stablestake.QueryBorrowRatioResponse + */ +export class QueryBorrowRatioResponse extends Message { + /** + * @generated from field: string net_amount = 1; + */ + netAmount = ""; + + /** + * @generated from field: string total_borrow = 2; + */ + totalBorrow = ""; + + /** + * @generated from field: string borrow_ratio = 3; + */ + borrowRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryBorrowRatioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "net_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_borrow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "borrow_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBorrowRatioResponse { + return new QueryBorrowRatioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBorrowRatioResponse { + return new QueryBorrowRatioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBorrowRatioResponse { + return new QueryBorrowRatioResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBorrowRatioResponse | PlainMessage | undefined, b: QueryBorrowRatioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBorrowRatioResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: elys.stablestake.PoolResponse pool = 1; + */ + pool?: PoolResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: PoolResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated elys.stablestake.PoolResponse pools = 1; + */ + pools: PoolResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: PoolResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.PoolResponse + */ +export class PoolResponse extends Message { + /** + * @generated from field: string deposit_denom = 1; + */ + depositDenom = ""; + + /** + * @generated from field: string redemption_rate = 2; + */ + redemptionRate = ""; + + /** + * @generated from field: string interest_rate = 3; + */ + interestRate = ""; + + /** + * @generated from field: string interest_rate_max = 4; + */ + interestRateMax = ""; + + /** + * @generated from field: string interest_rate_min = 5; + */ + interestRateMin = ""; + + /** + * @generated from field: string interest_rate_increase = 6; + */ + interestRateIncrease = ""; + + /** + * @generated from field: string interest_rate_decrease = 7; + */ + interestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 8; + */ + healthGainFactor = ""; + + /** + * @generated from field: string total_value = 9; + */ + totalValue = ""; + + /** + * @generated from field: string max_leverage_ratio = 10; + */ + maxLeverageRatio = ""; + + /** + * @generated from field: uint64 pool_id = 11; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string net_amount = 12; + */ + netAmount = ""; + + /** + * @generated from field: string total_borrow = 13; + */ + totalBorrow = ""; + + /** + * @generated from field: string borrow_ratio = 14; + */ + borrowRatio = ""; + + /** + * @generated from field: string max_withdraw_ratio = 15; + */ + maxWithdrawRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.PoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "redemption_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "net_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "total_borrow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "borrow_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "max_withdraw_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolResponse { + return new PoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolResponse { + return new PoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolResponse { + return new PoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: PoolResponse | PlainMessage | undefined, b: PoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryDebtRequest + */ +export class QueryDebtRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryDebtRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDebtRequest { + return new QueryDebtRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDebtRequest { + return new QueryDebtRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDebtRequest { + return new QueryDebtRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDebtRequest | PlainMessage | undefined, b: QueryDebtRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDebtRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryDebtResponse + */ +export class QueryDebtResponse extends Message { + /** + * @generated from field: elys.stablestake.Debt debt = 1; + */ + debt?: Debt; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryDebtResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "debt", kind: "message", T: Debt }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDebtResponse { + return new QueryDebtResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDebtResponse { + return new QueryDebtResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDebtResponse { + return new QueryDebtResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDebtResponse | PlainMessage | undefined, b: QueryDebtResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDebtResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryGetInterestRequest + */ +export class QueryGetInterestRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 block_height = 2; + */ + blockHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryGetInterestRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInterestRequest { + return new QueryGetInterestRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInterestRequest { + return new QueryGetInterestRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInterestRequest { + return new QueryGetInterestRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetInterestRequest | PlainMessage | undefined, b: QueryGetInterestRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetInterestRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.QueryGetInterestResponse + */ +export class QueryGetInterestResponse extends Message { + /** + * @generated from field: elys.stablestake.InterestBlock interest_block = 1; + */ + interestBlock?: InterestBlock; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.QueryGetInterestResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interest_block", kind: "message", T: InterestBlock }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInterestResponse { + return new QueryGetInterestResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInterestResponse { + return new QueryGetInterestResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInterestResponse { + return new QueryGetInterestResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetInterestResponse | PlainMessage | undefined, b: QueryGetInterestResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetInterestResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.MaxBondableAmountRequest + */ +export class MaxBondableAmountRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MaxBondableAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaxBondableAmountRequest { + return new MaxBondableAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaxBondableAmountRequest { + return new MaxBondableAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaxBondableAmountRequest { + return new MaxBondableAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: MaxBondableAmountRequest | PlainMessage | undefined, b: MaxBondableAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(MaxBondableAmountRequest, a, b); + } +} + +/** + * @generated from message elys.stablestake.MaxBondableAmountResponse + */ +export class MaxBondableAmountResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MaxBondableAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaxBondableAmountResponse { + return new MaxBondableAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaxBondableAmountResponse { + return new MaxBondableAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaxBondableAmountResponse { + return new MaxBondableAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MaxBondableAmountResponse | PlainMessage | undefined, b: MaxBondableAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MaxBondableAmountResponse, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/tx_cosmes.ts b/src/protobufs/elys/stablestake/tx_cosmes.ts new file mode 100644 index 00000000..e477b5fb --- /dev/null +++ b/src/protobufs/elys/stablestake/tx_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/stablestake/tx.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddPool, MsgAddPoolResponse, MsgBond, MsgBondResponse, MsgUnbond, MsgUnbondResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdatePool, MsgUpdatePoolResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.stablestake.Msg"; + +/** + * @generated from rpc elys.stablestake.Msg.Bond + */ +export const MsgBondService = { + typeName: TYPE_NAME, + method: "Bond", + Request: MsgBond, + Response: MsgBondResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Msg.Unbond + */ +export const MsgUnbondService = { + typeName: TYPE_NAME, + method: "Unbond", + Request: MsgUnbond, + Response: MsgUnbondResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Msg.AddPool + */ +export const MsgAddPoolService = { + typeName: TYPE_NAME, + method: "AddPool", + Request: MsgAddPool, + Response: MsgAddPoolResponse, +} as const; + +/** + * @generated from rpc elys.stablestake.Msg.UpdatePool + */ +export const MsgUpdatePoolService = { + typeName: TYPE_NAME, + method: "UpdatePool", + Request: MsgUpdatePool, + Response: MsgUpdatePoolResponse, +} as const; + diff --git a/src/protobufs/elys/stablestake/tx_pb.ts b/src/protobufs/elys/stablestake/tx_pb.ts new file mode 100644 index 00000000..902ae7b7 --- /dev/null +++ b/src/protobufs/elys/stablestake/tx_pb.ts @@ -0,0 +1,486 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/tx.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.stablestake.MsgBond + */ +export class MsgBond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBond { + return new MsgBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBond { + return new MsgBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBond { + return new MsgBond().fromJsonString(jsonString, options); + } + + static equals(a: MsgBond | PlainMessage | undefined, b: MsgBond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBond, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgBondResponse + */ +export class MsgBondResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgBondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBondResponse | PlainMessage | undefined, b: MsgBondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBondResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUnbond + */ +export class MsgUnbond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUnbond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbond { + return new MsgUnbond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbond | PlainMessage | undefined, b: MsgUnbond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbond, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUnbondResponse + */ +export class MsgUnbondResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUnbondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbondResponse | PlainMessage | undefined, b: MsgUnbondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbondResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.stablestake.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgAddPool + */ +export class MsgAddPool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string deposit_denom = 2; + */ + depositDenom = ""; + + /** + * @generated from field: string interest_rate = 3; + */ + interestRate = ""; + + /** + * @generated from field: string interest_rate_max = 4; + */ + interestRateMax = ""; + + /** + * @generated from field: string interest_rate_min = 5; + */ + interestRateMin = ""; + + /** + * @generated from field: string interest_rate_increase = 6; + */ + interestRateIncrease = ""; + + /** + * @generated from field: string interest_rate_decrease = 7; + */ + interestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 8; + */ + healthGainFactor = ""; + + /** + * @generated from field: string max_leverage_ratio = 9; + */ + maxLeverageRatio = ""; + + /** + * @generated from field: string max_withdraw_ratio = 10; + */ + maxWithdrawRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgAddPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "max_withdraw_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPool { + return new MsgAddPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPool { + return new MsgAddPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPool { + return new MsgAddPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPool | PlainMessage | undefined, b: MsgAddPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPool, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgAddPoolResponse + */ +export class MsgAddPoolResponse extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgAddPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddPoolResponse { + return new MsgAddPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddPoolResponse | PlainMessage | undefined, b: MsgAddPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddPoolResponse, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUpdatePool + */ +export class MsgUpdatePool extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string interest_rate_max = 2; + */ + interestRateMax = ""; + + /** + * @generated from field: string interest_rate_min = 3; + */ + interestRateMin = ""; + + /** + * @generated from field: string interest_rate_increase = 4; + */ + interestRateIncrease = ""; + + /** + * @generated from field: string interest_rate_decrease = 5; + */ + interestRateDecrease = ""; + + /** + * @generated from field: string health_gain_factor = 6; + */ + healthGainFactor = ""; + + /** + * @generated from field: string max_leverage_ratio = 7; + */ + maxLeverageRatio = ""; + + /** + * @generated from field: uint64 pool_id = 8; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUpdatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interest_rate_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interest_rate_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "interest_rate_increase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_decrease", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "health_gain_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "max_leverage_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePool | PlainMessage | undefined, b: MsgUpdatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePool, a, b); + } +} + +/** + * @generated from message elys.stablestake.MsgUpdatePoolResponse + */ +export class MsgUpdatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.MsgUpdatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolResponse | PlainMessage | undefined, b: MsgUpdatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolResponse, a, b); + } +} + diff --git a/src/protobufs/elys/stablestake/types_pb.ts b/src/protobufs/elys/stablestake/types_pb.ts new file mode 100644 index 00000000..ea4f72df --- /dev/null +++ b/src/protobufs/elys/stablestake/types_pb.ts @@ -0,0 +1,106 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/stablestake/types.proto (package elys.stablestake, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.stablestake.BalanceBorrowed + */ +export class BalanceBorrowed extends Message { + /** + * @generated from field: string usd_amount = 1; + */ + usdAmount = ""; + + /** + * @generated from field: string percentage = 2; + */ + percentage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.BalanceBorrowed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usd_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BalanceBorrowed { + return new BalanceBorrowed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BalanceBorrowed { + return new BalanceBorrowed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BalanceBorrowed { + return new BalanceBorrowed().fromJsonString(jsonString, options); + } + + static equals(a: BalanceBorrowed | PlainMessage | undefined, b: BalanceBorrowed | PlainMessage | undefined): boolean { + return proto3.util.equals(BalanceBorrowed, a, b); + } +} + +/** + * @generated from message elys.stablestake.InterestBlock + */ +export class InterestBlock extends Message { + /** + * @generated from field: string interest_rate = 1; + */ + interestRate = ""; + + /** + * @generated from field: int64 block_time = 2; + */ + blockTime = protoInt64.zero; + + /** + * @generated from field: uint64 block_height = 3; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.stablestake.InterestBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterestBlock { + return new InterestBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterestBlock { + return new InterestBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterestBlock { + return new InterestBlock().fromJsonString(jsonString, options); + } + + static equals(a: InterestBlock | PlainMessage | undefined, b: InterestBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(InterestBlock, a, b); + } +} + diff --git a/src/protobufs/elys/tier/genesis_pb.ts b/src/protobufs/elys/tier/genesis_pb.ts new file mode 100644 index 00000000..5d6d625c --- /dev/null +++ b/src/protobufs/elys/tier/genesis_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/genesis.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Portfolio } from "./portfolio_pb.js"; + +/** + * GenesisState defines the tier module's genesis state. + * + * @generated from message elys.tier.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.tier.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.tier.Portfolio portfolio_list = 2; + */ + portfolioList: Portfolio[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "portfolio_list", kind: "message", T: Portfolio, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/tier/params_pb.ts b/src/protobufs/elys/tier/params_pb.ts new file mode 100644 index 00000000..fd597eb0 --- /dev/null +++ b/src/protobufs/elys/tier/params_pb.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/params.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.tier.Params + */ +export class Params extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/tier/portfolio_pb.ts b/src/protobufs/elys/tier/portfolio_pb.ts new file mode 100644 index 00000000..9dad01f2 --- /dev/null +++ b/src/protobufs/elys/tier/portfolio_pb.ts @@ -0,0 +1,100 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/portfolio.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.tier.LegacyPortfolio + */ +export class LegacyPortfolio extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string portfolio = 2; + */ + portfolio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.LegacyPortfolio"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "portfolio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPortfolio { + return new LegacyPortfolio().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPortfolio { + return new LegacyPortfolio().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPortfolio { + return new LegacyPortfolio().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPortfolio | PlainMessage | undefined, b: LegacyPortfolio | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPortfolio, a, b); + } +} + +/** + * @generated from message elys.tier.Portfolio + */ +export class Portfolio extends Message { + /** + * @generated from field: string date = 1; + */ + date = ""; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * @generated from field: string portfolio = 3; + */ + portfolio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.Portfolio"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "portfolio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Portfolio { + return new Portfolio().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Portfolio { + return new Portfolio().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Portfolio { + return new Portfolio().fromJsonString(jsonString, options); + } + + static equals(a: Portfolio | PlainMessage | undefined, b: Portfolio | PlainMessage | undefined): boolean { + return proto3.util.equals(Portfolio, a, b); + } +} + diff --git a/src/protobufs/elys/tier/query_cosmes.ts b/src/protobufs/elys/tier/query_cosmes.ts new file mode 100644 index 00000000..fe83ec17 --- /dev/null +++ b/src/protobufs/elys/tier/query_cosmes.ts @@ -0,0 +1,199 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tier/query.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllPortfolioRequest, QueryAllPortfolioResponse, QueryCalculateDiscountRequest, QueryCalculateDiscountResponse, QueryGetAllPricesRequest, QueryGetAllPricesResponse, QueryGetAmmPriceRequest, QueryGetAmmPriceResponse, QueryGetConsolidatedPriceRequest, QueryGetConsolidatedPriceResponse, QueryGetOraclePricesRequest, QueryGetOraclePricesResponse, QueryGetPortfolioRequest, QueryGetPortfolioResponse, QueryGetUsersPoolDataRequest, QueryGetUsersPoolDataResponse, QueryLeverageLpTotalRequest, QueryLeverageLpTotalResponse, QueryLiquidTotalRequest, QueryLiquidTotalResponse, QueryLockedOrderRequest, QueryLockedOrderResponse, QueryParamsRequest, QueryParamsResponse, QueryPerpetualRequest, QueryPerpetualResponse, QueryRewardsTotalRequest, QueryRewardsTotalResponse, QueryStakedPoolRequest, QueryStakedPoolResponse, QueryStakedRequest, QueryStakedResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.tier.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.tier.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of Portfolio items. + * + * @generated from rpc elys.tier.Query.Portfolio + */ +export const QueryPortfolioService = { + typeName: TYPE_NAME, + method: "Portfolio", + Request: QueryGetPortfolioRequest, + Response: QueryGetPortfolioResponse, +} as const; + +/** + * @generated from rpc elys.tier.Query.PortfolioAll + */ +export const QueryPortfolioAllService = { + typeName: TYPE_NAME, + method: "PortfolioAll", + Request: QueryAllPortfolioRequest, + Response: QueryAllPortfolioResponse, +} as const; + +/** + * Queries a list of CalculateDiscount items. + * + * @generated from rpc elys.tier.Query.CalculateDiscount + */ +export const QueryCalculateDiscountService = { + typeName: TYPE_NAME, + method: "CalculateDiscount", + Request: QueryCalculateDiscountRequest, + Response: QueryCalculateDiscountResponse, +} as const; + +/** + * Queries a list of LeverageLpTotal items. + * + * @generated from rpc elys.tier.Query.LeverageLpTotal + */ +export const QueryLeverageLpTotalService = { + typeName: TYPE_NAME, + method: "LeverageLpTotal", + Request: QueryLeverageLpTotalRequest, + Response: QueryLeverageLpTotalResponse, +} as const; + +/** + * Queries a list of RewardsTotal items. + * + * @generated from rpc elys.tier.Query.RewardsTotal + */ +export const QueryRewardsTotalService = { + typeName: TYPE_NAME, + method: "RewardsTotal", + Request: QueryRewardsTotalRequest, + Response: QueryRewardsTotalResponse, +} as const; + +/** + * Queries a list of StakedPool items. + * + * @generated from rpc elys.tier.Query.StakedPool + */ +export const QueryStakedPoolService = { + typeName: TYPE_NAME, + method: "StakedPool", + Request: QueryStakedPoolRequest, + Response: QueryStakedPoolResponse, +} as const; + +/** + * Queries a list of Perpetual items. + * + * @generated from rpc elys.tier.Query.Perpetual + */ +export const QueryPerpetualService = { + typeName: TYPE_NAME, + method: "Perpetual", + Request: QueryPerpetualRequest, + Response: QueryPerpetualResponse, +} as const; + +/** + * Queries a list of LiquidTotal items. + * + * @generated from rpc elys.tier.Query.LiquidTotal + */ +export const QueryLiquidTotalService = { + typeName: TYPE_NAME, + method: "LiquidTotal", + Request: QueryLiquidTotalRequest, + Response: QueryLiquidTotalResponse, +} as const; + +/** + * Queries a list of LockedOrder items. + * + * @generated from rpc elys.tier.Query.LockedOrder + */ +export const QueryLockedOrderService = { + typeName: TYPE_NAME, + method: "LockedOrder", + Request: QueryLockedOrderRequest, + Response: QueryLockedOrderResponse, +} as const; + +/** + * Queries a list of GetAmmPrice items. + * + * @generated from rpc elys.tier.Query.GetAmmPrice + */ +export const QueryGetAmmPriceService = { + typeName: TYPE_NAME, + method: "GetAmmPrice", + Request: QueryGetAmmPriceRequest, + Response: QueryGetAmmPriceResponse, +} as const; + +/** + * Queries a list of GetConsolidatedPrice items. + * + * @generated from rpc elys.tier.Query.GetConsolidatedPrice + */ +export const QueryGetConsolidatedPriceService = { + typeName: TYPE_NAME, + method: "GetConsolidatedPrice", + Request: QueryGetConsolidatedPriceRequest, + Response: QueryGetConsolidatedPriceResponse, +} as const; + +/** + * Queries a list of Staked items. + * + * @generated from rpc elys.tier.Query.Staked + */ +export const QueryStakedService = { + typeName: TYPE_NAME, + method: "Staked", + Request: QueryStakedRequest, + Response: QueryStakedResponse, +} as const; + +/** + * Queries a list of GetUsersPoolData items. + * + * @generated from rpc elys.tier.Query.GetUsersPoolData + */ +export const QueryGetUsersPoolDataService = { + typeName: TYPE_NAME, + method: "GetUsersPoolData", + Request: QueryGetUsersPoolDataRequest, + Response: QueryGetUsersPoolDataResponse, +} as const; + +/** + * Queries a list of GetConsolidatedPrice items. + * + * @generated from rpc elys.tier.Query.GetAllPrices + */ +export const QueryGetAllPricesService = { + typeName: TYPE_NAME, + method: "GetAllPrices", + Request: QueryGetAllPricesRequest, + Response: QueryGetAllPricesResponse, +} as const; + +/** + * Queries a list of Oracle prices from denoms. + * + * @generated from rpc elys.tier.Query.GetOraclePrices + */ +export const QueryGetOraclePricesService = { + typeName: TYPE_NAME, + method: "GetOraclePrices", + Request: QueryGetOraclePricesRequest, + Response: QueryGetOraclePricesResponse, +} as const; + diff --git a/src/protobufs/elys/tier/query_pb.ts b/src/protobufs/elys/tier/query_pb.ts new file mode 100644 index 00000000..87cf7c8a --- /dev/null +++ b/src/protobufs/elys/tier/query_pb.ts @@ -0,0 +1,1412 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/query.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Portfolio } from "./portfolio_pb.js"; +import { MembershipTier, UserData } from "./userdata_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.tier.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.tier.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.tier.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetPortfolioRequest + */ +export class QueryGetPortfolioRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetPortfolioRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPortfolioRequest { + return new QueryGetPortfolioRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPortfolioRequest { + return new QueryGetPortfolioRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPortfolioRequest { + return new QueryGetPortfolioRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPortfolioRequest | PlainMessage | undefined, b: QueryGetPortfolioRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPortfolioRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetPortfolioResponse + */ +export class QueryGetPortfolioResponse extends Message { + /** + * @generated from field: string total_portfolio = 1; + */ + totalPortfolio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetPortfolioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_portfolio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPortfolioResponse { + return new QueryGetPortfolioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPortfolioResponse { + return new QueryGetPortfolioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPortfolioResponse { + return new QueryGetPortfolioResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPortfolioResponse | PlainMessage | undefined, b: QueryGetPortfolioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPortfolioResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryAllPortfolioRequest + */ +export class QueryAllPortfolioRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryAllPortfolioRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPortfolioRequest { + return new QueryAllPortfolioRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPortfolioRequest { + return new QueryAllPortfolioRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPortfolioRequest { + return new QueryAllPortfolioRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPortfolioRequest | PlainMessage | undefined, b: QueryAllPortfolioRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPortfolioRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryAllPortfolioResponse + */ +export class QueryAllPortfolioResponse extends Message { + /** + * @generated from field: repeated elys.tier.Portfolio portfolio = 1; + */ + portfolio: Portfolio[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryAllPortfolioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "portfolio", kind: "message", T: Portfolio, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPortfolioResponse { + return new QueryAllPortfolioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPortfolioResponse { + return new QueryAllPortfolioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPortfolioResponse { + return new QueryAllPortfolioResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPortfolioResponse | PlainMessage | undefined, b: QueryAllPortfolioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPortfolioResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryCalculateDiscountRequest + */ +export class QueryCalculateDiscountRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryCalculateDiscountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateDiscountRequest { + return new QueryCalculateDiscountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateDiscountRequest { + return new QueryCalculateDiscountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateDiscountRequest { + return new QueryCalculateDiscountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateDiscountRequest | PlainMessage | undefined, b: QueryCalculateDiscountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateDiscountRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryCalculateDiscountResponse + */ +export class QueryCalculateDiscountResponse extends Message { + /** + * @generated from field: elys.tier.MembershipTier membership_tier = 1; + */ + membershipTier?: MembershipTier; + + /** + * @generated from field: string portfolio = 2; + */ + portfolio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryCalculateDiscountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "membership_tier", kind: "message", T: MembershipTier }, + { no: 2, name: "portfolio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateDiscountResponse { + return new QueryCalculateDiscountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateDiscountResponse { + return new QueryCalculateDiscountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateDiscountResponse { + return new QueryCalculateDiscountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateDiscountResponse | PlainMessage | undefined, b: QueryCalculateDiscountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateDiscountResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLeverageLpTotalRequest + */ +export class QueryLeverageLpTotalRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLeverageLpTotalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLeverageLpTotalRequest { + return new QueryLeverageLpTotalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLeverageLpTotalRequest { + return new QueryLeverageLpTotalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLeverageLpTotalRequest { + return new QueryLeverageLpTotalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLeverageLpTotalRequest | PlainMessage | undefined, b: QueryLeverageLpTotalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLeverageLpTotalRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLeverageLpTotalResponse + */ +export class QueryLeverageLpTotalResponse extends Message { + /** + * @generated from field: string total_value = 1; + */ + totalValue = ""; + + /** + * @generated from field: string total_borrows = 2; + */ + totalBorrows = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLeverageLpTotalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_borrows", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLeverageLpTotalResponse { + return new QueryLeverageLpTotalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLeverageLpTotalResponse { + return new QueryLeverageLpTotalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLeverageLpTotalResponse { + return new QueryLeverageLpTotalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLeverageLpTotalResponse | PlainMessage | undefined, b: QueryLeverageLpTotalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLeverageLpTotalResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryRewardsTotalRequest + */ +export class QueryRewardsTotalRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryRewardsTotalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsTotalRequest { + return new QueryRewardsTotalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsTotalRequest { + return new QueryRewardsTotalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsTotalRequest { + return new QueryRewardsTotalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsTotalRequest | PlainMessage | undefined, b: QueryRewardsTotalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsTotalRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryRewardsTotalResponse + */ +export class QueryRewardsTotalResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryRewardsTotalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsTotalResponse { + return new QueryRewardsTotalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsTotalResponse { + return new QueryRewardsTotalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsTotalResponse { + return new QueryRewardsTotalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsTotalResponse | PlainMessage | undefined, b: QueryRewardsTotalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsTotalResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryStakedPoolRequest + */ +export class QueryStakedPoolRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryStakedPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakedPoolRequest { + return new QueryStakedPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakedPoolRequest { + return new QueryStakedPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakedPoolRequest { + return new QueryStakedPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakedPoolRequest | PlainMessage | undefined, b: QueryStakedPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakedPoolRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryStakedPoolResponse + */ +export class QueryStakedPoolResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryStakedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakedPoolResponse { + return new QueryStakedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakedPoolResponse { + return new QueryStakedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakedPoolResponse { + return new QueryStakedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakedPoolResponse | PlainMessage | undefined, b: QueryStakedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakedPoolResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryPerpetualRequest + */ +export class QueryPerpetualRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryPerpetualRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualRequest { + return new QueryPerpetualRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualRequest { + return new QueryPerpetualRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualRequest { + return new QueryPerpetualRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualRequest | PlainMessage | undefined, b: QueryPerpetualRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryPerpetualResponse + */ +export class QueryPerpetualResponse extends Message { + /** + * @generated from field: string total_value = 1; + */ + totalValue = ""; + + /** + * @generated from field: string total_borrows = 2; + */ + totalBorrows = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryPerpetualResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_borrows", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualResponse { + return new QueryPerpetualResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualResponse { + return new QueryPerpetualResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualResponse { + return new QueryPerpetualResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualResponse | PlainMessage | undefined, b: QueryPerpetualResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLiquidTotalRequest + */ +export class QueryLiquidTotalRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLiquidTotalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidTotalRequest { + return new QueryLiquidTotalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidTotalRequest { + return new QueryLiquidTotalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidTotalRequest { + return new QueryLiquidTotalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidTotalRequest | PlainMessage | undefined, b: QueryLiquidTotalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidTotalRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLiquidTotalResponse + */ +export class QueryLiquidTotalResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLiquidTotalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidTotalResponse { + return new QueryLiquidTotalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidTotalResponse { + return new QueryLiquidTotalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidTotalResponse { + return new QueryLiquidTotalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidTotalResponse | PlainMessage | undefined, b: QueryLiquidTotalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidTotalResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLockedOrderRequest + */ +export class QueryLockedOrderRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLockedOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockedOrderRequest { + return new QueryLockedOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockedOrderRequest { + return new QueryLockedOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockedOrderRequest { + return new QueryLockedOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockedOrderRequest | PlainMessage | undefined, b: QueryLockedOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockedOrderRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryLockedOrderResponse + */ +export class QueryLockedOrderResponse extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryLockedOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockedOrderResponse { + return new QueryLockedOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockedOrderResponse { + return new QueryLockedOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockedOrderResponse { + return new QueryLockedOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockedOrderResponse | PlainMessage | undefined, b: QueryLockedOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockedOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetAmmPriceRequest + */ +export class QueryGetAmmPriceRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: int32 decimal = 2; + */ + decimal = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetAmmPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "decimal", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAmmPriceRequest { + return new QueryGetAmmPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAmmPriceRequest { + return new QueryGetAmmPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAmmPriceRequest { + return new QueryGetAmmPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAmmPriceRequest | PlainMessage | undefined, b: QueryGetAmmPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAmmPriceRequest, a, b); + } +} + +/** + * We use a submessage to avoid the issue with the gRPC codec + * https://github.com/cosmos/cosmos-sdk/issues/18430 + * + * @generated from message elys.tier.GetAmmPriceResponseResult + */ +export class GetAmmPriceResponseResult extends Message { + /** + * @generated from field: string total = 1; + */ + total = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.GetAmmPriceResponseResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAmmPriceResponseResult { + return new GetAmmPriceResponseResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAmmPriceResponseResult { + return new GetAmmPriceResponseResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAmmPriceResponseResult { + return new GetAmmPriceResponseResult().fromJsonString(jsonString, options); + } + + static equals(a: GetAmmPriceResponseResult | PlainMessage | undefined, b: GetAmmPriceResponseResult | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAmmPriceResponseResult, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetAmmPriceResponse + */ +export class QueryGetAmmPriceResponse extends Message { + /** + * @generated from field: elys.tier.GetAmmPriceResponseResult result = 1; + */ + result?: GetAmmPriceResponseResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetAmmPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: GetAmmPriceResponseResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAmmPriceResponse { + return new QueryGetAmmPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAmmPriceResponse { + return new QueryGetAmmPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAmmPriceResponse { + return new QueryGetAmmPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAmmPriceResponse | PlainMessage | undefined, b: QueryGetAmmPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAmmPriceResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetConsolidatedPriceRequest + */ +export class QueryGetConsolidatedPriceRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetConsolidatedPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetConsolidatedPriceRequest { + return new QueryGetConsolidatedPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetConsolidatedPriceRequest { + return new QueryGetConsolidatedPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetConsolidatedPriceRequest { + return new QueryGetConsolidatedPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetConsolidatedPriceRequest | PlainMessage | undefined, b: QueryGetConsolidatedPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetConsolidatedPriceRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetConsolidatedPriceResponse + */ +export class QueryGetConsolidatedPriceResponse extends Message { + /** + * @generated from field: string amm_price = 1; + */ + ammPrice = ""; + + /** + * @generated from field: string oracle_price = 2; + */ + oraclePrice = ""; + + /** + * @generated from field: string oracle_price_dec = 3; + */ + oraclePriceDec = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetConsolidatedPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amm_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_price_dec", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetConsolidatedPriceResponse { + return new QueryGetConsolidatedPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetConsolidatedPriceResponse { + return new QueryGetConsolidatedPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetConsolidatedPriceResponse { + return new QueryGetConsolidatedPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetConsolidatedPriceResponse | PlainMessage | undefined, b: QueryGetConsolidatedPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetConsolidatedPriceResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryStakedRequest + */ +export class QueryStakedRequest extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryStakedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakedRequest { + return new QueryStakedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakedRequest { + return new QueryStakedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakedRequest { + return new QueryStakedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakedRequest | PlainMessage | undefined, b: QueryStakedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakedRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryStakedResponse + */ +export class QueryStakedResponse extends Message { + /** + * @generated from field: string commitments = 1; + */ + commitments = ""; + + /** + * @generated from field: string delegations = 2; + */ + delegations = ""; + + /** + * @generated from field: string unbondings = 3; + */ + unbondings = ""; + + /** + * @generated from field: string total_vested = 4; + */ + totalVested = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryStakedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commitments", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "delegations", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "unbondings", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_vested", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStakedResponse { + return new QueryStakedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStakedResponse { + return new QueryStakedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStakedResponse { + return new QueryStakedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStakedResponse | PlainMessage | undefined, b: QueryStakedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStakedResponse, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetUsersPoolDataRequest + */ +export class QueryGetUsersPoolDataRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetUsersPoolDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUsersPoolDataRequest { + return new QueryGetUsersPoolDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUsersPoolDataRequest { + return new QueryGetUsersPoolDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUsersPoolDataRequest { + return new QueryGetUsersPoolDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUsersPoolDataRequest | PlainMessage | undefined, b: QueryGetUsersPoolDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUsersPoolDataRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetUsersPoolDataResponse + */ +export class QueryGetUsersPoolDataResponse extends Message { + /** + * @generated from field: repeated elys.tier.UserData users = 1; + */ + users: UserData[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetUsersPoolDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "users", kind: "message", T: UserData, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUsersPoolDataResponse { + return new QueryGetUsersPoolDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUsersPoolDataResponse { + return new QueryGetUsersPoolDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUsersPoolDataResponse { + return new QueryGetUsersPoolDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUsersPoolDataResponse | PlainMessage | undefined, b: QueryGetUsersPoolDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUsersPoolDataResponse, a, b); + } +} + +/** + * @generated from message elys.tier.Price + */ +export class Price extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string oracle_price = 2; + */ + oraclePrice = ""; + + /** + * @generated from field: string amm_price = 3; + */ + ammPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.Price"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amm_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Price { + return new Price().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Price { + return new Price().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Price { + return new Price().fromJsonString(jsonString, options); + } + + static equals(a: Price | PlainMessage | undefined, b: Price | PlainMessage | undefined): boolean { + return proto3.util.equals(Price, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetAllPricesRequest + */ +export class QueryGetAllPricesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetAllPricesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAllPricesRequest { + return new QueryGetAllPricesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAllPricesRequest { + return new QueryGetAllPricesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAllPricesRequest { + return new QueryGetAllPricesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAllPricesRequest | PlainMessage | undefined, b: QueryGetAllPricesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAllPricesRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetAllPricesResponse + */ +export class QueryGetAllPricesResponse extends Message { + /** + * @generated from field: repeated elys.tier.Price prices = 1; + */ + prices: Price[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetAllPricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "prices", kind: "message", T: Price, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAllPricesResponse { + return new QueryGetAllPricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAllPricesResponse { + return new QueryGetAllPricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAllPricesResponse { + return new QueryGetAllPricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAllPricesResponse | PlainMessage | undefined, b: QueryGetAllPricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAllPricesResponse, a, b); + } +} + +/** + * @generated from message elys.tier.OraclePrice + */ +export class OraclePrice extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string oracle_price = 2; + */ + oraclePrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.OraclePrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePrice { + return new OraclePrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePrice { + return new OraclePrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePrice { + return new OraclePrice().fromJsonString(jsonString, options); + } + + static equals(a: OraclePrice | PlainMessage | undefined, b: OraclePrice | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePrice, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetOraclePricesRequest + */ +export class QueryGetOraclePricesRequest extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetOraclePricesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOraclePricesRequest { + return new QueryGetOraclePricesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOraclePricesRequest { + return new QueryGetOraclePricesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOraclePricesRequest { + return new QueryGetOraclePricesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOraclePricesRequest | PlainMessage | undefined, b: QueryGetOraclePricesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOraclePricesRequest, a, b); + } +} + +/** + * @generated from message elys.tier.QueryGetOraclePricesResponse + */ +export class QueryGetOraclePricesResponse extends Message { + /** + * @generated from field: repeated elys.tier.OraclePrice prices = 1; + */ + prices: OraclePrice[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.QueryGetOraclePricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "prices", kind: "message", T: OraclePrice, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOraclePricesResponse { + return new QueryGetOraclePricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOraclePricesResponse { + return new QueryGetOraclePricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOraclePricesResponse { + return new QueryGetOraclePricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOraclePricesResponse | PlainMessage | undefined, b: QueryGetOraclePricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOraclePricesResponse, a, b); + } +} + diff --git a/src/protobufs/elys/tier/tx_cosmes.ts b/src/protobufs/elys/tier/tx_cosmes.ts new file mode 100644 index 00000000..ce47653b --- /dev/null +++ b/src/protobufs/elys/tier/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tier/tx.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSetPortfolio, MsgSetPortfolioResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.tier.Msg"; + +/** + * @generated from rpc elys.tier.Msg.SetPortfolio + */ +export const MsgSetPortfolioService = { + typeName: TYPE_NAME, + method: "SetPortfolio", + Request: MsgSetPortfolio, + Response: MsgSetPortfolioResponse, +} as const; + diff --git a/src/protobufs/elys/tier/tx_pb.ts b/src/protobufs/elys/tier/tx_pb.ts new file mode 100644 index 00000000..f9fb9758 --- /dev/null +++ b/src/protobufs/elys/tier/tx_pb.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/tx.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.tier.MsgSetPortfolio + */ +export class MsgSetPortfolio extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string user = 2; + */ + user = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.MsgSetPortfolio"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPortfolio { + return new MsgSetPortfolio().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPortfolio { + return new MsgSetPortfolio().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPortfolio { + return new MsgSetPortfolio().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPortfolio | PlainMessage | undefined, b: MsgSetPortfolio | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPortfolio, a, b); + } +} + +/** + * @generated from message elys.tier.MsgSetPortfolioResponse + */ +export class MsgSetPortfolioResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.MsgSetPortfolioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPortfolioResponse { + return new MsgSetPortfolioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPortfolioResponse { + return new MsgSetPortfolioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPortfolioResponse { + return new MsgSetPortfolioResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPortfolioResponse | PlainMessage | undefined, b: MsgSetPortfolioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPortfolioResponse, a, b); + } +} + diff --git a/src/protobufs/elys/tier/userdata_pb.ts b/src/protobufs/elys/tier/userdata_pb.ts new file mode 100644 index 00000000..aa7b72c4 --- /dev/null +++ b/src/protobufs/elys/tier/userdata_pb.ts @@ -0,0 +1,193 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tier/userdata.proto (package elys.tier, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum elys.tier.MembershipTierType + */ +export enum MembershipTierType { + /** + * @generated from enum value: BASIC = 0; + */ + BASIC = 0, + + /** + * @generated from enum value: BRONZE = 1; + */ + BRONZE = 1, + + /** + * @generated from enum value: SILVER = 2; + */ + SILVER = 2, + + /** + * @generated from enum value: GOLD = 3; + */ + GOLD = 3, + + /** + * @generated from enum value: PLATINUM = 4; + */ + PLATINUM = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(MembershipTierType) +proto3.util.setEnumType(MembershipTierType, "elys.tier.MembershipTierType", [ + { no: 0, name: "BASIC" }, + { no: 1, name: "BRONZE" }, + { no: 2, name: "SILVER" }, + { no: 3, name: "GOLD" }, + { no: 4, name: "PLATINUM" }, +]); + +/** + * @generated from message elys.tier.UserData + */ +export class UserData extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + /** + * @generated from field: repeated elys.tier.Pool pools = 2; + */ + pools: Pool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.UserData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pools", kind: "message", T: Pool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserData { + return new UserData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserData { + return new UserData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserData { + return new UserData().fromJsonString(jsonString, options); + } + + static equals(a: UserData | PlainMessage | undefined, b: UserData | PlainMessage | undefined): boolean { + return proto3.util.equals(UserData, a, b); + } +} + +/** + * @generated from message elys.tier.Pool + */ +export class Pool extends Message { + /** + * @generated from field: string pool_id = 1; + */ + poolId = ""; + + /** + * @generated from field: string pool = 2; + */ + pool = ""; + + /** + * @generated from field: string fiat_value = 3; + */ + fiatValue = ""; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fiat_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message elys.tier.MembershipTier + */ +export class MembershipTier extends Message { + /** + * @generated from field: string minimum_portfolio = 1; + */ + minimumPortfolio = ""; + + /** + * @generated from field: elys.tier.MembershipTierType membership = 2; + */ + membership = MembershipTierType.BASIC; + + /** + * @generated from field: string discount = 3; + */ + discount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tier.MembershipTier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minimum_portfolio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "membership", kind: "enum", T: proto3.getEnumType(MembershipTierType) }, + { no: 3, name: "discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MembershipTier { + return new MembershipTier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MembershipTier { + return new MembershipTier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MembershipTier { + return new MembershipTier().fromJsonString(jsonString, options); + } + + static equals(a: MembershipTier | PlainMessage | undefined, b: MembershipTier | PlainMessage | undefined): boolean { + return proto3.util.equals(MembershipTier, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/airdrop_pb.ts b/src/protobufs/elys/tokenomics/airdrop_pb.ts new file mode 100644 index 00000000..5b2724a6 --- /dev/null +++ b/src/protobufs/elys/tokenomics/airdrop_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/airdrop.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.tokenomics.Airdrop + */ +export class Airdrop extends Message { + /** + * @generated from field: string intent = 1; + */ + intent = ""; + + /** + * @generated from field: uint64 amount = 2; + */ + amount = protoInt64.zero; + + /** + * @generated from field: string authority = 3; + */ + authority = ""; + + /** + * @generated from field: uint64 expiry = 4; + */ + expiry = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.Airdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expiry", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Airdrop { + return new Airdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Airdrop { + return new Airdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Airdrop { + return new Airdrop().fromJsonString(jsonString, options); + } + + static equals(a: Airdrop | PlainMessage | undefined, b: Airdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(Airdrop, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/genesis_inflation_pb.ts b/src/protobufs/elys/tokenomics/genesis_inflation_pb.ts new file mode 100644 index 00000000..0ab61337 --- /dev/null +++ b/src/protobufs/elys/tokenomics/genesis_inflation_pb.ts @@ -0,0 +1,64 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/genesis_inflation.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { InflationEntry } from "./inflation_entry_pb.js"; + +/** + * @generated from message elys.tokenomics.GenesisInflation + */ +export class GenesisInflation extends Message { + /** + * @generated from field: elys.tokenomics.InflationEntry inflation = 1; + */ + inflation?: InflationEntry; + + /** + * @generated from field: uint64 seed_vesting = 2; + */ + seedVesting = protoInt64.zero; + + /** + * @generated from field: uint64 strategic_sales_vesting = 3; + */ + strategicSalesVesting = protoInt64.zero; + + /** + * @generated from field: string authority = 4; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.GenesisInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation", kind: "message", T: InflationEntry }, + { no: 2, name: "seed_vesting", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "strategic_sales_vesting", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisInflation { + return new GenesisInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisInflation { + return new GenesisInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisInflation { + return new GenesisInflation().fromJsonString(jsonString, options); + } + + static equals(a: GenesisInflation | PlainMessage | undefined, b: GenesisInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisInflation, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/genesis_pb.ts b/src/protobufs/elys/tokenomics/genesis_pb.ts new file mode 100644 index 00000000..3e871483 --- /dev/null +++ b/src/protobufs/elys/tokenomics/genesis_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/genesis.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Airdrop } from "./airdrop_pb.js"; +import { GenesisInflation } from "./genesis_inflation_pb.js"; +import { TimeBasedInflation } from "./time_based_inflation_pb.js"; + +/** + * GenesisState defines the tokenomics module's genesis state. + * + * @generated from message elys.tokenomics.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.tokenomics.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.tokenomics.Airdrop airdrop_list = 2; + */ + airdropList: Airdrop[] = []; + + /** + * @generated from field: elys.tokenomics.GenesisInflation genesis_inflation = 3; + */ + genesisInflation?: GenesisInflation; + + /** + * @generated from field: repeated elys.tokenomics.TimeBasedInflation time_based_inflation_list = 4; + */ + timeBasedInflationList: TimeBasedInflation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "airdrop_list", kind: "message", T: Airdrop, repeated: true }, + { no: 3, name: "genesis_inflation", kind: "message", T: GenesisInflation }, + { no: 4, name: "time_based_inflation_list", kind: "message", T: TimeBasedInflation, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/inflation_entry_pb.ts b/src/protobufs/elys/tokenomics/inflation_entry_pb.ts new file mode 100644 index 00000000..0a039950 --- /dev/null +++ b/src/protobufs/elys/tokenomics/inflation_entry_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/inflation_entry.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.tokenomics.InflationEntry + */ +export class InflationEntry extends Message { + /** + * @generated from field: uint64 lm_rewards = 1; + */ + lmRewards = protoInt64.zero; + + /** + * @generated from field: uint64 ics_staking_rewards = 2; + */ + icsStakingRewards = protoInt64.zero; + + /** + * @generated from field: uint64 community_fund = 3; + */ + communityFund = protoInt64.zero; + + /** + * @generated from field: uint64 strategic_reserve = 4; + */ + strategicReserve = protoInt64.zero; + + /** + * @generated from field: uint64 team_tokens_vested = 5; + */ + teamTokensVested = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.InflationEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lm_rewards", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "ics_staking_rewards", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "community_fund", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "strategic_reserve", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "team_tokens_vested", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InflationEntry { + return new InflationEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InflationEntry { + return new InflationEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InflationEntry { + return new InflationEntry().fromJsonString(jsonString, options); + } + + static equals(a: InflationEntry | PlainMessage | undefined, b: InflationEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(InflationEntry, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/params_pb.ts b/src/protobufs/elys/tokenomics/params_pb.ts new file mode 100644 index 00000000..7a9c16d5 --- /dev/null +++ b/src/protobufs/elys/tokenomics/params_pb.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/params.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.tokenomics.Params + */ +export class Params extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/query_cosmes.ts b/src/protobufs/elys/tokenomics/query_cosmes.ts new file mode 100644 index 00000000..d2b22226 --- /dev/null +++ b/src/protobufs/elys/tokenomics/query_cosmes.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tokenomics/query.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllAirdropRequest, QueryAllAirdropResponse, QueryAllTimeBasedInflationRequest, QueryAllTimeBasedInflationResponse, QueryGetAirdropRequest, QueryGetAirdropResponse, QueryGetGenesisInflationRequest, QueryGetGenesisInflationResponse, QueryGetTimeBasedInflationRequest, QueryGetTimeBasedInflationResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.tokenomics.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.tokenomics.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of Airdrop items. + * + * @generated from rpc elys.tokenomics.Query.Airdrop + */ +export const QueryAirdropService = { + typeName: TYPE_NAME, + method: "Airdrop", + Request: QueryGetAirdropRequest, + Response: QueryGetAirdropResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Query.AirdropAll + */ +export const QueryAirdropAllService = { + typeName: TYPE_NAME, + method: "AirdropAll", + Request: QueryAllAirdropRequest, + Response: QueryAllAirdropResponse, +} as const; + +/** + * Queries a GenesisInflation by index. + * + * @generated from rpc elys.tokenomics.Query.GenesisInflation + */ +export const QueryGenesisInflationService = { + typeName: TYPE_NAME, + method: "GenesisInflation", + Request: QueryGetGenesisInflationRequest, + Response: QueryGetGenesisInflationResponse, +} as const; + +/** + * Queries a list of TimeBasedInflation items. + * + * @generated from rpc elys.tokenomics.Query.TimeBasedInflation + */ +export const QueryTimeBasedInflationService = { + typeName: TYPE_NAME, + method: "TimeBasedInflation", + Request: QueryGetTimeBasedInflationRequest, + Response: QueryGetTimeBasedInflationResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Query.TimeBasedInflationAll + */ +export const QueryTimeBasedInflationAllService = { + typeName: TYPE_NAME, + method: "TimeBasedInflationAll", + Request: QueryAllTimeBasedInflationRequest, + Response: QueryAllTimeBasedInflationResponse, +} as const; + diff --git a/src/protobufs/elys/tokenomics/query_pb.ts b/src/protobufs/elys/tokenomics/query_pb.ts new file mode 100644 index 00000000..3cf3365c --- /dev/null +++ b/src/protobufs/elys/tokenomics/query_pb.ts @@ -0,0 +1,469 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/query.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Airdrop } from "./airdrop_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { GenesisInflation } from "./genesis_inflation_pb.js"; +import { TimeBasedInflation } from "./time_based_inflation_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.tokenomics.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.tokenomics.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.tokenomics.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetAirdropRequest + */ +export class QueryGetAirdropRequest extends Message { + /** + * @generated from field: string intent = 1; + */ + intent = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetAirdropRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAirdropRequest { + return new QueryGetAirdropRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAirdropRequest { + return new QueryGetAirdropRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAirdropRequest { + return new QueryGetAirdropRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAirdropRequest | PlainMessage | undefined, b: QueryGetAirdropRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAirdropRequest, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetAirdropResponse + */ +export class QueryGetAirdropResponse extends Message { + /** + * @generated from field: elys.tokenomics.Airdrop airdrop = 1; + */ + airdrop?: Airdrop; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "airdrop", kind: "message", T: Airdrop }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAirdropResponse { + return new QueryGetAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAirdropResponse { + return new QueryGetAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAirdropResponse { + return new QueryGetAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAirdropResponse | PlainMessage | undefined, b: QueryGetAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryAllAirdropRequest + */ +export class QueryAllAirdropRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryAllAirdropRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAirdropRequest { + return new QueryAllAirdropRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAirdropRequest { + return new QueryAllAirdropRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAirdropRequest { + return new QueryAllAirdropRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAirdropRequest | PlainMessage | undefined, b: QueryAllAirdropRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAirdropRequest, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryAllAirdropResponse + */ +export class QueryAllAirdropResponse extends Message { + /** + * @generated from field: repeated elys.tokenomics.Airdrop airdrop = 1; + */ + airdrop: Airdrop[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryAllAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "airdrop", kind: "message", T: Airdrop, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAirdropResponse { + return new QueryAllAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAirdropResponse { + return new QueryAllAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAirdropResponse { + return new QueryAllAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAirdropResponse | PlainMessage | undefined, b: QueryAllAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetGenesisInflationRequest + */ +export class QueryGetGenesisInflationRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetGenesisInflationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGenesisInflationRequest { + return new QueryGetGenesisInflationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGenesisInflationRequest { + return new QueryGetGenesisInflationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGenesisInflationRequest { + return new QueryGetGenesisInflationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetGenesisInflationRequest | PlainMessage | undefined, b: QueryGetGenesisInflationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetGenesisInflationRequest, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetGenesisInflationResponse + */ +export class QueryGetGenesisInflationResponse extends Message { + /** + * @generated from field: elys.tokenomics.GenesisInflation genesis_inflation = 1; + */ + genesisInflation?: GenesisInflation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetGenesisInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "genesis_inflation", kind: "message", T: GenesisInflation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGenesisInflationResponse { + return new QueryGetGenesisInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGenesisInflationResponse { + return new QueryGetGenesisInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGenesisInflationResponse { + return new QueryGetGenesisInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetGenesisInflationResponse | PlainMessage | undefined, b: QueryGetGenesisInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetGenesisInflationResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetTimeBasedInflationRequest + */ +export class QueryGetTimeBasedInflationRequest extends Message { + /** + * @generated from field: uint64 start_block_height = 1; + */ + startBlockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_block_height = 2; + */ + endBlockHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetTimeBasedInflationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "end_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTimeBasedInflationRequest { + return new QueryGetTimeBasedInflationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTimeBasedInflationRequest { + return new QueryGetTimeBasedInflationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTimeBasedInflationRequest { + return new QueryGetTimeBasedInflationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetTimeBasedInflationRequest | PlainMessage | undefined, b: QueryGetTimeBasedInflationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetTimeBasedInflationRequest, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryGetTimeBasedInflationResponse + */ +export class QueryGetTimeBasedInflationResponse extends Message { + /** + * @generated from field: elys.tokenomics.TimeBasedInflation time_based_inflation = 1; + */ + timeBasedInflation?: TimeBasedInflation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryGetTimeBasedInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "time_based_inflation", kind: "message", T: TimeBasedInflation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTimeBasedInflationResponse { + return new QueryGetTimeBasedInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTimeBasedInflationResponse { + return new QueryGetTimeBasedInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTimeBasedInflationResponse { + return new QueryGetTimeBasedInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetTimeBasedInflationResponse | PlainMessage | undefined, b: QueryGetTimeBasedInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetTimeBasedInflationResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryAllTimeBasedInflationRequest + */ +export class QueryAllTimeBasedInflationRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryAllTimeBasedInflationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTimeBasedInflationRequest { + return new QueryAllTimeBasedInflationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTimeBasedInflationRequest { + return new QueryAllTimeBasedInflationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTimeBasedInflationRequest { + return new QueryAllTimeBasedInflationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTimeBasedInflationRequest | PlainMessage | undefined, b: QueryAllTimeBasedInflationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTimeBasedInflationRequest, a, b); + } +} + +/** + * @generated from message elys.tokenomics.QueryAllTimeBasedInflationResponse + */ +export class QueryAllTimeBasedInflationResponse extends Message { + /** + * @generated from field: repeated elys.tokenomics.TimeBasedInflation time_based_inflation = 1; + */ + timeBasedInflation: TimeBasedInflation[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.QueryAllTimeBasedInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "time_based_inflation", kind: "message", T: TimeBasedInflation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTimeBasedInflationResponse { + return new QueryAllTimeBasedInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTimeBasedInflationResponse { + return new QueryAllTimeBasedInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTimeBasedInflationResponse { + return new QueryAllTimeBasedInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTimeBasedInflationResponse | PlainMessage | undefined, b: QueryAllTimeBasedInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTimeBasedInflationResponse, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/time_based_inflation_pb.ts b/src/protobufs/elys/tokenomics/time_based_inflation_pb.ts new file mode 100644 index 00000000..1f49c1f1 --- /dev/null +++ b/src/protobufs/elys/tokenomics/time_based_inflation_pb.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/time_based_inflation.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { InflationEntry } from "./inflation_entry_pb.js"; + +/** + * @generated from message elys.tokenomics.TimeBasedInflation + */ +export class TimeBasedInflation extends Message { + /** + * @generated from field: uint64 start_block_height = 1; + */ + startBlockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_block_height = 2; + */ + endBlockHeight = protoInt64.zero; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * @generated from field: elys.tokenomics.InflationEntry inflation = 4; + */ + inflation?: InflationEntry; + + /** + * @generated from field: string authority = 5; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.TimeBasedInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "end_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "inflation", kind: "message", T: InflationEntry }, + { no: 5, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TimeBasedInflation { + return new TimeBasedInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TimeBasedInflation { + return new TimeBasedInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TimeBasedInflation { + return new TimeBasedInflation().fromJsonString(jsonString, options); + } + + static equals(a: TimeBasedInflation | PlainMessage | undefined, b: TimeBasedInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(TimeBasedInflation, a, b); + } +} + diff --git a/src/protobufs/elys/tokenomics/tx_cosmes.ts b/src/protobufs/elys/tokenomics/tx_cosmes.ts new file mode 100644 index 00000000..64c1fd32 --- /dev/null +++ b/src/protobufs/elys/tokenomics/tx_cosmes.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tokenomics/tx.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimAirdrop, MsgClaimAirdropResponse, MsgCreateAirdrop, MsgCreateAirdropResponse, MsgCreateTimeBasedInflation, MsgCreateTimeBasedInflationResponse, MsgDeleteAirdrop, MsgDeleteAirdropResponse, MsgDeleteTimeBasedInflation, MsgDeleteTimeBasedInflationResponse, MsgUpdateAirdrop, MsgUpdateAirdropResponse, MsgUpdateGenesisInflation, MsgUpdateGenesisInflationResponse, MsgUpdateTimeBasedInflation, MsgUpdateTimeBasedInflationResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.tokenomics.Msg"; + +/** + * @generated from rpc elys.tokenomics.Msg.CreateAirdrop + */ +export const MsgCreateAirdropService = { + typeName: TYPE_NAME, + method: "CreateAirdrop", + Request: MsgCreateAirdrop, + Response: MsgCreateAirdropResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.UpdateAirdrop + */ +export const MsgUpdateAirdropService = { + typeName: TYPE_NAME, + method: "UpdateAirdrop", + Request: MsgUpdateAirdrop, + Response: MsgUpdateAirdropResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.DeleteAirdrop + */ +export const MsgDeleteAirdropService = { + typeName: TYPE_NAME, + method: "DeleteAirdrop", + Request: MsgDeleteAirdrop, + Response: MsgDeleteAirdropResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.ClaimAirdrop + */ +export const MsgClaimAirdropService = { + typeName: TYPE_NAME, + method: "ClaimAirdrop", + Request: MsgClaimAirdrop, + Response: MsgClaimAirdropResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.UpdateGenesisInflation + */ +export const MsgUpdateGenesisInflationService = { + typeName: TYPE_NAME, + method: "UpdateGenesisInflation", + Request: MsgUpdateGenesisInflation, + Response: MsgUpdateGenesisInflationResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.CreateTimeBasedInflation + */ +export const MsgCreateTimeBasedInflationService = { + typeName: TYPE_NAME, + method: "CreateTimeBasedInflation", + Request: MsgCreateTimeBasedInflation, + Response: MsgCreateTimeBasedInflationResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.UpdateTimeBasedInflation + */ +export const MsgUpdateTimeBasedInflationService = { + typeName: TYPE_NAME, + method: "UpdateTimeBasedInflation", + Request: MsgUpdateTimeBasedInflation, + Response: MsgUpdateTimeBasedInflationResponse, +} as const; + +/** + * @generated from rpc elys.tokenomics.Msg.DeleteTimeBasedInflation + */ +export const MsgDeleteTimeBasedInflationService = { + typeName: TYPE_NAME, + method: "DeleteTimeBasedInflation", + Request: MsgDeleteTimeBasedInflation, + Response: MsgDeleteTimeBasedInflationResponse, +} as const; + diff --git a/src/protobufs/elys/tokenomics/tx_pb.ts b/src/protobufs/elys/tokenomics/tx_pb.ts new file mode 100644 index 00000000..8f55375c --- /dev/null +++ b/src/protobufs/elys/tokenomics/tx_pb.ts @@ -0,0 +1,673 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tokenomics/tx.proto (package elys.tokenomics, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { InflationEntry } from "./inflation_entry_pb.js"; + +/** + * @generated from message elys.tokenomics.MsgCreateAirdrop + */ +export class MsgCreateAirdrop extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string intent = 2; + */ + intent = ""; + + /** + * @generated from field: uint64 amount = 3; + */ + amount = protoInt64.zero; + + /** + * @generated from field: uint64 expiry = 4; + */ + expiry = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgCreateAirdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "expiry", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAirdrop { + return new MsgCreateAirdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAirdrop { + return new MsgCreateAirdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAirdrop { + return new MsgCreateAirdrop().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAirdrop | PlainMessage | undefined, b: MsgCreateAirdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAirdrop, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgCreateAirdropResponse + */ +export class MsgCreateAirdropResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgCreateAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAirdropResponse { + return new MsgCreateAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAirdropResponse { + return new MsgCreateAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAirdropResponse { + return new MsgCreateAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAirdropResponse | PlainMessage | undefined, b: MsgCreateAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateAirdrop + */ +export class MsgUpdateAirdrop extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string intent = 2; + */ + intent = ""; + + /** + * @generated from field: uint64 amount = 3; + */ + amount = protoInt64.zero; + + /** + * @generated from field: uint64 expiry = 4; + */ + expiry = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateAirdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "expiry", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAirdrop { + return new MsgUpdateAirdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAirdrop { + return new MsgUpdateAirdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAirdrop { + return new MsgUpdateAirdrop().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAirdrop | PlainMessage | undefined, b: MsgUpdateAirdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAirdrop, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateAirdropResponse + */ +export class MsgUpdateAirdropResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAirdropResponse { + return new MsgUpdateAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAirdropResponse { + return new MsgUpdateAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAirdropResponse { + return new MsgUpdateAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateAirdropResponse | PlainMessage | undefined, b: MsgUpdateAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgDeleteAirdrop + */ +export class MsgDeleteAirdrop extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string intent = 2; + */ + intent = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgDeleteAirdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "intent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteAirdrop { + return new MsgDeleteAirdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteAirdrop { + return new MsgDeleteAirdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteAirdrop { + return new MsgDeleteAirdrop().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteAirdrop | PlainMessage | undefined, b: MsgDeleteAirdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteAirdrop, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgDeleteAirdropResponse + */ +export class MsgDeleteAirdropResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgDeleteAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteAirdropResponse { + return new MsgDeleteAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteAirdropResponse { + return new MsgDeleteAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteAirdropResponse { + return new MsgDeleteAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteAirdropResponse | PlainMessage | undefined, b: MsgDeleteAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgClaimAirdrop + */ +export class MsgClaimAirdrop extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgClaimAirdrop"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAirdrop { + return new MsgClaimAirdrop().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAirdrop | PlainMessage | undefined, b: MsgClaimAirdrop | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAirdrop, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgClaimAirdropResponse + */ +export class MsgClaimAirdropResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgClaimAirdropResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAirdropResponse { + return new MsgClaimAirdropResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAirdropResponse | PlainMessage | undefined, b: MsgClaimAirdropResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAirdropResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateGenesisInflation + */ +export class MsgUpdateGenesisInflation extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: elys.tokenomics.InflationEntry inflation = 3; + */ + inflation?: InflationEntry; + + /** + * @generated from field: uint64 seed_vesting = 4; + */ + seedVesting = protoInt64.zero; + + /** + * @generated from field: uint64 strategic_sales_vesting = 5; + */ + strategicSalesVesting = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateGenesisInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "inflation", kind: "message", T: InflationEntry }, + { no: 4, name: "seed_vesting", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "strategic_sales_vesting", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGenesisInflation { + return new MsgUpdateGenesisInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGenesisInflation { + return new MsgUpdateGenesisInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGenesisInflation { + return new MsgUpdateGenesisInflation().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateGenesisInflation | PlainMessage | undefined, b: MsgUpdateGenesisInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateGenesisInflation, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateGenesisInflationResponse + */ +export class MsgUpdateGenesisInflationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateGenesisInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGenesisInflationResponse { + return new MsgUpdateGenesisInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGenesisInflationResponse { + return new MsgUpdateGenesisInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGenesisInflationResponse { + return new MsgUpdateGenesisInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateGenesisInflationResponse | PlainMessage | undefined, b: MsgUpdateGenesisInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateGenesisInflationResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgCreateTimeBasedInflation + */ +export class MsgCreateTimeBasedInflation extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 start_block_height = 2; + */ + startBlockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_block_height = 3; + */ + endBlockHeight = protoInt64.zero; + + /** + * @generated from field: string description = 4; + */ + description = ""; + + /** + * @generated from field: elys.tokenomics.InflationEntry inflation = 5; + */ + inflation?: InflationEntry; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgCreateTimeBasedInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "end_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "inflation", kind: "message", T: InflationEntry }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTimeBasedInflation { + return new MsgCreateTimeBasedInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTimeBasedInflation { + return new MsgCreateTimeBasedInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTimeBasedInflation { + return new MsgCreateTimeBasedInflation().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateTimeBasedInflation | PlainMessage | undefined, b: MsgCreateTimeBasedInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateTimeBasedInflation, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgCreateTimeBasedInflationResponse + */ +export class MsgCreateTimeBasedInflationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgCreateTimeBasedInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTimeBasedInflationResponse { + return new MsgCreateTimeBasedInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTimeBasedInflationResponse { + return new MsgCreateTimeBasedInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTimeBasedInflationResponse { + return new MsgCreateTimeBasedInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateTimeBasedInflationResponse | PlainMessage | undefined, b: MsgCreateTimeBasedInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateTimeBasedInflationResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateTimeBasedInflation + */ +export class MsgUpdateTimeBasedInflation extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 start_block_height = 2; + */ + startBlockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_block_height = 3; + */ + endBlockHeight = protoInt64.zero; + + /** + * @generated from field: string description = 4; + */ + description = ""; + + /** + * @generated from field: elys.tokenomics.InflationEntry inflation = 5; + */ + inflation?: InflationEntry; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateTimeBasedInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "end_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "inflation", kind: "message", T: InflationEntry }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTimeBasedInflation { + return new MsgUpdateTimeBasedInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTimeBasedInflation { + return new MsgUpdateTimeBasedInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTimeBasedInflation { + return new MsgUpdateTimeBasedInflation().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTimeBasedInflation | PlainMessage | undefined, b: MsgUpdateTimeBasedInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTimeBasedInflation, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgUpdateTimeBasedInflationResponse + */ +export class MsgUpdateTimeBasedInflationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgUpdateTimeBasedInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTimeBasedInflationResponse { + return new MsgUpdateTimeBasedInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTimeBasedInflationResponse { + return new MsgUpdateTimeBasedInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTimeBasedInflationResponse { + return new MsgUpdateTimeBasedInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateTimeBasedInflationResponse | PlainMessage | undefined, b: MsgUpdateTimeBasedInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateTimeBasedInflationResponse, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgDeleteTimeBasedInflation + */ +export class MsgDeleteTimeBasedInflation extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 start_block_height = 2; + */ + startBlockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 end_block_height = 3; + */ + endBlockHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgDeleteTimeBasedInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "end_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteTimeBasedInflation { + return new MsgDeleteTimeBasedInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteTimeBasedInflation { + return new MsgDeleteTimeBasedInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteTimeBasedInflation { + return new MsgDeleteTimeBasedInflation().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteTimeBasedInflation | PlainMessage | undefined, b: MsgDeleteTimeBasedInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteTimeBasedInflation, a, b); + } +} + +/** + * @generated from message elys.tokenomics.MsgDeleteTimeBasedInflationResponse + */ +export class MsgDeleteTimeBasedInflationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tokenomics.MsgDeleteTimeBasedInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteTimeBasedInflationResponse { + return new MsgDeleteTimeBasedInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteTimeBasedInflationResponse { + return new MsgDeleteTimeBasedInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteTimeBasedInflationResponse { + return new MsgDeleteTimeBasedInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteTimeBasedInflationResponse | PlainMessage | undefined, b: MsgDeleteTimeBasedInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteTimeBasedInflationResponse, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/genesis_pb.ts b/src/protobufs/elys/tradeshield/genesis_pb.ts new file mode 100644 index 00000000..f50c3a99 --- /dev/null +++ b/src/protobufs/elys/tradeshield/genesis_pb.ts @@ -0,0 +1,73 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/genesis.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PerpetualOrder, SpotOrder } from "./types_pb.js"; + +/** + * GenesisState defines the tradeshield module's genesis state. + * + * @generated from message elys.tradeshield.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: elys.tradeshield.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated elys.tradeshield.SpotOrder pending_spot_order_list = 2; + */ + pendingSpotOrderList: SpotOrder[] = []; + + /** + * @generated from field: uint64 pending_spot_order_count = 3; + */ + pendingSpotOrderCount = protoInt64.zero; + + /** + * @generated from field: repeated elys.tradeshield.PerpetualOrder pending_perpetual_order_list = 4; + */ + pendingPerpetualOrderList: PerpetualOrder[] = []; + + /** + * @generated from field: uint64 pending_perpetual_order_count = 5; + */ + pendingPerpetualOrderCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pending_spot_order_list", kind: "message", T: SpotOrder, repeated: true }, + { no: 3, name: "pending_spot_order_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pending_perpetual_order_list", kind: "message", T: PerpetualOrder, repeated: true }, + { no: 5, name: "pending_perpetual_order_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/order_pb.ts b/src/protobufs/elys/tradeshield/order_pb.ts new file mode 100644 index 00000000..be61852d --- /dev/null +++ b/src/protobufs/elys/tradeshield/order_pb.ts @@ -0,0 +1,160 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/order.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Spot order + * + * @generated from enum elys.tradeshield.SpotOrderType + */ +export enum SpotOrderType { + /** + * @generated from enum value: STOPLOSS = 0; + */ + STOPLOSS = 0, + + /** + * @generated from enum value: LIMITSELL = 1; + */ + LIMITSELL = 1, + + /** + * @generated from enum value: LIMITBUY = 2; + */ + LIMITBUY = 2, + + /** + * @generated from enum value: MARKETBUY = 3; + */ + MARKETBUY = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(SpotOrderType) +proto3.util.setEnumType(SpotOrderType, "elys.tradeshield.SpotOrderType", [ + { no: 0, name: "STOPLOSS" }, + { no: 1, name: "LIMITSELL" }, + { no: 2, name: "LIMITBUY" }, + { no: 3, name: "MARKETBUY" }, +]); + +/** + * @generated from enum elys.tradeshield.PerpetualPosition + */ +export enum PerpetualPosition { + /** + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: LONG = 1; + */ + LONG = 1, + + /** + * @generated from enum value: SHORT = 2; + */ + SHORT = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(PerpetualPosition) +proto3.util.setEnumType(PerpetualPosition, "elys.tradeshield.PerpetualPosition", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "LONG" }, + { no: 2, name: "SHORT" }, +]); + +/** + * @generated from message elys.tradeshield.LegacyOrderPriceV1 + */ +export class LegacyOrderPriceV1 extends Message { + /** + * @generated from field: string base_denom = 1; + */ + baseDenom = ""; + + /** + * @generated from field: string quote_denom = 2; + */ + quoteDenom = ""; + + /** + * @generated from field: string rate = 3; + */ + rate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.LegacyOrderPriceV1"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyOrderPriceV1 { + return new LegacyOrderPriceV1().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyOrderPriceV1 { + return new LegacyOrderPriceV1().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyOrderPriceV1 { + return new LegacyOrderPriceV1().fromJsonString(jsonString, options); + } + + static equals(a: LegacyOrderPriceV1 | PlainMessage | undefined, b: LegacyOrderPriceV1 | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyOrderPriceV1, a, b); + } +} + +/** + * @generated from message elys.tradeshield.LegacyTriggerPriceV1 + */ +export class LegacyTriggerPriceV1 extends Message { + /** + * @generated from field: string trading_asset_denom = 1; + */ + tradingAssetDenom = ""; + + /** + * @generated from field: string rate = 3; + */ + rate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.LegacyTriggerPriceV1"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trading_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyTriggerPriceV1 { + return new LegacyTriggerPriceV1().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyTriggerPriceV1 { + return new LegacyTriggerPriceV1().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyTriggerPriceV1 { + return new LegacyTriggerPriceV1().fromJsonString(jsonString, options); + } + + static equals(a: LegacyTriggerPriceV1 | PlainMessage | undefined, b: LegacyTriggerPriceV1 | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyTriggerPriceV1, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/params_pb.ts b/src/protobufs/elys/tradeshield/params_pb.ts new file mode 100644 index 00000000..a666978b --- /dev/null +++ b/src/protobufs/elys/tradeshield/params_pb.ts @@ -0,0 +1,115 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/params.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.tradeshield.Params + */ +export class Params extends Message { + /** + * @generated from field: bool market_order_enabled = 1; + */ + marketOrderEnabled = false; + + /** + * @generated from field: bool stake_enabled = 2; + */ + stakeEnabled = false; + + /** + * @generated from field: bool process_orders_enabled = 3; + */ + processOrdersEnabled = false; + + /** + * @generated from field: bool swap_enabled = 4; + */ + swapEnabled = false; + + /** + * @generated from field: bool perpetual_enabled = 5; + */ + perpetualEnabled = false; + + /** + * @generated from field: bool reward_enabled = 6; + */ + rewardEnabled = false; + + /** + * @generated from field: bool leverage_enabled = 7; + */ + leverageEnabled = false; + + /** + * @generated from field: uint64 limit_process_order = 8; + */ + limitProcessOrder = protoInt64.zero; + + /** + * For incentive system v2 + * + * @generated from field: string reward_percentage = 9; + */ + rewardPercentage = ""; + + /** + * @generated from field: string margin_error = 10; + */ + marginError = ""; + + /** + * @generated from field: string minimum_deposit = 11; + */ + minimumDeposit = ""; + + /** + * @generated from field: string tolerance = 12; + */ + tolerance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_order_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "stake_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "process_orders_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "swap_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "perpetual_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "reward_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "leverage_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "limit_process_order", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "reward_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "margin_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "minimum_deposit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "tolerance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/query_cosmes.ts b/src/protobufs/elys/tradeshield/query_cosmes.ts new file mode 100644 index 00000000..dacb2139 --- /dev/null +++ b/src/protobufs/elys/tradeshield/query_cosmes.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tradeshield/query.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllPendingPerpetualOrderRequest, QueryAllPendingPerpetualOrderResponse, QueryAllPendingSpotOrderRequest, QueryAllPendingSpotOrderResponse, QueryGetPendingPerpetualOrderRequest, QueryGetPendingPerpetualOrderResponse, QueryGetPendingSpotOrderRequest, QueryGetPendingSpotOrderResponse, QueryParamsRequest, QueryParamsResponse, QueryPendingPerpetualOrderForAddressRequest, QueryPendingPerpetualOrderForAddressResponse, QueryPendingSpotOrderForAddressRequest, QueryPendingSpotOrderForAddressResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.tradeshield.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.tradeshield.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of PendingSpotOrder items. + * + * @generated from rpc elys.tradeshield.Query.PendingSpotOrder + */ +export const QueryPendingSpotOrderService = { + typeName: TYPE_NAME, + method: "PendingSpotOrder", + Request: QueryGetPendingSpotOrderRequest, + Response: QueryGetPendingSpotOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Query.PendingSpotOrderAll + */ +export const QueryPendingSpotOrderAllService = { + typeName: TYPE_NAME, + method: "PendingSpotOrderAll", + Request: QueryAllPendingSpotOrderRequest, + Response: QueryAllPendingSpotOrderResponse, +} as const; + +/** + * Queries a list of PendingPerpetualOrder items. + * + * @generated from rpc elys.tradeshield.Query.PendingPerpetualOrder + */ +export const QueryPendingPerpetualOrderService = { + typeName: TYPE_NAME, + method: "PendingPerpetualOrder", + Request: QueryGetPendingPerpetualOrderRequest, + Response: QueryGetPendingPerpetualOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Query.PendingPerpetualOrderAll + */ +export const QueryPendingPerpetualOrderAllService = { + typeName: TYPE_NAME, + method: "PendingPerpetualOrderAll", + Request: QueryAllPendingPerpetualOrderRequest, + Response: QueryAllPendingPerpetualOrderResponse, +} as const; + +/** + * Queries a list of PendingPerpetualOrderForAddress items. + * + * @generated from rpc elys.tradeshield.Query.PendingPerpetualOrderForAddress + */ +export const QueryPendingPerpetualOrderForAddressService = { + typeName: TYPE_NAME, + method: "PendingPerpetualOrderForAddress", + Request: QueryPendingPerpetualOrderForAddressRequest, + Response: QueryPendingPerpetualOrderForAddressResponse, +} as const; + +/** + * Queries a list of PendingSpotOrderForAddress items. + * + * @generated from rpc elys.tradeshield.Query.PendingSpotOrderForAddress + */ +export const QueryPendingSpotOrderForAddressService = { + typeName: TYPE_NAME, + method: "PendingSpotOrderForAddress", + Request: QueryPendingSpotOrderForAddressRequest, + Response: QueryPendingSpotOrderForAddressResponse, +} as const; + diff --git a/src/protobufs/elys/tradeshield/query_pb.ts b/src/protobufs/elys/tradeshield/query_pb.ts new file mode 100644 index 00000000..1259c9cb --- /dev/null +++ b/src/protobufs/elys/tradeshield/query_pb.ts @@ -0,0 +1,565 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/query.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PerpetualOrderExtraInfo, SpotOrder, Status } from "./types_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.tradeshield.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.tradeshield.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.tradeshield.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryGetPendingSpotOrderRequest + */ +export class QueryGetPendingSpotOrderRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryGetPendingSpotOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingSpotOrderRequest { + return new QueryGetPendingSpotOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingSpotOrderRequest { + return new QueryGetPendingSpotOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingSpotOrderRequest { + return new QueryGetPendingSpotOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingSpotOrderRequest | PlainMessage | undefined, b: QueryGetPendingSpotOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingSpotOrderRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryGetPendingSpotOrderResponse + */ +export class QueryGetPendingSpotOrderResponse extends Message { + /** + * @generated from field: elys.tradeshield.SpotOrder pending_spot_order = 1; + */ + pendingSpotOrder?: SpotOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryGetPendingSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_spot_order", kind: "message", T: SpotOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingSpotOrderResponse { + return new QueryGetPendingSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingSpotOrderResponse { + return new QueryGetPendingSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingSpotOrderResponse { + return new QueryGetPendingSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingSpotOrderResponse | PlainMessage | undefined, b: QueryGetPendingSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingSpotOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryAllPendingSpotOrderRequest + */ +export class QueryAllPendingSpotOrderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryAllPendingSpotOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingSpotOrderRequest { + return new QueryAllPendingSpotOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingSpotOrderRequest { + return new QueryAllPendingSpotOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingSpotOrderRequest { + return new QueryAllPendingSpotOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingSpotOrderRequest | PlainMessage | undefined, b: QueryAllPendingSpotOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingSpotOrderRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryAllPendingSpotOrderResponse + */ +export class QueryAllPendingSpotOrderResponse extends Message { + /** + * @generated from field: repeated elys.tradeshield.SpotOrder pending_spot_order = 1; + */ + pendingSpotOrder: SpotOrder[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryAllPendingSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_spot_order", kind: "message", T: SpotOrder, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingSpotOrderResponse { + return new QueryAllPendingSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingSpotOrderResponse { + return new QueryAllPendingSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingSpotOrderResponse { + return new QueryAllPendingSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingSpotOrderResponse | PlainMessage | undefined, b: QueryAllPendingSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingSpotOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryGetPendingPerpetualOrderRequest + */ +export class QueryGetPendingPerpetualOrderRequest extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 order_id = 3; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryGetPendingPerpetualOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingPerpetualOrderRequest { + return new QueryGetPendingPerpetualOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingPerpetualOrderRequest { + return new QueryGetPendingPerpetualOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingPerpetualOrderRequest { + return new QueryGetPendingPerpetualOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingPerpetualOrderRequest | PlainMessage | undefined, b: QueryGetPendingPerpetualOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingPerpetualOrderRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryGetPendingPerpetualOrderResponse + */ +export class QueryGetPendingPerpetualOrderResponse extends Message { + /** + * @generated from field: elys.tradeshield.PerpetualOrderExtraInfo pending_perpetual_order = 1; + */ + pendingPerpetualOrder?: PerpetualOrderExtraInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryGetPendingPerpetualOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_perpetual_order", kind: "message", T: PerpetualOrderExtraInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingPerpetualOrderResponse { + return new QueryGetPendingPerpetualOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingPerpetualOrderResponse { + return new QueryGetPendingPerpetualOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingPerpetualOrderResponse { + return new QueryGetPendingPerpetualOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingPerpetualOrderResponse | PlainMessage | undefined, b: QueryGetPendingPerpetualOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingPerpetualOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryAllPendingPerpetualOrderRequest + */ +export class QueryAllPendingPerpetualOrderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryAllPendingPerpetualOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingPerpetualOrderRequest { + return new QueryAllPendingPerpetualOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingPerpetualOrderRequest { + return new QueryAllPendingPerpetualOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingPerpetualOrderRequest { + return new QueryAllPendingPerpetualOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingPerpetualOrderRequest | PlainMessage | undefined, b: QueryAllPendingPerpetualOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingPerpetualOrderRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryAllPendingPerpetualOrderResponse + */ +export class QueryAllPendingPerpetualOrderResponse extends Message { + /** + * @generated from field: repeated elys.tradeshield.PerpetualOrderExtraInfo pending_perpetual_order = 1; + */ + pendingPerpetualOrder: PerpetualOrderExtraInfo[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryAllPendingPerpetualOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_perpetual_order", kind: "message", T: PerpetualOrderExtraInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingPerpetualOrderResponse { + return new QueryAllPendingPerpetualOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingPerpetualOrderResponse { + return new QueryAllPendingPerpetualOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingPerpetualOrderResponse { + return new QueryAllPendingPerpetualOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingPerpetualOrderResponse | PlainMessage | undefined, b: QueryAllPendingPerpetualOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingPerpetualOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryPendingPerpetualOrderForAddressRequest + */ +export class QueryPendingPerpetualOrderForAddressRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: elys.tradeshield.Status status = 2; + */ + status = Status.PENDING; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryPendingPerpetualOrderForAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingPerpetualOrderForAddressRequest { + return new QueryPendingPerpetualOrderForAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingPerpetualOrderForAddressRequest { + return new QueryPendingPerpetualOrderForAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingPerpetualOrderForAddressRequest { + return new QueryPendingPerpetualOrderForAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingPerpetualOrderForAddressRequest | PlainMessage | undefined, b: QueryPendingPerpetualOrderForAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingPerpetualOrderForAddressRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryPendingPerpetualOrderForAddressResponse + */ +export class QueryPendingPerpetualOrderForAddressResponse extends Message { + /** + * @generated from field: repeated elys.tradeshield.PerpetualOrderExtraInfo pending_perpetual_orders = 1; + */ + pendingPerpetualOrders: PerpetualOrderExtraInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryPendingPerpetualOrderForAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_perpetual_orders", kind: "message", T: PerpetualOrderExtraInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingPerpetualOrderForAddressResponse { + return new QueryPendingPerpetualOrderForAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingPerpetualOrderForAddressResponse { + return new QueryPendingPerpetualOrderForAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingPerpetualOrderForAddressResponse { + return new QueryPendingPerpetualOrderForAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingPerpetualOrderForAddressResponse | PlainMessage | undefined, b: QueryPendingPerpetualOrderForAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingPerpetualOrderForAddressResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryPendingSpotOrderForAddressRequest + */ +export class QueryPendingSpotOrderForAddressRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: elys.tradeshield.Status status = 2; + */ + status = Status.PENDING; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryPendingSpotOrderForAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingSpotOrderForAddressRequest { + return new QueryPendingSpotOrderForAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingSpotOrderForAddressRequest { + return new QueryPendingSpotOrderForAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingSpotOrderForAddressRequest { + return new QueryPendingSpotOrderForAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingSpotOrderForAddressRequest | PlainMessage | undefined, b: QueryPendingSpotOrderForAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingSpotOrderForAddressRequest, a, b); + } +} + +/** + * @generated from message elys.tradeshield.QueryPendingSpotOrderForAddressResponse + */ +export class QueryPendingSpotOrderForAddressResponse extends Message { + /** + * @generated from field: repeated elys.tradeshield.SpotOrder pending_spot_orders = 1; + */ + pendingSpotOrders: SpotOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.QueryPendingSpotOrderForAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_spot_orders", kind: "message", T: SpotOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingSpotOrderForAddressResponse { + return new QueryPendingSpotOrderForAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingSpotOrderForAddressResponse { + return new QueryPendingSpotOrderForAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingSpotOrderForAddressResponse { + return new QueryPendingSpotOrderForAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingSpotOrderForAddressResponse | PlainMessage | undefined, b: QueryPendingSpotOrderForAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingSpotOrderForAddressResponse, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/tx_cosmes.ts b/src/protobufs/elys/tradeshield/tx_cosmes.ts new file mode 100644 index 00000000..c5784697 --- /dev/null +++ b/src/protobufs/elys/tradeshield/tx_cosmes.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/tradeshield/tx.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCancelAllPerpetualOrders, MsgCancelAllPerpetualOrdersResponse, MsgCancelAllSpotOrders, MsgCancelAllSpotOrdersResponse, MsgCancelPerpetualOrder, MsgCancelPerpetualOrderResponse, MsgCancelPerpetualOrders, MsgCancelPerpetualOrdersResponse, MsgCancelSpotOrder, MsgCancelSpotOrderResponse, MsgCancelSpotOrders, MsgCancelSpotOrdersResponse, MsgCreatePerpetualCloseOrder, MsgCreatePerpetualCloseOrderResponse, MsgCreatePerpetualOpenOrder, MsgCreatePerpetualOpenOrderResponse, MsgCreateSpotOrder, MsgCreateSpotOrderResponse, MsgExecuteOrders, MsgExecuteOrdersResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdatePerpetualOrder, MsgUpdatePerpetualOrderResponse, MsgUpdateSpotOrder, MsgUpdateSpotOrderResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.tradeshield.Msg"; + +/** + * @generated from rpc elys.tradeshield.Msg.CreateSpotOrder + */ +export const MsgCreateSpotOrderService = { + typeName: TYPE_NAME, + method: "CreateSpotOrder", + Request: MsgCreateSpotOrder, + Response: MsgCreateSpotOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.UpdateSpotOrder + */ +export const MsgUpdateSpotOrderService = { + typeName: TYPE_NAME, + method: "UpdateSpotOrder", + Request: MsgUpdateSpotOrder, + Response: MsgUpdateSpotOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelSpotOrder + */ +export const MsgCancelSpotOrderService = { + typeName: TYPE_NAME, + method: "CancelSpotOrder", + Request: MsgCancelSpotOrder, + Response: MsgCancelSpotOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelSpotOrders + */ +export const MsgCancelSpotOrdersService = { + typeName: TYPE_NAME, + method: "CancelSpotOrders", + Request: MsgCancelSpotOrders, + Response: MsgCancelSpotOrdersResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelAllSpotOrders + */ +export const MsgCancelAllSpotOrdersService = { + typeName: TYPE_NAME, + method: "CancelAllSpotOrders", + Request: MsgCancelAllSpotOrders, + Response: MsgCancelAllSpotOrdersResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CreatePerpetualOpenOrder + */ +export const MsgCreatePerpetualOpenOrderService = { + typeName: TYPE_NAME, + method: "CreatePerpetualOpenOrder", + Request: MsgCreatePerpetualOpenOrder, + Response: MsgCreatePerpetualOpenOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CreatePerpetualCloseOrder + */ +export const MsgCreatePerpetualCloseOrderService = { + typeName: TYPE_NAME, + method: "CreatePerpetualCloseOrder", + Request: MsgCreatePerpetualCloseOrder, + Response: MsgCreatePerpetualCloseOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.UpdatePerpetualOrder + */ +export const MsgUpdatePerpetualOrderService = { + typeName: TYPE_NAME, + method: "UpdatePerpetualOrder", + Request: MsgUpdatePerpetualOrder, + Response: MsgUpdatePerpetualOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelPerpetualOrder + */ +export const MsgCancelPerpetualOrderService = { + typeName: TYPE_NAME, + method: "CancelPerpetualOrder", + Request: MsgCancelPerpetualOrder, + Response: MsgCancelPerpetualOrderResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelPerpetualOrders + */ +export const MsgCancelPerpetualOrdersService = { + typeName: TYPE_NAME, + method: "CancelPerpetualOrders", + Request: MsgCancelPerpetualOrders, + Response: MsgCancelPerpetualOrdersResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.CancelAllPerpetualOrders + */ +export const MsgCancelAllPerpetualOrdersService = { + typeName: TYPE_NAME, + method: "CancelAllPerpetualOrders", + Request: MsgCancelAllPerpetualOrders, + Response: MsgCancelAllPerpetualOrdersResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc elys.tradeshield.Msg.ExecuteOrders + */ +export const MsgExecuteOrdersService = { + typeName: TYPE_NAME, + method: "ExecuteOrders", + Request: MsgExecuteOrders, + Response: MsgExecuteOrdersResponse, +} as const; + diff --git a/src/protobufs/elys/tradeshield/tx_pb.ts b/src/protobufs/elys/tradeshield/tx_pb.ts new file mode 100644 index 00000000..fa2028f7 --- /dev/null +++ b/src/protobufs/elys/tradeshield/tx_pb.ts @@ -0,0 +1,1232 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/tx.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { LegacyOrderPriceV1, LegacyTriggerPriceV1, PerpetualPosition, SpotOrderType } from "./order_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.tradeshield.MsgCreateSpotOrder + */ +export class MsgCreateSpotOrder extends Message { + /** + * @generated from field: elys.tradeshield.SpotOrderType order_type = 1; + */ + orderType = SpotOrderType.STOPLOSS; + + /** + * @generated from field: elys.tradeshield.LegacyOrderPriceV1 legacy_order_price_v1 = 2; + */ + legacyOrderPriceV1?: LegacyOrderPriceV1; + + /** + * @generated from field: string order_price = 6; + */ + orderPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin order_amount = 3; + */ + orderAmount?: Coin; + + /** + * @generated from field: string owner_address = 4; + */ + ownerAddress = ""; + + /** + * @generated from field: string order_target_denom = 5; + */ + orderTargetDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreateSpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_type", kind: "enum", T: proto3.getEnumType(SpotOrderType) }, + { no: 2, name: "legacy_order_price_v1", kind: "message", T: LegacyOrderPriceV1 }, + { no: 6, name: "order_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_amount", kind: "message", T: Coin }, + { no: 4, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_target_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotOrder { + return new MsgCreateSpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotOrder { + return new MsgCreateSpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotOrder { + return new MsgCreateSpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotOrder | PlainMessage | undefined, b: MsgCreateSpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCreateSpotOrderResponse + */ +export class MsgCreateSpotOrderResponse extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreateSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotOrderResponse { + return new MsgCreateSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotOrderResponse { + return new MsgCreateSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotOrderResponse { + return new MsgCreateSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotOrderResponse | PlainMessage | undefined, b: MsgCreateSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdateSpotOrder + */ +export class MsgUpdateSpotOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: elys.tradeshield.LegacyOrderPriceV1 legacy_order_price_v1 = 3; + */ + legacyOrderPriceV1?: LegacyOrderPriceV1; + + /** + * @generated from field: string order_price = 4; + */ + orderPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdateSpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "legacy_order_price_v1", kind: "message", T: LegacyOrderPriceV1 }, + { no: 4, name: "order_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotOrder { + return new MsgUpdateSpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotOrder { + return new MsgUpdateSpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotOrder { + return new MsgUpdateSpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotOrder | PlainMessage | undefined, b: MsgUpdateSpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdateSpotOrderResponse + */ +export class MsgUpdateSpotOrderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdateSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotOrderResponse { + return new MsgUpdateSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotOrderResponse { + return new MsgUpdateSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotOrderResponse { + return new MsgUpdateSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotOrderResponse | PlainMessage | undefined, b: MsgUpdateSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelSpotOrder + */ +export class MsgCancelSpotOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelSpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrder | PlainMessage | undefined, b: MsgCancelSpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelSpotOrderResponse + */ +export class MsgCancelSpotOrderResponse extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrderResponse | PlainMessage | undefined, b: MsgCancelSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelSpotOrders + */ +export class MsgCancelSpotOrders extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated uint64 spot_order_ids = 2; + */ + spotOrderIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelSpotOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "spot_order_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrders { + return new MsgCancelSpotOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrders { + return new MsgCancelSpotOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrders { + return new MsgCancelSpotOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrders | PlainMessage | undefined, b: MsgCancelSpotOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrders, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelSpotOrdersResponse + */ +export class MsgCancelSpotOrdersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelSpotOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrdersResponse { + return new MsgCancelSpotOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrdersResponse { + return new MsgCancelSpotOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrdersResponse { + return new MsgCancelSpotOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrdersResponse | PlainMessage | undefined, b: MsgCancelSpotOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrdersResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelAllSpotOrders + */ +export class MsgCancelAllSpotOrders extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelAllSpotOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelAllSpotOrders { + return new MsgCancelAllSpotOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelAllSpotOrders { + return new MsgCancelAllSpotOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelAllSpotOrders { + return new MsgCancelAllSpotOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelAllSpotOrders | PlainMessage | undefined, b: MsgCancelAllSpotOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelAllSpotOrders, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelAllSpotOrdersResponse + */ +export class MsgCancelAllSpotOrdersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelAllSpotOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelAllSpotOrdersResponse { + return new MsgCancelAllSpotOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelAllSpotOrdersResponse { + return new MsgCancelAllSpotOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelAllSpotOrdersResponse { + return new MsgCancelAllSpotOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelAllSpotOrdersResponse | PlainMessage | undefined, b: MsgCancelAllSpotOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelAllSpotOrdersResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCreatePerpetualOpenOrder + */ +export class MsgCreatePerpetualOpenOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: elys.tradeshield.LegacyTriggerPriceV1 legacy_trigger_price_v1 = 2; + */ + legacyTriggerPriceV1?: LegacyTriggerPriceV1; + + /** + * @generated from field: string trigger_price = 10; + */ + triggerPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 3; + */ + collateral?: Coin; + + /** + * @generated from field: elys.tradeshield.PerpetualPosition position = 4; + */ + position = PerpetualPosition.UNSPECIFIED; + + /** + * @generated from field: string leverage = 5; + */ + leverage = ""; + + /** + * @generated from field: string take_profit_price = 6; + */ + takeProfitPrice = ""; + + /** + * @generated from field: string stop_loss_price = 7; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 pool_id = 8; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreatePerpetualOpenOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "legacy_trigger_price_v1", kind: "message", T: LegacyTriggerPriceV1 }, + { no: 10, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral", kind: "message", T: Coin }, + { no: 4, name: "position", kind: "enum", T: proto3.getEnumType(PerpetualPosition) }, + { no: 5, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePerpetualOpenOrder { + return new MsgCreatePerpetualOpenOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePerpetualOpenOrder { + return new MsgCreatePerpetualOpenOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePerpetualOpenOrder { + return new MsgCreatePerpetualOpenOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePerpetualOpenOrder | PlainMessage | undefined, b: MsgCreatePerpetualOpenOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePerpetualOpenOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCreatePerpetualOpenOrderResponse + */ +export class MsgCreatePerpetualOpenOrderResponse extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreatePerpetualOpenOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePerpetualOpenOrderResponse { + return new MsgCreatePerpetualOpenOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePerpetualOpenOrderResponse { + return new MsgCreatePerpetualOpenOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePerpetualOpenOrderResponse { + return new MsgCreatePerpetualOpenOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePerpetualOpenOrderResponse | PlainMessage | undefined, b: MsgCreatePerpetualOpenOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePerpetualOpenOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCreatePerpetualCloseOrder + */ +export class MsgCreatePerpetualCloseOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: elys.tradeshield.LegacyTriggerPriceV1 legacy_trigger_price_v1 = 2; + */ + legacyTriggerPriceV1?: LegacyTriggerPriceV1; + + /** + * @generated from field: uint64 position_id = 3; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: string trigger_price = 4; + */ + triggerPrice = ""; + + /** + * @generated from field: uint64 pool_id = 5; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 close_percentage = 6; + */ + closePercentage = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreatePerpetualCloseOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "legacy_trigger_price_v1", kind: "message", T: LegacyTriggerPriceV1 }, + { no: 3, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "close_percentage", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePerpetualCloseOrder { + return new MsgCreatePerpetualCloseOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePerpetualCloseOrder { + return new MsgCreatePerpetualCloseOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePerpetualCloseOrder { + return new MsgCreatePerpetualCloseOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePerpetualCloseOrder | PlainMessage | undefined, b: MsgCreatePerpetualCloseOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePerpetualCloseOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCreatePerpetualCloseOrderResponse + */ +export class MsgCreatePerpetualCloseOrderResponse extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCreatePerpetualCloseOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePerpetualCloseOrderResponse { + return new MsgCreatePerpetualCloseOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePerpetualCloseOrderResponse { + return new MsgCreatePerpetualCloseOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePerpetualCloseOrderResponse { + return new MsgCreatePerpetualCloseOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePerpetualCloseOrderResponse | PlainMessage | undefined, b: MsgCreatePerpetualCloseOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePerpetualCloseOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdatePerpetualOrder + */ +export class MsgUpdatePerpetualOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: elys.tradeshield.LegacyTriggerPriceV1 legacy_trigger_price_v1 = 3; + */ + legacyTriggerPriceV1?: LegacyTriggerPriceV1; + + /** + * @generated from field: string trigger_price = 4; + */ + triggerPrice = ""; + + /** + * @generated from field: uint64 pool_id = 5; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdatePerpetualOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "legacy_trigger_price_v1", kind: "message", T: LegacyTriggerPriceV1 }, + { no: 4, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePerpetualOrder { + return new MsgUpdatePerpetualOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePerpetualOrder { + return new MsgUpdatePerpetualOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePerpetualOrder { + return new MsgUpdatePerpetualOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePerpetualOrder | PlainMessage | undefined, b: MsgUpdatePerpetualOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePerpetualOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdatePerpetualOrderResponse + */ +export class MsgUpdatePerpetualOrderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdatePerpetualOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePerpetualOrderResponse { + return new MsgUpdatePerpetualOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePerpetualOrderResponse { + return new MsgUpdatePerpetualOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePerpetualOrderResponse { + return new MsgUpdatePerpetualOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePerpetualOrderResponse | PlainMessage | undefined, b: MsgUpdatePerpetualOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePerpetualOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelPerpetualOrder + */ +export class MsgCancelPerpetualOrder extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelPerpetualOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPerpetualOrder { + return new MsgCancelPerpetualOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPerpetualOrder { + return new MsgCancelPerpetualOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPerpetualOrder { + return new MsgCancelPerpetualOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPerpetualOrder | PlainMessage | undefined, b: MsgCancelPerpetualOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPerpetualOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelPerpetualOrderResponse + */ +export class MsgCancelPerpetualOrderResponse extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelPerpetualOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPerpetualOrderResponse { + return new MsgCancelPerpetualOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPerpetualOrderResponse { + return new MsgCancelPerpetualOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPerpetualOrderResponse { + return new MsgCancelPerpetualOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPerpetualOrderResponse | PlainMessage | undefined, b: MsgCancelPerpetualOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPerpetualOrderResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelPerpetualOrders + */ +export class MsgCancelPerpetualOrders extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: repeated uint64 legacy_order_ids = 2; + */ + legacyOrderIds: bigint[] = []; + + /** + * @generated from field: repeated elys.tradeshield.PerpetualOrderPoolKey orders = 3; + */ + orders: PerpetualOrderPoolKey[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelPerpetualOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "legacy_order_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "orders", kind: "message", T: PerpetualOrderPoolKey, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPerpetualOrders { + return new MsgCancelPerpetualOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPerpetualOrders { + return new MsgCancelPerpetualOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPerpetualOrders { + return new MsgCancelPerpetualOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPerpetualOrders | PlainMessage | undefined, b: MsgCancelPerpetualOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPerpetualOrders, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelPerpetualOrdersResponse + */ +export class MsgCancelPerpetualOrdersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelPerpetualOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPerpetualOrdersResponse { + return new MsgCancelPerpetualOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPerpetualOrdersResponse { + return new MsgCancelPerpetualOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPerpetualOrdersResponse { + return new MsgCancelPerpetualOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPerpetualOrdersResponse | PlainMessage | undefined, b: MsgCancelPerpetualOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPerpetualOrdersResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelAllPerpetualOrders + */ +export class MsgCancelAllPerpetualOrders extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelAllPerpetualOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelAllPerpetualOrders { + return new MsgCancelAllPerpetualOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelAllPerpetualOrders { + return new MsgCancelAllPerpetualOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelAllPerpetualOrders { + return new MsgCancelAllPerpetualOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelAllPerpetualOrders | PlainMessage | undefined, b: MsgCancelAllPerpetualOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelAllPerpetualOrders, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgCancelAllPerpetualOrdersResponse + */ +export class MsgCancelAllPerpetualOrdersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgCancelAllPerpetualOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelAllPerpetualOrdersResponse { + return new MsgCancelAllPerpetualOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelAllPerpetualOrdersResponse { + return new MsgCancelAllPerpetualOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelAllPerpetualOrdersResponse { + return new MsgCancelAllPerpetualOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelAllPerpetualOrdersResponse | PlainMessage | undefined, b: MsgCancelAllPerpetualOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelAllPerpetualOrdersResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.tradeshield.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgExecuteOrders + */ +export class MsgExecuteOrders extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated uint64 spot_order_ids = 2; + */ + spotOrderIds: bigint[] = []; + + /** + * @generated from field: repeated uint64 legacy_perpetual_order_ids = 3; + */ + legacyPerpetualOrderIds: bigint[] = []; + + /** + * @generated from field: repeated elys.tradeshield.PerpetualOrderKey perpetual_orders = 4; + */ + perpetualOrders: PerpetualOrderKey[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgExecuteOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "spot_order_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "legacy_perpetual_order_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 4, name: "perpetual_orders", kind: "message", T: PerpetualOrderKey, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteOrders { + return new MsgExecuteOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteOrders { + return new MsgExecuteOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteOrders { + return new MsgExecuteOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteOrders | PlainMessage | undefined, b: MsgExecuteOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteOrders, a, b); + } +} + +/** + * @generated from message elys.tradeshield.MsgExecuteOrdersResponse + */ +export class MsgExecuteOrdersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.MsgExecuteOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteOrdersResponse { + return new MsgExecuteOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteOrdersResponse { + return new MsgExecuteOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteOrdersResponse { + return new MsgExecuteOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteOrdersResponse | PlainMessage | undefined, b: MsgExecuteOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteOrdersResponse, a, b); + } +} + +/** + * @generated from message elys.tradeshield.PerpetualOrderKey + */ +export class PerpetualOrderKey extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 order_id = 3; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.PerpetualOrderKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualOrderKey { + return new PerpetualOrderKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualOrderKey { + return new PerpetualOrderKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualOrderKey { + return new PerpetualOrderKey().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualOrderKey | PlainMessage | undefined, b: PerpetualOrderKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualOrderKey, a, b); + } +} + +/** + * @generated from message elys.tradeshield.PerpetualOrderPoolKey + */ +export class PerpetualOrderPoolKey extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.PerpetualOrderPoolKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualOrderPoolKey { + return new PerpetualOrderPoolKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualOrderPoolKey { + return new PerpetualOrderPoolKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualOrderPoolKey { + return new PerpetualOrderPoolKey().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualOrderPoolKey | PlainMessage | undefined, b: PerpetualOrderPoolKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualOrderPoolKey, a, b); + } +} + diff --git a/src/protobufs/elys/tradeshield/types_pb.ts b/src/protobufs/elys/tradeshield/types_pb.ts new file mode 100644 index 00000000..c3a7accd --- /dev/null +++ b/src/protobufs/elys/tradeshield/types_pb.ts @@ -0,0 +1,483 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/tradeshield/types.proto (package elys.tradeshield, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { LegacyOrderPriceV1, LegacyTriggerPriceV1, PerpetualPosition, SpotOrderType } from "./order_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum elys.tradeshield.Status + */ +export enum Status { + /** + * @generated from enum value: PENDING = 0; + */ + PENDING = 0, + + /** + * @generated from enum value: EXECUTED = 1; + */ + EXECUTED = 1, + + /** + * @generated from enum value: CANCELED = 2; + */ + CANCELED = 2, + + /** + * @generated from enum value: ALL = 3; + */ + ALL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(Status) +proto3.util.setEnumType(Status, "elys.tradeshield.Status", [ + { no: 0, name: "PENDING" }, + { no: 1, name: "EXECUTED" }, + { no: 2, name: "CANCELED" }, + { no: 3, name: "ALL" }, +]); + +/** + * Perpetual Order + * + * @generated from enum elys.tradeshield.PerpetualOrderType + */ +export enum PerpetualOrderType { + /** + * @generated from enum value: LIMITOPEN = 0; + */ + LIMITOPEN = 0, + + /** + * @generated from enum value: LIMITCLOSE = 1; + */ + LIMITCLOSE = 1, + + /** + * @generated from enum value: STOPLOSSPERP = 2; + */ + STOPLOSSPERP = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(PerpetualOrderType) +proto3.util.setEnumType(PerpetualOrderType, "elys.tradeshield.PerpetualOrderType", [ + { no: 0, name: "LIMITOPEN" }, + { no: 1, name: "LIMITCLOSE" }, + { no: 2, name: "STOPLOSSPERP" }, +]); + +/** + * @generated from message elys.tradeshield.Date + */ +export class Date extends Message { + /** + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.Date"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Date { + return new Date().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Date { + return new Date().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Date { + return new Date().fromJsonString(jsonString, options); + } + + static equals(a: Date | PlainMessage | undefined, b: Date | PlainMessage | undefined): boolean { + return proto3.util.equals(Date, a, b); + } +} + +/** + * @generated from message elys.tradeshield.SpotOrder + */ +export class SpotOrder extends Message { + /** + * @generated from field: elys.tradeshield.SpotOrderType order_type = 1; + */ + orderType = SpotOrderType.STOPLOSS; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: elys.tradeshield.LegacyOrderPriceV1 legacy_order_price_v1 = 3; + */ + legacyOrderPriceV1?: LegacyOrderPriceV1; + + /** + * @generated from field: string order_price = 9; + */ + orderPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin order_amount = 4; + */ + orderAmount?: Coin; + + /** + * @generated from field: string owner_address = 5; + */ + ownerAddress = ""; + + /** + * @generated from field: string order_target_denom = 6; + */ + orderTargetDenom = ""; + + /** + * @generated from field: elys.tradeshield.Status status = 7; + */ + status = Status.PENDING; + + /** + * @generated from field: elys.tradeshield.Date date = 8; + */ + date?: Date; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.SpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_type", kind: "enum", T: proto3.getEnumType(SpotOrderType) }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "legacy_order_price_v1", kind: "message", T: LegacyOrderPriceV1 }, + { no: 9, name: "order_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_amount", kind: "message", T: Coin }, + { no: 5, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "order_target_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + { no: 8, name: "date", kind: "message", T: Date }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrder { + return new SpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrder { + return new SpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrder { + return new SpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrder | PlainMessage | undefined, b: SpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.PerpetualOrder + */ +export class PerpetualOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: string owner_address = 2; + */ + ownerAddress = ""; + + /** + * @generated from field: elys.tradeshield.PerpetualOrderType perpetual_order_type = 3; + */ + perpetualOrderType = PerpetualOrderType.LIMITOPEN; + + /** + * @generated from field: elys.tradeshield.PerpetualPosition position = 4; + */ + position = PerpetualPosition.UNSPECIFIED; + + /** + * @generated from field: string trigger_price = 5; + */ + triggerPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 6; + */ + collateral?: Coin; + + /** + * @generated from field: string leverage = 7; + */ + leverage = ""; + + /** + * @generated from field: string take_profit_price = 8; + */ + takeProfitPrice = ""; + + /** + * @generated from field: uint64 position_id = 9; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: elys.tradeshield.Status status = 10; + */ + status = Status.PENDING; + + /** + * @generated from field: string stop_loss_price = 11; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 poolId = 12; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: uint64 close_percentage = 13; + */ + closePercentage = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.PerpetualOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "perpetual_order_type", kind: "enum", T: proto3.getEnumType(PerpetualOrderType) }, + { no: 4, name: "position", kind: "enum", T: proto3.getEnumType(PerpetualPosition) }, + { no: 5, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "collateral", kind: "message", T: Coin }, + { no: 7, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + { no: 11, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "poolId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 13, name: "close_percentage", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualOrder { + return new PerpetualOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualOrder { + return new PerpetualOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualOrder { + return new PerpetualOrder().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualOrder | PlainMessage | undefined, b: PerpetualOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualOrder, a, b); + } +} + +/** + * @generated from message elys.tradeshield.PerpetualOrderExtraInfo + */ +export class PerpetualOrderExtraInfo extends Message { + /** + * @generated from field: elys.tradeshield.PerpetualOrder perpetual_order = 1; + */ + perpetualOrder?: PerpetualOrder; + + /** + * @generated from field: cosmos.base.v1beta1.Coin position_size = 2; + */ + positionSize?: Coin; + + /** + * @generated from field: string liquidation_price = 3; + */ + liquidationPrice = ""; + + /** + * @generated from field: string funding_rate = 4; + */ + fundingRate = ""; + + /** + * @generated from field: string borrow_interest_rate = 5; + */ + borrowInterestRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.PerpetualOrderExtraInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "perpetual_order", kind: "message", T: PerpetualOrder }, + { no: 2, name: "position_size", kind: "message", T: Coin }, + { no: 3, name: "liquidation_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualOrderExtraInfo { + return new PerpetualOrderExtraInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualOrderExtraInfo { + return new PerpetualOrderExtraInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualOrderExtraInfo { + return new PerpetualOrderExtraInfo().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualOrderExtraInfo | PlainMessage | undefined, b: PerpetualOrderExtraInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualOrderExtraInfo, a, b); + } +} + +/** + * @generated from message elys.tradeshield.LegacyPerpetualOrder + */ +export class LegacyPerpetualOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: string owner_address = 2; + */ + ownerAddress = ""; + + /** + * @generated from field: elys.tradeshield.PerpetualOrderType perpetual_order_type = 3; + */ + perpetualOrderType = PerpetualOrderType.LIMITOPEN; + + /** + * @generated from field: elys.tradeshield.PerpetualPosition position = 4; + */ + position = PerpetualPosition.UNSPECIFIED; + + /** + * @generated from field: elys.tradeshield.LegacyTriggerPriceV1 legacy_trigger_price_v1 = 5; + */ + legacyTriggerPriceV1?: LegacyTriggerPriceV1; + + /** + * @generated from field: string trigger_price = 14; + */ + triggerPrice = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 6; + */ + collateral?: Coin; + + /** + * @generated from field: string trading_asset = 7; + */ + tradingAsset = ""; + + /** + * @generated from field: string leverage = 8; + */ + leverage = ""; + + /** + * @generated from field: string take_profit_price = 9; + */ + takeProfitPrice = ""; + + /** + * @generated from field: uint64 position_id = 10; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: elys.tradeshield.Status status = 11; + */ + status = Status.PENDING; + + /** + * @generated from field: string stop_loss_price = 12; + */ + stopLossPrice = ""; + + /** + * @generated from field: uint64 poolId = 13; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.tradeshield.LegacyPerpetualOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "perpetual_order_type", kind: "enum", T: proto3.getEnumType(PerpetualOrderType) }, + { no: 4, name: "position", kind: "enum", T: proto3.getEnumType(PerpetualPosition) }, + { no: 5, name: "legacy_trigger_price_v1", kind: "message", T: LegacyTriggerPriceV1 }, + { no: 14, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "collateral", kind: "message", T: Coin }, + { no: 7, name: "trading_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "leverage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "take_profit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + { no: 12, name: "stop_loss_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "poolId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyPerpetualOrder { + return new LegacyPerpetualOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyPerpetualOrder { + return new LegacyPerpetualOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyPerpetualOrder { + return new LegacyPerpetualOrder().fromJsonString(jsonString, options); + } + + static equals(a: LegacyPerpetualOrder | PlainMessage | undefined, b: LegacyPerpetualOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyPerpetualOrder, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/genesis_pb.ts b/src/protobufs/elys/vaults/genesis_pb.ts new file mode 100644 index 00000000..36decc9e --- /dev/null +++ b/src/protobufs/elys/vaults/genesis_pb.ts @@ -0,0 +1,92 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/genesis.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Vault } from "./vault_pb.js"; +import { PoolInfo, PoolRewardInfo, PoolRewardsAccum, UserRewardInfo } from "./pool_pb.js"; + +/** + * GenesisState defines the vaults module's genesis state. + * + * @generated from message elys.vaults.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: elys.vaults.Params params = 1; + */ + params?: Params; + + /** + * vault_list defines the list of vaults + * + * @generated from field: repeated elys.vaults.Vault vault_list = 2; + */ + vaultList: Vault[] = []; + + /** + * pool_info_list defines the list of pool info + * + * @generated from field: repeated elys.vaults.PoolInfo pool_info_list = 3; + */ + poolInfoList: PoolInfo[] = []; + + /** + * pool_reward_info_list defines the list of pool reward info + * + * @generated from field: repeated elys.vaults.PoolRewardInfo pool_reward_info_list = 4; + */ + poolRewardInfoList: PoolRewardInfo[] = []; + + /** + * user_reward_info_list defines the list of user reward info + * + * @generated from field: repeated elys.vaults.UserRewardInfo user_reward_info_list = 5; + */ + userRewardInfoList: UserRewardInfo[] = []; + + /** + * pool_rewards_accum_list defines the list of pool rewards accum + * + * @generated from field: repeated elys.vaults.PoolRewardsAccum pool_rewards_accum_list = 6; + */ + poolRewardsAccumList: PoolRewardsAccum[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "vault_list", kind: "message", T: Vault, repeated: true }, + { no: 3, name: "pool_info_list", kind: "message", T: PoolInfo, repeated: true }, + { no: 4, name: "pool_reward_info_list", kind: "message", T: PoolRewardInfo, repeated: true }, + { no: 5, name: "user_reward_info_list", kind: "message", T: UserRewardInfo, repeated: true }, + { no: 6, name: "pool_rewards_accum_list", kind: "message", T: PoolRewardsAccum, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/params_pb.ts b/src/protobufs/elys/vaults/params_pb.ts new file mode 100644 index 00000000..c51dd278 --- /dev/null +++ b/src/protobufs/elys/vaults/params_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/params.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message elys.vaults.Params + */ +export class Params extends Message { + /** + * in seconds + * + * @generated from field: uint64 performance_fee_epoch_length = 1; + */ + performanceFeeEpochLength = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "performance_fee_epoch_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/pool_pb.ts b/src/protobufs/elys/vaults/pool_pb.ts new file mode 100644 index 00000000..c6be7f74 --- /dev/null +++ b/src/protobufs/elys/vaults/pool_pb.ts @@ -0,0 +1,246 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/pool.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message elys.vaults.PoolInfo + */ +export class PoolInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * reward wallet address + * + * @generated from field: string reward_wallet = 2; + */ + rewardWallet = ""; + + /** + * Eden APR, updated at every distribution + * + * @generated from field: string eden_apr = 4; + */ + edenApr = ""; + + /** + * USDC APR, updated based on 24hr accumulation + * + * @generated from field: string usdc_apr = 5; + */ + usdcApr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.PoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eden_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "usdc_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolInfo { + return new PoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolInfo { + return new PoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolInfo { + return new PoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolInfo | PlainMessage | undefined, b: PoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolInfo, a, b); + } +} + +/** + * @generated from message elys.vaults.PoolRewardInfo + */ +export class PoolRewardInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 2; + */ + rewardDenom = ""; + + /** + * @generated from field: string pool_acc_reward_per_share = 3; + */ + poolAccRewardPerShare = ""; + + /** + * @generated from field: uint64 last_updated_block = 4; + */ + lastUpdatedBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.PoolRewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_acc_reward_per_share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "last_updated_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewardInfo { + return new PoolRewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewardInfo | PlainMessage | undefined, b: PoolRewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewardInfo, a, b); + } +} + +/** + * @generated from message elys.vaults.UserRewardInfo + */ +export class UserRewardInfo extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string reward_denom = 3; + */ + rewardDenom = ""; + + /** + * @generated from field: string reward_debt = 4; + */ + rewardDebt = ""; + + /** + * @generated from field: string reward_pending = 5; + */ + rewardPending = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.UserRewardInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "reward_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reward_debt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "reward_pending", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserRewardInfo { + return new UserRewardInfo().fromJsonString(jsonString, options); + } + + static equals(a: UserRewardInfo | PlainMessage | undefined, b: UserRewardInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(UserRewardInfo, a, b); + } +} + +/** + * @generated from message elys.vaults.PoolRewardsAccum + */ +export class PoolRewardsAccum extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 block_height = 2; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: uint64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: string usdc_reward = 4; + */ + usdcReward = ""; + + /** + * @generated from field: string eden_reward = 5; + */ + edenReward = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.PoolRewardsAccum"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "usdc_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "eden_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewardsAccum { + return new PoolRewardsAccum().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewardsAccum | PlainMessage | undefined, b: PoolRewardsAccum | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewardsAccum, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/query_cosmes.ts b/src/protobufs/elys/vaults/query_cosmes.ts new file mode 100644 index 00000000..1f556439 --- /dev/null +++ b/src/protobufs/elys/vaults/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/vaults/query.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDepositEstimationRequest, QueryDepositEstimationResponse, QueryParamsRequest, QueryParamsResponse, QueryVaultPositionsRequest, QueryVaultPositionsResponse, QueryVaultRequest, QueryVaultResponse, QueryVaultsRequest, QueryVaultsResponse, QueryVaultValue, QueryVaultValueResponse, QueryWithdrawEstimationRequest, QueryWithdrawEstimationResponse } from "./query_pb.js"; + +const TYPE_NAME = "elys.vaults.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc elys.vaults.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Vault queries a vault by its ID. + * + * @generated from rpc elys.vaults.Query.Vault + */ +export const QueryVaultService = { + typeName: TYPE_NAME, + method: "Vault", + Request: QueryVaultRequest, + Response: QueryVaultResponse, +} as const; + +/** + * Vaults queries all vaults. + * + * @generated from rpc elys.vaults.Query.Vaults + */ +export const QueryVaultsService = { + typeName: TYPE_NAME, + method: "Vaults", + Request: QueryVaultsRequest, + Response: QueryVaultsResponse, +} as const; + +/** + * VaultValue queries the USD value of a vault. + * + * @generated from rpc elys.vaults.Query.VaultValue + */ +export const QueryVaultValueService = { + typeName: TYPE_NAME, + method: "VaultValue", + Request: QueryVaultValue, + Response: QueryVaultValueResponse, +} as const; + +/** + * VaultPositions queries the positions of a vault. + * + * @generated from rpc elys.vaults.Query.VaultPositions + */ +export const QueryVaultPositionsService = { + typeName: TYPE_NAME, + method: "VaultPositions", + Request: QueryVaultPositionsRequest, + Response: QueryVaultPositionsResponse, +} as const; + +/** + * DepositEstimation queries the estimated deposit amount for a vault. + * + * @generated from rpc elys.vaults.Query.DepositEstimation + */ +export const QueryDepositEstimationService = { + typeName: TYPE_NAME, + method: "DepositEstimation", + Request: QueryDepositEstimationRequest, + Response: QueryDepositEstimationResponse, +} as const; + +/** + * WithdrawEstimation queries the estimated withdraw amount for a vault. + * + * @generated from rpc elys.vaults.Query.WithdrawEstimation + */ +export const QueryWithdrawEstimationService = { + typeName: TYPE_NAME, + method: "WithdrawEstimation", + Request: QueryWithdrawEstimationRequest, + Response: QueryWithdrawEstimationResponse, +} as const; + diff --git a/src/protobufs/elys/vaults/query_pb.ts b/src/protobufs/elys/vaults/query_pb.ts new file mode 100644 index 00000000..b85f44ea --- /dev/null +++ b/src/protobufs/elys/vaults/query_pb.ts @@ -0,0 +1,674 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/query.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Vault } from "./vault_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message elys.vaults.VaultAndData + */ +export class VaultAndData extends Message { + /** + * @generated from field: elys.vaults.Vault vault = 1; + */ + vault?: Vault; + + /** + * @generated from field: string eden_apr = 2; + */ + edenApr = ""; + + /** + * @generated from field: string pnl_usd = 3; + */ + pnlUsd = ""; + + /** + * @generated from field: string total_deposits_usd = 4; + */ + totalDepositsUsd = ""; + + /** + * @generated from field: string deposits_used = 5; + */ + depositsUsed = ""; + + /** + * @generated from field: repeated elys.vaults.PositionToken positions = 6; + */ + positions: PositionToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.VaultAndData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault", kind: "message", T: Vault }, + { no: 2, name: "eden_apr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pnl_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_deposits_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "deposits_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "positions", kind: "message", T: PositionToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultAndData { + return new VaultAndData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultAndData { + return new VaultAndData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultAndData { + return new VaultAndData().fromJsonString(jsonString, options); + } + + static equals(a: VaultAndData | PlainMessage | undefined, b: VaultAndData | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultAndData, a, b); + } +} + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message elys.vaults.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message elys.vaults.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: elys.vaults.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultRequest + */ +export class QueryVaultRequest extends Message { + /** + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: uint64 days = 2; + */ + days = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultRequest | PlainMessage | undefined, b: QueryVaultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultRequest, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultResponse + */ +export class QueryVaultResponse extends Message { + /** + * @generated from field: elys.vaults.VaultAndData vault = 1; + */ + vault?: VaultAndData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault", kind: "message", T: VaultAndData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultResponse | PlainMessage | undefined, b: QueryVaultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultsRequest + */ +export class QueryVaultsRequest extends Message { + /** + * @generated from field: uint64 days = 1; + */ + days = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "days", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultsRequest | PlainMessage | undefined, b: QueryVaultsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultsRequest, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultsResponse + */ +export class QueryVaultsResponse extends Message { + /** + * @generated from field: repeated elys.vaults.VaultAndData vaults = 1; + */ + vaults: VaultAndData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vaults", kind: "message", T: VaultAndData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultsResponse | PlainMessage | undefined, b: QueryVaultsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultsResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultValue + */ +export class QueryVaultValue extends Message { + /** + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultValue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultValue { + return new QueryVaultValue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultValue { + return new QueryVaultValue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultValue { + return new QueryVaultValue().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultValue | PlainMessage | undefined, b: QueryVaultValue | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultValue, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultValueResponse + */ +export class QueryVaultValueResponse extends Message { + /** + * @generated from field: string usd_value = 1; + */ + usdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultValueResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultValueResponse { + return new QueryVaultValueResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultValueResponse { + return new QueryVaultValueResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultValueResponse { + return new QueryVaultValueResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultValueResponse | PlainMessage | undefined, b: QueryVaultValueResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultValueResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.PositionToken + */ +export class PositionToken extends Message { + /** + * @generated from field: string token_denom = 1; + */ + tokenDenom = ""; + + /** + * @generated from field: string token_amount = 2; + */ + tokenAmount = ""; + + /** + * @generated from field: string token_usd_value = 3; + */ + tokenUsdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.PositionToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionToken { + return new PositionToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionToken { + return new PositionToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionToken { + return new PositionToken().fromJsonString(jsonString, options); + } + + static equals(a: PositionToken | PlainMessage | undefined, b: PositionToken | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionToken, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultPositionsRequest + */ +export class QueryVaultPositionsRequest extends Message { + /** + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultPositionsRequest { + return new QueryVaultPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultPositionsRequest { + return new QueryVaultPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultPositionsRequest { + return new QueryVaultPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultPositionsRequest | PlainMessage | undefined, b: QueryVaultPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultPositionsRequest, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryVaultPositionsResponse + */ +export class QueryVaultPositionsResponse extends Message { + /** + * @generated from field: repeated elys.vaults.PositionToken positions = 1; + */ + positions: PositionToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryVaultPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultPositionsResponse { + return new QueryVaultPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultPositionsResponse { + return new QueryVaultPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultPositionsResponse { + return new QueryVaultPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultPositionsResponse | PlainMessage | undefined, b: QueryVaultPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultPositionsResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryDepositEstimationRequest + */ +export class QueryDepositEstimationRequest extends Message { + /** + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryDepositEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositEstimationRequest { + return new QueryDepositEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositEstimationRequest { + return new QueryDepositEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositEstimationRequest { + return new QueryDepositEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositEstimationRequest | PlainMessage | undefined, b: QueryDepositEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryDepositEstimationResponse + */ +export class QueryDepositEstimationResponse extends Message { + /** + * @generated from field: string shares_amount = 1; + */ + sharesAmount = ""; + + /** + * @generated from field: string shares_usd_value = 2; + */ + sharesUsdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryDepositEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shares_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "shares_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositEstimationResponse { + return new QueryDepositEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositEstimationResponse { + return new QueryDepositEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositEstimationResponse { + return new QueryDepositEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositEstimationResponse | PlainMessage | undefined, b: QueryDepositEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositEstimationResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryWithdrawEstimationRequest + */ +export class QueryWithdrawEstimationRequest extends Message { + /** + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string shares_amount = 2; + */ + sharesAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryWithdrawEstimationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "shares_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWithdrawEstimationRequest { + return new QueryWithdrawEstimationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWithdrawEstimationRequest { + return new QueryWithdrawEstimationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWithdrawEstimationRequest { + return new QueryWithdrawEstimationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryWithdrawEstimationRequest | PlainMessage | undefined, b: QueryWithdrawEstimationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWithdrawEstimationRequest, a, b); + } +} + +/** + * @generated from message elys.vaults.QueryWithdrawEstimationResponse + */ +export class QueryWithdrawEstimationResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * @generated from field: string usd_value = 2; + */ + usdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.QueryWithdrawEstimationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryWithdrawEstimationResponse { + return new QueryWithdrawEstimationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryWithdrawEstimationResponse { + return new QueryWithdrawEstimationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryWithdrawEstimationResponse { + return new QueryWithdrawEstimationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryWithdrawEstimationResponse | PlainMessage | undefined, b: QueryWithdrawEstimationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryWithdrawEstimationResponse, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/tx_cosmes.ts b/src/protobufs/elys/vaults/tx_cosmes.ts new file mode 100644 index 00000000..2e0fc425 --- /dev/null +++ b/src/protobufs/elys/vaults/tx_cosmes.ts @@ -0,0 +1,166 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file elys/vaults/tx.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddVault, MsgAddVaultResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgDeposit, MsgDepositResponse, MsgPerformActionExitPool, MsgPerformActionExitPoolResponse, MsgPerformActionJoinPool, MsgPerformActionJoinPoolResponse, MsgPerformActionSwapByDenom, MsgPerformActionSwapByDenomResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateVaultAllowedActions, MsgUpdateVaultAllowedActionsResponse, MsgUpdateVaultCoins, MsgUpdateVaultCoinsResponse, MsgUpdateVaultFees, MsgUpdateVaultFeesResponse, MsgUpdateVaultLockupPeriod, MsgUpdateVaultLockupPeriodResponse, MsgUpdateVaultMaxAmountUsd, MsgUpdateVaultMaxAmountUsdResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "elys.vaults.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc elys.vaults.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * Deposit defines a method for depositing tokens into a vault. + * + * @generated from rpc elys.vaults.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing tokens from a vault. + * + * @generated from rpc elys.vaults.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + +/** + * AddVault defines a method for creating a new vault. + * + * @generated from rpc elys.vaults.Msg.AddVault + */ +export const MsgAddVaultService = { + typeName: TYPE_NAME, + method: "AddVault", + Request: MsgAddVault, + Response: MsgAddVaultResponse, +} as const; + +/** + * PerformAction defines a method for performing an action on a vault. + * rpc PerformAction(MsgPerformAction) returns (MsgPerformActionResponse); + * + * @generated from rpc elys.vaults.Msg.PerformActionJoinPool + */ +export const MsgPerformActionJoinPoolService = { + typeName: TYPE_NAME, + method: "PerformActionJoinPool", + Request: MsgPerformActionJoinPool, + Response: MsgPerformActionJoinPoolResponse, +} as const; + +/** + * @generated from rpc elys.vaults.Msg.PerformActionExitPool + */ +export const MsgPerformActionExitPoolService = { + typeName: TYPE_NAME, + method: "PerformActionExitPool", + Request: MsgPerformActionExitPool, + Response: MsgPerformActionExitPoolResponse, +} as const; + +/** + * @generated from rpc elys.vaults.Msg.PerformActionSwapByDenom + */ +export const MsgPerformActionSwapByDenomService = { + typeName: TYPE_NAME, + method: "PerformActionSwapByDenom", + Request: MsgPerformActionSwapByDenom, + Response: MsgPerformActionSwapByDenomResponse, +} as const; + +/** + * UpdateVaultCoins defines a method for updating the coins of a vault. + * + * @generated from rpc elys.vaults.Msg.UpdateVaultCoins + */ +export const MsgUpdateVaultCoinsService = { + typeName: TYPE_NAME, + method: "UpdateVaultCoins", + Request: MsgUpdateVaultCoins, + Response: MsgUpdateVaultCoinsResponse, +} as const; + +/** + * UpdateVaultFees defines a method for updating the fees of a vault. + * + * @generated from rpc elys.vaults.Msg.UpdateVaultFees + */ +export const MsgUpdateVaultFeesService = { + typeName: TYPE_NAME, + method: "UpdateVaultFees", + Request: MsgUpdateVaultFees, + Response: MsgUpdateVaultFeesResponse, +} as const; + +/** + * UpdateVaultLockupPeriod defines a method for updating the lockup period of + * a vault. + * + * @generated from rpc elys.vaults.Msg.UpdateVaultLockupPeriod + */ +export const MsgUpdateVaultLockupPeriodService = { + typeName: TYPE_NAME, + method: "UpdateVaultLockupPeriod", + Request: MsgUpdateVaultLockupPeriod, + Response: MsgUpdateVaultLockupPeriodResponse, +} as const; + +/** + * UpdateVaultMaxAmountUsd defines a method for updating the max amount of a + * vault. + * + * @generated from rpc elys.vaults.Msg.UpdateVaultMaxAmountUsd + */ +export const MsgUpdateVaultMaxAmountUsdService = { + typeName: TYPE_NAME, + method: "UpdateVaultMaxAmountUsd", + Request: MsgUpdateVaultMaxAmountUsd, + Response: MsgUpdateVaultMaxAmountUsdResponse, +} as const; + +/** + * ClaimRewards defines a method for claiming rewards from a vault. + * + * @generated from rpc elys.vaults.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + +/** + * UpdateVaultAllowedActions defines a method for updating the allowed actions + * of a vault. + * + * @generated from rpc elys.vaults.Msg.UpdateVaultAllowedActions + */ +export const MsgUpdateVaultAllowedActionsService = { + typeName: TYPE_NAME, + method: "UpdateVaultAllowedActions", + Request: MsgUpdateVaultAllowedActions, + Response: MsgUpdateVaultAllowedActionsResponse, +} as const; + diff --git a/src/protobufs/elys/vaults/tx_pb.ts b/src/protobufs/elys/vaults/tx_pb.ts new file mode 100644 index 00000000..664d61f8 --- /dev/null +++ b/src/protobufs/elys/vaults/tx_pb.ts @@ -0,0 +1,1317 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/tx.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message elys.vaults.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the module parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: elys.vaults.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message elys.vaults.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgDeposit is the MsgDeposit request type. + * + * @generated from message elys.vaults.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * depositor is the address of the user depositing the funds. + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * vault_id is the ID of the vault to deposit into. + * + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * amount is the amount of tokens to deposit. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the response structure for deposit + * + * @generated from message elys.vaults.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + /** + * vault_id is the ID of the vault that the deposit was made into. + * + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string shares = 2; + */ + shares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw is the MsgWithdraw request type. + * + * @generated from message elys.vaults.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * withdrawer is the address of the user withdrawing the funds. + * + * @generated from field: string withdrawer = 1; + */ + withdrawer = ""; + + /** + * vault_id is the ID of the vault to withdraw from. + * + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string shares = 3; + */ + shares = ""; + + /** + * @generated from field: bool swap_to_deposit_denom = 4; + */ + swapToDepositDenom = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "withdrawer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "swap_to_deposit_denom", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the response structure for withdrawal + * + * @generated from message elys.vaults.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + /** + * vault_id is the ID of the vault that the withdrawal was made from. + * + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + +/** + * MsgAddVault is the MsgAddVault request type. + * + * @generated from message elys.vaults.MsgAddVault + */ +export class MsgAddVault extends Message { + /** + * creator is the address of the user creating the vault. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string deposit_denom = 2; + */ + depositDenom = ""; + + /** + * Max amount vault can hold in USD + * + * @generated from field: string max_amount_usd = 3; + */ + maxAmountUsd = ""; + + /** + * Coins allowed to trade in the vault + * + * @generated from field: repeated string allowed_coins = 4; + */ + allowedCoins: string[] = []; + + /** + * @generated from field: repeated string reward_coins = 5; + */ + rewardCoins: string[] = []; + + /** + * @generated from field: string benchmark_coin = 6; + */ + benchmarkCoin = ""; + + /** + * @generated from field: string manager = 7; + */ + manager = ""; + + /** + * @generated from field: string management_fee = 8; + */ + managementFee = ""; + + /** + * @generated from field: string performance_fee = 9; + */ + performanceFee = ""; + + /** + * @generated from field: string protocol_fee_share = 10; + */ + protocolFeeShare = ""; + + /** + * in seconds + * + * @generated from field: uint64 lockup_period = 11; + */ + lockupPeriod = protoInt64.zero; + + /** + * @generated from field: string description = 12; + */ + description = ""; + + /** + * TODO: enable checks in v1.5 + * + * @generated from field: repeated string allowed_actions = 13; + */ + allowedActions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgAddVault"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "max_amount_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "allowed_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "reward_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "benchmark_coin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "management_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "performance_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "protocol_fee_share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "lockup_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "allowed_actions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddVault { + return new MsgAddVault().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddVault { + return new MsgAddVault().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddVault { + return new MsgAddVault().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddVault | PlainMessage | undefined, b: MsgAddVault | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddVault, a, b); + } +} + +/** + * MsgAddVaultResponse defines the response structure for adding vault + * + * @generated from message elys.vaults.MsgAddVaultResponse + */ +export class MsgAddVaultResponse extends Message { + /** + * vault_id is the ID of the vault that was created. + * + * @generated from field: uint64 vault_id = 1; + */ + vaultId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgAddVaultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddVaultResponse { + return new MsgAddVaultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddVaultResponse { + return new MsgAddVaultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddVaultResponse { + return new MsgAddVaultResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddVaultResponse | PlainMessage | undefined, b: MsgAddVaultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddVaultResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionResponse + */ +export class MsgPerformActionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionResponse { + return new MsgPerformActionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionResponse { + return new MsgPerformActionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionResponse { + return new MsgPerformActionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionResponse | PlainMessage | undefined, b: MsgPerformActionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionJoinPool + */ +export class MsgPerformActionJoinPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin max_amounts_in = 4; + */ + maxAmountsIn: Coin[] = []; + + /** + * @generated from field: string share_amount_out = 5; + */ + shareAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionJoinPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "max_amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "share_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionJoinPool { + return new MsgPerformActionJoinPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionJoinPool { + return new MsgPerformActionJoinPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionJoinPool { + return new MsgPerformActionJoinPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionJoinPool | PlainMessage | undefined, b: MsgPerformActionJoinPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionJoinPool, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionJoinPoolResponse + */ +export class MsgPerformActionJoinPoolResponse extends Message { + /** + * @generated from field: string share_amount_out = 1; + */ + shareAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionJoinPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionJoinPoolResponse { + return new MsgPerformActionJoinPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionJoinPoolResponse { + return new MsgPerformActionJoinPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionJoinPoolResponse { + return new MsgPerformActionJoinPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionJoinPoolResponse | PlainMessage | undefined, b: MsgPerformActionJoinPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionJoinPoolResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionExitPool + */ +export class MsgPerformActionExitPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 4; + */ + minAmountsOut: Coin[] = []; + + /** + * @generated from field: string share_amount_in = 5; + */ + shareAmountIn = ""; + + /** + * @generated from field: string token_out_denom = 6; + */ + tokenOutDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionExitPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "share_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionExitPool { + return new MsgPerformActionExitPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionExitPool { + return new MsgPerformActionExitPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionExitPool { + return new MsgPerformActionExitPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionExitPool | PlainMessage | undefined, b: MsgPerformActionExitPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionExitPool, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionExitPoolResponse + */ +export class MsgPerformActionExitPoolResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin token_out = 1; + */ + tokenOut: Coin[] = []; + + /** + * @generated from field: string weight_balance_ratio = 2; + */ + weightBalanceRatio = ""; + + /** + * @generated from field: string slippage = 3; + */ + slippage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionExitPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_out", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "weight_balance_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionExitPoolResponse { + return new MsgPerformActionExitPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionExitPoolResponse { + return new MsgPerformActionExitPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionExitPoolResponse { + return new MsgPerformActionExitPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionExitPoolResponse | PlainMessage | undefined, b: MsgPerformActionExitPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionExitPoolResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionSwapByDenom + */ +export class MsgPerformActionSwapByDenom extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin min_amount = 4; + */ + minAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin max_amount = 5; + */ + maxAmount?: Coin; + + /** + * @generated from field: string denom_in = 6; + */ + denomIn = ""; + + /** + * @generated from field: string denom_out = 7; + */ + denomOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionSwapByDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "min_amount", kind: "message", T: Coin }, + { no: 5, name: "max_amount", kind: "message", T: Coin }, + { no: 6, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionSwapByDenom { + return new MsgPerformActionSwapByDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionSwapByDenom { + return new MsgPerformActionSwapByDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionSwapByDenom { + return new MsgPerformActionSwapByDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionSwapByDenom | PlainMessage | undefined, b: MsgPerformActionSwapByDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionSwapByDenom, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgPerformActionSwapByDenomResponse + */ +export class MsgPerformActionSwapByDenomResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin out_amount = 1; + */ + outAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgPerformActionSwapByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "out_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerformActionSwapByDenomResponse { + return new MsgPerformActionSwapByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerformActionSwapByDenomResponse { + return new MsgPerformActionSwapByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerformActionSwapByDenomResponse { + return new MsgPerformActionSwapByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerformActionSwapByDenomResponse | PlainMessage | undefined, b: MsgPerformActionSwapByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerformActionSwapByDenomResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultCoins + */ +export class MsgUpdateVaultCoins extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: repeated string allowed_coins = 3; + */ + allowedCoins: string[] = []; + + /** + * @generated from field: repeated string reward_coins = 4; + */ + rewardCoins: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultCoins"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "allowed_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "reward_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultCoins { + return new MsgUpdateVaultCoins().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultCoins { + return new MsgUpdateVaultCoins().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultCoins { + return new MsgUpdateVaultCoins().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultCoins | PlainMessage | undefined, b: MsgUpdateVaultCoins | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultCoins, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultCoinsResponse + */ +export class MsgUpdateVaultCoinsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultCoinsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultCoinsResponse { + return new MsgUpdateVaultCoinsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultCoinsResponse { + return new MsgUpdateVaultCoinsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultCoinsResponse { + return new MsgUpdateVaultCoinsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultCoinsResponse | PlainMessage | undefined, b: MsgUpdateVaultCoinsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultCoinsResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultFees + */ +export class MsgUpdateVaultFees extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string management_fee = 3; + */ + managementFee = ""; + + /** + * @generated from field: string performance_fee = 4; + */ + performanceFee = ""; + + /** + * @generated from field: string protocol_fee_share = 5; + */ + protocolFeeShare = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "management_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "performance_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "protocol_fee_share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultFees { + return new MsgUpdateVaultFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultFees { + return new MsgUpdateVaultFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultFees { + return new MsgUpdateVaultFees().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultFees | PlainMessage | undefined, b: MsgUpdateVaultFees | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultFees, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultFeesResponse + */ +export class MsgUpdateVaultFeesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultFeesResponse { + return new MsgUpdateVaultFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultFeesResponse { + return new MsgUpdateVaultFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultFeesResponse { + return new MsgUpdateVaultFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultFeesResponse | PlainMessage | undefined, b: MsgUpdateVaultFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultFeesResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultLockupPeriod + */ +export class MsgUpdateVaultLockupPeriod extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: uint64 lockup_period = 3; + */ + lockupPeriod = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultLockupPeriod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lockup_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultLockupPeriod { + return new MsgUpdateVaultLockupPeriod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultLockupPeriod { + return new MsgUpdateVaultLockupPeriod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultLockupPeriod { + return new MsgUpdateVaultLockupPeriod().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultLockupPeriod | PlainMessage | undefined, b: MsgUpdateVaultLockupPeriod | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultLockupPeriod, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultLockupPeriodResponse + */ +export class MsgUpdateVaultLockupPeriodResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultLockupPeriodResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultLockupPeriodResponse { + return new MsgUpdateVaultLockupPeriodResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultLockupPeriodResponse { + return new MsgUpdateVaultLockupPeriodResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultLockupPeriodResponse { + return new MsgUpdateVaultLockupPeriodResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultLockupPeriodResponse | PlainMessage | undefined, b: MsgUpdateVaultLockupPeriodResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultLockupPeriodResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultMaxAmountUsd + */ +export class MsgUpdateVaultMaxAmountUsd extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: string max_amount_usd = 3; + */ + maxAmountUsd = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultMaxAmountUsd"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "max_amount_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultMaxAmountUsd { + return new MsgUpdateVaultMaxAmountUsd().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultMaxAmountUsd { + return new MsgUpdateVaultMaxAmountUsd().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultMaxAmountUsd { + return new MsgUpdateVaultMaxAmountUsd().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultMaxAmountUsd | PlainMessage | undefined, b: MsgUpdateVaultMaxAmountUsd | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultMaxAmountUsd, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultMaxAmountUsdResponse + */ +export class MsgUpdateVaultMaxAmountUsdResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultMaxAmountUsdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultMaxAmountUsdResponse { + return new MsgUpdateVaultMaxAmountUsdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultMaxAmountUsdResponse { + return new MsgUpdateVaultMaxAmountUsdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultMaxAmountUsdResponse { + return new MsgUpdateVaultMaxAmountUsdResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultMaxAmountUsdResponse | PlainMessage | undefined, b: MsgUpdateVaultMaxAmountUsdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultMaxAmountUsdResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated uint64 vault_ids = 2; + */ + vaultIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultAllowedActions + */ +export class MsgUpdateVaultAllowedActions extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 vault_id = 2; + */ + vaultId = protoInt64.zero; + + /** + * @generated from field: repeated string allowed_actions = 3; + */ + allowedActions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultAllowedActions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "allowed_actions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultAllowedActions { + return new MsgUpdateVaultAllowedActions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultAllowedActions { + return new MsgUpdateVaultAllowedActions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultAllowedActions { + return new MsgUpdateVaultAllowedActions().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultAllowedActions | PlainMessage | undefined, b: MsgUpdateVaultAllowedActions | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultAllowedActions, a, b); + } +} + +/** + * @generated from message elys.vaults.MsgUpdateVaultAllowedActionsResponse + */ +export class MsgUpdateVaultAllowedActionsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.MsgUpdateVaultAllowedActionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVaultAllowedActionsResponse { + return new MsgUpdateVaultAllowedActionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVaultAllowedActionsResponse { + return new MsgUpdateVaultAllowedActionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVaultAllowedActionsResponse { + return new MsgUpdateVaultAllowedActionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVaultAllowedActionsResponse | PlainMessage | undefined, b: MsgUpdateVaultAllowedActionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVaultAllowedActionsResponse, a, b); + } +} + diff --git a/src/protobufs/elys/vaults/vault_pb.ts b/src/protobufs/elys/vaults/vault_pb.ts new file mode 100644 index 00000000..8b94ad55 --- /dev/null +++ b/src/protobufs/elys/vaults/vault_pb.ts @@ -0,0 +1,259 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file elys/vaults/vault.proto (package elys.vaults, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Vault is a structure that defines a vault + * + * @generated from message elys.vaults.Vault + */ +export class Vault extends Message { + /** + * @generated from field: string deposit_denom = 1; + */ + depositDenom = ""; + + /** + * Max amount vault can hold in USD + * + * @generated from field: string max_amount_usd = 2; + */ + maxAmountUsd = ""; + + /** + * Coins allowed to trade in the vault + * + * @generated from field: repeated string allowed_coins = 3; + */ + allowedCoins: string[] = []; + + /** + * @generated from field: repeated string reward_coins = 4; + */ + rewardCoins: string[] = []; + + /** + * @generated from field: string benchmark_coin = 5; + */ + benchmarkCoin = ""; + + /** + * @generated from field: string manager = 6; + */ + manager = ""; + + /** + * @generated from field: uint64 id = 7; + */ + id = protoInt64.zero; + + /** + * @generated from field: string management_fee = 8; + */ + managementFee = ""; + + /** + * @generated from field: string performance_fee = 9; + */ + performanceFee = ""; + + /** + * @generated from field: string protocol_fee_share = 10; + */ + protocolFeeShare = ""; + + /** + * in seconds + * + * @generated from field: uint64 lockup_period = 11; + */ + lockupPeriod = protoInt64.zero; + + /** + * @generated from field: string sum_of_deposits_usd_value = 12; + */ + sumOfDepositsUsdValue = ""; + + /** + * @generated from field: string withdrawal_usd_value = 13; + */ + withdrawalUsdValue = ""; + + /** + * @generated from field: string address = 14; + */ + address = ""; + + /** + * @generated from field: string cumulative_management_fee = 15; + */ + cumulativeManagementFee = ""; + + /** + * @generated from field: string cumulative_performance_fee = 16; + */ + cumulativePerformanceFee = ""; + + /** + * @generated from field: string description = 17; + */ + description = ""; + + /** + * @generated from field: repeated string allowed_actions = 18; + */ + allowedActions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.Vault"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_amount_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allowed_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "reward_coins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "benchmark_coin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "management_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "performance_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "protocol_fee_share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "lockup_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "sum_of_deposits_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "withdrawal_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "cumulative_management_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "cumulative_performance_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "allowed_actions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vault { + return new Vault().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vault { + return new Vault().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vault { + return new Vault().fromJsonString(jsonString, options); + } + + static equals(a: Vault | PlainMessage | undefined, b: Vault | PlainMessage | undefined): boolean { + return proto3.util.equals(Vault, a, b); + } +} + +/** + * @generated from message elys.vaults.UserData + */ +export class UserData extends Message { + /** + * @generated from field: string total_deposits_usd = 1; + */ + totalDepositsUsd = ""; + + /** + * @generated from field: string total_withdrawals_usd = 2; + */ + totalWithdrawalsUsd = ""; + + /** + * @generated from field: string eden_usd_value = 3; + */ + edenUsdValue = ""; + + /** + * @generated from field: string eden_amount = 4; + */ + edenAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.UserData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_deposits_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_withdrawals_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "eden_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "eden_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserData { + return new UserData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserData { + return new UserData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserData { + return new UserData().fromJsonString(jsonString, options); + } + + static equals(a: UserData | PlainMessage | undefined, b: UserData | PlainMessage | undefined): boolean { + return proto3.util.equals(UserData, a, b); + } +} + +/** + * @generated from message elys.vaults.VaultPnL + */ +export class VaultPnL extends Message { + /** + * @generated from field: string vault_id = 1; + */ + vaultId = ""; + + /** + * @generated from field: string pnl_usd = 2; + */ + pnlUsd = ""; + + /** + * @generated from field: string date = 3; + */ + date = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "elys.vaults.VaultPnL"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pnl_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "date", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultPnL { + return new VaultPnL().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultPnL { + return new VaultPnL().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultPnL { + return new VaultPnL().fromJsonString(jsonString, options); + } + + static equals(a: VaultPnL | PlainMessage | undefined, b: VaultPnL | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultPnL, a, b); + } +} + diff --git a/src/protobufs/eth/evm/module/module_pb.ts b/src/protobufs/eth/evm/module/module_pb.ts new file mode 100644 index 00000000..e936f784 --- /dev/null +++ b/src/protobufs/eth/evm/module/module_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/module/module.proto (package nibiru.evm.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the devgas module. + * + * @generated from message nibiru.evm.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.evm.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.evm.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.evm.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/eth/evm/v1/events_pb.ts b/src/protobufs/eth/evm/v1/events_pb.ts new file mode 100644 index 00000000..3ccd7066 --- /dev/null +++ b/src/protobufs/eth/evm/v1/events_pb.ts @@ -0,0 +1,579 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/v1/events.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Log, LogLite } from "./evm_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * EventEthereumTx defines the event for an Ethereum transaction + * + * @generated from message eth.evm.v1.EventEthereumTx + */ +export class EventEthereumTx extends Message { + /** + * amount + * + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * eth_hash is the Ethereum hash of the transaction + * + * @generated from field: string eth_hash = 2; + */ + ethHash = ""; + + /** + * index of the transaction in the block + * + * @generated from field: string index = 3; + */ + index = ""; + + /** + * gas_used is the amount of gas used by the transaction + * + * @generated from field: string gas_used = 4; + */ + gasUsed = ""; + + /** + * hash is the Tendermint hash of the transaction + * + * @generated from field: string hash = 5; + */ + hash = ""; + + /** + * recipient of the transaction + * + * @generated from field: string recipient = 6; + */ + recipient = ""; + + /** + * vm_error contains a VM error should it occur + * + * @generated from field: string vm_error = 7; + */ + vmError = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "eth_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: EventEthereumTx | PlainMessage | undefined, b: EventEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(EventEthereumTx, a, b); + } +} + +/** + * EventTxLog defines the event for an Ethereum transaction log + * + * @generated from message eth.evm.v1.EventTxLog + */ +export class EventTxLog extends Message { + /** + * tx_logs is an array of transaction logs + * + * @generated from field: repeated eth.evm.v1.Log logs = 1; + */ + logs: Log[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventTxLog"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "logs", kind: "message", T: Log, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTxLog { + return new EventTxLog().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTxLog { + return new EventTxLog().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTxLog { + return new EventTxLog().fromJsonString(jsonString, options); + } + + static equals(a: EventTxLog | PlainMessage | undefined, b: EventTxLog | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTxLog, a, b); + } +} + +/** + * EventBlockBloom contains the bloom filter for an Ethereum block. + * The bloom filter encodes logs for efficient event filtering. + * + * @generated from message eth.evm.v1.EventBlockBloom + */ +export class EventBlockBloom extends Message { + /** + * bloom is the bloom filter of the block + * + * @generated from field: string bloom = 1; + */ + bloom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventBlockBloom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromJsonString(jsonString, options); + } + + static equals(a: EventBlockBloom | PlainMessage | undefined, b: EventBlockBloom | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBlockBloom, a, b); + } +} + +/** + * EventFunTokenCreated defines a fun token creation event. + * + * @generated from message eth.evm.v1.EventFunTokenCreated + */ +export class EventFunTokenCreated extends Message { + /** + * @generated from field: string bank_denom = 1; + */ + bankDenom = ""; + + /** + * @generated from field: string erc20_contract_address = 2; + */ + erc20ContractAddress = ""; + + /** + * @generated from field: string creator = 3; + */ + creator = ""; + + /** + * @generated from field: bool is_made_from_coin = 4; + */ + isMadeFromCoin = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventFunTokenCreated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "is_made_from_coin", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFunTokenCreated { + return new EventFunTokenCreated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFunTokenCreated { + return new EventFunTokenCreated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFunTokenCreated { + return new EventFunTokenCreated().fromJsonString(jsonString, options); + } + + static equals(a: EventFunTokenCreated | PlainMessage | undefined, b: EventFunTokenCreated | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFunTokenCreated, a, b); + } +} + +/** + * EventConvertCoinToEvm is an event emitted when converting Bank Coins into + * ERC20 tokens with the "eth.evm.v1.MsgConvertCoinToEvm" transaction message. + * + * @generated from message eth.evm.v1.EventConvertCoinToEvm + */ +export class EventConvertCoinToEvm extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string erc20_contract_address = 2; + */ + erc20ContractAddress = ""; + + /** + * @generated from field: string to_eth_addr = 3; + */ + toEthAddr = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin bank_coin = 4; + */ + bankCoin?: Coin; + + /** + * @generated from field: repeated eth.evm.v1.LogLite evm_logs = 5; + */ + evmLogs: LogLite[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventConvertCoinToEvm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "to_eth_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bank_coin", kind: "message", T: Coin }, + { no: 5, name: "evm_logs", kind: "message", T: LogLite, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvertCoinToEvm { + return new EventConvertCoinToEvm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvertCoinToEvm { + return new EventConvertCoinToEvm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvertCoinToEvm { + return new EventConvertCoinToEvm().fromJsonString(jsonString, options); + } + + static equals(a: EventConvertCoinToEvm | PlainMessage | undefined, b: EventConvertCoinToEvm | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvertCoinToEvm, a, b); + } +} + +/** + * EventTransfer defines event for EVM transfer + * + * @generated from message eth.evm.v1.EventTransfer + */ +export class EventTransfer extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string recipient = 2; + */ + recipient = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTransfer { + return new EventTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTransfer { + return new EventTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTransfer { + return new EventTransfer().fromJsonString(jsonString, options); + } + + static equals(a: EventTransfer | PlainMessage | undefined, b: EventTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTransfer, a, b); + } +} + +/** + * EventContractDeployed defines event for EVM contract deployment + * + * @generated from message eth.evm.v1.EventContractDeployed + */ +export class EventContractDeployed extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string contract_addr = 2; + */ + contractAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventContractDeployed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventContractDeployed { + return new EventContractDeployed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventContractDeployed { + return new EventContractDeployed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventContractDeployed { + return new EventContractDeployed().fromJsonString(jsonString, options); + } + + static equals(a: EventContractDeployed | PlainMessage | undefined, b: EventContractDeployed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventContractDeployed, a, b); + } +} + +/** + * EventContractExecuted defines event for EVM contract execution + * + * @generated from message eth.evm.v1.EventContractExecuted + */ +export class EventContractExecuted extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string contract_addr = 2; + */ + contractAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventContractExecuted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventContractExecuted { + return new EventContractExecuted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventContractExecuted { + return new EventContractExecuted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventContractExecuted { + return new EventContractExecuted().fromJsonString(jsonString, options); + } + + static equals(a: EventContractExecuted | PlainMessage | undefined, b: EventContractExecuted | PlainMessage | undefined): boolean { + return proto3.util.equals(EventContractExecuted, a, b); + } +} + +/** + * EventConvertEvmToCoin is an event emitted when converting ERC20 tokens to Bank + * Coins with the "eth.evm.v1.MsgConvertEvmToCoin" transaction message. + * + * @generated from message eth.evm.v1.EventConvertEvmToCoin + */ +export class EventConvertEvmToCoin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string erc20_contract_address = 2; + */ + erc20ContractAddress = ""; + + /** + * @generated from field: string to_address = 3; + */ + toAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin bank_coin = 4; + */ + bankCoin?: Coin; + + /** + * @generated from field: string sender_eth_addr = 6; + */ + senderEthAddr = ""; + + /** + * @generated from field: repeated eth.evm.v1.LogLite evm_logs = 7; + */ + evmLogs: LogLite[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventConvertEvmToCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bank_coin", kind: "message", T: Coin }, + { no: 6, name: "sender_eth_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "evm_logs", kind: "message", T: LogLite, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvertEvmToCoin { + return new EventConvertEvmToCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvertEvmToCoin { + return new EventConvertEvmToCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvertEvmToCoin { + return new EventConvertEvmToCoin().fromJsonString(jsonString, options); + } + + static equals(a: EventConvertEvmToCoin | PlainMessage | undefined, b: EventConvertEvmToCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvertEvmToCoin, a, b); + } +} + +/** + * EventWeiBlockDelta is an event emitted when there is a non-zero value for + * block delta (change) in wei in the EVM end block handler. + * + * @generated from message eth.evm.v1.EventWeiBlockDelta + */ +export class EventWeiBlockDelta extends Message { + /** + * net_wei_block_delta is the new sum of all "wei_block_delta" changes up to + * this point. It is the value for "NetWeiBlockDelta" in the EVM state. + * + * @generated from field: string net_wei_block_delta = 1; + */ + netWeiBlockDelta = ""; + + /** + * WeiBlockDelta is the net sum of all calls of "AddWei" and "SubWei" in the + * current block. There is no guarantee in the functional sense that the EVM + * State DB will add the same amount it subtracts. It is possible for the total + * amount of wei (NIBI) across all accounts to diverge from the initial supply. + * "WeiBlockDelta" is a mechanism for recording that if it happens. + * + * @generated from field: string wei_block_delta = 2; + */ + weiBlockDelta = ""; + + /** + * block_number for which this event is emitted during EVM EndBlock + * + * @generated from field: uint64 block_number = 3; + */ + blockNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EventWeiBlockDelta"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "net_wei_block_delta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "wei_block_delta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventWeiBlockDelta { + return new EventWeiBlockDelta().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventWeiBlockDelta { + return new EventWeiBlockDelta().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventWeiBlockDelta { + return new EventWeiBlockDelta().fromJsonString(jsonString, options); + } + + static equals(a: EventWeiBlockDelta | PlainMessage | undefined, b: EventWeiBlockDelta | PlainMessage | undefined): boolean { + return proto3.util.equals(EventWeiBlockDelta, a, b); + } +} + diff --git a/src/protobufs/eth/evm/v1/evm_pb.ts b/src/protobufs/eth/evm/v1/evm_pb.ts new file mode 100644 index 00000000..a9fcbec7 --- /dev/null +++ b/src/protobufs/eth/evm/v1/evm_pb.ts @@ -0,0 +1,563 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/v1/evm.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * FunToken is a fungible token mapping between a Bank Coin and a corresponding + * ERC-20 smart contract. Bank Coins here refer to tokens like NIBI, IBC + * coins (ICS-20), and token factory coins, which are each represented by the + * "Coin" type in Golang. + * + * @generated from message eth.evm.v1.FunToken + */ +export class FunToken extends Message { + /** + * Hexadecimal address of the ERC20 token to which the `FunToken` maps + * + * @generated from field: string erc20_addr = 1; + */ + erc20Addr = ""; + + /** + * bank_denom: Coin denomination in the Bank Module. + * + * @generated from field: string bank_denom = 2; + */ + bankDenom = ""; + + /** + * True if the `FunToken` mapping was created from an existing Bank Coin and + * the ERC-20 contract gets deployed by the module account. False if the + * mapping was created from an externally owned ERC-20 contract. + * + * @generated from field: bool is_made_from_coin = 3; + */ + isMadeFromCoin = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.FunToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "erc20_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "is_made_from_coin", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FunToken { + return new FunToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FunToken { + return new FunToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FunToken { + return new FunToken().fromJsonString(jsonString, options); + } + + static equals(a: FunToken | PlainMessage | undefined, b: FunToken | PlainMessage | undefined): boolean { + return proto3.util.equals(FunToken, a, b); + } +} + +/** + * Params defines the EVM module parameters + * + * @generated from message eth.evm.v1.Params + */ +export class Params extends Message { + /** + * extra_eips defines the additional EIPs for the vm.Config + * + * @generated from field: repeated int64 extra_eips = 4; + */ + extraEips: bigint[] = []; + + /** + * evm_channels is the list of channel identifiers from EVM compatible chains + * + * @generated from field: repeated string evm_channels = 8; + */ + evmChannels: string[] = []; + + /** + * Fee deducted and burned when calling "CreateFunToken" in units of + * "evm_denom". + * + * @generated from field: string create_funtoken_fee = 9; + */ + createFuntokenFee = ""; + + /** + * Hexadecimal address of the canonical WNIBI contract on Nibiru mainnet + * + * @generated from field: string canonical_wnibi = 10; + */ + canonicalWnibi = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 4, name: "extra_eips", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 8, name: "evm_channels", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "create_funtoken_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "canonical_wnibi", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * State represents a single Storage key value pair item. + * + * @generated from message eth.evm.v1.State + */ +export class State extends Message { + /** + * key is the stored key + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * value is the stored value for the given key + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.State"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): State { + return new State().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): State { + return new State().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): State { + return new State().fromJsonString(jsonString, options); + } + + static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean { + return proto3.util.equals(State, a, b); + } +} + +/** + * Log represents an protobuf compatible Ethereum Log that defines a contract + * log event. These events are generated by the LOG opcode and stored/indexed by + * the node. + * + * NOTE: address, topics and data are consensus fields. The rest of the fields + * are derived, i.e. filled in by the nodes, but not secured by consensus. + * + * @generated from message eth.evm.v1.Log + */ +export class Log extends Message { + /** + * address of the contract that generated the event + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * topics is a list of topics provided by the contract. + * + * @generated from field: repeated string topics = 2; + */ + topics: string[] = []; + + /** + * data which is supplied by the contract, usually ABI-encoded + * + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + /** + * block_number of the block in which the transaction was included + * + * @generated from field: uint64 block_number = 4; + */ + blockNumber = protoInt64.zero; + + /** + * tx_hash is the transaction hash + * + * @generated from field: string tx_hash = 5; + */ + txHash = ""; + + /** + * tx_index of the transaction in the block + * + * @generated from field: uint64 tx_index = 6; + */ + txIndex = protoInt64.zero; + + /** + * block_hash of the block in which the transaction was included + * + * @generated from field: string block_hash = 7; + */ + blockHash = ""; + + /** + * index of the log in the block + * + * @generated from field: uint64 index = 8; + */ + index = protoInt64.zero; + + /** + * removed is true if this log was reverted due to a chain + * reorganisation. You must pay attention to this field if you receive logs + * through a filter query. + * + * @generated from field: bool removed = 9; + */ + removed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.Log"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Log { + return new Log().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Log { + return new Log().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Log { + return new Log().fromJsonString(jsonString, options); + } + + static equals(a: Log | PlainMessage | undefined, b: Log | PlainMessage | undefined): boolean { + return proto3.util.equals(Log, a, b); + } +} + +/** + * LogLite holds the consensus fields from an Ethereum log for a contract + * event. This structure is used to record EVM logs emitted within non-Ethreum + * transactions, such as "eth.evm.v1.MsgConvertCoinToEvm". Similar to full logs, + * these events are generated by the LOG opcode, however [LogLite] instances are + * not stored/indexed by the node. + * + * @generated from message eth.evm.v1.LogLite + */ +export class LogLite extends Message { + /** + * address of the contract that generated the event + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * topics is a list of topics provided by the contract. + * + * @generated from field: repeated string topics = 2; + */ + topics: string[] = []; + + /** + * data which is supplied by the contract, usually ABI-encoded + * + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.LogLite"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LogLite { + return new LogLite().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LogLite { + return new LogLite().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LogLite { + return new LogLite().fromJsonString(jsonString, options); + } + + static equals(a: LogLite | PlainMessage | undefined, b: LogLite | PlainMessage | undefined): boolean { + return proto3.util.equals(LogLite, a, b); + } +} + +/** + * AccessTuple is the element type of an access list. + * + * @generated from message eth.evm.v1.AccessTuple + */ +export class AccessTuple extends Message { + /** + * address is a hex formatted ethereum address + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * storage_keys are hex formatted hashes of the storage keys + * + * @generated from field: repeated string storage_keys = 2; + */ + storageKeys: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.AccessTuple"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "storage_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessTuple { + return new AccessTuple().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessTuple { + return new AccessTuple().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessTuple { + return new AccessTuple().fromJsonString(jsonString, options); + } + + static equals(a: AccessTuple | PlainMessage | undefined, b: AccessTuple | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessTuple, a, b); + } +} + +/** + * TracerConfig stores additional tracer args. For geth it's only one attr: + * onlyTopCall + * + * @generated from message eth.evm.v1.TracerConfig + */ +export class TracerConfig extends Message { + /** + * @generated from field: bool only_top_call = 1; + */ + onlyTopCall = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.TracerConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "only_top_call", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TracerConfig { + return new TracerConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TracerConfig { + return new TracerConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TracerConfig { + return new TracerConfig().fromJsonString(jsonString, options); + } + + static equals(a: TracerConfig | PlainMessage | undefined, b: TracerConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(TracerConfig, a, b); + } +} + +/** + * TraceConfig holds extra parameters to trace functions. + * + * @generated from message eth.evm.v1.TraceConfig + */ +export class TraceConfig extends Message { + /** + * tracer is a custom javascript tracer + * + * @generated from field: string tracer = 1; + */ + tracer = ""; + + /** + * timeout overrides the default timeout of 5 seconds for JavaScript-based + * tracing calls + * + * @generated from field: string timeout = 2; + */ + timeout = ""; + + /** + * reexec defines the number of blocks the tracer is willing to go back + * + * @generated from field: uint64 reexec = 3; + */ + reexec = protoInt64.zero; + + /** + * disable_stack switches stack capture + * + * @generated from field: bool disable_stack = 5; + */ + disableStack = false; + + /** + * disable_storage switches storage capture + * + * @generated from field: bool disable_storage = 6; + */ + disableStorage = false; + + /** + * debug can be used to print output during capture end + * + * @generated from field: bool debug = 8; + */ + debug = false; + + /** + * limit defines the maximum length of output, but zero means unlimited + * + * @generated from field: int32 limit = 9; + */ + limit = 0; + + /** + * enable_memory switches memory capture + * + * @generated from field: bool enable_memory = 11; + */ + enableMemory = false; + + /** + * enable_return_data switches the capture of return data + * + * @generated from field: bool enable_return_data = 12; + */ + enableReturnData = false; + + /** + * tracer_config configures the tracer options + * + * @generated from field: eth.evm.v1.TracerConfig tracer_config = 13; + */ + tracerConfig?: TracerConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.TraceConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tracer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reexec", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "disable_stack", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "disable_storage", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "debug", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 11, name: "enable_memory", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "enable_return_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "tracer_config", kind: "message", T: TracerConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TraceConfig { + return new TraceConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TraceConfig { + return new TraceConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TraceConfig { + return new TraceConfig().fromJsonString(jsonString, options); + } + + static equals(a: TraceConfig | PlainMessage | undefined, b: TraceConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(TraceConfig, a, b); + } +} + diff --git a/src/protobufs/eth/evm/v1/genesis_pb.ts b/src/protobufs/eth/evm/v1/genesis_pb.ts new file mode 100644 index 00000000..48827829 --- /dev/null +++ b/src/protobufs/eth/evm/v1/genesis_pb.ts @@ -0,0 +1,127 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/v1/genesis.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FunToken, Params, State } from "./evm_pb.js"; + +/** + * GenesisState defines the evm module's genesis state. + * + * @generated from message eth.evm.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * accounts is an array containing the ethereum genesis accounts. + * + * @generated from field: repeated eth.evm.v1.GenesisAccount accounts = 1; + */ + accounts: GenesisAccount[] = []; + + /** + * params defines all the parameters of the module. + * + * @generated from field: eth.evm.v1.Params params = 2; + */ + params?: Params; + + /** + * Fungible token mappings corresponding to ERC-20 smart contract tokens. + * + * @generated from field: repeated eth.evm.v1.FunToken funtoken_mappings = 3; + */ + funtokenMappings: FunToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: GenesisAccount, repeated: true }, + { no: 2, name: "params", kind: "message", T: Params }, + { no: 3, name: "funtoken_mappings", kind: "message", T: FunToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisAccount defines an account to be initialized in the genesis state. + * Its main difference between with Geth's GenesisAccount is that it uses a + * custom storage type and that it doesn't contain the private key field. + * + * @generated from message eth.evm.v1.GenesisAccount + */ +export class GenesisAccount extends Message { + /** + * address defines an ethereum hex formated address of an account + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * code defines the hex bytes of the account code. + * + * @generated from field: string code = 2; + */ + code = ""; + + /** + * storage defines the set of state key values for the account. + * + * @generated from field: repeated eth.evm.v1.State storage = 3; + */ + storage: State[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.GenesisAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "storage", kind: "message", T: State, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccount { + return new GenesisAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccount { + return new GenesisAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccount { + return new GenesisAccount().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccount | PlainMessage | undefined, b: GenesisAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccount, a, b); + } +} + diff --git a/src/protobufs/eth/evm/v1/query_cosmes.ts b/src/protobufs/eth/evm/v1/query_cosmes.ts new file mode 100644 index 00000000..e5111c57 --- /dev/null +++ b/src/protobufs/eth/evm/v1/query_cosmes.ts @@ -0,0 +1,170 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file eth/evm/v1/query.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EstimateGasResponse, EthCallRequest, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryEthAccountRequest, QueryEthAccountResponse, QueryFunTokenMappingRequest, QueryFunTokenMappingResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js"; +import { MsgEthereumTxResponse } from "./tx_pb.js"; + +const TYPE_NAME = "eth.evm.v1.Query"; + +/** + * EthAccount queries a Nibiru account using its EVM address or Bech32 Nibiru + * address. + * + * @generated from rpc eth.evm.v1.Query.EthAccount + */ +export const QueryEthAccountService = { + typeName: TYPE_NAME, + method: "EthAccount", + Request: QueryEthAccountRequest, + Response: QueryEthAccountResponse, +} as const; + +/** + * ValidatorAccount queries an Ethereum account's from a validator consensus + * Address. + * + * @generated from rpc eth.evm.v1.Query.ValidatorAccount + */ +export const QueryValidatorAccountService = { + typeName: TYPE_NAME, + method: "ValidatorAccount", + Request: QueryValidatorAccountRequest, + Response: QueryValidatorAccountResponse, +} as const; + +/** + * Balance queries the balance of the NIBI (ether for the EVM) in units of wei + * for a single EthAccount. 1 wei == 1 attoNIBI == 10^{-18} NIBI. + * + * @generated from rpc eth.evm.v1.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + +/** + * Storage queries the balance of all coins for a single account. + * + * @generated from rpc eth.evm.v1.Query.Storage + */ +export const QueryStorageService = { + typeName: TYPE_NAME, + method: "Storage", + Request: QueryStorageRequest, + Response: QueryStorageResponse, +} as const; + +/** + * Code queries the balance of all coins for a single account. + * + * @generated from rpc eth.evm.v1.Query.Code + */ +export const QueryCodeService = { + typeName: TYPE_NAME, + method: "Code", + Request: QueryCodeRequest, + Response: QueryCodeResponse, +} as const; + +/** + * Params queries the parameters of x/evm module. + * + * @generated from rpc eth.evm.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * EthCall implements the `eth_call` rpc api + * + * @generated from rpc eth.evm.v1.Query.EthCall + */ +export const QueryEthCallService = { + typeName: TYPE_NAME, + method: "EthCall", + Request: EthCallRequest, + Response: MsgEthereumTxResponse, +} as const; + +/** + * EstimateGas implements the `eth_estimateGas` rpc api + * + * @generated from rpc eth.evm.v1.Query.EstimateGas + */ +export const QueryEstimateGasService = { + typeName: TYPE_NAME, + method: "EstimateGas", + Request: EthCallRequest, + Response: EstimateGasResponse, +} as const; + +/** + * TraceTx implements the `debug_traceTransaction` rpc api + * + * @generated from rpc eth.evm.v1.Query.TraceTx + */ +export const QueryTraceTxService = { + typeName: TYPE_NAME, + method: "TraceTx", + Request: QueryTraceTxRequest, + Response: QueryTraceTxResponse, +} as const; + +/** + * TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api + * + * @generated from rpc eth.evm.v1.Query.TraceBlock + */ +export const QueryTraceBlockService = { + typeName: TYPE_NAME, + method: "TraceBlock", + Request: QueryTraceBlockRequest, + Response: QueryTraceBlockResponse, +} as const; + +/** + * TraceCall implements the `debug_traceCall` rpc api + * + * @generated from rpc eth.evm.v1.Query.TraceCall + */ +export const QueryTraceCallService = { + typeName: TYPE_NAME, + method: "TraceCall", + Request: QueryTraceTxRequest, + Response: QueryTraceTxResponse, +} as const; + +/** + * BaseFee queries the base fee of the parent block of the current block, + * Similar to feemarket module's method + * + * @generated from rpc eth.evm.v1.Query.BaseFee + */ +export const QueryBaseFeeService = { + typeName: TYPE_NAME, + method: "BaseFee", + Request: QueryBaseFeeRequest, + Response: QueryBaseFeeResponse, +} as const; + +/** + * @generated from rpc eth.evm.v1.Query.FunTokenMapping + */ +export const QueryFunTokenMappingService = { + typeName: TYPE_NAME, + method: "FunTokenMapping", + Request: QueryFunTokenMappingRequest, + Response: QueryFunTokenMappingResponse, +} as const; + diff --git a/src/protobufs/eth/evm/v1/query_pb.ts b/src/protobufs/eth/evm/v1/query_pb.ts new file mode 100644 index 00000000..275b9626 --- /dev/null +++ b/src/protobufs/eth/evm/v1/query_pb.ts @@ -0,0 +1,1216 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/v1/query.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { FunToken, Log, Params, TraceConfig } from "./evm_pb.js"; +import { MsgEthereumTx } from "./tx_pb.js"; + +/** + * QueryEthAccountRequest: Request type for "/eth.evm.v1.Query/EthAccount" + * + * @generated from message eth.evm.v1.QueryEthAccountRequest + */ +export class QueryEthAccountRequest extends Message { + /** + * address is the Ethereum hex address or nibi Bech32 address to query the account for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryEthAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEthAccountRequest { + return new QueryEthAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEthAccountRequest { + return new QueryEthAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEthAccountRequest { + return new QueryEthAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEthAccountRequest | PlainMessage | undefined, b: QueryEthAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEthAccountRequest, a, b); + } +} + +/** + * QueryEthAccountResponse: Response type for "/eth.evm.v1.Query/EthAccount" + * + * @generated from message eth.evm.v1.QueryEthAccountResponse + */ +export class QueryEthAccountResponse extends Message { + /** + * balance_wei is the balance of wei (attoNIBI, since NIBI is ether). + * + * @generated from field: string balance_wei = 2; + */ + balanceWei = ""; + + /** + * code_hash is the hex-encoded hash of the contract bytecode for the + * account. Ethereum defines a code hash as the keccack 256 hash of the bytes. + * Note that externally owned accounts (EOAs) have the empty/nil code hash + * (`crypto.Keccak256(nil)`). + * + * @generated from field: string code_hash = 3; + */ + codeHash = ""; + + /** + * nonce is the account's sequence number. + * + * @generated from field: uint64 nonce = 4; + */ + nonce = protoInt64.zero; + + /** + * eth_address: The hexadecimal-encoded string representing the 20 byte + * address of a Nibiru EVM account. Note that this field may be empty if the + * account queried is a Wasm contract (32 byte address). + * + * @generated from field: string eth_address = 5; + */ + ethAddress = ""; + + /** + * bech32_address is the nibi-prefixed address of the account that can receive + * bank transfers ("cosmos.bank.v1beta1.MsgSend"). + * + * @generated from field: string bech32_address = 6; + */ + bech32Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryEthAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "balance_wei", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "eth_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEthAccountResponse { + return new QueryEthAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEthAccountResponse { + return new QueryEthAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEthAccountResponse { + return new QueryEthAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEthAccountResponse | PlainMessage | undefined, b: QueryEthAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEthAccountResponse, a, b); + } +} + +/** + * QueryValidatorAccountRequest is the request type for the + * Query/ValidatorAccount RPC method. + * + * @generated from message eth.evm.v1.QueryValidatorAccountRequest + */ +export class QueryValidatorAccountRequest extends Message { + /** + * cons_address is the validator cons address to query the account for. + * + * @generated from field: string cons_address = 1; + */ + consAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryValidatorAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cons_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorAccountRequest | PlainMessage | undefined, b: QueryValidatorAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorAccountRequest, a, b); + } +} + +/** + * QueryValidatorAccountResponse is the response type for the + * Query/ValidatorAccount RPC method. + * + * @generated from message eth.evm.v1.QueryValidatorAccountResponse + */ +export class QueryValidatorAccountResponse extends Message { + /** + * account_address is the Nibiru address of the account in bech32 format. + * + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * sequence is the account's sequence number. + * + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * account_number is the account number + * + * @generated from field: uint64 account_number = 3; + */ + accountNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryValidatorAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorAccountResponse | PlainMessage | undefined, b: QueryValidatorAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorAccountResponse, a, b); + } +} + +/** + * QueryBalanceRequest: Response type for "/eth.evm.v1.Query/Balance" + * + * @generated from message eth.evm.v1.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + /** + * address is the ethereum hex address to query the balance for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * QueryBalanceResponse: Response type for "/eth.evm.v1.Query/Balance" + * + * @generated from message eth.evm.v1.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * balance is the balance of the EVM denomination in units of wei. 1 wei is 1 + * attoNIBI. + * + * @generated from field: string balance_wei = 2; + */ + balanceWei = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "balance_wei", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + +/** + * QueryStorageRequest is the request type for the Query/Storage RPC method. + * + * @generated from message eth.evm.v1.QueryStorageRequest + */ +export class QueryStorageRequest extends Message { + /** + * address is the ethereum hex address to query the storage state for. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * key defines the key of the storage state + * + * @generated from field: string key = 2; + */ + key = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryStorageRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorageRequest | PlainMessage | undefined, b: QueryStorageRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorageRequest, a, b); + } +} + +/** + * QueryStorageResponse is the response type for the Query/Storage RPC + * method. + * + * @generated from message eth.evm.v1.QueryStorageResponse + */ +export class QueryStorageResponse extends Message { + /** + * value defines the storage state value hash associated with the given key. + * + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryStorageResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorageResponse | PlainMessage | undefined, b: QueryStorageResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorageResponse, a, b); + } +} + +/** + * QueryCodeRequest is the request type for the Query/Code RPC method. + * + * @generated from message eth.evm.v1.QueryCodeRequest + */ +export class QueryCodeRequest extends Message { + /** + * address is the ethereum hex address to query the code for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryCodeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeRequest, a, b); + } +} + +/** + * QueryCodeResponse is the response type for the Query/Code RPC + * method. + * + * @generated from message eth.evm.v1.QueryCodeResponse + */ +export class QueryCodeResponse extends Message { + /** + * code represents the code bytes from an ethereum address. + * + * @generated from field: bytes code = 1; + */ + code = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeResponse, a, b); + } +} + +/** + * QueryTxLogsRequest is the request type for the Query/TxLogs RPC method. + * + * @generated from message eth.evm.v1.QueryTxLogsRequest + */ +export class QueryTxLogsRequest extends Message { + /** + * hash is the ethereum transaction hex hash to query the logs for. + * + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTxLogsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTxLogsRequest | PlainMessage | undefined, b: QueryTxLogsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTxLogsRequest, a, b); + } +} + +/** + * QueryTxLogsResponse is the response type for the Query/TxLogs RPC method. + * + * @generated from message eth.evm.v1.QueryTxLogsResponse + */ +export class QueryTxLogsResponse extends Message { + /** + * logs represents the ethereum logs generated from the given transaction. + * + * @generated from field: repeated eth.evm.v1.Log logs = 1; + */ + logs: Log[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTxLogsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "logs", kind: "message", T: Log, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTxLogsResponse | PlainMessage | undefined, b: QueryTxLogsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTxLogsResponse, a, b); + } +} + +/** + * QueryParamsRequest defines the request type for querying x/evm parameters. + * + * @generated from message eth.evm.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/evm parameters. + * + * @generated from message eth.evm.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params define the evm module parameters. + * + * @generated from field: eth.evm.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * EthCallRequest defines EthCall request + * + * @generated from message eth.evm.v1.EthCallRequest + */ +export class EthCallRequest extends Message { + /** + * args uses the same json format as the json rpc api. + * + * @generated from field: bytes args = 1; + */ + args = new Uint8Array(0); + + /** + * gas_cap defines the default gas cap to be used + * + * @generated from field: uint64 gas_cap = 2; + */ + gasCap = protoInt64.zero; + + /** + * proposer_address of the requested block in hex format + * + * @generated from field: bytes proposer_address = 3; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 4; + */ + chainId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EthCallRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "gas_cap", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EthCallRequest { + return new EthCallRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EthCallRequest { + return new EthCallRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EthCallRequest { + return new EthCallRequest().fromJsonString(jsonString, options); + } + + static equals(a: EthCallRequest | PlainMessage | undefined, b: EthCallRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EthCallRequest, a, b); + } +} + +/** + * EstimateGasResponse defines EstimateGas response + * + * @generated from message eth.evm.v1.EstimateGasResponse + */ +export class EstimateGasResponse extends Message { + /** + * gas returns the estimated gas + * + * @generated from field: uint64 gas = 1; + */ + gas = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.EstimateGasResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJsonString(jsonString, options); + } + + static equals(a: EstimateGasResponse | PlainMessage | undefined, b: EstimateGasResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateGasResponse, a, b); + } +} + +/** + * QueryTraceTxRequest defines TraceTx request + * + * @generated from message eth.evm.v1.QueryTraceTxRequest + */ +export class QueryTraceTxRequest extends Message { + /** + * msg is the MsgEthereumTx for the requested transaction + * + * @generated from field: eth.evm.v1.MsgEthereumTx msg = 1; + */ + msg?: MsgEthereumTx; + + /** + * trace_config holds extra parameters to trace functions. + * + * @generated from field: eth.evm.v1.TraceConfig trace_config = 3; + */ + traceConfig?: TraceConfig; + + /** + * predecessors is an array of transactions included in the same block + * need to be replayed first to get correct context for tracing. + * + * @generated from field: repeated eth.evm.v1.MsgEthereumTx predecessors = 4; + */ + predecessors: MsgEthereumTx[] = []; + + /** + * block_number of requested transaction + * + * @generated from field: int64 block_number = 5; + */ + blockNumber = protoInt64.zero; + + /** + * block_hash of requested transaction + * + * @generated from field: string block_hash = 6; + */ + blockHash = ""; + + /** + * block_time of requested transaction + * + * @generated from field: google.protobuf.Timestamp block_time = 7; + */ + blockTime?: Timestamp; + + /** + * proposer_address is the proposer of the requested block + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 9; + */ + chainId = protoInt64.zero; + + /** + * block_max_gas of the block of the requested transaction + * + * @generated from field: int64 block_max_gas = 10; + */ + blockMaxGas = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTraceTxRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgEthereumTx }, + { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, + { no: 4, name: "predecessors", kind: "message", T: MsgEthereumTx, repeated: true }, + { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "block_time", kind: "message", T: Timestamp }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "block_max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceTxRequest | PlainMessage | undefined, b: QueryTraceTxRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceTxRequest, a, b); + } +} + +/** + * QueryTraceTxResponse defines TraceTx response + * + * @generated from message eth.evm.v1.QueryTraceTxResponse + */ +export class QueryTraceTxResponse extends Message { + /** + * data is the response serialized in bytes + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTraceTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceTxResponse | PlainMessage | undefined, b: QueryTraceTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceTxResponse, a, b); + } +} + +/** + * QueryTraceBlockRequest defines TraceTx request + * + * @generated from message eth.evm.v1.QueryTraceBlockRequest + */ +export class QueryTraceBlockRequest extends Message { + /** + * txs is an array of messages in the block + * + * @generated from field: repeated eth.evm.v1.MsgEthereumTx txs = 1; + */ + txs: MsgEthereumTx[] = []; + + /** + * trace_config holds extra parameters to trace functions. + * + * @generated from field: eth.evm.v1.TraceConfig trace_config = 3; + */ + traceConfig?: TraceConfig; + + /** + * block_number of the traced block + * + * @generated from field: int64 block_number = 5; + */ + blockNumber = protoInt64.zero; + + /** + * block_hash (hex) of the traced block + * + * @generated from field: string block_hash = 6; + */ + blockHash = ""; + + /** + * block_time of the traced block + * + * @generated from field: google.protobuf.Timestamp block_time = 7; + */ + blockTime?: Timestamp; + + /** + * proposer_address is the address of the requested block + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 9; + */ + chainId = protoInt64.zero; + + /** + * block_max_gas of the traced block + * + * @generated from field: int64 block_max_gas = 10; + */ + blockMaxGas = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTraceBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "txs", kind: "message", T: MsgEthereumTx, repeated: true }, + { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, + { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "block_time", kind: "message", T: Timestamp }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "block_max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceBlockRequest | PlainMessage | undefined, b: QueryTraceBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceBlockRequest, a, b); + } +} + +/** + * QueryTraceBlockResponse defines TraceBlock response + * + * @generated from message eth.evm.v1.QueryTraceBlockResponse + */ +export class QueryTraceBlockResponse extends Message { + /** + * data is the response serialized in bytes + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryTraceBlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceBlockResponse | PlainMessage | undefined, b: QueryTraceBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceBlockResponse, a, b); + } +} + +/** + * QueryBaseFeeRequest defines the request type for querying the EIP1559 base + * fee. + * + * @generated from message eth.evm.v1.QueryBaseFeeRequest + */ +export class QueryBaseFeeRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryBaseFeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBaseFeeRequest | PlainMessage | undefined, b: QueryBaseFeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBaseFeeRequest, a, b); + } +} + +/** + * QueryBaseFeeResponse returns the EIP1559 base fee. + * See https://github.com/ethereum/EIPs/blob/ba6c342c23164072adb500c3136e3ae6eabff306/EIPS/eip-1559.md. + * + * @generated from message eth.evm.v1.QueryBaseFeeResponse + */ +export class QueryBaseFeeResponse extends Message { + /** + * base_fee is the EIP1559 base fee in units of wei. + * + * @generated from field: string base_fee = 1; + */ + baseFee = ""; + + /** + * base_fee is the EIP1559 base fee in units of micronibi ("unibi"). + * + * @generated from field: string base_fee_unibi = 2; + */ + baseFeeUnibi = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryBaseFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_fee_unibi", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBaseFeeResponse | PlainMessage | undefined, b: QueryBaseFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBaseFeeResponse, a, b); + } +} + +/** + * @generated from message eth.evm.v1.QueryFunTokenMappingRequest + */ +export class QueryFunTokenMappingRequest extends Message { + /** + * Either the hexadecimal-encoded ERC20 contract address or denomination of the + * Bank Coin. + * + * @generated from field: string token = 1; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryFunTokenMappingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFunTokenMappingRequest { + return new QueryFunTokenMappingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFunTokenMappingRequest { + return new QueryFunTokenMappingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFunTokenMappingRequest { + return new QueryFunTokenMappingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFunTokenMappingRequest | PlainMessage | undefined, b: QueryFunTokenMappingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFunTokenMappingRequest, a, b); + } +} + +/** + * @generated from message eth.evm.v1.QueryFunTokenMappingResponse + */ +export class QueryFunTokenMappingResponse extends Message { + /** + * fun_token is a mapping between the Bank Coin and the ERC20 contract address + * + * @generated from field: eth.evm.v1.FunToken fun_token = 1; + */ + funToken?: FunToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.QueryFunTokenMappingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fun_token", kind: "message", T: FunToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFunTokenMappingResponse { + return new QueryFunTokenMappingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFunTokenMappingResponse { + return new QueryFunTokenMappingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFunTokenMappingResponse { + return new QueryFunTokenMappingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFunTokenMappingResponse | PlainMessage | undefined, b: QueryFunTokenMappingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFunTokenMappingResponse, a, b); + } +} + diff --git a/src/protobufs/eth/evm/v1/tx_cosmes.ts b/src/protobufs/eth/evm/v1/tx_cosmes.ts new file mode 100644 index 00000000..53468565 --- /dev/null +++ b/src/protobufs/eth/evm/v1/tx_cosmes.ts @@ -0,0 +1,78 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file eth/evm/v1/tx.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgConvertCoinToEvm, MsgConvertCoinToEvmResponse, MsgConvertEvmToCoin, MsgConvertEvmToCoinResponse, MsgCreateFunToken, MsgCreateFunTokenResponse, MsgEthereumTx, MsgEthereumTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "eth.evm.v1.Msg"; + +/** + * EthereumTx defines a method submitting Ethereum transactions. + * + * @generated from rpc eth.evm.v1.Msg.EthereumTx + */ +export const MsgEthereumTxService = { + typeName: TYPE_NAME, + method: "EthereumTx", + Request: MsgEthereumTx, + Response: MsgEthereumTxResponse, +} as const; + +/** + * UpdateParams defined a governance operation for updating the x/evm module + * parameters. The authority is hard-coded to the x/gov module account + * + * @generated from rpc eth.evm.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * CreateFunToken: Create a "FunToken" mapping. Either the ERC20 contract + * address can be given to create the mapping to a Bank Coin, or the + * denomination for a Bank Coin can be given to create the mapping to an + * ERC20. + * + * @generated from rpc eth.evm.v1.Msg.CreateFunToken + */ +export const MsgCreateFunTokenService = { + typeName: TYPE_NAME, + method: "CreateFunToken", + Request: MsgCreateFunToken, + Response: MsgCreateFunTokenResponse, +} as const; + +/** + * ConvertCoinToEvm: Sends a coin with a valid "FunToken" mapping to the + * given recipient address ("to_eth_addr") in the corresponding ERC20 + * representation. + * + * @generated from rpc eth.evm.v1.Msg.ConvertCoinToEvm + */ +export const MsgConvertCoinToEvmService = { + typeName: TYPE_NAME, + method: "ConvertCoinToEvm", + Request: MsgConvertCoinToEvm, + Response: MsgConvertCoinToEvmResponse, +} as const; + +/** + * ConvertEvmToCoin: Sends an ERC20 token with a valid "FunToken" mapping to the + * given recipient address as a bank coin. + * + * @generated from rpc eth.evm.v1.Msg.ConvertEvmToCoin + */ +export const MsgConvertEvmToCoinService = { + typeName: TYPE_NAME, + method: "ConvertEvmToCoin", + Request: MsgConvertEvmToCoin, + Response: MsgConvertEvmToCoinResponse, +} as const; + diff --git a/src/protobufs/eth/evm/v1/tx_pb.ts b/src/protobufs/eth/evm/v1/tx_pb.ts new file mode 100644 index 00000000..71f2758c --- /dev/null +++ b/src/protobufs/eth/evm/v1/tx_pb.ts @@ -0,0 +1,966 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/evm/v1/tx.proto (package eth.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccessTuple, FunToken, Log, Params } from "./evm_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. + * + * @generated from message eth.evm.v1.MsgEthereumTx + */ +export class MsgEthereumTx extends Message { + /** + * data is inner transaction data of the Ethereum transaction + * + * @generated from field: google.protobuf.Any data = 1; + */ + data?: Any; + + /** + * size is the encoded storage size of the transaction (DEPRECATED) + * + * @generated from field: double size = 2; + */ + size = 0; + + /** + * hash of the transaction in hex format + * + * @generated from field: string hash = 3; + */ + hash = ""; + + /** + * from is the ethereum signer address in hex format. This address value is + * checked against the address derived from the signature (V, R, S) using the + * secp256k1 elliptic curve + * + * @generated from field: string from = 4; + */ + from = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: Any }, + { no: 2, name: "size", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: MsgEthereumTx | PlainMessage | undefined, b: MsgEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEthereumTx, a, b); + } +} + +/** + * LegacyTx is the transaction data of regular Ethereum transactions. + * + * Note that setting "evm.Params.AllowUnprotectedTxs" to false will cause all + * non-EIP155 signed transactions to fail, as they'll lack replay protection. + * + * LegacyTx is a custom implementation of "LegacyTx" from + * "github.com/ethereum/go-ethereum/core/types". + * + * @generated from message eth.evm.v1.LegacyTx + */ +export class LegacyTx extends Message { + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 1; + */ + nonce = protoInt64.zero; + + /** + * gas_price defines the value for each gas unit + * + * @generated from field: string gas_price = 2; + */ + gasPrice = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 3; + */ + gas = protoInt64.zero; + + /** + * to is the hex formatted address of the recipient + * + * @generated from field: string to = 4; + */ + to = ""; + + /** + * value defines the unsigned integer value of the transaction amount. + * + * @generated from field: string value = 5; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 6; + */ + data = new Uint8Array(0); + + /** + * v defines the recovery id as the "v" signature value from the elliptic + * curve digital signatute algorithm (ECDSA). It indicates which of two + * possible solutions should be used to reconstruct the public key from the + * signature. In Ethereum, "v" takes the value 27 or 28 for transactions that + * are not relay-protected. + * + * @generated from field: bytes v = 7; + */ + v = new Uint8Array(0); + + /** + * r defines the x-coordinate of a point on the elliptic curve in the elliptic + * curve digital signatute algorithm (ECDSA). It's crucial in ensuring + * uniqueness of the signature. + * + * @generated from field: bytes r = 8; + */ + r = new Uint8Array(0); + + /** + * s define the signature value derived from the private key, message hash, + * and the value of "r". It ensures that the signature is tied to both the + * message and the private key of the sender. + * + * @generated from field: bytes s = 9; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.LegacyTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyTx { + return new LegacyTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyTx { + return new LegacyTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyTx { + return new LegacyTx().fromJsonString(jsonString, options); + } + + static equals(a: LegacyTx | PlainMessage | undefined, b: LegacyTx | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyTx, a, b); + } +} + +/** + * AccessListTx is the data of EIP-2930 access list transactions. + * It is a custom implementation of "AccessListTx" from + * "github.com/ethereum/go-ethereum/core/types". + * + * @generated from message eth.evm.v1.AccessListTx + */ +export class AccessListTx extends Message { + /** + * chain_id of the destination EVM chain + * + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 2; + */ + nonce = protoInt64.zero; + + /** + * gas_price defines the value for each gas unit + * + * @generated from field: string gas_price = 3; + */ + gasPrice = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 4; + */ + gas = protoInt64.zero; + + /** + * to is the recipient address in hex format + * + * @generated from field: string to = 5; + */ + to = ""; + + /** + * value defines the unsigned integer value of the transaction amount. + * + * @generated from field: string value = 6; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 7; + */ + data = new Uint8Array(0); + + /** + * accesses is an array of access tuples + * + * @generated from field: repeated eth.evm.v1.AccessTuple accesses = 8; + */ + accesses: AccessTuple[] = []; + + /** + * v defines the recovery id and "v" signature value from the elliptic curve + * digital signatute algorithm (ECDSA). It indicates which of two possible + * solutions should be used to reconstruct the public key from the signature. + * In Ethereum, "v" takes the value 27 or 28 for transactions that are not + * relay-protected. + * + * @generated from field: bytes v = 9; + */ + v = new Uint8Array(0); + + /** + * r defines the x-coordinate of a point on the elliptic curve in the elliptic + * curve digital signatute algorithm (ECDSA). It's crucial in ensuring + * uniqueness of the signature. + * + * @generated from field: bytes r = 10; + */ + r = new Uint8Array(0); + + /** + * s define the signature value derived from the private key, message hash, + * and the value of "r". It ensures that the signature is tied to both the + * message and the private key of the sender. + * + * @generated from field: bytes s = 11; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.AccessListTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, + { no: 9, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 11, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessListTx { + return new AccessListTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessListTx { + return new AccessListTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessListTx { + return new AccessListTx().fromJsonString(jsonString, options); + } + + static equals(a: AccessListTx | PlainMessage | undefined, b: AccessListTx | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessListTx, a, b); + } +} + +/** + * DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. It is a custom + * implementation of "DynamicFeeTx" from + * "github.com/ethereum/go-ethereum/core/types". + * + * @generated from message eth.evm.v1.DynamicFeeTx + */ +export class DynamicFeeTx extends Message { + /** + * chain_id of the destination EVM chain + * + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 2; + */ + nonce = protoInt64.zero; + + /** + * gas_tip_cap defines the max value for the gas tip + * + * @generated from field: string gas_tip_cap = 3; + */ + gasTipCap = ""; + + /** + * gas_fee_cap defines the max value for the gas fee + * + * @generated from field: string gas_fee_cap = 4; + */ + gasFeeCap = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 5; + */ + gas = protoInt64.zero; + + /** + * to is the hex formatted address of the recipient + * + * @generated from field: string to = 6; + */ + to = ""; + + /** + * value defines the the transaction amount. + * + * @generated from field: string value = 7; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 8; + */ + data = new Uint8Array(0); + + /** + * accesses is an array of access tuples + * + * @generated from field: repeated eth.evm.v1.AccessTuple accesses = 9; + */ + accesses: AccessTuple[] = []; + + /** + * v defines the recovery id and "v" signature value from the elliptic curve + * digital signatute algorithm (ECDSA). It indicates which of two possible + * solutions should be used to reconstruct the public key from the signature. + * In Ethereum, "v" takes the value 27 or 28 for transactions that are not + * relay-protected. + * + * @generated from field: bytes v = 10; + */ + v = new Uint8Array(0); + + /** + * r defines the x-coordinate of a point on the elliptic curve in the elliptic + * curve digital signatute algorithm (ECDSA). It's crucial in ensuring + * uniqueness of the signature. + * + * @generated from field: bytes r = 11; + */ + r = new Uint8Array(0); + + /** + * s define the signature value derived from the private key, message hash, + * and the value of "r". It ensures that the signature is tied to both the + * message and the private key of the sender. + * + * @generated from field: bytes s = 12; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.DynamicFeeTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "gas_tip_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas_fee_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, + { no: 10, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 11, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 12, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromJsonString(jsonString, options); + } + + static equals(a: DynamicFeeTx | PlainMessage | undefined, b: DynamicFeeTx | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicFeeTx, a, b); + } +} + +/** + * ExtensionOptionsEthereumTx is an extension option for ethereum transactions + * + * @generated from message eth.evm.v1.ExtensionOptionsEthereumTx + */ +export class ExtensionOptionsEthereumTx extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.ExtensionOptionsEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: ExtensionOptionsEthereumTx | PlainMessage | undefined, b: ExtensionOptionsEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtensionOptionsEthereumTx, a, b); + } +} + +/** + * MsgEthereumTxResponse defines the Msg/EthereumTx response type. + * + * @generated from message eth.evm.v1.MsgEthereumTxResponse + */ +export class MsgEthereumTxResponse extends Message { + /** + * hash of the ethereum transaction in hex format. This hash differs from the + * Tendermint sha256 hash of the transaction bytes. See + * https://github.com/tendermint/tendermint/issues/6539 for reference + * + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * logs contains the transaction hash and the proto-compatible ethereum + * logs. + * + * @generated from field: repeated eth.evm.v1.Log logs = 2; + */ + logs: Log[] = []; + + /** + * ret is the returned data from evm function (result or data supplied with + * revert opcode) + * + * @generated from field: bytes ret = 3; + */ + ret = new Uint8Array(0); + + /** + * vm_error is the error returned by vm execution + * + * @generated from field: string vm_error = 4; + */ + vmError = ""; + + /** + * gas_used specifies how much gas was consumed by the transaction + * + * @generated from field: uint64 gas_used = 5; + */ + gasUsed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgEthereumTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "logs", kind: "message", T: Log, repeated: true }, + { no: 3, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEthereumTxResponse | PlainMessage | undefined, b: MsgEthereumTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEthereumTxResponse, a, b); + } +} + +/** + * MsgUpdateParams defines a Msg for updating the x/evm module parameters. + * + * @generated from message eth.evm.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/evm parameters to update. + * NOTE: All parameters must be supplied. + * + * @generated from field: eth.evm.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message eth.evm.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgCreateFunToken: Arguments to create a "FunToken" mapping. Either the ERC20 + * contract address can be given to create the mapping to a Bank Coin, or the + * denomination for a Bank Coin can be given to create the mapping to an ERC20. + * + * @generated from message eth.evm.v1.MsgCreateFunToken + */ +export class MsgCreateFunToken extends Message { + /** + * Hexadecimal address of the ERC20 token to which the `FunToken` maps + * + * @generated from field: string from_erc20 = 1; + */ + fromErc20 = ""; + + /** + * Coin denomination in the Bank Module. + * + * @generated from field: string from_bank_denom = 2; + */ + fromBankDenom = ""; + + /** + * Sender: Address for the signer of the transaction. + * + * @generated from field: string sender = 3; + */ + sender = ""; + + /** + * Optional flag to allow the `FunToken` mapping to be created with 0 decimals + * in the ERC20 sense. Often times, tokens are meant to behave like money and + * be divisible, meaning "decimals = 0" is often a mistake. This field defaults + * to false as a safety guard against accidental creation of FunTokens with + * missing metadata. + * Set this to true if the token is truly intended to have 0 decimals. + * + * @generated from field: bool allow_zero_decimals = 4; + */ + allowZeroDecimals = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgCreateFunToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from_erc20", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "from_bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "allow_zero_decimals", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFunToken { + return new MsgCreateFunToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFunToken { + return new MsgCreateFunToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateFunToken { + return new MsgCreateFunToken().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateFunToken | PlainMessage | undefined, b: MsgCreateFunToken | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateFunToken, a, b); + } +} + +/** + * @generated from message eth.evm.v1.MsgCreateFunTokenResponse + */ +export class MsgCreateFunTokenResponse extends Message { + /** + * Fungible token mapping corresponding to ERC20 tokens. + * + * @generated from field: eth.evm.v1.FunToken funtoken_mapping = 1; + */ + funtokenMapping?: FunToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgCreateFunTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funtoken_mapping", kind: "message", T: FunToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFunTokenResponse { + return new MsgCreateFunTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFunTokenResponse { + return new MsgCreateFunTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateFunTokenResponse { + return new MsgCreateFunTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateFunTokenResponse | PlainMessage | undefined, b: MsgCreateFunTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateFunTokenResponse, a, b); + } +} + +/** + * MsgConvertCoinToEvm: Arguments to send a Bank Coin to ERC-20 representation + * + * @generated from message eth.evm.v1.MsgConvertCoinToEvm + */ +export class MsgConvertCoinToEvm extends Message { + /** + * Hexadecimal address of the ERC20 token to which the `FunToken` maps + * + * @generated from field: string to_eth_addr = 1; + */ + toEthAddr = ""; + + /** + * Sender: Address for the signer of the transaction. + * + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * Bank Coin to get converted to ERC20 + * + * @generated from field: cosmos.base.v1beta1.Coin bank_coin = 3; + */ + bankCoin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgConvertCoinToEvm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "to_eth_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "bank_coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoinToEvm { + return new MsgConvertCoinToEvm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoinToEvm { + return new MsgConvertCoinToEvm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoinToEvm { + return new MsgConvertCoinToEvm().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoinToEvm | PlainMessage | undefined, b: MsgConvertCoinToEvm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoinToEvm, a, b); + } +} + +/** + * @generated from message eth.evm.v1.MsgConvertCoinToEvmResponse + */ +export class MsgConvertCoinToEvmResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgConvertCoinToEvmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoinToEvmResponse { + return new MsgConvertCoinToEvmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoinToEvmResponse { + return new MsgConvertCoinToEvmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoinToEvmResponse { + return new MsgConvertCoinToEvmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoinToEvmResponse | PlainMessage | undefined, b: MsgConvertCoinToEvmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoinToEvmResponse, a, b); + } +} + +/** + * MsgConvertEvmToCoin: Arguments to send an ERC20 token to bank coin representation + * + * @generated from message eth.evm.v1.MsgConvertEvmToCoin + */ +export class MsgConvertEvmToCoin extends Message { + /** + * Sender: "nibi"-prefixed Bech32 address for the signer of the transaction. + * This is also the address whose ERC20 balance will be deducted. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Hexadecimal address of the ERC20 token to be converted and sent + * + * @generated from field: string erc20_addr = 2; + */ + erc20Addr = ""; + + /** + * Amount of ERC20 tokens to convert + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * Recipient address for the bank coins in Ethereum hexadecimal or + * nibi-prefixed Bech32 format. + * + * Currently, accounts corresponding to Wasm contracts cannot hold ERC20 tokens + * because the function that maps between Bech32 and Eth hex addresses is not + * bijective for these types of accounts. + * + * See [bug(evm): nibid q evm account is not symmetric for wasm + * addresses](https://github.com/NibiruChain/nibiru/issues/2138) + * + * @generated from field: string to_addr = 4; + */ + toAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgConvertEvmToCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "to_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertEvmToCoin { + return new MsgConvertEvmToCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertEvmToCoin { + return new MsgConvertEvmToCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertEvmToCoin { + return new MsgConvertEvmToCoin().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertEvmToCoin | PlainMessage | undefined, b: MsgConvertEvmToCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertEvmToCoin, a, b); + } +} + +/** + * @generated from message eth.evm.v1.MsgConvertEvmToCoinResponse + */ +export class MsgConvertEvmToCoinResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.evm.v1.MsgConvertEvmToCoinResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertEvmToCoinResponse { + return new MsgConvertEvmToCoinResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertEvmToCoinResponse { + return new MsgConvertEvmToCoinResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertEvmToCoinResponse { + return new MsgConvertEvmToCoinResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertEvmToCoinResponse | PlainMessage | undefined, b: MsgConvertEvmToCoinResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertEvmToCoinResponse, a, b); + } +} + diff --git a/src/protobufs/eth/types/v1/account_pb.ts b/src/protobufs/eth/types/v1/account_pb.ts new file mode 100644 index 00000000..9660e85d --- /dev/null +++ b/src/protobufs/eth/types/v1/account_pb.ts @@ -0,0 +1,61 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/types/v1/account.proto (package eth.types.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { BaseAccount } from "../../../cosmos/auth/v1beta1/auth_pb.js"; + +/** + * EthAccount implements the authtypes.AccountI interface and embeds an + * authtypes.BaseAccount type. It is compatible with the auth AccountKeeper. + * + * @generated from message eth.types.v1.EthAccount + */ +export class EthAccount extends Message { + /** + * base_account is an authtypes.BaseAccount + * + * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; + */ + baseAccount?: BaseAccount; + + /** + * code_hash is the hash calculated from the code contents + * + * @generated from field: string code_hash = 2; + */ + codeHash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.types.v1.EthAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_account", kind: "message", T: BaseAccount }, + { no: 2, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EthAccount { + return new EthAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EthAccount { + return new EthAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EthAccount { + return new EthAccount().fromJsonString(jsonString, options); + } + + static equals(a: EthAccount | PlainMessage | undefined, b: EthAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(EthAccount, a, b); + } +} + diff --git a/src/protobufs/eth/types/v1/indexer_pb.ts b/src/protobufs/eth/types/v1/indexer_pb.ts new file mode 100644 index 00000000..e7c50dfb --- /dev/null +++ b/src/protobufs/eth/types/v1/indexer_pb.ts @@ -0,0 +1,104 @@ +// Copyright (c) 2023-2024 Nibi, Inc. + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file eth/types/v1/indexer.proto (package eth.types.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * TxResult is the value stored in eth tx indexer + * + * @generated from message eth.types.v1.TxResult + */ +export class TxResult extends Message { + /** + * height of the blockchain + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * tx_index is the index of the block transaction. It is not the index of an + * "internal transaction" + * + * @generated from field: uint32 tx_index = 2; + */ + txIndex = 0; + + /** + * msg_index in a batch transaction + * + * @generated from field: uint32 msg_index = 3; + */ + msgIndex = 0; + + /** + * eth_tx_index is the index in the list of valid eth tx in the block. Said + * another way, it is the index of the transaction list returned by + * eth_getBlock API. + * + * @generated from field: int32 eth_tx_index = 4; + */ + ethTxIndex = 0; + + /** + * failed is true if the eth transaction did not succeed + * + * @generated from field: bool failed = 5; + */ + failed = false; + + /** + * gas_used by the transaction. If it exceeds the block gas limit, + * it's set to gas limit, which is what's actually deducted by ante handler. + * + * @generated from field: uint64 gas_used = 6; + */ + gasUsed = protoInt64.zero; + + /** + * cumulative_gas_used specifies the cumulated amount of gas used for all + * processed messages within the current batch transaction. + * + * @generated from field: uint64 cumulative_gas_used = 7; + */ + cumulativeGasUsed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "eth.types.v1.TxResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "msg_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "eth_tx_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "cumulative_gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { + return new TxResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { + return new TxResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxResult { + return new TxResult().fromJsonString(jsonString, options); + } + + static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { + return proto3.util.equals(TxResult, a, b); + } +} + diff --git a/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts b/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts index 7987c856..b8b33962 100644 --- a/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts +++ b/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/crypto/v1/ethsecp256k1/keys.proto (package ethermint.crypto.v1.ethsecp256k1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/evm/v1/events_pb.ts b/src/protobufs/ethermint/evm/v1/events_pb.ts index f1712492..9d3e2992 100644 --- a/src/protobufs/ethermint/evm/v1/events_pb.ts +++ b/src/protobufs/ethermint/evm/v1/events_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/evm/v1/events.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/evm/v1/evm_pb.ts b/src/protobufs/ethermint/evm/v1/evm_pb.ts index ecf1c1bf..fd1dfc9b 100644 --- a/src/protobufs/ethermint/evm/v1/evm_pb.ts +++ b/src/protobufs/ethermint/evm/v1/evm_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/evm/v1/evm.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ @@ -7,46 +10,51 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** - * Params defines the EVM module parameters + * AccessType defines the types of permissions for the operations * - * @generated from message ethermint.evm.v1.Params + * @generated from enum ethermint.evm.v1.AccessType */ -export class Params extends Message { +export enum AccessType { /** - * evm_denom represents the token denomination used to run the EVM state - * transitions. + * ACCESS_TYPE_PERMISSIONLESS does not restrict the operation to anyone * - * @generated from field: string evm_denom = 1; + * @generated from enum value: ACCESS_TYPE_PERMISSIONLESS = 0; */ - evmDenom = ""; + PERMISSIONLESS = 0, /** - * enable_create toggles state transitions that use the vm.Create function + * ACCESS_TYPE_RESTRICTED restrict the operation to anyone * - * @generated from field: bool enable_create = 2; + * @generated from enum value: ACCESS_TYPE_RESTRICTED = 1; */ - enableCreate = false; + RESTRICTED = 1, /** - * enable_call toggles state transitions that use the vm.Call function + * ACCESS_TYPE_PERMISSIONED only allows the operation for specific addresses * - * @generated from field: bool enable_call = 3; + * @generated from enum value: ACCESS_TYPE_PERMISSIONED = 2; */ - enableCall = false; + PERMISSIONED = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(AccessType) +proto3.util.setEnumType(AccessType, "ethermint.evm.v1.AccessType", [ + { no: 0, name: "ACCESS_TYPE_PERMISSIONLESS" }, + { no: 1, name: "ACCESS_TYPE_RESTRICTED" }, + { no: 2, name: "ACCESS_TYPE_PERMISSIONED" }, +]); +/** + * Params defines the EVM module parameters + * + * @generated from message ethermint.evm.v1.Params + */ +export class Params extends Message { /** * extra_eips defines the additional EIPs for the vm.Config * - * @generated from field: repeated int64 extra_eips = 4; - */ - extraEips: bigint[] = []; - - /** - * chain_config defines the EVM chain configuration parameters - * - * @generated from field: ethermint.evm.v1.ChainConfig chain_config = 5; + * @generated from field: repeated string extra_eips = 4; */ - chainConfig?: ChainConfig; + extraEips: string[] = []; /** * allow_unprotected_txs defines if replay-protected (i.e non EIP155 @@ -56,6 +64,28 @@ export class Params extends Message { */ allowUnprotectedTxs = false; + /** + * evm_channels is the list of channel identifiers from EVM compatible chains + * + * @generated from field: repeated string evm_channels = 8; + */ + evmChannels: string[] = []; + + /** + * access_control defines the permission policy of the EVM + * + * @generated from field: ethermint.evm.v1.AccessControl access_control = 9; + */ + accessControl?: AccessControl; + + /** + * active_static_precompiles defines the slice of hex addresses of the precompiled + * contracts that are active + * + * @generated from field: repeated string active_static_precompiles = 10; + */ + activeStaticPrecompiles: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -64,12 +94,11 @@ export class Params extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "ethermint.evm.v1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "enable_create", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "enable_call", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "extra_eips", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, - { no: 5, name: "chain_config", kind: "message", T: ChainConfig }, + { no: 4, name: "extra_eips", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "allow_unprotected_txs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "evm_channels", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "access_control", kind: "message", T: AccessControl }, + { no: 10, name: "active_static_precompiles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { @@ -89,6 +118,108 @@ export class Params extends Message { } } +/** + * AccessControl defines the permission policy of the EVM + * for creating and calling contracts + * + * @generated from message ethermint.evm.v1.AccessControl + */ +export class AccessControl extends Message { + /** + * create defines the permission policy for creating contracts + * + * @generated from field: ethermint.evm.v1.AccessControlType create = 1; + */ + create?: AccessControlType; + + /** + * call defines the permission policy for calling contracts + * + * @generated from field: ethermint.evm.v1.AccessControlType call = 2; + */ + call?: AccessControlType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.AccessControl"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "create", kind: "message", T: AccessControlType }, + { no: 2, name: "call", kind: "message", T: AccessControlType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessControl { + return new AccessControl().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessControl { + return new AccessControl().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessControl { + return new AccessControl().fromJsonString(jsonString, options); + } + + static equals(a: AccessControl | PlainMessage | undefined, b: AccessControl | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessControl, a, b); + } +} + +/** + * AccessControlType defines the permission type for policies + * + * @generated from message ethermint.evm.v1.AccessControlType + */ +export class AccessControlType extends Message { + /** + * access_type defines which type of permission is required for the operation + * + * @generated from field: ethermint.evm.v1.AccessType access_type = 1; + */ + accessType = AccessType.PERMISSIONLESS; + + /** + * access_control_list defines defines different things depending on the AccessType: + * - ACCESS_TYPE_PERMISSIONLESS: list of addresses that are blocked from performing the operation + * - ACCESS_TYPE_RESTRICTED: ignored + * - ACCESS_TYPE_PERMISSIONED: list of addresses that are allowed to perform the operation + * + * @generated from field: repeated string access_control_list = 2; + */ + accessControlList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.AccessControlType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "access_type", kind: "enum", T: proto3.getEnumType(AccessType) }, + { no: 2, name: "access_control_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessControlType { + return new AccessControlType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessControlType { + return new AccessControlType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessControlType { + return new AccessControlType().fromJsonString(jsonString, options); + } + + static equals(a: AccessControlType | PlainMessage | undefined, b: AccessControlType | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessControlType, a, b); + } +} + /** * ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values * instead of *big.Int. @@ -230,6 +361,27 @@ export class ChainConfig extends Message { */ cancunBlock = ""; + /** + * chain_id is the id of the chain (EIP-155) + * + * @generated from field: uint64 chain_id = 24; + */ + chainId = protoInt64.zero; + + /** + * denom is the denomination used on the EVM + * + * @generated from field: string denom = 25; + */ + denom = ""; + + /** + * decimals is the real decimal precision of the denomination used on the EVM + * + * @generated from field: uint64 decimals = 26; + */ + decimals = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -257,6 +409,9 @@ export class ChainConfig extends Message { { no: 21, name: "merge_netsplit_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 22, name: "shanghai_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 23, name: "cancun_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 24, name: "chain_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 25, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 26, name: "decimals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChainConfig { diff --git a/src/protobufs/ethermint/evm/v1/genesis_pb.ts b/src/protobufs/ethermint/evm/v1/genesis_pb.ts index 3b4c2639..6ff646e4 100644 --- a/src/protobufs/ethermint/evm/v1/genesis_pb.ts +++ b/src/protobufs/ethermint/evm/v1/genesis_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/evm/v1/genesis.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/evm/v1/query_cosmes.ts b/src/protobufs/ethermint/evm/v1/query_cosmes.ts index 51e45345..d2991cb5 100644 --- a/src/protobufs/ethermint/evm/v1/query_cosmes.ts +++ b/src/protobufs/ethermint/evm/v1/query_cosmes.ts @@ -1,9 +1,12 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" // @generated from file ethermint/evm/v1/query.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck -import { EstimateGasResponse, EthCallRequest, QueryAccountRequest, QueryAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js"; +import { EstimateGasResponse, EthCallRequest, QueryAccountRequest, QueryAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryConfigRequest, QueryConfigResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryGlobalMinGasPriceRequest, QueryGlobalMinGasPriceResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js"; import { MsgEthereumTxResponse } from "./tx_pb.js"; const TYPE_NAME = "ethermint.evm.v1.Query"; @@ -47,7 +50,7 @@ export const QueryValidatorAccountService = { /** * Balance queries the balance of a the EVM denomination for a single - * EthAccount. + * account. * * @generated from rpc ethermint.evm.v1.Query.Balance */ @@ -155,3 +158,30 @@ export const QueryBaseFeeService = { Response: QueryBaseFeeResponse, } as const; +/** + * GlobalMinGasPrice queries the MinGasPrice + * it's similar to feemarket module's method, + * but makes the conversion to 18 decimals + * when the evm denom is represented with a different precision. + * + * @generated from rpc ethermint.evm.v1.Query.GlobalMinGasPrice + */ +export const QueryGlobalMinGasPriceService = { + typeName: TYPE_NAME, + method: "GlobalMinGasPrice", + Request: QueryGlobalMinGasPriceRequest, + Response: QueryGlobalMinGasPriceResponse, +} as const; + +/** + * Config queries the EVM configuration + * + * @generated from rpc ethermint.evm.v1.Query.Config + */ +export const QueryConfigService = { + typeName: TYPE_NAME, + method: "Config", + Request: QueryConfigRequest, + Response: QueryConfigResponse, +} as const; + diff --git a/src/protobufs/ethermint/evm/v1/query_pb.ts b/src/protobufs/ethermint/evm/v1/query_pb.ts index 2e3a95c1..2f38ff0c 100644 --- a/src/protobufs/ethermint/evm/v1/query_pb.ts +++ b/src/protobufs/ethermint/evm/v1/query_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/evm/v1/query.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ @@ -6,7 +9,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Log, Params, TraceConfig } from "./evm_pb.js"; +import { ChainConfig, Log, Params, TraceConfig } from "./evm_pb.js"; import { MsgEthereumTx } from "./tx_pb.js"; /** @@ -813,6 +816,21 @@ export class EstimateGasResponse extends Message { */ gas = protoInt64.zero; + /** + * ret is the returned data from evm function (result or data supplied with revert + * opcode) + * + * @generated from field: bytes ret = 2; + */ + ret = new Uint8Array(0); + + /** + * vm_error is the error returned by vm execution + * + * @generated from field: string vm_error = 3; + */ + vmError = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -822,6 +840,8 @@ export class EstimateGasResponse extends Message { static readonly typeName = "ethermint.evm.v1.EstimateGasResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasResponse { @@ -898,12 +918,19 @@ export class QueryTraceTxRequest extends Message { proposerAddress = new Uint8Array(0); /** - * chain_id is the the eip155 chain id parsed from the requested block header + * chain_id is the eip155 chain id parsed from the requested block header * * @generated from field: int64 chain_id = 9; */ chainId = protoInt64.zero; + /** + * block_max_gas of the block of the requested transaction + * + * @generated from field: int64 block_max_gas = 10; + */ + blockMaxGas = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -920,6 +947,7 @@ export class QueryTraceTxRequest extends Message { { no: 7, name: "block_time", kind: "message", T: Timestamp }, { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "block_max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxRequest { @@ -1035,6 +1063,13 @@ export class QueryTraceBlockRequest extends Message { */ chainId = protoInt64.zero; + /** + * block_max_gas of the traced block + * + * @generated from field: int64 block_max_gas = 10; + */ + blockMaxGas = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1050,6 +1085,7 @@ export class QueryTraceBlockRequest extends Message { { no: 7, name: "block_time", kind: "message", T: Timestamp }, { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "block_max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockRequest { @@ -1185,3 +1221,151 @@ export class QueryBaseFeeResponse extends Message { } } +/** + * QueryGlobalMinGasPriceRequest defines the request type for querying the GlobalMinGasPrice + * + * @generated from message ethermint.evm.v1.QueryGlobalMinGasPriceRequest + */ +export class QueryGlobalMinGasPriceRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.QueryGlobalMinGasPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGlobalMinGasPriceRequest { + return new QueryGlobalMinGasPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGlobalMinGasPriceRequest { + return new QueryGlobalMinGasPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGlobalMinGasPriceRequest { + return new QueryGlobalMinGasPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGlobalMinGasPriceRequest | PlainMessage | undefined, b: QueryGlobalMinGasPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGlobalMinGasPriceRequest, a, b); + } +} + +/** + * QueryGlobalMinGasPriceResponse returns the GlobalMinGasPrice. + * + * @generated from message ethermint.evm.v1.QueryGlobalMinGasPriceResponse + */ +export class QueryGlobalMinGasPriceResponse extends Message { + /** + * min_gas_price is the feemarket's min_gas_price + * + * @generated from field: string min_gas_price = 1; + */ + minGasPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.QueryGlobalMinGasPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGlobalMinGasPriceResponse { + return new QueryGlobalMinGasPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGlobalMinGasPriceResponse { + return new QueryGlobalMinGasPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGlobalMinGasPriceResponse { + return new QueryGlobalMinGasPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGlobalMinGasPriceResponse | PlainMessage | undefined, b: QueryGlobalMinGasPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGlobalMinGasPriceResponse, a, b); + } +} + +/** + * QueryConfigRequest defines the request type for querying the Config + * + * @generated from message ethermint.evm.v1.QueryConfigRequest + */ +export class QueryConfigRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.QueryConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConfigRequest { + return new QueryConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConfigRequest { + return new QueryConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConfigRequest { + return new QueryConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConfigRequest | PlainMessage | undefined, b: QueryConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConfigRequest, a, b); + } +} + +/** + * QueryConfigResponse returns the EVM Config. + * + * @generated from message ethermint.evm.v1.QueryConfigResponse + */ +export class QueryConfigResponse extends Message { + /** + * config is the evm configuration + * + * @generated from field: ethermint.evm.v1.ChainConfig config = 1; + */ + config?: ChainConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ethermint.evm.v1.QueryConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "config", kind: "message", T: ChainConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConfigResponse { + return new QueryConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConfigResponse { + return new QueryConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConfigResponse { + return new QueryConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConfigResponse | PlainMessage | undefined, b: QueryConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConfigResponse, a, b); + } +} + diff --git a/src/protobufs/ethermint/evm/v1/tx_cosmes.ts b/src/protobufs/ethermint/evm/v1/tx_cosmes.ts index d9d5603e..a2091215 100644 --- a/src/protobufs/ethermint/evm/v1/tx_cosmes.ts +++ b/src/protobufs/ethermint/evm/v1/tx_cosmes.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" // @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/evm/v1/tx_pb.ts b/src/protobufs/ethermint/evm/v1/tx_pb.ts index 10eb6864..8117bb3e 100644 --- a/src/protobufs/ethermint/evm/v1/tx_pb.ts +++ b/src/protobufs/ethermint/evm/v1/tx_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, syntax proto3) /* eslint-disable */ @@ -303,7 +306,7 @@ export class AccessListTx extends Message { } /** - * DynamicFeeTx is the data of EIP-1559 dinamic fee transactions. + * DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. * * @generated from message ethermint.evm.v1.DynamicFeeTx */ @@ -351,7 +354,7 @@ export class DynamicFeeTx extends Message { to = ""; /** - * value defines the the transaction amount. + * value defines the transaction amount. * * @generated from field: string value = 7; */ diff --git a/src/protobufs/ethermint/feemarket/v1/events_pb.ts b/src/protobufs/ethermint/feemarket/v1/events_pb.ts index 54e0797d..ce1de62a 100644 --- a/src/protobufs/ethermint/feemarket/v1/events_pb.ts +++ b/src/protobufs/ethermint/feemarket/v1/events_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/events.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ @@ -7,7 +10,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * EventFeeMarket is the event type for the fee market module + * EventFeeMarket is the event type for the feemarket module * * @generated from message ethermint.feemarket.v1.EventFeeMarket */ diff --git a/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts b/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts index dd7757cb..8d5ccff4 100644 --- a/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts +++ b/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/feemarket.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ @@ -7,7 +10,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** - * Params defines the EVM module parameters + * Params defines the feemarket module parameters * * @generated from message ethermint.feemarket.v1.Params */ diff --git a/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts b/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts index 78c369a1..e2359268 100644 --- a/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts +++ b/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/genesis.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts b/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts index c9bc1d00..82d92d06 100644 --- a/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts +++ b/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/feemarket/v1/query_pb.ts b/src/protobufs/ethermint/feemarket/v1/query_pb.ts index e0369761..e67d9a49 100644 --- a/src/protobufs/ethermint/feemarket/v1/query_pb.ts +++ b/src/protobufs/ethermint/feemarket/v1/query_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts b/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts index d3e260c8..5376aa21 100644 --- a/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts +++ b/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/feemarket/v1/tx_pb.ts b/src/protobufs/ethermint/feemarket/v1/tx_pb.ts index 9e99c488..165ee199 100644 --- a/src/protobufs/ethermint/feemarket/v1/tx_pb.ts +++ b/src/protobufs/ethermint/feemarket/v1/tx_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts b/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts index 08187b20..892c4287 100644 --- a/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts +++ b/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/types/v1/dynamic_fee.proto (package ethermint.types.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/types/v1/indexer_pb.ts b/src/protobufs/ethermint/types/v1/indexer_pb.ts index f5d92ecc..0b67bf27 100644 --- a/src/protobufs/ethermint/types/v1/indexer_pb.ts +++ b/src/protobufs/ethermint/types/v1/indexer_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/types/v1/indexer.proto (package ethermint.types.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/ethermint/types/v1/web3_pb.ts b/src/protobufs/ethermint/types/v1/web3_pb.ts index 891b5fe9..1f717480 100644 --- a/src/protobufs/ethermint/types/v1/web3_pb.ts +++ b/src/protobufs/ethermint/types/v1/web3_pb.ts @@ -1,3 +1,6 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file ethermint/types/v1/web3.proto (package ethermint.types.v1, syntax proto3) /* eslint-disable */ diff --git a/src/protobufs/evmos/epochs/v1/genesis_pb.ts b/src/protobufs/evmos/epochs/v1/genesis_pb.ts new file mode 100644 index 00000000..a9711c93 --- /dev/null +++ b/src/protobufs/evmos/epochs/v1/genesis_pb.ts @@ -0,0 +1,142 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/epochs/v1/genesis.proto (package evmos.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * EpochInfo defines the message interface containing the relevant informations about + * an epoch. + * + * @generated from message evmos.epochs.v1.EpochInfo + */ +export class EpochInfo extends Message { + /** + * identifier of the epoch + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + /** + * start_time of the epoch + * + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime?: Timestamp; + + /** + * duration of the epoch + * + * @generated from field: google.protobuf.Duration duration = 3; + */ + duration?: Duration; + + /** + * current_epoch is the integer identifier of the epoch + * + * @generated from field: int64 current_epoch = 4; + */ + currentEpoch = protoInt64.zero; + + /** + * current_epoch_start_time defines the timestamp of the start of the epoch + * + * @generated from field: google.protobuf.Timestamp current_epoch_start_time = 5; + */ + currentEpochStartTime?: Timestamp; + + /** + * epoch_counting_started reflects if the counting for the epoch has started + * + * @generated from field: bool epoch_counting_started = 6; + */ + epochCountingStarted = false; + + /** + * current_epoch_start_height of the epoch + * + * @generated from field: int64 current_epoch_start_height = 7; + */ + currentEpochStartHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.EpochInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_time", kind: "message", T: Timestamp }, + { no: 3, name: "duration", kind: "message", T: Duration }, + { no: 4, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "current_epoch_start_time", kind: "message", T: Timestamp }, + { no: 6, name: "epoch_counting_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "current_epoch_start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EpochInfo { + return new EpochInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EpochInfo { + return new EpochInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EpochInfo { + return new EpochInfo().fromJsonString(jsonString, options); + } + + static equals(a: EpochInfo | PlainMessage | undefined, b: EpochInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(EpochInfo, a, b); + } +} + +/** + * GenesisState defines the epochs module's genesis state. + * + * @generated from message evmos.epochs.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * epochs is a slice of EpochInfo that defines the epochs in the genesis state + * + * @generated from field: repeated evmos.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/evmos/epochs/v1/query_cosmes.ts b/src/protobufs/evmos/epochs/v1/query_cosmes.ts new file mode 100644 index 00000000..72754dc4 --- /dev/null +++ b/src/protobufs/evmos/epochs/v1/query_cosmes.ts @@ -0,0 +1,36 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/epochs/v1/query.proto (package evmos.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCurrentEpochRequest, QueryCurrentEpochResponse, QueryEpochsInfoRequest, QueryEpochsInfoResponse } from "./query_pb.js"; + +const TYPE_NAME = "evmos.epochs.v1.Query"; + +/** + * EpochInfos provide running epochInfos + * + * @generated from rpc evmos.epochs.v1.Query.EpochInfos + */ +export const QueryEpochInfosService = { + typeName: TYPE_NAME, + method: "EpochInfos", + Request: QueryEpochsInfoRequest, + Response: QueryEpochsInfoResponse, +} as const; + +/** + * CurrentEpoch provide current epoch of specified identifier + * + * @generated from rpc evmos.epochs.v1.Query.CurrentEpoch + */ +export const QueryCurrentEpochService = { + typeName: TYPE_NAME, + method: "CurrentEpoch", + Request: QueryCurrentEpochRequest, + Response: QueryCurrentEpochResponse, +} as const; + diff --git a/src/protobufs/evmos/epochs/v1/query_pb.ts b/src/protobufs/evmos/epochs/v1/query_pb.ts new file mode 100644 index 00000000..5ad5faac --- /dev/null +++ b/src/protobufs/evmos/epochs/v1/query_pb.ts @@ -0,0 +1,189 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/epochs/v1/query.proto (package evmos.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { EpochInfo } from "./genesis_pb.js"; + +/** + * QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC + * method. + * + * @generated from message evmos.epochs.v1.QueryEpochsInfoRequest + */ +export class QueryEpochsInfoRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.QueryEpochsInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoRequest { + return new QueryEpochsInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsInfoRequest | PlainMessage | undefined, b: QueryEpochsInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsInfoRequest, a, b); + } +} + +/** + * QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC + * method. + * + * @generated from message evmos.epochs.v1.QueryEpochsInfoResponse + */ +export class QueryEpochsInfoResponse extends Message { + /** + * epochs is a slice of all EpochInfos + * + * @generated from field: repeated evmos.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.QueryEpochsInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoResponse { + return new QueryEpochsInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsInfoResponse | PlainMessage | undefined, b: QueryEpochsInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsInfoResponse, a, b); + } +} + +/** + * QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC + * method. + * + * @generated from message evmos.epochs.v1.QueryCurrentEpochRequest + */ +export class QueryCurrentEpochRequest extends Message { + /** + * identifier of the current epoch + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.QueryCurrentEpochRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochRequest, a, b); + } +} + +/** + * QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC + * method. + * + * @generated from message evmos.epochs.v1.QueryCurrentEpochResponse + */ +export class QueryCurrentEpochResponse extends Message { + /** + * current_epoch is the number of the current epoch + * + * @generated from field: int64 current_epoch = 1; + */ + currentEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.epochs.v1.QueryCurrentEpochResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/erc20/v1/erc20_pb.ts b/src/protobufs/evmos/erc20/v1/erc20_pb.ts new file mode 100644 index 00000000..1fd0f27b --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/erc20_pb.ts @@ -0,0 +1,334 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/erc20/v1/erc20.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; + +/** + * Owner enumerates the ownership of a ERC20 contract. + * + * @generated from enum evmos.erc20.v1.Owner + */ +export enum Owner { + /** + * OWNER_UNSPECIFIED defines an invalid/undefined owner. + * + * @generated from enum value: OWNER_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * OWNER_MODULE - erc20 is owned by the erc20 module account. + * + * @generated from enum value: OWNER_MODULE = 1; + */ + MODULE = 1, + + /** + * OWNER_EXTERNAL - erc20 is owned by an external account. + * + * @generated from enum value: OWNER_EXTERNAL = 2; + */ + EXTERNAL = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Owner) +proto3.util.setEnumType(Owner, "evmos.erc20.v1.Owner", [ + { no: 0, name: "OWNER_UNSPECIFIED" }, + { no: 1, name: "OWNER_MODULE" }, + { no: 2, name: "OWNER_EXTERNAL" }, +]); + +/** + * TokenPair defines an instance that records a pairing consisting of a native + * Cosmos Coin and an ERC20 token address. + * + * @generated from message evmos.erc20.v1.TokenPair + */ +export class TokenPair extends Message { + /** + * erc20_address is the hex address of ERC20 contract token + * + * @generated from field: string erc20_address = 1; + */ + erc20Address = ""; + + /** + * denom defines the cosmos base denomination to be mapped to + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * enabled defines the token mapping enable status + * + * @generated from field: bool enabled = 3; + */ + enabled = false; + + /** + * contract_owner is the an ENUM specifying the type of ERC20 owner (0 invalid, 1 ModuleAccount, 2 external address) + * + * @generated from field: evmos.erc20.v1.Owner contract_owner = 4; + */ + contractOwner = Owner.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.TokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "contract_owner", kind: "enum", T: proto3.getEnumType(Owner) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenPair { + return new TokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenPair { + return new TokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenPair { + return new TokenPair().fromJsonString(jsonString, options); + } + + static equals(a: TokenPair | PlainMessage | undefined, b: TokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenPair, a, b); + } +} + +/** + * Deprecated: RegisterCoinProposal is a gov Content type to register a token pair for a + * native Cosmos coin. We're keeping it to remove the existing proposals from + * store. After that, remove this message. + * NOTE: Keep this message for backwards compatibility on proposals query + * + * @generated from message evmos.erc20.v1.RegisterCoinProposal + */ +export class RegisterCoinProposal extends Message { + /** + * title of the proposal + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * description of the proposal + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * metadata slice of the native Cosmos coins + * + * @generated from field: repeated cosmos.bank.v1beta1.Metadata metadata = 3; + */ + metadata: Metadata[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.RegisterCoinProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "metadata", kind: "message", T: Metadata, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisterCoinProposal { + return new RegisterCoinProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisterCoinProposal { + return new RegisterCoinProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisterCoinProposal { + return new RegisterCoinProposal().fromJsonString(jsonString, options); + } + + static equals(a: RegisterCoinProposal | PlainMessage | undefined, b: RegisterCoinProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisterCoinProposal, a, b); + } +} + +/** + * Deprecated: ProposalMetadata is used to parse a slice of denom metadata and generate + * the RegisterCoinProposal content. We're keeping it to remove the existing proposals from + * store. After that, remove this message. + * + * @generated from message evmos.erc20.v1.ProposalMetadata + */ +export class ProposalMetadata extends Message { + /** + * metadata slice of the native Cosmos coins + * + * @generated from field: repeated cosmos.bank.v1beta1.Metadata metadata = 1; + */ + metadata: Metadata[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.ProposalMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: Metadata, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProposalMetadata { + return new ProposalMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProposalMetadata { + return new ProposalMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProposalMetadata { + return new ProposalMetadata().fromJsonString(jsonString, options); + } + + static equals(a: ProposalMetadata | PlainMessage | undefined, b: ProposalMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(ProposalMetadata, a, b); + } +} + +/** + * Deprecated: RegisterERC20Proposal is a gov Content type to register a token pair for an + * ERC20 token. + * NOTE: Keep this message for backwards compatibility on proposals query + * + * @generated from message evmos.erc20.v1.RegisterERC20Proposal + */ +export class RegisterERC20Proposal extends Message { + /** + * title of the proposal + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * description of the proposal + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * erc20addresses is a slice of ERC20 token contract addresses + * + * @generated from field: repeated string erc20addresses = 3; + */ + erc20addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.RegisterERC20Proposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "erc20addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisterERC20Proposal { + return new RegisterERC20Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisterERC20Proposal { + return new RegisterERC20Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisterERC20Proposal { + return new RegisterERC20Proposal().fromJsonString(jsonString, options); + } + + static equals(a: RegisterERC20Proposal | PlainMessage | undefined, b: RegisterERC20Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisterERC20Proposal, a, b); + } +} + +/** + * Deprecated: ToggleTokenConversionProposal is a gov Content type to toggle the conversion + * of a token pair. + * NOTE: Keep this message for backwards compatibility on proposals query + * + * @generated from message evmos.erc20.v1.ToggleTokenConversionProposal + */ +export class ToggleTokenConversionProposal extends Message { + /** + * title of the proposal + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * description of the proposal + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * token identifier can be either the hex contract address of the ERC20 or the + * Cosmos base denomination + * + * @generated from field: string token = 3; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.ToggleTokenConversionProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ToggleTokenConversionProposal { + return new ToggleTokenConversionProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ToggleTokenConversionProposal { + return new ToggleTokenConversionProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ToggleTokenConversionProposal { + return new ToggleTokenConversionProposal().fromJsonString(jsonString, options); + } + + static equals(a: ToggleTokenConversionProposal | PlainMessage | undefined, b: ToggleTokenConversionProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ToggleTokenConversionProposal, a, b); + } +} + diff --git a/src/protobufs/evmos/erc20/v1/events_pb.ts b/src/protobufs/evmos/erc20/v1/events_pb.ts new file mode 100644 index 00000000..b8be0199 --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/events_pb.ts @@ -0,0 +1,255 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/erc20/v1/events.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * EventRegisterPair is an event emitted when a coin is registered. + * + * @generated from message evmos.erc20.v1.EventRegisterPair + */ +export class EventRegisterPair extends Message { + /** + * denom is the coin's denomination. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * erc20_address is the ERC20 contract address. + * + * @generated from field: string erc20_address = 2; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.EventRegisterPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRegisterPair { + return new EventRegisterPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRegisterPair { + return new EventRegisterPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRegisterPair { + return new EventRegisterPair().fromJsonString(jsonString, options); + } + + static equals(a: EventRegisterPair | PlainMessage | undefined, b: EventRegisterPair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRegisterPair, a, b); + } +} + +/** + * EventToggleTokenConversion is an event emitted when a coin's token conversion is toggled. + * + * @generated from message evmos.erc20.v1.EventToggleTokenConversion + */ +export class EventToggleTokenConversion extends Message { + /** + * denom is the coin's denomination. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * erc20_address is the ERC20 contract address. + * + * @generated from field: string erc20_address = 2; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.EventToggleTokenConversion"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventToggleTokenConversion { + return new EventToggleTokenConversion().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventToggleTokenConversion { + return new EventToggleTokenConversion().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventToggleTokenConversion { + return new EventToggleTokenConversion().fromJsonString(jsonString, options); + } + + static equals(a: EventToggleTokenConversion | PlainMessage | undefined, b: EventToggleTokenConversion | PlainMessage | undefined): boolean { + return proto3.util.equals(EventToggleTokenConversion, a, b); + } +} + +/** + * EventConvertCoin is an event emitted when a coin is converted. + * + * @generated from message evmos.erc20.v1.EventConvertCoin + */ +export class EventConvertCoin extends Message { + /** + * sender is the sender's address. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * receiver is the receiver's address. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * amount is the amount of coins to be converted. + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * denom is the coin's denomination. + * + * @generated from field: string denom = 4; + */ + denom = ""; + + /** + * erc20_address is the ERC20 contract address. + * + * @generated from field: string erc20_address = 5; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.EventConvertCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvertCoin { + return new EventConvertCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvertCoin { + return new EventConvertCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvertCoin { + return new EventConvertCoin().fromJsonString(jsonString, options); + } + + static equals(a: EventConvertCoin | PlainMessage | undefined, b: EventConvertCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvertCoin, a, b); + } +} + +/** + * EventConvertERC20 is an event emitted when an ERC20 is converted. + * + * @generated from message evmos.erc20.v1.EventConvertERC20 + */ +export class EventConvertERC20 extends Message { + /** + * sender is the sender's address. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * receiver is the receiver's address. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * amount is the amount of coins to be converted. + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * denom is the coin's denomination. + * + * @generated from field: string denom = 4; + */ + denom = ""; + + /** + * contract_address of an ERC20 token contract, that is registered in a token pair + * + * @generated from field: string contract_address = 5; + */ + contractAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.EventConvertERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvertERC20 { + return new EventConvertERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvertERC20 { + return new EventConvertERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvertERC20 { + return new EventConvertERC20().fromJsonString(jsonString, options); + } + + static equals(a: EventConvertERC20 | PlainMessage | undefined, b: EventConvertERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvertERC20, a, b); + } +} + diff --git a/src/protobufs/evmos/erc20/v1/genesis_pb.ts b/src/protobufs/evmos/erc20/v1/genesis_pb.ts new file mode 100644 index 00000000..1abf4590 --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/genesis_pb.ts @@ -0,0 +1,120 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/erc20/v1/genesis.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { TokenPair } from "./erc20_pb.js"; + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message evmos.erc20.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params are the erc20 module parameters at genesis + * + * @generated from field: evmos.erc20.v1.Params params = 1; + */ + params?: Params; + + /** + * token_pairs is a slice of the registered token pairs at genesis + * + * @generated from field: repeated evmos.erc20.v1.TokenPair token_pairs = 2; + */ + tokenPairs: TokenPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "token_pairs", kind: "message", T: TokenPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params defines the erc20 module params + * + * @generated from message evmos.erc20.v1.Params + */ +export class Params extends Message { + /** + * enable_erc20 is the parameter to enable the conversion of Cosmos coins <--> ERC20 tokens. + * + * @generated from field: bool enable_erc20 = 1; + */ + enableErc20 = false; + + /** + * native_precompiles defines the slice of hex addresses of the + * active precompiles that are used to interact with native staking coins as ERC20s + * + * @generated from field: repeated string native_precompiles = 3; + */ + nativePrecompiles: string[] = []; + + /** + * dynamic_precompiles defines the slice of hex addresses of the + * active precompiles that are used to interact with Bank coins as ERC20s + * + * @generated from field: repeated string dynamic_precompiles = 4; + */ + dynamicPrecompiles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "enable_erc20", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "native_precompiles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "dynamic_precompiles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/evmos/erc20/v1/query_cosmes.ts b/src/protobufs/evmos/erc20/v1/query_cosmes.ts new file mode 100644 index 00000000..d2790bf2 --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/query_cosmes.ts @@ -0,0 +1,48 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/erc20/v1/query.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse, QueryTokenPairRequest, QueryTokenPairResponse, QueryTokenPairsRequest, QueryTokenPairsResponse } from "./query_pb.js"; + +const TYPE_NAME = "evmos.erc20.v1.Query"; + +/** + * TokenPairs retrieves registered token pairs + * + * @generated from rpc evmos.erc20.v1.Query.TokenPairs + */ +export const QueryTokenPairsService = { + typeName: TYPE_NAME, + method: "TokenPairs", + Request: QueryTokenPairsRequest, + Response: QueryTokenPairsResponse, +} as const; + +/** + * TokenPair retrieves a registered token pair + * + * @generated from rpc evmos.erc20.v1.Query.TokenPair + */ +export const QueryTokenPairService = { + typeName: TYPE_NAME, + method: "TokenPair", + Request: QueryTokenPairRequest, + Response: QueryTokenPairResponse, +} as const; + +/** + * Params retrieves the erc20 module params + * + * @generated from rpc evmos.erc20.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/evmos/erc20/v1/query_pb.ts b/src/protobufs/evmos/erc20/v1/query_pb.ts new file mode 100644 index 00000000..560b3c3b --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/query_pb.ts @@ -0,0 +1,265 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/erc20/v1/query.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { TokenPair } from "./erc20_pb.js"; +import { Params } from "./genesis_pb.js"; + +/** + * QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC + * method. + * + * @generated from message evmos.erc20.v1.QueryTokenPairsRequest + */ +export class QueryTokenPairsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryTokenPairsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairsRequest { + return new QueryTokenPairsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairsRequest { + return new QueryTokenPairsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairsRequest { + return new QueryTokenPairsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairsRequest | PlainMessage | undefined, b: QueryTokenPairsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairsRequest, a, b); + } +} + +/** + * QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC + * method. + * + * @generated from message evmos.erc20.v1.QueryTokenPairsResponse + */ +export class QueryTokenPairsResponse extends Message { + /** + * token_pairs is a slice of registered token pairs for the erc20 module + * + * @generated from field: repeated evmos.erc20.v1.TokenPair token_pairs = 1; + */ + tokenPairs: TokenPair[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryTokenPairsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pairs", kind: "message", T: TokenPair, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairsResponse { + return new QueryTokenPairsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairsResponse { + return new QueryTokenPairsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairsResponse { + return new QueryTokenPairsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairsResponse | PlainMessage | undefined, b: QueryTokenPairsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairsResponse, a, b); + } +} + +/** + * QueryTokenPairRequest is the request type for the Query/TokenPair RPC method. + * + * @generated from message evmos.erc20.v1.QueryTokenPairRequest + */ +export class QueryTokenPairRequest extends Message { + /** + * token identifier can be either the hex contract address of the ERC20 or the + * Cosmos base denomination + * + * @generated from field: string token = 1; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryTokenPairRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairRequest { + return new QueryTokenPairRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairRequest { + return new QueryTokenPairRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairRequest { + return new QueryTokenPairRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairRequest | PlainMessage | undefined, b: QueryTokenPairRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairRequest, a, b); + } +} + +/** + * QueryTokenPairResponse is the response type for the Query/TokenPair RPC + * method. + * + * @generated from message evmos.erc20.v1.QueryTokenPairResponse + */ +export class QueryTokenPairResponse extends Message { + /** + * token_pairs returns the info about a registered token pair for the erc20 module + * + * @generated from field: evmos.erc20.v1.TokenPair token_pair = 1; + */ + tokenPair?: TokenPair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryTokenPairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pair", kind: "message", T: TokenPair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairResponse { + return new QueryTokenPairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairResponse { + return new QueryTokenPairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairResponse { + return new QueryTokenPairResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairResponse | PlainMessage | undefined, b: QueryTokenPairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message evmos.erc20.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC + * method. + * + * @generated from message evmos.erc20.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params are the erc20 module parameters + * + * @generated from field: evmos.erc20.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/erc20/v1/tx_cosmes.ts b/src/protobufs/evmos/erc20/v1/tx_cosmes.ts new file mode 100644 index 00000000..f21f0cbc --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/tx_cosmes.ts @@ -0,0 +1,64 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/erc20/v1/tx.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgConvertERC20, MsgConvertERC20Response, MsgRegisterERC20, MsgRegisterERC20Response, MsgToggleConversion, MsgToggleConversionResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "evmos.erc20.v1.Msg"; + +/** + * ConvertERC20 mints a native Cosmos coin representation of the ERC20 token + * contract that is registered on the token mapping. + * + * @generated from rpc evmos.erc20.v1.Msg.ConvertERC20 + */ +export const MsgConvertERC20Service = { + typeName: TYPE_NAME, + method: "ConvertERC20", + Request: MsgConvertERC20, + Response: MsgConvertERC20Response, +} as const; + +/** + * UpdateParams defines a governance operation for updating the x/erc20 module parameters. + * The authority is hard-coded to the Cosmos SDK x/gov module account + * + * @generated from rpc evmos.erc20.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * RegisterERC20 defines a governance operation for registering a token pair for the specified erc20 contract. + * The authority is hard-coded to the Cosmos SDK x/gov module account + * + * @generated from rpc evmos.erc20.v1.Msg.RegisterERC20 + */ +export const MsgRegisterERC20Service = { + typeName: TYPE_NAME, + method: "RegisterERC20", + Request: MsgRegisterERC20, + Response: MsgRegisterERC20Response, +} as const; + +/** + * ToggleConversion defines a governance operation for enabling/disablen a token pair conversion. + * The authority is hard-coded to the Cosmos SDK x/gov module account + * + * @generated from rpc evmos.erc20.v1.Msg.ToggleConversion + */ +export const MsgToggleConversionService = { + typeName: TYPE_NAME, + method: "ToggleConversion", + Request: MsgToggleConversion, + Response: MsgToggleConversionResponse, +} as const; + diff --git a/src/protobufs/evmos/erc20/v1/tx_pb.ts b/src/protobufs/evmos/erc20/v1/tx_pb.ts new file mode 100644 index 00000000..05c64ef0 --- /dev/null +++ b/src/protobufs/evmos/erc20/v1/tx_pb.ts @@ -0,0 +1,458 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/erc20/v1/tx.proto (package evmos.erc20.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./genesis_pb.js"; + +/** + * MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos + * coin. + * + * @generated from message evmos.erc20.v1.MsgConvertERC20 + */ +export class MsgConvertERC20 extends Message { + /** + * contract_address of an ERC20 token contract, that is registered in a token pair + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * amount of ERC20 tokens to convert + * + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * receiver is the bech32 address to receive native Cosmos coins + * + * @generated from field: string receiver = 3; + */ + receiver = ""; + + /** + * sender is the hex address from the owner of the given ERC20 tokens + * + * @generated from field: string sender = 4; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgConvertERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertERC20 { + return new MsgConvertERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertERC20 { + return new MsgConvertERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertERC20 { + return new MsgConvertERC20().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertERC20 | PlainMessage | undefined, b: MsgConvertERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertERC20, a, b); + } +} + +/** + * MsgConvertERC20Response returns no fields + * + * @generated from message evmos.erc20.v1.MsgConvertERC20Response + */ +export class MsgConvertERC20Response extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgConvertERC20Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertERC20Response { + return new MsgConvertERC20Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertERC20Response { + return new MsgConvertERC20Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertERC20Response { + return new MsgConvertERC20Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertERC20Response | PlainMessage | undefined, b: MsgConvertERC20Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertERC20Response, a, b); + } +} + +/** + * MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token + * + * @generated from message evmos.erc20.v1.MsgConvertCoin + */ +export class MsgConvertCoin extends Message { + /** + * coin is a Cosmos coin whose denomination is registered in a token pair. The coin + * amount defines the amount of coins to convert. + * + * @generated from field: cosmos.base.v1beta1.Coin coin = 1; + */ + coin?: Coin; + + /** + * receiver is the hex address to receive ERC20 token + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * sender is the cosmos bech32 address from the owner of the given Cosmos coins + * + * @generated from field: string sender = 3; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgConvertCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin", kind: "message", T: Coin }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoin { + return new MsgConvertCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoin { + return new MsgConvertCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoin { + return new MsgConvertCoin().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoin | PlainMessage | undefined, b: MsgConvertCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoin, a, b); + } +} + +/** + * MsgConvertCoinResponse returns no fields + * + * @generated from message evmos.erc20.v1.MsgConvertCoinResponse + */ +export class MsgConvertCoinResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgConvertCoinResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoinResponse { + return new MsgConvertCoinResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoinResponse { + return new MsgConvertCoinResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoinResponse { + return new MsgConvertCoinResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoinResponse | PlainMessage | undefined, b: MsgConvertCoinResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoinResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type for Erc20 parameters. + * Since: cosmos-sdk 0.47 + * + * @generated from message evmos.erc20.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/evm parameters to update. + * NOTE: All parameters must be supplied. + * + * @generated from field: evmos.erc20.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * Since: cosmos-sdk 0.47 + * + * @generated from message evmos.erc20.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgRegisterERC20 is the Msg/RegisterERC20 request type for registering + * an Erc20 contract token pair. + * + * @generated from message evmos.erc20.v1.MsgRegisterERC20 + */ +export class MsgRegisterERC20 extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * erc20addresses is a slice of ERC20 token contract hex addresses + * + * @generated from field: repeated string erc20addresses = 2; + */ + erc20addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgRegisterERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterERC20 { + return new MsgRegisterERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterERC20 { + return new MsgRegisterERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterERC20 { + return new MsgRegisterERC20().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterERC20 | PlainMessage | undefined, b: MsgRegisterERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterERC20, a, b); + } +} + +/** + * MsgRegisterERC20Response defines the response structure for executing a + * MsgRegisterERC20 message. + * + * @generated from message evmos.erc20.v1.MsgRegisterERC20Response + */ +export class MsgRegisterERC20Response extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgRegisterERC20Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterERC20Response { + return new MsgRegisterERC20Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterERC20Response { + return new MsgRegisterERC20Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterERC20Response { + return new MsgRegisterERC20Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterERC20Response | PlainMessage | undefined, b: MsgRegisterERC20Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterERC20Response, a, b); + } +} + +/** + * MsgToggleConversion is the Msg/MsgToggleConversion request type for toggling + * an Erc20 contract conversion capability. + * + * @generated from message evmos.erc20.v1.MsgToggleConversion + */ +export class MsgToggleConversion extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * token identifier can be either the hex contract address of the ERC20 or the + * Cosmos base denomination + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgToggleConversion"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleConversion { + return new MsgToggleConversion().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleConversion { + return new MsgToggleConversion().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleConversion { + return new MsgToggleConversion().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleConversion | PlainMessage | undefined, b: MsgToggleConversion | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleConversion, a, b); + } +} + +/** + * MsgToggleConversionResponse defines the response structure for executing a + * ToggleConversion message. + * + * @generated from message evmos.erc20.v1.MsgToggleConversionResponse + */ +export class MsgToggleConversionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.erc20.v1.MsgToggleConversionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleConversionResponse { + return new MsgToggleConversionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleConversionResponse { + return new MsgToggleConversionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleConversionResponse { + return new MsgToggleConversionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleConversionResponse | PlainMessage | undefined, b: MsgToggleConversionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleConversionResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/inflation/v1/genesis_pb.ts b/src/protobufs/evmos/inflation/v1/genesis_pb.ts new file mode 100644 index 00000000..a7c048bf --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/genesis_pb.ts @@ -0,0 +1,150 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/inflation/v1/genesis.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ExponentialCalculation, InflationDistribution } from "./inflation_pb.js"; + +/** + * GenesisState defines the inflation module's genesis state. + * + * @generated from message evmos.inflation.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: evmos.inflation.v1.Params params = 1; + */ + params?: Params; + + /** + * period is the amount of past periods, based on the epochs per period param + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * epoch_identifier for inflation + * + * @generated from field: string epoch_identifier = 3; + */ + epochIdentifier = ""; + + /** + * epochs_per_period is the number of epochs after which inflation is recalculated + * + * @generated from field: int64 epochs_per_period = 4; + */ + epochsPerPeriod = protoInt64.zero; + + /** + * skipped_epochs is the number of epochs that have passed while inflation is disabled + * + * @generated from field: uint64 skipped_epochs = 5; + */ + skippedEpochs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "epochs_per_period", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "skipped_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params holds parameters for the inflation module. + * + * @generated from message evmos.inflation.v1.Params + */ +export class Params extends Message { + /** + * mint_denom specifies the type of coin to mint + * + * @generated from field: string mint_denom = 1; + */ + mintDenom = ""; + + /** + * exponential_calculation takes in the variables to calculate exponential inflation + * + * @generated from field: evmos.inflation.v1.ExponentialCalculation exponential_calculation = 2; + */ + exponentialCalculation?: ExponentialCalculation; + + /** + * inflation_distribution of the minted denom + * + * @generated from field: evmos.inflation.v1.InflationDistribution inflation_distribution = 3; + */ + inflationDistribution?: InflationDistribution; + + /** + * enable_inflation is the parameter that enables inflation and halts increasing the skipped_epochs + * + * @generated from field: bool enable_inflation = 4; + */ + enableInflation = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "exponential_calculation", kind: "message", T: ExponentialCalculation }, + { no: 3, name: "inflation_distribution", kind: "message", T: InflationDistribution }, + { no: 4, name: "enable_inflation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/evmos/inflation/v1/inflation_pb.ts b/src/protobufs/evmos/inflation/v1/inflation_pb.ts new file mode 100644 index 00000000..1f03b3e5 --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/inflation_pb.ts @@ -0,0 +1,155 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/inflation/v1/inflation.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * InflationDistribution defines the distribution in which inflation is + * allocated through minting on each epoch (staking, incentives, community). It + * excludes the team vesting distribution, as this is minted once at genesis. + * The initial InflationDistribution can be calculated from the Evmos Token + * Model like this: + * mintDistribution1 = distribution1 / (1 - teamVestingDistribution) + * 0.5333333 = 40% / (1 - 25%) + * + * @generated from message evmos.inflation.v1.InflationDistribution + */ +export class InflationDistribution extends Message { + /** + * staking_rewards defines the proportion of the minted minted_denom that is + * to be allocated as staking rewards + * + * @generated from field: string staking_rewards = 1; + */ + stakingRewards = ""; + + /** + * Deprecated: usage_incentives defines the proportion of the minted minted_denom that is + * to be allocated to the incentives module address + * + * @generated from field: string usage_incentives = 2 [deprecated = true]; + * @deprecated + */ + usageIncentives = ""; + + /** + * community_pool defines the proportion of the minted minted_denom that is to + * be allocated to the community pool + * + * @generated from field: string community_pool = 3; + */ + communityPool = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.InflationDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "usage_incentives", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InflationDistribution { + return new InflationDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InflationDistribution { + return new InflationDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InflationDistribution { + return new InflationDistribution().fromJsonString(jsonString, options); + } + + static equals(a: InflationDistribution | PlainMessage | undefined, b: InflationDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(InflationDistribution, a, b); + } +} + +/** + * ExponentialCalculation holds factors to calculate exponential inflation on + * each period. Calculation reference: + * periodProvision = exponentialDecay * bondingIncentive + * f(x) = (a * (1 - r) ^ x + c) * (1 + max_variance - bondedRatio * + * (max_variance / bonding_target)) + * + * @generated from message evmos.inflation.v1.ExponentialCalculation + */ +export class ExponentialCalculation extends Message { + /** + * a defines the initial value + * + * @generated from field: string a = 1; + */ + a = ""; + + /** + * r defines the reduction factor + * + * @generated from field: string r = 2; + */ + r = ""; + + /** + * c defines the parameter for long term inflation + * + * @generated from field: string c = 3; + */ + c = ""; + + /** + * bonding_target + * + * @generated from field: string bonding_target = 4; + */ + bondingTarget = ""; + + /** + * max_variance + * + * @generated from field: string max_variance = 5; + */ + maxVariance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.ExponentialCalculation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "a", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "c", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bonding_target", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_variance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExponentialCalculation { + return new ExponentialCalculation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExponentialCalculation { + return new ExponentialCalculation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExponentialCalculation { + return new ExponentialCalculation().fromJsonString(jsonString, options); + } + + static equals(a: ExponentialCalculation | PlainMessage | undefined, b: ExponentialCalculation | PlainMessage | undefined): boolean { + return proto3.util.equals(ExponentialCalculation, a, b); + } +} + diff --git a/src/protobufs/evmos/inflation/v1/query_cosmes.ts b/src/protobufs/evmos/inflation/v1/query_cosmes.ts new file mode 100644 index 00000000..21781093 --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/query_cosmes.ts @@ -0,0 +1,85 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/inflation/v1/query.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCirculatingSupplyRequest, QueryCirculatingSupplyResponse, QueryEpochMintProvisionRequest, QueryEpochMintProvisionResponse, QueryInflationRateRequest, QueryInflationRateResponse, QueryParamsRequest, QueryParamsResponse, QueryPeriodRequest, QueryPeriodResponse, QuerySkippedEpochsRequest, QuerySkippedEpochsResponse } from "./query_pb.js"; + +const TYPE_NAME = "evmos.inflation.v1.Query"; + +/** + * Period retrieves current period. + * + * @generated from rpc evmos.inflation.v1.Query.Period + */ +export const QueryPeriodService = { + typeName: TYPE_NAME, + method: "Period", + Request: QueryPeriodRequest, + Response: QueryPeriodResponse, +} as const; + +/** + * EpochMintProvision retrieves current minting epoch provision value. + * + * @generated from rpc evmos.inflation.v1.Query.EpochMintProvision + */ +export const QueryEpochMintProvisionService = { + typeName: TYPE_NAME, + method: "EpochMintProvision", + Request: QueryEpochMintProvisionRequest, + Response: QueryEpochMintProvisionResponse, +} as const; + +/** + * SkippedEpochs retrieves the total number of skipped epochs. + * + * @generated from rpc evmos.inflation.v1.Query.SkippedEpochs + */ +export const QuerySkippedEpochsService = { + typeName: TYPE_NAME, + method: "SkippedEpochs", + Request: QuerySkippedEpochsRequest, + Response: QuerySkippedEpochsResponse, +} as const; + +/** + * CirculatingSupply retrieves the total number of tokens that are in + * circulation (i.e. excluding unvested tokens). + * + * @generated from rpc evmos.inflation.v1.Query.CirculatingSupply + */ +export const QueryCirculatingSupplyService = { + typeName: TYPE_NAME, + method: "CirculatingSupply", + Request: QueryCirculatingSupplyRequest, + Response: QueryCirculatingSupplyResponse, +} as const; + +/** + * InflationRate retrieves the inflation rate of the current period. + * + * @generated from rpc evmos.inflation.v1.Query.InflationRate + */ +export const QueryInflationRateService = { + typeName: TYPE_NAME, + method: "InflationRate", + Request: QueryInflationRateRequest, + Response: QueryInflationRateResponse, +} as const; + +/** + * Params retrieves the total set of minting parameters. + * + * @generated from rpc evmos.inflation.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/evmos/inflation/v1/query_pb.ts b/src/protobufs/evmos/inflation/v1/query_pb.ts new file mode 100644 index 00000000..ca88424d --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/query_pb.ts @@ -0,0 +1,465 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/inflation/v1/query.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./genesis_pb.js"; + +/** + * QueryPeriodRequest is the request type for the Query/Period RPC method. + * + * @generated from message evmos.inflation.v1.QueryPeriodRequest + */ +export class QueryPeriodRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryPeriodRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeriodRequest | PlainMessage | undefined, b: QueryPeriodRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeriodRequest, a, b); + } +} + +/** + * QueryPeriodResponse is the response type for the Query/Period RPC method. + * + * @generated from message evmos.inflation.v1.QueryPeriodResponse + */ +export class QueryPeriodResponse extends Message { + /** + * period is the current minting per epoch provision value. + * + * @generated from field: uint64 period = 1; + */ + period = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryPeriodResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeriodResponse | PlainMessage | undefined, b: QueryPeriodResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeriodResponse, a, b); + } +} + +/** + * QueryEpochMintProvisionRequest is the request type for the + * Query/EpochMintProvision RPC method. + * + * @generated from message evmos.inflation.v1.QueryEpochMintProvisionRequest + */ +export class QueryEpochMintProvisionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryEpochMintProvisionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochMintProvisionRequest | PlainMessage | undefined, b: QueryEpochMintProvisionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochMintProvisionRequest, a, b); + } +} + +/** + * QueryEpochMintProvisionResponse is the response type for the + * Query/EpochMintProvision RPC method. + * + * @generated from message evmos.inflation.v1.QueryEpochMintProvisionResponse + */ +export class QueryEpochMintProvisionResponse extends Message { + /** + * epoch_mint_provision is the current minting per epoch provision value. + * + * @generated from field: cosmos.base.v1beta1.DecCoin epoch_mint_provision = 1; + */ + epochMintProvision?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryEpochMintProvisionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_mint_provision", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochMintProvisionResponse | PlainMessage | undefined, b: QueryEpochMintProvisionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochMintProvisionResponse, a, b); + } +} + +/** + * QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC + * method. + * + * @generated from message evmos.inflation.v1.QuerySkippedEpochsRequest + */ +export class QuerySkippedEpochsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QuerySkippedEpochsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySkippedEpochsRequest | PlainMessage | undefined, b: QuerySkippedEpochsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySkippedEpochsRequest, a, b); + } +} + +/** + * QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs + * RPC method. + * + * @generated from message evmos.inflation.v1.QuerySkippedEpochsResponse + */ +export class QuerySkippedEpochsResponse extends Message { + /** + * skipped_epochs is the number of epochs that the inflation module has been disabled. + * + * @generated from field: uint64 skipped_epochs = 1; + */ + skippedEpochs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QuerySkippedEpochsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "skipped_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySkippedEpochsResponse | PlainMessage | undefined, b: QuerySkippedEpochsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySkippedEpochsResponse, a, b); + } +} + +/** + * QueryCirculatingSupplyRequest is the request type for the + * Query/CirculatingSupply RPC method. + * + * @generated from message evmos.inflation.v1.QueryCirculatingSupplyRequest + */ +export class QueryCirculatingSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryCirculatingSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyRequest | PlainMessage | undefined, b: QueryCirculatingSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyRequest, a, b); + } +} + +/** + * QueryCirculatingSupplyResponse is the response type for the + * Query/CirculatingSupply RPC method. + * + * @generated from message evmos.inflation.v1.QueryCirculatingSupplyResponse + */ +export class QueryCirculatingSupplyResponse extends Message { + /** + * circulating_supply is the total amount of coins in circulation + * + * @generated from field: cosmos.base.v1beta1.DecCoin circulating_supply = 1; + */ + circulatingSupply?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryCirculatingSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "circulating_supply", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyResponse | PlainMessage | undefined, b: QueryCirculatingSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyResponse, a, b); + } +} + +/** + * QueryInflationRateRequest is the request type for the Query/InflationRate RPC + * method. + * + * @generated from message evmos.inflation.v1.QueryInflationRateRequest + */ +export class QueryInflationRateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryInflationRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationRateRequest | PlainMessage | undefined, b: QueryInflationRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationRateRequest, a, b); + } +} + +/** + * QueryInflationRateResponse is the response type for the Query/InflationRate + * RPC method. + * + * @generated from message evmos.inflation.v1.QueryInflationRateResponse + */ +export class QueryInflationRateResponse extends Message { + /** + * inflation_rate by which the total supply increases within one period + * + * @generated from field: string inflation_rate = 1; + */ + inflationRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryInflationRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationRateResponse | PlainMessage | undefined, b: QueryInflationRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationRateResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message evmos.inflation.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message evmos.inflation.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: evmos.inflation.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/inflation/v1/tx_cosmes.ts b/src/protobufs/evmos/inflation/v1/tx_cosmes.ts new file mode 100644 index 00000000..3a0b7b9a --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/tx_cosmes.ts @@ -0,0 +1,25 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/inflation/v1/tx.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "evmos.inflation.v1.Msg"; + +/** + * UpdateParams defined a governance operation for updating the x/inflation module parameters. + * The authority is hard-coded to the Cosmos SDK x/gov module account + * + * @generated from rpc evmos.inflation.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/evmos/inflation/v1/tx_pb.ts b/src/protobufs/evmos/inflation/v1/tx_pb.ts new file mode 100644 index 00000000..f39c3e10 --- /dev/null +++ b/src/protobufs/evmos/inflation/v1/tx_pb.ts @@ -0,0 +1,96 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/inflation/v1/tx.proto (package evmos.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./genesis_pb.js"; + +/** + * MsgUpdateParams defines a Msg for updating the x/inflation module parameters. + * + * @generated from message evmos.inflation.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/inflation parameters to update. + * NOTE: All parameters must be supplied. + * + * @generated from field: evmos.inflation.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message evmos.inflation.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.inflation.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/vesting/v1/vesting_pb.ts b/src/protobufs/evmos/vesting/v1/vesting_pb.ts new file mode 100644 index 00000000..441b0d60 --- /dev/null +++ b/src/protobufs/evmos/vesting/v1/vesting_pb.ts @@ -0,0 +1,89 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/vesting/v1/vesting.proto (package evmos.vesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { BaseVestingAccount, Period } from "../../../cosmos/vesting/v1beta1/vesting_pb.js"; + +/** + * ClawbackVestingAccount implements the VestingAccount interface. It provides + * an account that can hold contributions subject to "lockup" (like a + * PeriodicVestingAccount), or vesting which is subject to clawback + * of unvested tokens, or a combination (tokens vest, but are still locked). + * + * @generated from message evmos.vesting.v1.ClawbackVestingAccount + */ +export class ClawbackVestingAccount extends Message { + /** + * base_vesting_account implements the VestingAccount interface. It contains + * all the necessary fields needed for any vesting account implementation + * + * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; + */ + baseVestingAccount?: BaseVestingAccount; + + /** + * funder_address specifies the account which can perform clawback + * + * @generated from field: string funder_address = 2; + */ + funderAddress = ""; + + /** + * start_time defines the time at which the vesting period begins + * + * @generated from field: google.protobuf.Timestamp start_time = 3; + */ + startTime?: Timestamp; + + /** + * lockup_periods defines the unlocking schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period lockup_periods = 4; + */ + lockupPeriods: Period[] = []; + + /** + * vesting_periods defines the vesting schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 5; + */ + vestingPeriods: Period[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v1.ClawbackVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, + { no: 2, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "message", T: Timestamp }, + { no: 4, name: "lockup_periods", kind: "message", T: Period, repeated: true }, + { no: 5, name: "vesting_periods", kind: "message", T: Period, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: ClawbackVestingAccount | PlainMessage | undefined, b: ClawbackVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(ClawbackVestingAccount, a, b); + } +} + diff --git a/src/protobufs/evmos/vesting/v2/events_pb.ts b/src/protobufs/evmos/vesting/v2/events_pb.ts new file mode 100644 index 00000000..71f15e94 --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/events_pb.ts @@ -0,0 +1,240 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/vesting/v2/events.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * EventCreateClawbackVestingAccount defines the event type + * for creating a clawback vesting account + * + * @generated from message evmos.vesting.v2.EventCreateClawbackVestingAccount + */ +export class EventCreateClawbackVestingAccount extends Message { + /** + * funder is the address of the funder + * + * @generated from field: string funder = 1; + */ + funder = ""; + + /** + * vesting_account is the address of the created vesting account + * + * @generated from field: string vesting_account = 2; + */ + vestingAccount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.EventCreateClawbackVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateClawbackVestingAccount { + return new EventCreateClawbackVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateClawbackVestingAccount { + return new EventCreateClawbackVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreateClawbackVestingAccount { + return new EventCreateClawbackVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: EventCreateClawbackVestingAccount | PlainMessage | undefined, b: EventCreateClawbackVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreateClawbackVestingAccount, a, b); + } +} + +/** + * EventFundVestingAccount defines the event type for funding a vesting account + * + * @generated from message evmos.vesting.v2.EventFundVestingAccount + */ +export class EventFundVestingAccount extends Message { + /** + * funder is the address of the funder + * + * @generated from field: string funder = 1; + */ + funder = ""; + + /** + * coins to be vested + * + * @generated from field: string coins = 2; + */ + coins = ""; + + /** + * start_time is the time when the coins start to vest + * + * @generated from field: string start_time = 3; + */ + startTime = ""; + + /** + * vesting_account is the address of the recipient + * + * @generated from field: string vesting_account = 5; + */ + vestingAccount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.EventFundVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coins", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "vesting_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFundVestingAccount { + return new EventFundVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFundVestingAccount { + return new EventFundVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFundVestingAccount { + return new EventFundVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: EventFundVestingAccount | PlainMessage | undefined, b: EventFundVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFundVestingAccount, a, b); + } +} + +/** + * EventClawback defines the event type for clawback + * + * @generated from message evmos.vesting.v2.EventClawback + */ +export class EventClawback extends Message { + /** + * funder is the address of the funder + * + * @generated from field: string funder = 1; + */ + funder = ""; + + /** + * account is the address of the account + * + * @generated from field: string account = 2; + */ + account = ""; + + /** + * destination is the address of the destination + * + * @generated from field: string destination = 3; + */ + destination = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.EventClawback"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClawback { + return new EventClawback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClawback { + return new EventClawback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClawback { + return new EventClawback().fromJsonString(jsonString, options); + } + + static equals(a: EventClawback | PlainMessage | undefined, b: EventClawback | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClawback, a, b); + } +} + +/** + * EventUpdateVestingFunder defines the event type for updating the vesting funder + * + * @generated from message evmos.vesting.v2.EventUpdateVestingFunder + */ +export class EventUpdateVestingFunder extends Message { + /** + * funder is the address of the funder + * + * @generated from field: string funder = 1; + */ + funder = ""; + + /** + * account is the address of the account + * + * @generated from field: string account = 2; + */ + account = ""; + + /** + * new_funder is the address of the new funder + * + * @generated from field: string new_funder = 3; + */ + newFunder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.EventUpdateVestingFunder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_funder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUpdateVestingFunder { + return new EventUpdateVestingFunder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUpdateVestingFunder { + return new EventUpdateVestingFunder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUpdateVestingFunder { + return new EventUpdateVestingFunder().fromJsonString(jsonString, options); + } + + static equals(a: EventUpdateVestingFunder | PlainMessage | undefined, b: EventUpdateVestingFunder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUpdateVestingFunder, a, b); + } +} + diff --git a/src/protobufs/evmos/vesting/v2/query_cosmes.ts b/src/protobufs/evmos/vesting/v2/query_cosmes.ts new file mode 100644 index 00000000..a303099c --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/query_cosmes.ts @@ -0,0 +1,24 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/vesting/v2/query.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBalancesRequest, QueryBalancesResponse } from "./query_pb.js"; + +const TYPE_NAME = "evmos.vesting.v2.Query"; + +/** + * Balances retrieves the unvested, vested and locked tokens for a vesting account + * + * @generated from rpc evmos.vesting.v2.Query.Balances + */ +export const QueryBalancesService = { + typeName: TYPE_NAME, + method: "Balances", + Request: QueryBalancesRequest, + Response: QueryBalancesResponse, +} as const; + diff --git a/src/protobufs/evmos/vesting/v2/query_pb.ts b/src/protobufs/evmos/vesting/v2/query_pb.ts new file mode 100644 index 00000000..36cd4ef9 --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/query_pb.ts @@ -0,0 +1,111 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/vesting/v2/query.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryBalancesRequest is the request type for the Query/Balances RPC method. + * + * @generated from message evmos.vesting.v2.QueryBalancesRequest + */ +export class QueryBalancesRequest extends Message { + /** + * address of the clawback vesting account + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.QueryBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalancesRequest { + return new QueryBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalancesRequest { + return new QueryBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalancesRequest { + return new QueryBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalancesRequest | PlainMessage | undefined, b: QueryBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalancesRequest, a, b); + } +} + +/** + * QueryBalancesResponse is the response type for the Query/Balances RPC + * method. + * + * @generated from message evmos.vesting.v2.QueryBalancesResponse + */ +export class QueryBalancesResponse extends Message { + /** + * locked defines the current amount of locked tokens + * + * @generated from field: repeated cosmos.base.v1beta1.Coin locked = 1; + */ + locked: Coin[] = []; + + /** + * unvested defines the current amount of unvested tokens + * + * @generated from field: repeated cosmos.base.v1beta1.Coin unvested = 2; + */ + unvested: Coin[] = []; + + /** + * vested defines the current amount of vested tokens + * + * @generated from field: repeated cosmos.base.v1beta1.Coin vested = 3; + */ + vested: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.QueryBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "locked", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "unvested", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "vested", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalancesResponse { + return new QueryBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalancesResponse { + return new QueryBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalancesResponse { + return new QueryBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalancesResponse | PlainMessage | undefined, b: QueryBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalancesResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/vesting/v2/tx_cosmes.ts b/src/protobufs/evmos/vesting/v2/tx_cosmes.ts new file mode 100644 index 00000000..7df9d62a --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/tx_cosmes.ts @@ -0,0 +1,74 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file evmos/vesting/v2/tx.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClawback, MsgClawbackResponse, MsgConvertVestingAccount, MsgConvertVestingAccountResponse, MsgCreateClawbackVestingAccount, MsgCreateClawbackVestingAccountResponse, MsgFundVestingAccount, MsgFundVestingAccountResponse, MsgUpdateVestingFunder, MsgUpdateVestingFunderResponse } from "./tx_pb.js"; + +const TYPE_NAME = "evmos.vesting.v2.Msg"; + +/** + * CreateClawbackVestingAccount creats a vesting account that is subject to clawback. + * + * @generated from rpc evmos.vesting.v2.Msg.CreateClawbackVestingAccount + */ +export const MsgCreateClawbackVestingAccountService = { + typeName: TYPE_NAME, + method: "CreateClawbackVestingAccount", + Request: MsgCreateClawbackVestingAccount, + Response: MsgCreateClawbackVestingAccountResponse, +} as const; + +/** + * FundVestingAccount funds an existing ClawbackVestingAccount with tokens + * according to the vesting and lockup schedules. + * + * @generated from rpc evmos.vesting.v2.Msg.FundVestingAccount + */ +export const MsgFundVestingAccountService = { + typeName: TYPE_NAME, + method: "FundVestingAccount", + Request: MsgFundVestingAccount, + Response: MsgFundVestingAccountResponse, +} as const; + +/** + * Clawback removes the unvested tokens from a ClawbackVestingAccount. + * + * @generated from rpc evmos.vesting.v2.Msg.Clawback + */ +export const MsgClawbackService = { + typeName: TYPE_NAME, + method: "Clawback", + Request: MsgClawback, + Response: MsgClawbackResponse, +} as const; + +/** + * UpdateVestingFunder updates the funder address of an existing + * ClawbackVestingAccount. + * + * @generated from rpc evmos.vesting.v2.Msg.UpdateVestingFunder + */ +export const MsgUpdateVestingFunderService = { + typeName: TYPE_NAME, + method: "UpdateVestingFunder", + Request: MsgUpdateVestingFunder, + Response: MsgUpdateVestingFunderResponse, +} as const; + +/** + * ConvertVestingAccount converts a ClawbackVestingAccount to an Eth account + * + * @generated from rpc evmos.vesting.v2.Msg.ConvertVestingAccount + */ +export const MsgConvertVestingAccountService = { + typeName: TYPE_NAME, + method: "ConvertVestingAccount", + Request: MsgConvertVestingAccount, + Response: MsgConvertVestingAccountResponse, +} as const; + diff --git a/src/protobufs/evmos/vesting/v2/tx_pb.ts b/src/protobufs/evmos/vesting/v2/tx_pb.ts new file mode 100644 index 00000000..ec042362 --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/tx_pb.ts @@ -0,0 +1,481 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/vesting/v2/tx.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Period } from "../../../cosmos/vesting/v1beta1/vesting_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgCreateClawbackVestingAccount defines a message that enables creating a + * ClawbackVestingAccount. + * + * @generated from message evmos.vesting.v2.MsgCreateClawbackVestingAccount + */ +export class MsgCreateClawbackVestingAccount extends Message { + /** + * funder_address specifies the account that will be able to fund the vesting account + * + * @generated from field: string funder_address = 1; + */ + funderAddress = ""; + + /** + * vesting_address specifies the address that will receive the vesting tokens + * + * @generated from field: string vesting_address = 2; + */ + vestingAddress = ""; + + /** + * enable_gov_clawback specifies whether the governance module can clawback this account + * + * @generated from field: bool enable_gov_clawback = 3; + */ + enableGovClawback = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgCreateClawbackVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "enable_gov_clawback", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClawbackVestingAccount { + return new MsgCreateClawbackVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClawbackVestingAccount { + return new MsgCreateClawbackVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateClawbackVestingAccount { + return new MsgCreateClawbackVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateClawbackVestingAccount | PlainMessage | undefined, b: MsgCreateClawbackVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateClawbackVestingAccount, a, b); + } +} + +/** + * MsgCreateClawbackVestingAccountResponse defines the + * MsgCreateClawbackVestingAccount response type. + * + * @generated from message evmos.vesting.v2.MsgCreateClawbackVestingAccountResponse + */ +export class MsgCreateClawbackVestingAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgCreateClawbackVestingAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClawbackVestingAccountResponse { + return new MsgCreateClawbackVestingAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClawbackVestingAccountResponse { + return new MsgCreateClawbackVestingAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateClawbackVestingAccountResponse { + return new MsgCreateClawbackVestingAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateClawbackVestingAccountResponse | PlainMessage | undefined, b: MsgCreateClawbackVestingAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateClawbackVestingAccountResponse, a, b); + } +} + +/** + * MsgFundVestingAccount defines a message that enables funding an existing clawback + * vesting account. + * + * @generated from message evmos.vesting.v2.MsgFundVestingAccount + */ +export class MsgFundVestingAccount extends Message { + /** + * funder_address specifies the account that funds the vesting account + * + * @generated from field: string funder_address = 1; + */ + funderAddress = ""; + + /** + * vesting_address specifies the account that receives the funds + * + * @generated from field: string vesting_address = 2; + */ + vestingAddress = ""; + + /** + * start_time defines the time at which the vesting period begins + * + * @generated from field: google.protobuf.Timestamp start_time = 3; + */ + startTime?: Timestamp; + + /** + * lockup_periods defines the unlocking schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period lockup_periods = 4; + */ + lockupPeriods: Period[] = []; + + /** + * vesting_periods defines the vesting schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 5; + */ + vestingPeriods: Period[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgFundVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "message", T: Timestamp }, + { no: 4, name: "lockup_periods", kind: "message", T: Period, repeated: true }, + { no: 5, name: "vesting_periods", kind: "message", T: Period, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundVestingAccount { + return new MsgFundVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundVestingAccount { + return new MsgFundVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundVestingAccount { + return new MsgFundVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundVestingAccount | PlainMessage | undefined, b: MsgFundVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundVestingAccount, a, b); + } +} + +/** + * MsgFundVestingAccountResponse defines the + * MsgFundVestingAccount response type. + * + * @generated from message evmos.vesting.v2.MsgFundVestingAccountResponse + */ +export class MsgFundVestingAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgFundVestingAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundVestingAccountResponse { + return new MsgFundVestingAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundVestingAccountResponse { + return new MsgFundVestingAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundVestingAccountResponse { + return new MsgFundVestingAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundVestingAccountResponse | PlainMessage | undefined, b: MsgFundVestingAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundVestingAccountResponse, a, b); + } +} + +/** + * MsgClawback defines a message that removes unvested tokens from a + * ClawbackVestingAccount. + * + * @generated from message evmos.vesting.v2.MsgClawback + */ +export class MsgClawback extends Message { + /** + * funder_address is the address which funded the account + * + * @generated from field: string funder_address = 1; + */ + funderAddress = ""; + + /** + * account_address is the address of the ClawbackVestingAccount to claw back + * from. + * + * @generated from field: string account_address = 2; + */ + accountAddress = ""; + + /** + * dest_address specifies where the clawed-back tokens should be transferred + * to. If empty, the tokens will be transferred back to the original funder of + * the account. + * + * @generated from field: string dest_address = 3; + */ + destAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgClawback"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "dest_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClawback { + return new MsgClawback().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClawback { + return new MsgClawback().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClawback { + return new MsgClawback().fromJsonString(jsonString, options); + } + + static equals(a: MsgClawback | PlainMessage | undefined, b: MsgClawback | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClawback, a, b); + } +} + +/** + * MsgClawbackResponse defines the MsgClawback response type. + * + * @generated from message evmos.vesting.v2.MsgClawbackResponse + */ +export class MsgClawbackResponse extends Message { + /** + * coins is the slice of clawed back coins + * + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgClawbackResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClawbackResponse { + return new MsgClawbackResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClawbackResponse { + return new MsgClawbackResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClawbackResponse { + return new MsgClawbackResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClawbackResponse | PlainMessage | undefined, b: MsgClawbackResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClawbackResponse, a, b); + } +} + +/** + * MsgUpdateVestingFunder defines a message that updates the funder account of a + * ClawbackVestingAccount. + * + * @generated from message evmos.vesting.v2.MsgUpdateVestingFunder + */ +export class MsgUpdateVestingFunder extends Message { + /** + * funder_address is the current funder address of the ClawbackVestingAccount + * + * @generated from field: string funder_address = 1; + */ + funderAddress = ""; + + /** + * new_funder_address is the new address to replace the existing funder_address + * + * @generated from field: string new_funder_address = 2; + */ + newFunderAddress = ""; + + /** + * vesting_address is the address of the ClawbackVestingAccount being updated + * + * @generated from field: string vesting_address = 3; + */ + vestingAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgUpdateVestingFunder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vesting_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVestingFunder { + return new MsgUpdateVestingFunder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVestingFunder { + return new MsgUpdateVestingFunder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVestingFunder { + return new MsgUpdateVestingFunder().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVestingFunder | PlainMessage | undefined, b: MsgUpdateVestingFunder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVestingFunder, a, b); + } +} + +/** + * MsgUpdateVestingFunderResponse defines the MsgUpdateVestingFunder response + * type. + * + * @generated from message evmos.vesting.v2.MsgUpdateVestingFunderResponse + */ +export class MsgUpdateVestingFunderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgUpdateVestingFunderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateVestingFunderResponse { + return new MsgUpdateVestingFunderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateVestingFunderResponse { + return new MsgUpdateVestingFunderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateVestingFunderResponse { + return new MsgUpdateVestingFunderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateVestingFunderResponse | PlainMessage | undefined, b: MsgUpdateVestingFunderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateVestingFunderResponse, a, b); + } +} + +/** + * MsgConvertVestingAccount defines a message that enables converting a vesting account to an eth account + * + * @generated from message evmos.vesting.v2.MsgConvertVestingAccount + */ +export class MsgConvertVestingAccount extends Message { + /** + * vesting_address is the address of the vesting account to convert + * + * @generated from field: string vesting_address = 1; + */ + vestingAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgConvertVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vesting_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertVestingAccount { + return new MsgConvertVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertVestingAccount { + return new MsgConvertVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertVestingAccount { + return new MsgConvertVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertVestingAccount | PlainMessage | undefined, b: MsgConvertVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertVestingAccount, a, b); + } +} + +/** + * MsgConvertVestingAccountResponse defines the MsgConvertVestingAccount response type. + * + * @generated from message evmos.vesting.v2.MsgConvertVestingAccountResponse + */ +export class MsgConvertVestingAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.MsgConvertVestingAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertVestingAccountResponse { + return new MsgConvertVestingAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertVestingAccountResponse { + return new MsgConvertVestingAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertVestingAccountResponse { + return new MsgConvertVestingAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertVestingAccountResponse | PlainMessage | undefined, b: MsgConvertVestingAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertVestingAccountResponse, a, b); + } +} + diff --git a/src/protobufs/evmos/vesting/v2/vesting_pb.ts b/src/protobufs/evmos/vesting/v2/vesting_pb.ts new file mode 100644 index 00000000..6f1faa57 --- /dev/null +++ b/src/protobufs/evmos/vesting/v2/vesting_pb.ts @@ -0,0 +1,159 @@ +// Copyright Tharsis Labs Ltd.(Evmos) +// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE) + +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file evmos/vesting/v2/vesting.proto (package evmos.vesting.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { BaseVestingAccount, Period } from "../../../cosmos/vesting/v1beta1/vesting_pb.js"; + +/** + * ClawbackVestingAccount implements the VestingAccount interface. It provides + * an account that can hold contributions subject to "lockup" (like a + * PeriodicVestingAccount), or vesting which is subject to clawback + * of unvested tokens, or a combination (tokens vest, but are still locked). + * + * @generated from message evmos.vesting.v2.ClawbackVestingAccount + */ +export class ClawbackVestingAccount extends Message { + /** + * base_vesting_account implements the VestingAccount interface. It contains + * all the necessary fields needed for any vesting account implementation + * + * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; + */ + baseVestingAccount?: BaseVestingAccount; + + /** + * funder_address specifies the account which can perform clawback + * + * @generated from field: string funder_address = 2; + */ + funderAddress = ""; + + /** + * start_time defines the time at which the vesting period begins + * + * @generated from field: google.protobuf.Timestamp start_time = 3; + */ + startTime?: Timestamp; + + /** + * lockup_periods defines the unlocking schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period lockup_periods = 4; + */ + lockupPeriods: Period[] = []; + + /** + * vesting_periods defines the vesting schedule relative to the start_time + * + * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 5; + */ + vestingPeriods: Period[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.ClawbackVestingAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, + { no: 2, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "message", T: Timestamp }, + { no: 4, name: "lockup_periods", kind: "message", T: Period, repeated: true }, + { no: 5, name: "vesting_periods", kind: "message", T: Period, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClawbackVestingAccount { + return new ClawbackVestingAccount().fromJsonString(jsonString, options); + } + + static equals(a: ClawbackVestingAccount | PlainMessage | undefined, b: ClawbackVestingAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(ClawbackVestingAccount, a, b); + } +} + +/** + * ClawbackProposal is a gov Content type to clawback funds + * from a vesting account that has this functionality enabled. + * + * @generated from message evmos.vesting.v2.ClawbackProposal + */ +export class ClawbackProposal extends Message { + /** + * title of the proposal + * + * @generated from field: string title = 1; + */ + title = ""; + + /** + * description of the proposal + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * address is the vesting account address + * to clawback the funds from + * + * @generated from field: string address = 3; + */ + address = ""; + + /** + * destination_address is the address that will receive + * the clawbacked funds from the given vesting account. When + * empty, proposal will return the coins to the vesting + * account funder. + * + * @generated from field: string destination_address = 4; + */ + destinationAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "evmos.vesting.v2.ClawbackProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "destination_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClawbackProposal { + return new ClawbackProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClawbackProposal { + return new ClawbackProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClawbackProposal { + return new ClawbackProposal().fromJsonString(jsonString, options); + } + + static equals(a: ClawbackProposal | PlainMessage | undefined, b: ClawbackProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ClawbackProposal, a, b); + } +} + diff --git a/src/protobufs/gaia/globalfee/v1beta1/genesis_pb.ts b/src/protobufs/gaia/globalfee/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..6226662f --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/genesis.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState - initial state of module + * + * @generated from message gaia.globalfee.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params of this module + * + * @generated from field: gaia.globalfee.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/gaia/globalfee/v1beta1/params_pb.ts b/src/protobufs/gaia/globalfee/v1beta1/params_pb.ts new file mode 100644 index 00000000..332e29bd --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/params_pb.ts @@ -0,0 +1,73 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/params.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the set of module parameters. + * + * @generated from message gaia.globalfee.v1beta1.Params + */ +export class Params extends Message { + /** + * minimum_gas_prices stores the minimum gas price(s) for all TX on the chain. + * When multiple coins are defined then they are accepted alternatively. + * The list must be sorted by denoms asc. No duplicate denoms or zero amount + * values allowed. For more information see + * https://docs.cosmos.network/main/modules/auth#concepts + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin minimum_gas_prices = 1; + */ + minimumGasPrices: DecCoin[] = []; + + /** + * bypass_min_fee_msg_types defines a list of message type urls + * that are free of fee charge. + * + * @generated from field: repeated string bypass_min_fee_msg_types = 2; + */ + bypassMinFeeMsgTypes: string[] = []; + + /** + * max_total_bypass_min_fee_msg_gas_usage defines the total maximum gas usage + * allowed for a transaction containing only messages of types in bypass_min_fee_msg_types + * to bypass fee charge. + * + * @generated from field: uint64 max_total_bypass_min_fee_msg_gas_usage = 3; + */ + maxTotalBypassMinFeeMsgGasUsage = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minimum_gas_prices", kind: "message", T: DecCoin, repeated: true }, + { no: 2, name: "bypass_min_fee_msg_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "max_total_bypass_min_fee_msg_gas_usage", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/gaia/globalfee/v1beta1/query_cosmes.ts b/src/protobufs/gaia/globalfee/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..40675d3a --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/query_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/query.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "gaia.globalfee.v1beta1.Query"; + +/** + * @generated from rpc gaia.globalfee.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/gaia/globalfee/v1beta1/query_pb.ts b/src/protobufs/gaia/globalfee/v1beta1/query_pb.ts new file mode 100644 index 00000000..b5b75d88 --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/query.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryMinimumGasPricesRequest is the request type for the + * Query/MinimumGasPrices RPC method. + * + * @generated from message gaia.globalfee.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryMinimumGasPricesResponse is the response type for the + * Query/MinimumGasPrices RPC method. + * + * @generated from message gaia.globalfee.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: gaia.globalfee.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/gaia/globalfee/v1beta1/tx_cosmes.ts b/src/protobufs/gaia/globalfee/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..5dd75f65 --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/tx.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "gaia.globalfee.v1beta1.Msg"; + +/** + * @generated from rpc gaia.globalfee.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/gaia/globalfee/v1beta1/tx_pb.ts b/src/protobufs/gaia/globalfee/v1beta1/tx_pb.ts new file mode 100644 index 00000000..da043776 --- /dev/null +++ b/src/protobufs/gaia/globalfee/v1beta1/tx_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/globalfee/v1beta1/tx.proto (package gaia.globalfee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message gaia.globalfee.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/globalfee parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: gaia.globalfee.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message gaia.globalfee.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.globalfee.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/gaia/liquid/v1beta1/genesis_pb.ts b/src/protobufs/gaia/liquid/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..8aa7825c --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/genesis_pb.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/genesis.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params, TokenizeShareRecord } from "./liquid_pb.js"; + +/** + * GenesisState defines the liquid module's genesis state. + * + * @generated from message gaia.liquid.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of related to deposit. + * + * @generated from field: gaia.liquid.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * store tokenize share records to provide reward to record owners + * + * @generated from field: repeated gaia.liquid.v1beta1.TokenizeShareRecord tokenize_share_records = 9; + */ + tokenizeShareRecords: TokenizeShareRecord[] = []; + + /** + * last tokenize share record id, used for next share record id calculation + * + * @generated from field: uint64 last_tokenize_share_record_id = 10; + */ + lastTokenizeShareRecordId = protoInt64.zero; + + /** + * total number of liquid staked tokens at genesis + * + * @generated from field: bytes total_liquid_staked_tokens = 11; + */ + totalLiquidStakedTokens = new Uint8Array(0); + + /** + * tokenize shares locks at genesis + * + * @generated from field: repeated gaia.liquid.v1beta1.TokenizeShareLock tokenize_share_locks = 12; + */ + tokenizeShareLocks: TokenizeShareLock[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 9, name: "tokenize_share_records", kind: "message", T: TokenizeShareRecord, repeated: true }, + { no: 10, name: "last_tokenize_share_record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "total_liquid_staked_tokens", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 12, name: "tokenize_share_locks", kind: "message", T: TokenizeShareLock, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * TokenizeSharesLock required for specifying account locks at genesis + * + * @generated from message gaia.liquid.v1beta1.TokenizeShareLock + */ +export class TokenizeShareLock extends Message { + /** + * Address of the account that is locked + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Status of the lock (LOCKED or LOCK_EXPIRING) + * + * @generated from field: string status = 2; + */ + status = ""; + + /** + * Completion time if the lock is expiring + * + * @generated from field: google.protobuf.Timestamp completion_time = 3; + */ + completionTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.TokenizeShareLock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "completion_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenizeShareLock { + return new TokenizeShareLock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenizeShareLock { + return new TokenizeShareLock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenizeShareLock { + return new TokenizeShareLock().fromJsonString(jsonString, options); + } + + static equals(a: TokenizeShareLock | PlainMessage | undefined, b: TokenizeShareLock | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenizeShareLock, a, b); + } +} + diff --git a/src/protobufs/gaia/liquid/v1beta1/liquid_pb.ts b/src/protobufs/gaia/liquid/v1beta1/liquid_pb.ts new file mode 100644 index 00000000..0bd2c51a --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/liquid_pb.ts @@ -0,0 +1,301 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/liquid.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * TokenizeShareLockStatus indicates whether the address is able to tokenize + * shares + * + * @generated from enum gaia.liquid.v1beta1.TokenizeShareLockStatus + */ +export enum TokenizeShareLockStatus { + /** + * UNSPECIFIED defines an empty tokenize share lock status + * + * @generated from enum value: TOKENIZE_SHARE_LOCK_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * LOCKED indicates the account is locked and cannot tokenize shares + * + * @generated from enum value: TOKENIZE_SHARE_LOCK_STATUS_LOCKED = 1; + */ + LOCKED = 1, + + /** + * UNLOCKED indicates the account is unlocked and can tokenize shares + * + * @generated from enum value: TOKENIZE_SHARE_LOCK_STATUS_UNLOCKED = 2; + */ + UNLOCKED = 2, + + /** + * LOCK_EXPIRING indicates the account is unable to tokenize shares, but + * will be able to tokenize shortly (after 1 unbonding period) + * + * @generated from enum value: TOKENIZE_SHARE_LOCK_STATUS_LOCK_EXPIRING = 3; + */ + LOCK_EXPIRING = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(TokenizeShareLockStatus) +proto3.util.setEnumType(TokenizeShareLockStatus, "gaia.liquid.v1beta1.TokenizeShareLockStatus", [ + { no: 0, name: "TOKENIZE_SHARE_LOCK_STATUS_UNSPECIFIED" }, + { no: 1, name: "TOKENIZE_SHARE_LOCK_STATUS_LOCKED" }, + { no: 2, name: "TOKENIZE_SHARE_LOCK_STATUS_UNLOCKED" }, + { no: 3, name: "TOKENIZE_SHARE_LOCK_STATUS_LOCK_EXPIRING" }, +]); + +/** + * Params defines the parameters for the x/liquid module. + * + * @generated from message gaia.liquid.v1beta1.Params + */ +export class Params extends Message { + /** + * global_liquid_staking_cap represents a cap on the portion of stake that + * comes from liquid staking providers + * + * @generated from field: string global_liquid_staking_cap = 8; + */ + globalLiquidStakingCap = ""; + + /** + * validator_liquid_staking_cap represents a cap on the portion of stake that + * comes from liquid staking providers for a specific validator + * + * @generated from field: string validator_liquid_staking_cap = 9; + */ + validatorLiquidStakingCap = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 8, name: "global_liquid_staking_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "validator_liquid_staking_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * TokenizeShareRecord represents a tokenized delegation + * + * @generated from message gaia.liquid.v1beta1.TokenizeShareRecord + */ +export class TokenizeShareRecord extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * module account take the role of delegator + * + * @generated from field: string module_account = 3; + */ + moduleAccount = ""; + + /** + * validator delegated to for tokenize share record creation + * + * @generated from field: string validator = 4; + */ + validator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.TokenizeShareRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "module_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenizeShareRecord { + return new TokenizeShareRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenizeShareRecord { + return new TokenizeShareRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenizeShareRecord { + return new TokenizeShareRecord().fromJsonString(jsonString, options); + } + + static equals(a: TokenizeShareRecord | PlainMessage | undefined, b: TokenizeShareRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenizeShareRecord, a, b); + } +} + +/** + * PendingTokenizeShareAuthorizations stores a list of addresses that have their + * tokenize share enablement in progress + * + * @generated from message gaia.liquid.v1beta1.PendingTokenizeShareAuthorizations + */ +export class PendingTokenizeShareAuthorizations extends Message { + /** + * @generated from field: repeated string addresses = 1; + */ + addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.PendingTokenizeShareAuthorizations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PendingTokenizeShareAuthorizations { + return new PendingTokenizeShareAuthorizations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PendingTokenizeShareAuthorizations { + return new PendingTokenizeShareAuthorizations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PendingTokenizeShareAuthorizations { + return new PendingTokenizeShareAuthorizations().fromJsonString(jsonString, options); + } + + static equals(a: PendingTokenizeShareAuthorizations | PlainMessage | undefined, b: PendingTokenizeShareAuthorizations | PlainMessage | undefined): boolean { + return proto3.util.equals(PendingTokenizeShareAuthorizations, a, b); + } +} + +/** + * TokenizeShareRecordReward represents the properties of tokenize share + * + * @generated from message gaia.liquid.v1beta1.TokenizeShareRecordReward + */ +export class TokenizeShareRecordReward extends Message { + /** + * @generated from field: uint64 record_id = 1; + */ + recordId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin reward = 2; + */ + reward: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.TokenizeShareRecordReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reward", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenizeShareRecordReward { + return new TokenizeShareRecordReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenizeShareRecordReward { + return new TokenizeShareRecordReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenizeShareRecordReward { + return new TokenizeShareRecordReward().fromJsonString(jsonString, options); + } + + static equals(a: TokenizeShareRecordReward | PlainMessage | undefined, b: TokenizeShareRecordReward | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenizeShareRecordReward, a, b); + } +} + +/** + * LiquidValidator is the storage layout for details about a validator's liquid + * stake. + * + * @generated from message gaia.liquid.v1beta1.LiquidValidator + */ +export class LiquidValidator extends Message { + /** + * operator_address defines the address of the validator's operator; bech + * encoded in JSON. + * + * @generated from field: string operator_address = 1; + */ + operatorAddress = ""; + + /** + * Number of shares either tokenized or owned by a liquid staking provider + * + * @generated from field: string liquid_shares = 3; + */ + liquidShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.LiquidValidator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "liquid_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiquidValidator { + return new LiquidValidator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiquidValidator { + return new LiquidValidator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiquidValidator { + return new LiquidValidator().fromJsonString(jsonString, options); + } + + static equals(a: LiquidValidator | PlainMessage | undefined, b: LiquidValidator | PlainMessage | undefined): boolean { + return proto3.util.equals(LiquidValidator, a, b); + } +} + diff --git a/src/protobufs/gaia/liquid/v1beta1/query_cosmes.ts b/src/protobufs/gaia/liquid/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..491648c3 --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/query_cosmes.ts @@ -0,0 +1,157 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/query.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllTokenizeShareRecordsRequest, QueryAllTokenizeShareRecordsResponse, QueryLastTokenizeShareRecordIdRequest, QueryLastTokenizeShareRecordIdResponse, QueryLiquidValidatorRequest, QueryLiquidValidatorResponse, QueryLiquidValidatorsRequest, QueryLiquidValidatorsResponse, QueryParamsRequest, QueryParamsResponse, QueryTokenizeShareLockInfo, QueryTokenizeShareLockInfoResponse, QueryTokenizeShareRecordByDenomRequest, QueryTokenizeShareRecordByDenomResponse, QueryTokenizeShareRecordByIdRequest, QueryTokenizeShareRecordByIdResponse, QueryTokenizeShareRecordRewardRequest, QueryTokenizeShareRecordRewardResponse, QueryTokenizeShareRecordsOwnedRequest, QueryTokenizeShareRecordsOwnedResponse, QueryTotalLiquidStaked, QueryTotalLiquidStakedResponse, QueryTotalTokenizeSharedAssetsRequest, QueryTotalTokenizeSharedAssetsResponse } from "./query_pb.js"; + +const TYPE_NAME = "gaia.liquid.v1beta1.Query"; + +/** + * LiquidValidators queries all liquid validators. + * + * When called from another module, this query might consume a high amount of + * gas if the pagination field is incorrectly set. + * + * @generated from rpc gaia.liquid.v1beta1.Query.LiquidValidators + */ +export const QueryLiquidValidatorsService = { + typeName: TYPE_NAME, + method: "LiquidValidators", + Request: QueryLiquidValidatorsRequest, + Response: QueryLiquidValidatorsResponse, +} as const; + +/** + * Query for an individual liquid validator by validator address + * + * @generated from rpc gaia.liquid.v1beta1.Query.LiquidValidator + */ +export const QueryLiquidValidatorService = { + typeName: TYPE_NAME, + method: "LiquidValidator", + Request: QueryLiquidValidatorRequest, + Response: QueryLiquidValidatorResponse, +} as const; + +/** + * Query for individual tokenize share record information by share by id + * + * @generated from rpc gaia.liquid.v1beta1.Query.TokenizeShareRecordById + */ +export const QueryTokenizeShareRecordByIdService = { + typeName: TYPE_NAME, + method: "TokenizeShareRecordById", + Request: QueryTokenizeShareRecordByIdRequest, + Response: QueryTokenizeShareRecordByIdResponse, +} as const; + +/** + * Query for individual tokenize share record information by share denom + * + * @generated from rpc gaia.liquid.v1beta1.Query.TokenizeShareRecordByDenom + */ +export const QueryTokenizeShareRecordByDenomService = { + typeName: TYPE_NAME, + method: "TokenizeShareRecordByDenom", + Request: QueryTokenizeShareRecordByDenomRequest, + Response: QueryTokenizeShareRecordByDenomResponse, +} as const; + +/** + * Query tokenize share records by address + * + * @generated from rpc gaia.liquid.v1beta1.Query.TokenizeShareRecordsOwned + */ +export const QueryTokenizeShareRecordsOwnedService = { + typeName: TYPE_NAME, + method: "TokenizeShareRecordsOwned", + Request: QueryTokenizeShareRecordsOwnedRequest, + Response: QueryTokenizeShareRecordsOwnedResponse, +} as const; + +/** + * Query for all tokenize share records + * + * @generated from rpc gaia.liquid.v1beta1.Query.AllTokenizeShareRecords + */ +export const QueryAllTokenizeShareRecordsService = { + typeName: TYPE_NAME, + method: "AllTokenizeShareRecords", + Request: QueryAllTokenizeShareRecordsRequest, + Response: QueryAllTokenizeShareRecordsResponse, +} as const; + +/** + * Query for last tokenize share record id + * + * @generated from rpc gaia.liquid.v1beta1.Query.LastTokenizeShareRecordId + */ +export const QueryLastTokenizeShareRecordIdService = { + typeName: TYPE_NAME, + method: "LastTokenizeShareRecordId", + Request: QueryLastTokenizeShareRecordIdRequest, + Response: QueryLastTokenizeShareRecordIdResponse, +} as const; + +/** + * Query for total tokenized staked assets + * + * @generated from rpc gaia.liquid.v1beta1.Query.TotalTokenizeSharedAssets + */ +export const QueryTotalTokenizeSharedAssetsService = { + typeName: TYPE_NAME, + method: "TotalTokenizeSharedAssets", + Request: QueryTotalTokenizeSharedAssetsRequest, + Response: QueryTotalTokenizeSharedAssetsResponse, +} as const; + +/** + * Query for total liquid staked (including tokenized shares or owned by an + * liquid staking provider) + * + * @generated from rpc gaia.liquid.v1beta1.Query.TotalLiquidStaked + */ +export const QueryTotalLiquidStakedService = { + typeName: TYPE_NAME, + method: "TotalLiquidStaked", + Request: QueryTotalLiquidStaked, + Response: QueryTotalLiquidStakedResponse, +} as const; + +/** + * Query tokenize share locks + * + * @generated from rpc gaia.liquid.v1beta1.Query.TokenizeShareLockInfo + */ +export const QueryTokenizeShareLockInfoService = { + typeName: TYPE_NAME, + method: "TokenizeShareLockInfo", + Request: QueryTokenizeShareLockInfo, + Response: QueryTokenizeShareLockInfoResponse, +} as const; + +/** + * Parameters queries the liquid parameters. + * + * @generated from rpc gaia.liquid.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * TokenizeShareRecordReward queries the tokenize share record rewards + * + * @generated from rpc gaia.liquid.v1beta1.Query.TokenizeShareRecordReward + */ +export const QueryTokenizeShareRecordRewardService = { + typeName: TYPE_NAME, + method: "TokenizeShareRecordReward", + Request: QueryTokenizeShareRecordRewardRequest, + Response: QueryTokenizeShareRecordRewardResponse, +} as const; + diff --git a/src/protobufs/gaia/liquid/v1beta1/query_pb.ts b/src/protobufs/gaia/liquid/v1beta1/query_pb.ts new file mode 100644 index 00000000..11511d3b --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/query_pb.ts @@ -0,0 +1,983 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/query.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { LiquidValidator, Params, TokenizeShareRecord, TokenizeShareRecordReward } from "./liquid_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryLiquidValidatorRequest is the request type for the Query/LiquidValidator + * RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLiquidValidatorRequest + */ +export class QueryLiquidValidatorRequest extends Message { + /** + * @generated from field: string validator_addr = 1; + */ + validatorAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLiquidValidatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidValidatorRequest { + return new QueryLiquidValidatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidValidatorRequest { + return new QueryLiquidValidatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidValidatorRequest { + return new QueryLiquidValidatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidValidatorRequest | PlainMessage | undefined, b: QueryLiquidValidatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidValidatorRequest, a, b); + } +} + +/** + * QueryLiquidValidatorResponse is the response type for the + * Query/LiquidValidator RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLiquidValidatorResponse + */ +export class QueryLiquidValidatorResponse extends Message { + /** + * @generated from field: gaia.liquid.v1beta1.LiquidValidator liquid_validator = 1; + */ + liquidValidator?: LiquidValidator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLiquidValidatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "liquid_validator", kind: "message", T: LiquidValidator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidValidatorResponse { + return new QueryLiquidValidatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidValidatorResponse { + return new QueryLiquidValidatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidValidatorResponse { + return new QueryLiquidValidatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidValidatorResponse | PlainMessage | undefined, b: QueryLiquidValidatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidValidatorResponse, a, b); + } +} + +/** + * QueryLiquidValidatorsRequest is request type for the + * Query/QueryLiquidValidators RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLiquidValidatorsRequest + */ +export class QueryLiquidValidatorsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLiquidValidatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidValidatorsRequest { + return new QueryLiquidValidatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidValidatorsRequest { + return new QueryLiquidValidatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidValidatorsRequest { + return new QueryLiquidValidatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidValidatorsRequest | PlainMessage | undefined, b: QueryLiquidValidatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidValidatorsRequest, a, b); + } +} + +/** + * QueryLiquidValidatorsResponse is response type for the + * Query/QueryLiquidValidators RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLiquidValidatorsResponse + */ +export class QueryLiquidValidatorsResponse extends Message { + /** + * @generated from field: repeated gaia.liquid.v1beta1.LiquidValidator liquid_validators = 1; + */ + liquidValidators: LiquidValidator[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLiquidValidatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "liquid_validators", kind: "message", T: LiquidValidator, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLiquidValidatorsResponse { + return new QueryLiquidValidatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLiquidValidatorsResponse { + return new QueryLiquidValidatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLiquidValidatorsResponse { + return new QueryLiquidValidatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLiquidValidatorsResponse | PlainMessage | undefined, b: QueryLiquidValidatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLiquidValidatorsResponse, a, b); + } +} + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: gaia.liquid.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryTokenizeShareRecordByIdRequest is request type for the + * Query/QueryTokenizeShareRecordById RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordByIdRequest + */ +export class QueryTokenizeShareRecordByIdRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordByIdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordByIdRequest { + return new QueryTokenizeShareRecordByIdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordByIdRequest { + return new QueryTokenizeShareRecordByIdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordByIdRequest { + return new QueryTokenizeShareRecordByIdRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordByIdRequest | PlainMessage | undefined, b: QueryTokenizeShareRecordByIdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordByIdRequest, a, b); + } +} + +/** + * QueryTokenizeShareRecordByIdRequest is response type for the + * Query/QueryTokenizeShareRecordById RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordByIdResponse + */ +export class QueryTokenizeShareRecordByIdResponse extends Message { + /** + * @generated from field: gaia.liquid.v1beta1.TokenizeShareRecord record = 1; + */ + record?: TokenizeShareRecord; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordByIdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "record", kind: "message", T: TokenizeShareRecord }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordByIdResponse { + return new QueryTokenizeShareRecordByIdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordByIdResponse { + return new QueryTokenizeShareRecordByIdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordByIdResponse { + return new QueryTokenizeShareRecordByIdResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordByIdResponse | PlainMessage | undefined, b: QueryTokenizeShareRecordByIdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordByIdResponse, a, b); + } +} + +/** + * QueryTokenizeShareRecordByDenomRequest is request type for the + * Query/QueryTokenizeShareRecordByDenom RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordByDenomRequest + */ +export class QueryTokenizeShareRecordByDenomRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordByDenomRequest { + return new QueryTokenizeShareRecordByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordByDenomRequest { + return new QueryTokenizeShareRecordByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordByDenomRequest { + return new QueryTokenizeShareRecordByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordByDenomRequest | PlainMessage | undefined, b: QueryTokenizeShareRecordByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordByDenomRequest, a, b); + } +} + +/** + * QueryTokenizeShareRecordByDenomResponse is response type for the + * Query/QueryTokenizeShareRecordByDenom RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordByDenomResponse + */ +export class QueryTokenizeShareRecordByDenomResponse extends Message { + /** + * @generated from field: gaia.liquid.v1beta1.TokenizeShareRecord record = 1; + */ + record?: TokenizeShareRecord; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "record", kind: "message", T: TokenizeShareRecord }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordByDenomResponse { + return new QueryTokenizeShareRecordByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordByDenomResponse { + return new QueryTokenizeShareRecordByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordByDenomResponse { + return new QueryTokenizeShareRecordByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordByDenomResponse | PlainMessage | undefined, b: QueryTokenizeShareRecordByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordByDenomResponse, a, b); + } +} + +/** + * QueryTokenizeShareRecordsOwnedRequest is request type for the + * Query/QueryTokenizeShareRecordsOwned RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordsOwnedRequest + */ +export class QueryTokenizeShareRecordsOwnedRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordsOwnedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordsOwnedRequest { + return new QueryTokenizeShareRecordsOwnedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordsOwnedRequest { + return new QueryTokenizeShareRecordsOwnedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordsOwnedRequest { + return new QueryTokenizeShareRecordsOwnedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordsOwnedRequest | PlainMessage | undefined, b: QueryTokenizeShareRecordsOwnedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordsOwnedRequest, a, b); + } +} + +/** + * QueryTokenizeShareRecordsOwnedResponse is response type for the + * Query/QueryTokenizeShareRecordsOwned RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordsOwnedResponse + */ +export class QueryTokenizeShareRecordsOwnedResponse extends Message { + /** + * @generated from field: repeated gaia.liquid.v1beta1.TokenizeShareRecord records = 1; + */ + records: TokenizeShareRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordsOwnedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "message", T: TokenizeShareRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordsOwnedResponse { + return new QueryTokenizeShareRecordsOwnedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordsOwnedResponse { + return new QueryTokenizeShareRecordsOwnedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordsOwnedResponse { + return new QueryTokenizeShareRecordsOwnedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordsOwnedResponse | PlainMessage | undefined, b: QueryTokenizeShareRecordsOwnedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordsOwnedResponse, a, b); + } +} + +/** + * QueryAllTokenizeShareRecordsRequest is request type for the + * Query/QueryAllTokenizeShareRecords RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryAllTokenizeShareRecordsRequest + */ +export class QueryAllTokenizeShareRecordsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryAllTokenizeShareRecordsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTokenizeShareRecordsRequest { + return new QueryAllTokenizeShareRecordsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTokenizeShareRecordsRequest { + return new QueryAllTokenizeShareRecordsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTokenizeShareRecordsRequest { + return new QueryAllTokenizeShareRecordsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTokenizeShareRecordsRequest | PlainMessage | undefined, b: QueryAllTokenizeShareRecordsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTokenizeShareRecordsRequest, a, b); + } +} + +/** + * QueryAllTokenizeShareRecordsResponse is response type for the + * Query/QueryAllTokenizeShareRecords RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryAllTokenizeShareRecordsResponse + */ +export class QueryAllTokenizeShareRecordsResponse extends Message { + /** + * @generated from field: repeated gaia.liquid.v1beta1.TokenizeShareRecord records = 1; + */ + records: TokenizeShareRecord[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryAllTokenizeShareRecordsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "message", T: TokenizeShareRecord, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTokenizeShareRecordsResponse { + return new QueryAllTokenizeShareRecordsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTokenizeShareRecordsResponse { + return new QueryAllTokenizeShareRecordsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTokenizeShareRecordsResponse { + return new QueryAllTokenizeShareRecordsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTokenizeShareRecordsResponse | PlainMessage | undefined, b: QueryAllTokenizeShareRecordsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTokenizeShareRecordsResponse, a, b); + } +} + +/** + * QueryLastTokenizeShareRecordIdRequest is request type for the + * Query/QueryLastTokenizeShareRecordId RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLastTokenizeShareRecordIdRequest + */ +export class QueryLastTokenizeShareRecordIdRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLastTokenizeShareRecordIdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastTokenizeShareRecordIdRequest { + return new QueryLastTokenizeShareRecordIdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastTokenizeShareRecordIdRequest { + return new QueryLastTokenizeShareRecordIdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastTokenizeShareRecordIdRequest { + return new QueryLastTokenizeShareRecordIdRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastTokenizeShareRecordIdRequest | PlainMessage | undefined, b: QueryLastTokenizeShareRecordIdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastTokenizeShareRecordIdRequest, a, b); + } +} + +/** + * QueryLastTokenizeShareRecordIdResponse is response type for the + * Query/QueryLastTokenizeShareRecordId RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryLastTokenizeShareRecordIdResponse + */ +export class QueryLastTokenizeShareRecordIdResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryLastTokenizeShareRecordIdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastTokenizeShareRecordIdResponse { + return new QueryLastTokenizeShareRecordIdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastTokenizeShareRecordIdResponse { + return new QueryLastTokenizeShareRecordIdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastTokenizeShareRecordIdResponse { + return new QueryLastTokenizeShareRecordIdResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastTokenizeShareRecordIdResponse | PlainMessage | undefined, b: QueryLastTokenizeShareRecordIdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastTokenizeShareRecordIdResponse, a, b); + } +} + +/** + * QueryTotalTokenizeSharedAssetsRequest is request type for the + * Query/QueryTotalTokenizeSharedAssets RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTotalTokenizeSharedAssetsRequest + */ +export class QueryTotalTokenizeSharedAssetsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTotalTokenizeSharedAssetsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTokenizeSharedAssetsRequest { + return new QueryTotalTokenizeSharedAssetsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTokenizeSharedAssetsRequest { + return new QueryTotalTokenizeSharedAssetsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalTokenizeSharedAssetsRequest { + return new QueryTotalTokenizeSharedAssetsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalTokenizeSharedAssetsRequest | PlainMessage | undefined, b: QueryTotalTokenizeSharedAssetsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalTokenizeSharedAssetsRequest, a, b); + } +} + +/** + * QueryTotalTokenizeSharedAssetsResponse is response type for the + * Query/QueryTotalTokenizeSharedAssets RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTotalTokenizeSharedAssetsResponse + */ +export class QueryTotalTokenizeSharedAssetsResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin value = 1; + */ + value?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTotalTokenizeSharedAssetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTokenizeSharedAssetsResponse { + return new QueryTotalTokenizeSharedAssetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTokenizeSharedAssetsResponse { + return new QueryTotalTokenizeSharedAssetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalTokenizeSharedAssetsResponse { + return new QueryTotalTokenizeSharedAssetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalTokenizeSharedAssetsResponse | PlainMessage | undefined, b: QueryTotalTokenizeSharedAssetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalTokenizeSharedAssetsResponse, a, b); + } +} + +/** + * QueryTotalLiquidStakedRequest is request type for the + * Query/QueryQueryTotalLiquidStaked RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTotalLiquidStaked + */ +export class QueryTotalLiquidStaked extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTotalLiquidStaked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidStaked { + return new QueryTotalLiquidStaked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidStaked { + return new QueryTotalLiquidStaked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidStaked { + return new QueryTotalLiquidStaked().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalLiquidStaked | PlainMessage | undefined, b: QueryTotalLiquidStaked | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalLiquidStaked, a, b); + } +} + +/** + * QueryTotalLiquidStakedResponse is response type for the + * Query/QueryQueryTotalLiquidStaked RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTotalLiquidStakedResponse + */ +export class QueryTotalLiquidStakedResponse extends Message { + /** + * @generated from field: string tokens = 1; + */ + tokens = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTotalLiquidStakedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidStakedResponse { + return new QueryTotalLiquidStakedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidStakedResponse { + return new QueryTotalLiquidStakedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidStakedResponse { + return new QueryTotalLiquidStakedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalLiquidStakedResponse | PlainMessage | undefined, b: QueryTotalLiquidStakedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalLiquidStakedResponse, a, b); + } +} + +/** + * QueryTokenizeShareLockInfo queries the tokenize share lock information + * associated with given account + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareLockInfo + */ +export class QueryTokenizeShareLockInfo extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareLockInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareLockInfo { + return new QueryTokenizeShareLockInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareLockInfo { + return new QueryTokenizeShareLockInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareLockInfo { + return new QueryTokenizeShareLockInfo().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareLockInfo | PlainMessage | undefined, b: QueryTokenizeShareLockInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareLockInfo, a, b); + } +} + +/** + * QueryTokenizeShareLockInfoResponse is the response from the + * QueryTokenizeShareLockInfo query + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareLockInfoResponse + */ +export class QueryTokenizeShareLockInfoResponse extends Message { + /** + * @generated from field: string status = 1; + */ + status = ""; + + /** + * @generated from field: string expiration_time = 2; + */ + expirationTime = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareLockInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expiration_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareLockInfoResponse { + return new QueryTokenizeShareLockInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareLockInfoResponse { + return new QueryTokenizeShareLockInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareLockInfoResponse { + return new QueryTokenizeShareLockInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareLockInfoResponse | PlainMessage | undefined, b: QueryTokenizeShareLockInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareLockInfoResponse, a, b); + } +} + +/** + * QueryTokenizeShareRecordRewardRequest is the request type for the + * Query/TokenizeShareRecordReward RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordRewardRequest + */ +export class QueryTokenizeShareRecordRewardRequest extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordRewardRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordRewardRequest { + return new QueryTokenizeShareRecordRewardRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordRewardRequest { + return new QueryTokenizeShareRecordRewardRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordRewardRequest { + return new QueryTokenizeShareRecordRewardRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordRewardRequest | PlainMessage | undefined, b: QueryTokenizeShareRecordRewardRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordRewardRequest, a, b); + } +} + +/** + * QueryTokenizeShareRecordRewardResponse is the response type for the + * Query/TokenizeShareRecordReward RPC method. + * + * @generated from message gaia.liquid.v1beta1.QueryTokenizeShareRecordRewardResponse + */ +export class QueryTokenizeShareRecordRewardResponse extends Message { + /** + * rewards defines all the rewards accrued by a delegator. + * + * @generated from field: repeated gaia.liquid.v1beta1.TokenizeShareRecordReward rewards = 1; + */ + rewards: TokenizeShareRecordReward[] = []; + + /** + * total defines the sum of all the rewards. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin total = 2; + */ + total: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.QueryTokenizeShareRecordRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: TokenizeShareRecordReward, repeated: true }, + { no: 2, name: "total", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenizeShareRecordRewardResponse { + return new QueryTokenizeShareRecordRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenizeShareRecordRewardResponse { + return new QueryTokenizeShareRecordRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenizeShareRecordRewardResponse { + return new QueryTokenizeShareRecordRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenizeShareRecordRewardResponse | PlainMessage | undefined, b: QueryTokenizeShareRecordRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenizeShareRecordRewardResponse, a, b); + } +} + diff --git a/src/protobufs/gaia/liquid/v1beta1/tx_cosmes.ts b/src/protobufs/gaia/liquid/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..e177f9e6 --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/tx_cosmes.ts @@ -0,0 +1,112 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/tx.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDisableTokenizeShares, MsgDisableTokenizeSharesResponse, MsgEnableTokenizeShares, MsgEnableTokenizeSharesResponse, MsgRedeemTokensForShares, MsgRedeemTokensForSharesResponse, MsgTokenizeShares, MsgTokenizeSharesResponse, MsgTransferTokenizeShareRecord, MsgTransferTokenizeShareRecordResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawAllTokenizeShareRecordReward, MsgWithdrawAllTokenizeShareRecordRewardResponse, MsgWithdrawTokenizeShareRecordReward, MsgWithdrawTokenizeShareRecordRewardResponse } from "./tx_pb.js"; + +const TYPE_NAME = "gaia.liquid.v1beta1.Msg"; + +/** + * UpdateParams defines an operation for updating the x/liquid module + * parameters. + * + * @generated from rpc gaia.liquid.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * TokenizeShares defines a method for tokenizing shares from a validator. + * + * @generated from rpc gaia.liquid.v1beta1.Msg.TokenizeShares + */ +export const MsgTokenizeSharesService = { + typeName: TYPE_NAME, + method: "TokenizeShares", + Request: MsgTokenizeShares, + Response: MsgTokenizeSharesResponse, +} as const; + +/** + * RedeemTokensForShares defines a method for redeeming tokens from a + * validator for shares. + * + * @generated from rpc gaia.liquid.v1beta1.Msg.RedeemTokensForShares + */ +export const MsgRedeemTokensForSharesService = { + typeName: TYPE_NAME, + method: "RedeemTokensForShares", + Request: MsgRedeemTokensForShares, + Response: MsgRedeemTokensForSharesResponse, +} as const; + +/** + * TransferTokenizeShareRecord defines a method to transfer ownership of + * TokenizeShareRecord + * + * @generated from rpc gaia.liquid.v1beta1.Msg.TransferTokenizeShareRecord + */ +export const MsgTransferTokenizeShareRecordService = { + typeName: TYPE_NAME, + method: "TransferTokenizeShareRecord", + Request: MsgTransferTokenizeShareRecord, + Response: MsgTransferTokenizeShareRecordResponse, +} as const; + +/** + * DisableTokenizeShares defines a method to prevent the tokenization of an + * addresses stake + * + * @generated from rpc gaia.liquid.v1beta1.Msg.DisableTokenizeShares + */ +export const MsgDisableTokenizeSharesService = { + typeName: TYPE_NAME, + method: "DisableTokenizeShares", + Request: MsgDisableTokenizeShares, + Response: MsgDisableTokenizeSharesResponse, +} as const; + +/** + * EnableTokenizeShares defines a method to re-enable the tokenization of an + * addresseses stake after it has been disabled + * + * @generated from rpc gaia.liquid.v1beta1.Msg.EnableTokenizeShares + */ +export const MsgEnableTokenizeSharesService = { + typeName: TYPE_NAME, + method: "EnableTokenizeShares", + Request: MsgEnableTokenizeShares, + Response: MsgEnableTokenizeSharesResponse, +} as const; + +/** + * WithdrawTokenizeShareRecordReward defines a method to withdraw reward for + * an owning TokenizeShareRecord + * + * @generated from rpc gaia.liquid.v1beta1.Msg.WithdrawTokenizeShareRecordReward + */ +export const MsgWithdrawTokenizeShareRecordRewardService = { + typeName: TYPE_NAME, + method: "WithdrawTokenizeShareRecordReward", + Request: MsgWithdrawTokenizeShareRecordReward, + Response: MsgWithdrawTokenizeShareRecordRewardResponse, +} as const; + +/** + * WithdrawAllTokenizeShareRecordReward defines a method to withdraw reward + * for all owning TokenizeShareRecord + * + * @generated from rpc gaia.liquid.v1beta1.Msg.WithdrawAllTokenizeShareRecordReward + */ +export const MsgWithdrawAllTokenizeShareRecordRewardService = { + typeName: TYPE_NAME, + method: "WithdrawAllTokenizeShareRecordReward", + Request: MsgWithdrawAllTokenizeShareRecordReward, + Response: MsgWithdrawAllTokenizeShareRecordRewardResponse, +} as const; + diff --git a/src/protobufs/gaia/liquid/v1beta1/tx_pb.ts b/src/protobufs/gaia/liquid/v1beta1/tx_pb.ts new file mode 100644 index 00000000..de3add6d --- /dev/null +++ b/src/protobufs/gaia/liquid/v1beta1/tx_pb.ts @@ -0,0 +1,670 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file gaia/liquid/v1beta1/tx.proto (package gaia.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./liquid_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message gaia.liquid.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/liquid parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: gaia.liquid.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message gaia.liquid.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgTokenizeShares tokenizes a delegation + * + * @generated from message gaia.liquid.v1beta1.MsgTokenizeShares + */ +export class MsgTokenizeShares extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: string tokenized_share_owner = 4; + */ + tokenizedShareOwner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgTokenizeShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "tokenized_share_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTokenizeShares { + return new MsgTokenizeShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTokenizeShares { + return new MsgTokenizeShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTokenizeShares { + return new MsgTokenizeShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgTokenizeShares | PlainMessage | undefined, b: MsgTokenizeShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTokenizeShares, a, b); + } +} + +/** + * MsgTokenizeSharesResponse defines the Msg/MsgTokenizeShares response type. + * + * @generated from message gaia.liquid.v1beta1.MsgTokenizeSharesResponse + */ +export class MsgTokenizeSharesResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgTokenizeSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTokenizeSharesResponse { + return new MsgTokenizeSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTokenizeSharesResponse { + return new MsgTokenizeSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTokenizeSharesResponse { + return new MsgTokenizeSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTokenizeSharesResponse | PlainMessage | undefined, b: MsgTokenizeSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTokenizeSharesResponse, a, b); + } +} + +/** + * MsgRedeemTokensForShares redeems a tokenized share back into a native + * delegation + * + * @generated from message gaia.liquid.v1beta1.MsgRedeemTokensForShares + */ +export class MsgRedeemTokensForShares extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgRedeemTokensForShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemTokensForShares { + return new MsgRedeemTokensForShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemTokensForShares { + return new MsgRedeemTokensForShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemTokensForShares { + return new MsgRedeemTokensForShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemTokensForShares | PlainMessage | undefined, b: MsgRedeemTokensForShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemTokensForShares, a, b); + } +} + +/** + * MsgRedeemTokensForSharesResponse defines the Msg/MsgRedeemTokensForShares + * response type. + * + * @generated from message gaia.liquid.v1beta1.MsgRedeemTokensForSharesResponse + */ +export class MsgRedeemTokensForSharesResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgRedeemTokensForSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemTokensForSharesResponse { + return new MsgRedeemTokensForSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemTokensForSharesResponse { + return new MsgRedeemTokensForSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemTokensForSharesResponse { + return new MsgRedeemTokensForSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemTokensForSharesResponse | PlainMessage | undefined, b: MsgRedeemTokensForSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemTokensForSharesResponse, a, b); + } +} + +/** + * MsgTransferTokenizeShareRecord transfer a tokenize share record + * + * @generated from message gaia.liquid.v1beta1.MsgTransferTokenizeShareRecord + */ +export class MsgTransferTokenizeShareRecord extends Message { + /** + * @generated from field: uint64 tokenize_share_record_id = 1; + */ + tokenizeShareRecordId = protoInt64.zero; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * @generated from field: string new_owner = 3; + */ + newOwner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgTransferTokenizeShareRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tokenize_share_record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferTokenizeShareRecord { + return new MsgTransferTokenizeShareRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferTokenizeShareRecord { + return new MsgTransferTokenizeShareRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferTokenizeShareRecord { + return new MsgTransferTokenizeShareRecord().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferTokenizeShareRecord | PlainMessage | undefined, b: MsgTransferTokenizeShareRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferTokenizeShareRecord, a, b); + } +} + +/** + * MsgTransferTokenizeShareRecordResponse defines the + * Msg/MsgTransferTokenizeShareRecord response type. + * + * @generated from message gaia.liquid.v1beta1.MsgTransferTokenizeShareRecordResponse + */ +export class MsgTransferTokenizeShareRecordResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgTransferTokenizeShareRecordResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferTokenizeShareRecordResponse { + return new MsgTransferTokenizeShareRecordResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferTokenizeShareRecordResponse { + return new MsgTransferTokenizeShareRecordResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferTokenizeShareRecordResponse { + return new MsgTransferTokenizeShareRecordResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferTokenizeShareRecordResponse | PlainMessage | undefined, b: MsgTransferTokenizeShareRecordResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferTokenizeShareRecordResponse, a, b); + } +} + +/** + * MsgDisableTokenizeShares prevents the tokenization of shares for a given + * address + * + * @generated from message gaia.liquid.v1beta1.MsgDisableTokenizeShares + */ +export class MsgDisableTokenizeShares extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgDisableTokenizeShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDisableTokenizeShares { + return new MsgDisableTokenizeShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDisableTokenizeShares { + return new MsgDisableTokenizeShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDisableTokenizeShares { + return new MsgDisableTokenizeShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgDisableTokenizeShares | PlainMessage | undefined, b: MsgDisableTokenizeShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDisableTokenizeShares, a, b); + } +} + +/** + * MsgDisableTokenizeSharesResponse defines the Msg/DisableTokenizeShares + * response type. + * + * @generated from message gaia.liquid.v1beta1.MsgDisableTokenizeSharesResponse + */ +export class MsgDisableTokenizeSharesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgDisableTokenizeSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDisableTokenizeSharesResponse { + return new MsgDisableTokenizeSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDisableTokenizeSharesResponse { + return new MsgDisableTokenizeSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDisableTokenizeSharesResponse { + return new MsgDisableTokenizeSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDisableTokenizeSharesResponse | PlainMessage | undefined, b: MsgDisableTokenizeSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDisableTokenizeSharesResponse, a, b); + } +} + +/** + * MsgEnableTokenizeShares re-enables tokenization of shares for a given address + * + * @generated from message gaia.liquid.v1beta1.MsgEnableTokenizeShares + */ +export class MsgEnableTokenizeShares extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgEnableTokenizeShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEnableTokenizeShares { + return new MsgEnableTokenizeShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEnableTokenizeShares { + return new MsgEnableTokenizeShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEnableTokenizeShares { + return new MsgEnableTokenizeShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgEnableTokenizeShares | PlainMessage | undefined, b: MsgEnableTokenizeShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEnableTokenizeShares, a, b); + } +} + +/** + * MsgEnableTokenizeSharesResponse defines the Msg/EnableTokenizeShares response + * type. + * + * @generated from message gaia.liquid.v1beta1.MsgEnableTokenizeSharesResponse + */ +export class MsgEnableTokenizeSharesResponse extends Message { + /** + * @generated from field: google.protobuf.Timestamp completion_time = 1; + */ + completionTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgEnableTokenizeSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "completion_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEnableTokenizeSharesResponse { + return new MsgEnableTokenizeSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEnableTokenizeSharesResponse { + return new MsgEnableTokenizeSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEnableTokenizeSharesResponse { + return new MsgEnableTokenizeSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEnableTokenizeSharesResponse | PlainMessage | undefined, b: MsgEnableTokenizeSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEnableTokenizeSharesResponse, a, b); + } +} + +/** + * MsgWithdrawTokenizeShareRecordReward withdraws tokenize share rewards for a + * specific record + * + * @generated from message gaia.liquid.v1beta1.MsgWithdrawTokenizeShareRecordReward + */ +export class MsgWithdrawTokenizeShareRecordReward extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * @generated from field: uint64 record_id = 2; + */ + recordId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgWithdrawTokenizeShareRecordReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawTokenizeShareRecordReward { + return new MsgWithdrawTokenizeShareRecordReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawTokenizeShareRecordReward { + return new MsgWithdrawTokenizeShareRecordReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawTokenizeShareRecordReward { + return new MsgWithdrawTokenizeShareRecordReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawTokenizeShareRecordReward | PlainMessage | undefined, b: MsgWithdrawTokenizeShareRecordReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawTokenizeShareRecordReward, a, b); + } +} + +/** + * MsgWithdrawTokenizeShareRecordReward defines the + * Msg/WithdrawTokenizeShareRecordReward response type. + * + * @generated from message gaia.liquid.v1beta1.MsgWithdrawTokenizeShareRecordRewardResponse + */ +export class MsgWithdrawTokenizeShareRecordRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgWithdrawTokenizeShareRecordRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawTokenizeShareRecordRewardResponse { + return new MsgWithdrawTokenizeShareRecordRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawTokenizeShareRecordRewardResponse { + return new MsgWithdrawTokenizeShareRecordRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawTokenizeShareRecordRewardResponse { + return new MsgWithdrawTokenizeShareRecordRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawTokenizeShareRecordRewardResponse | PlainMessage | undefined, b: MsgWithdrawTokenizeShareRecordRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawTokenizeShareRecordRewardResponse, a, b); + } +} + +/** + * MsgWithdrawAllTokenizeShareRecordReward withdraws tokenize share rewards or + * all records owned by the designated owner + * + * @generated from message gaia.liquid.v1beta1.MsgWithdrawAllTokenizeShareRecordReward + */ +export class MsgWithdrawAllTokenizeShareRecordReward extends Message { + /** + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgWithdrawAllTokenizeShareRecordReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawAllTokenizeShareRecordReward { + return new MsgWithdrawAllTokenizeShareRecordReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawAllTokenizeShareRecordReward { + return new MsgWithdrawAllTokenizeShareRecordReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawAllTokenizeShareRecordReward { + return new MsgWithdrawAllTokenizeShareRecordReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawAllTokenizeShareRecordReward | PlainMessage | undefined, b: MsgWithdrawAllTokenizeShareRecordReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawAllTokenizeShareRecordReward, a, b); + } +} + +/** + * MsgWithdrawAllTokenizeShareRecordRewardResponse defines the + * Msg/WithdrawTokenizeShareRecordReward response type. + * + * @generated from message gaia.liquid.v1beta1.MsgWithdrawAllTokenizeShareRecordRewardResponse + */ +export class MsgWithdrawAllTokenizeShareRecordRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "gaia.liquid.v1beta1.MsgWithdrawAllTokenizeShareRecordRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawAllTokenizeShareRecordRewardResponse { + return new MsgWithdrawAllTokenizeShareRecordRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawAllTokenizeShareRecordRewardResponse { + return new MsgWithdrawAllTokenizeShareRecordRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawAllTokenizeShareRecordRewardResponse { + return new MsgWithdrawAllTokenizeShareRecordRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawAllTokenizeShareRecordRewardResponse | PlainMessage | undefined, b: MsgWithdrawAllTokenizeShareRecordRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawAllTokenizeShareRecordRewardResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts b/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts index 766781ea..e379baed 100644 --- a/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts +++ b/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts @@ -259,7 +259,7 @@ export class ForwardRelayerAddress extends Message { address = ""; /** - * unique packet identifier comprised of the channel ID, port ID and sequence + * unique packet identifer comprised of the channel ID, port ID and sequence * * @generated from field: ibc.core.channel.v1.PacketId packet_id = 2; */ diff --git a/src/protobufs/ibc/applications/fee/v1/tx_pb.ts b/src/protobufs/ibc/applications/fee/v1/tx_pb.ts index 8c62092b..d3cb9183 100644 --- a/src/protobufs/ibc/applications/fee/v1/tx_pb.ts +++ b/src/protobufs/ibc/applications/fee/v1/tx_pb.ts @@ -227,7 +227,7 @@ export class MsgPayPacketFee extends Message { sourcePortId = ""; /** - * the source channel unique identifier + * the source channel unique identifer * * @generated from field: string source_channel_id = 3; */ diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts index 0b2a16a0..44daab02 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts @@ -56,3 +56,55 @@ export class Params extends Message { } } +/** + * QueryRequest defines the parameters for a particular query request + * by an interchain account. + * + * @generated from message ibc.applications.interchain_accounts.host.v1.QueryRequest + */ +export class QueryRequest extends Message { + /** + * path defines the path of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * data defines the payload of the query request as defined by ADR-021. + * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { + return new QueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { + return new QueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRequest { + return new QueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRequest, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts index b57d879b..cd4fb7f5 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; +import { MsgModuleQuerySafe, MsgModuleQuerySafeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Msg"; @@ -19,3 +19,15 @@ export const MsgUpdateParamsService = { Response: MsgUpdateParamsResponse, } as const; +/** + * ModuleQuerySafe defines a rpc handler for MsgModuleQuerySafe. + * + * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.ModuleQuerySafe + */ +export const MsgModuleQuerySafeService = { + typeName: TYPE_NAME, + method: "ModuleQuerySafe", + Request: MsgModuleQuerySafe, + Response: MsgModuleQuerySafeResponse, +} as const; + diff --git a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts index a811a9aa..c9014c60 100644 --- a/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts +++ b/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts @@ -4,8 +4,8 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./host_pb.js"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params, QueryRequest } from "./host_pb.js"; /** * MsgUpdateParams defines the payload for Msg/UpdateParams @@ -91,3 +91,101 @@ export class MsgUpdateParamsResponse extends Message { } } +/** + * MsgModuleQuerySafe defines the payload for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe + */ +export class MsgModuleQuerySafe extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * requests defines the module safe queries to execute. + * + * @generated from field: repeated ibc.applications.interchain_accounts.host.v1.QueryRequest requests = 2; + */ + requests: QueryRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "requests", kind: "message", T: QueryRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafe { + return new MsgModuleQuerySafe().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafe | PlainMessage | undefined, b: MsgModuleQuerySafe | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafe, a, b); + } +} + +/** + * MsgModuleQuerySafeResponse defines the response for Msg/ModuleQuerySafe + * + * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse + */ +export class MsgModuleQuerySafeResponse extends Message { + /** + * height at which the responses were queried + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * protobuf encoded responses for each query + * + * @generated from field: repeated bytes responses = 2; + */ + responses: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "responses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafeResponse { + return new MsgModuleQuerySafeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgModuleQuerySafeResponse | PlainMessage | undefined, b: MsgModuleQuerySafeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgModuleQuerySafeResponse, a, b); + } +} + diff --git a/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts b/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts index befe619a..93c0cd56 100644 --- a/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts +++ b/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts @@ -42,8 +42,8 @@ export class Allocation extends Message { allowList: string[] = []; /** - * allow list of packet data keys, an empty list prohibits all packet data keys; - * a list only with "*" permits any packet data key + * allow list of memo strings, an empty list prohibits all memo strings; + * a list only with "*" permits any memo string * * @generated from field: repeated string allowed_packet_data = 5; */ diff --git a/src/protobufs/ibc/core/channel/v1/channel_pb.ts b/src/protobufs/ibc/core/channel/v1/channel_pb.ts index 087d41fc..9878cd91 100644 --- a/src/protobufs/ibc/core/channel/v1/channel_pb.ts +++ b/src/protobufs/ibc/core/channel/v1/channel_pb.ts @@ -513,7 +513,7 @@ export class PacketState extends Message { } /** - * PacketId is an identifier for a unique Packet + * PacketId is an identifer for a unique Packet * Source chains refer to packets by source port/channel * Destination chains refer to packets by destination port/channel * diff --git a/src/protobufs/ibc/core/client/v1/genesis_pb.ts b/src/protobufs/ibc/core/client/v1/genesis_pb.ts index 90b738e6..74388998 100644 --- a/src/protobufs/ibc/core/client/v1/genesis_pb.ts +++ b/src/protobufs/ibc/core/client/v1/genesis_pb.ts @@ -89,8 +89,8 @@ export class GenesisState extends Message { } /** - * GenesisMetadata defines the genesis type for metadata that will be used - * to export all client store keys that are not client or consensus states. + * GenesisMetadata defines the genesis type for metadata that clients may return + * with ExportMetadata * * @generated from message ibc.core.client.v1.GenesisMetadata */ diff --git a/src/protobufs/ibc/core/client/v1/query_pb.ts b/src/protobufs/ibc/core/client/v1/query_pb.ts index 35d5c04b..6626adb3 100644 --- a/src/protobufs/ibc/core/client/v1/query_pb.ts +++ b/src/protobufs/ibc/core/client/v1/query_pb.ts @@ -232,7 +232,7 @@ export class QueryConsensusStateRequest extends Message { } /** - * Version defines the versioning scheme used to negotiate the IBC version in + * Version defines the versioning scheme used to negotiate the IBC verison in * the connection handshake. * * @generated from message ibc.core.connection.v1.Version diff --git a/src/protobufs/ibc/core/connection/v1/tx_pb.ts b/src/protobufs/ibc/core/connection/v1/tx_pb.ts index 018c7e9a..909f0218 100644 --- a/src/protobufs/ibc/core/connection/v1/tx_pb.ts +++ b/src/protobufs/ibc/core/connection/v1/tx_pb.ts @@ -127,7 +127,8 @@ export class MsgConnectionOpenTry extends Message { previousConnectionId = ""; /** - * @generated from field: google.protobuf.Any client_state = 3; + * @generated from field: google.protobuf.Any client_state = 3 [deprecated = true]; + * @deprecated */ clientState?: Any; @@ -152,7 +153,7 @@ export class MsgConnectionOpenTry extends Message { proofHeight?: Height; /** - * proof of the initialization the connection on Chain A: `UNINITIALIZED -> + * proof of the initialization the connection on Chain A: `UNITIALIZED -> * INIT` * * @generated from field: bytes proof_init = 8; @@ -162,19 +163,22 @@ export class MsgConnectionOpenTry extends Message { /** * proof of client state included in message * - * @generated from field: bytes proof_client = 9; + * @generated from field: bytes proof_client = 9 [deprecated = true]; + * @deprecated */ proofClient = new Uint8Array(0); /** * proof of client consensus state * - * @generated from field: bytes proof_consensus = 10; + * @generated from field: bytes proof_consensus = 10 [deprecated = true]; + * @deprecated */ proofConsensus = new Uint8Array(0); /** - * @generated from field: ibc.core.client.v1.Height consensus_height = 11; + * @generated from field: ibc.core.client.v1.Height consensus_height = 11 [deprecated = true]; + * @deprecated */ consensusHeight?: Height; @@ -186,7 +190,8 @@ export class MsgConnectionOpenTry extends Message { /** * optional proof data for host state machines that are unable to introspect their own consensus state * - * @generated from field: bytes host_consensus_state_proof = 13; + * @generated from field: bytes host_consensus_state_proof = 13 [deprecated = true]; + * @deprecated */ hostConsensusStateProof = new Uint8Array(0); @@ -286,7 +291,8 @@ export class MsgConnectionOpenAck extends Message { version?: Version; /** - * @generated from field: google.protobuf.Any client_state = 4; + * @generated from field: google.protobuf.Any client_state = 4 [deprecated = true]; + * @deprecated */ clientState?: Any; @@ -296,7 +302,7 @@ export class MsgConnectionOpenAck extends Message { proofHeight?: Height; /** - * proof of the initialization the connection on Chain B: `UNINITIALIZED -> + * proof of the initialization the connection on Chain B: `UNITIALIZED -> * TRYOPEN` * * @generated from field: bytes proof_try = 6; @@ -306,19 +312,22 @@ export class MsgConnectionOpenAck extends Message { /** * proof of client state included in message * - * @generated from field: bytes proof_client = 7; + * @generated from field: bytes proof_client = 7 [deprecated = true]; + * @deprecated */ proofClient = new Uint8Array(0); /** * proof of client consensus state * - * @generated from field: bytes proof_consensus = 8; + * @generated from field: bytes proof_consensus = 8 [deprecated = true]; + * @deprecated */ proofConsensus = new Uint8Array(0); /** - * @generated from field: ibc.core.client.v1.Height consensus_height = 9; + * @generated from field: ibc.core.client.v1.Height consensus_height = 9 [deprecated = true]; + * @deprecated */ consensusHeight?: Height; @@ -330,7 +339,8 @@ export class MsgConnectionOpenAck extends Message { /** * optional proof data for host state machines that are unable to introspect their own consensus state * - * @generated from field: bytes host_consensus_state_proof = 11; + * @generated from field: bytes host_consensus_state_proof = 11 [deprecated = true]; + * @deprecated */ hostConsensusStateProof = new Uint8Array(0); diff --git a/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts b/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts index daf2cebc..d6495885 100644 --- a/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts +++ b/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts @@ -29,7 +29,7 @@ export class ClientState extends Message { trustLevel?: Fraction; /** - * duration of the period since the LatestTimestamp during which the + * duration of the period since the LastestTimestamp during which the * submitted headers are valid for upgrade * * @generated from field: google.protobuf.Duration trusting_period = 3; diff --git a/src/protobufs/index.ts b/src/protobufs/index.ts index f28348d2..1dd6fc61 100644 --- a/src/protobufs/index.ts +++ b/src/protobufs/index.ts @@ -5,12 +5,12 @@ export { Consensus as TendermintVersionConsensus, } from "./tendermint/version/types_pb.js"; export { + BlockIDFlag as TendermintTypesBlockIDFlag, ValidatorSet as TendermintTypesValidatorSet, Validator as TendermintTypesValidator, SimpleValidator as TendermintTypesSimpleValidator, } from "./tendermint/types/validator_pb.js"; export { - BlockIDFlag as TendermintTypesBlockIDFlag, SignedMsgType as TendermintTypesSignedMsgType, PartSetHeader as TendermintTypesPartSetHeader, Part as TendermintTypesPart, @@ -20,6 +20,8 @@ export { Vote as TendermintTypesVote, Commit as TendermintTypesCommit, CommitSig as TendermintTypesCommitSig, + ExtendedCommit as TendermintTypesExtendedCommit, + ExtendedCommitSig as TendermintTypesExtendedCommitSig, Proposal as TendermintTypesProposal, SignedHeader as TendermintTypesSignedHeader, LightBlock as TendermintTypesLightBlock, @@ -33,6 +35,7 @@ export { ValidatorParams as TendermintTypesValidatorParams, VersionParams as TendermintTypesVersionParams, HashedParams as TendermintTypesHashedParams, + ABCIParams as TendermintTypesABCIParams, } from "./tendermint/types/params_pb.js"; export { Evidence as TendermintTypesEvidence, @@ -71,10 +74,7 @@ export { RequestInfo as TendermintAbciRequestInfo, RequestInitChain as TendermintAbciRequestInitChain, RequestQuery as TendermintAbciRequestQuery, - RequestBeginBlock as TendermintAbciRequestBeginBlock, RequestCheckTx as TendermintAbciRequestCheckTx, - RequestDeliverTx as TendermintAbciRequestDeliverTx, - RequestEndBlock as TendermintAbciRequestEndBlock, RequestCommit as TendermintAbciRequestCommit, RequestListSnapshots as TendermintAbciRequestListSnapshots, RequestOfferSnapshot as TendermintAbciRequestOfferSnapshot, @@ -82,6 +82,9 @@ export { RequestApplySnapshotChunk as TendermintAbciRequestApplySnapshotChunk, RequestPrepareProposal as TendermintAbciRequestPrepareProposal, RequestProcessProposal as TendermintAbciRequestProcessProposal, + RequestExtendVote as TendermintAbciRequestExtendVote, + RequestVerifyVoteExtension as TendermintAbciRequestVerifyVoteExtension, + RequestFinalizeBlock as TendermintAbciRequestFinalizeBlock, Response as TendermintAbciResponse, ResponseException as TendermintAbciResponseException, ResponseEcho as TendermintAbciResponseEcho, @@ -89,10 +92,7 @@ export { ResponseInfo as TendermintAbciResponseInfo, ResponseInitChain as TendermintAbciResponseInitChain, ResponseQuery as TendermintAbciResponseQuery, - ResponseBeginBlock as TendermintAbciResponseBeginBlock, ResponseCheckTx as TendermintAbciResponseCheckTx, - ResponseDeliverTx as TendermintAbciResponseDeliverTx, - ResponseEndBlock as TendermintAbciResponseEndBlock, ResponseCommit as TendermintAbciResponseCommit, ResponseListSnapshots as TendermintAbciResponseListSnapshots, ResponseOfferSnapshot as TendermintAbciResponseOfferSnapshot, @@ -103,10 +103,15 @@ export { ResponsePrepareProposal as TendermintAbciResponsePrepareProposal, ResponseProcessProposal as TendermintAbciResponseProcessProposal, ResponseProcessProposal_ProposalStatus as TendermintAbciResponseProcessProposal_ProposalStatus, + ResponseExtendVote as TendermintAbciResponseExtendVote, + ResponseVerifyVoteExtension as TendermintAbciResponseVerifyVoteExtension, + ResponseVerifyVoteExtension_VerifyStatus as TendermintAbciResponseVerifyVoteExtension_VerifyStatus, + ResponseFinalizeBlock as TendermintAbciResponseFinalizeBlock, CommitInfo as TendermintAbciCommitInfo, ExtendedCommitInfo as TendermintAbciExtendedCommitInfo, Event as TendermintAbciEvent, EventAttribute as TendermintAbciEventAttribute, + ExecTxResult as TendermintAbciExecTxResult, TxResult as TendermintAbciTxResult, Validator as TendermintAbciValidator, ValidatorUpdate as TendermintAbciValidatorUpdate, @@ -116,23 +121,1798 @@ export { Snapshot as TendermintAbciSnapshot, } from "./tendermint/abci/types_pb.js"; export { - ABCIApplicationEchoService as TendermintAbciABCIApplicationEchoService, - ABCIApplicationFlushService as TendermintAbciABCIApplicationFlushService, - ABCIApplicationInfoService as TendermintAbciABCIApplicationInfoService, - ABCIApplicationDeliverTxService as TendermintAbciABCIApplicationDeliverTxService, - ABCIApplicationCheckTxService as TendermintAbciABCIApplicationCheckTxService, - ABCIApplicationQueryService as TendermintAbciABCIApplicationQueryService, - ABCIApplicationCommitService as TendermintAbciABCIApplicationCommitService, - ABCIApplicationInitChainService as TendermintAbciABCIApplicationInitChainService, - ABCIApplicationBeginBlockService as TendermintAbciABCIApplicationBeginBlockService, - ABCIApplicationEndBlockService as TendermintAbciABCIApplicationEndBlockService, - ABCIApplicationListSnapshotsService as TendermintAbciABCIApplicationListSnapshotsService, - ABCIApplicationOfferSnapshotService as TendermintAbciABCIApplicationOfferSnapshotService, - ABCIApplicationLoadSnapshotChunkService as TendermintAbciABCIApplicationLoadSnapshotChunkService, - ABCIApplicationApplySnapshotChunkService as TendermintAbciABCIApplicationApplySnapshotChunkService, - ABCIApplicationPrepareProposalService as TendermintAbciABCIApplicationPrepareProposalService, - ABCIApplicationProcessProposalService as TendermintAbciABCIApplicationProcessProposalService, + ABCIEchoService as TendermintAbciABCIEchoService, + ABCIFlushService as TendermintAbciABCIFlushService, + ABCIInfoService as TendermintAbciABCIInfoService, + ABCICheckTxService as TendermintAbciABCICheckTxService, + ABCIQueryService as TendermintAbciABCIQueryService, + ABCICommitService as TendermintAbciABCICommitService, + ABCIInitChainService as TendermintAbciABCIInitChainService, + ABCIListSnapshotsService as TendermintAbciABCIListSnapshotsService, + ABCIOfferSnapshotService as TendermintAbciABCIOfferSnapshotService, + ABCILoadSnapshotChunkService as TendermintAbciABCILoadSnapshotChunkService, + ABCIApplySnapshotChunkService as TendermintAbciABCIApplySnapshotChunkService, + ABCIPrepareProposalService as TendermintAbciABCIPrepareProposalService, + ABCIProcessProposalService as TendermintAbciABCIProcessProposalService, + ABCIExtendVoteService as TendermintAbciABCIExtendVoteService, + ABCIVerifyVoteExtensionService as TendermintAbciABCIVerifyVoteExtensionService, + ABCIFinalizeBlockService as TendermintAbciABCIFinalizeBlockService, } from "./tendermint/abci/types_cosmes.js"; +export { + MsgUpdateParams as SunriseTokenfactoryV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseTokenfactoryV1MsgUpdateParamsResponse, + MsgCreateDenom as SunriseTokenfactoryV1MsgCreateDenom, + MsgCreateDenomResponse as SunriseTokenfactoryV1MsgCreateDenomResponse, + MsgMint as SunriseTokenfactoryV1MsgMint, + MsgMintResponse as SunriseTokenfactoryV1MsgMintResponse, + MsgBurn as SunriseTokenfactoryV1MsgBurn, + MsgBurnResponse as SunriseTokenfactoryV1MsgBurnResponse, + MsgChangeAdmin as SunriseTokenfactoryV1MsgChangeAdmin, + MsgChangeAdminResponse as SunriseTokenfactoryV1MsgChangeAdminResponse, + MsgSetBeforeSendHook as SunriseTokenfactoryV1MsgSetBeforeSendHook, + MsgSetBeforeSendHookResponse as SunriseTokenfactoryV1MsgSetBeforeSendHookResponse, + MsgSetDenomMetadata as SunriseTokenfactoryV1MsgSetDenomMetadata, + MsgSetDenomMetadataResponse as SunriseTokenfactoryV1MsgSetDenomMetadataResponse, + MsgForceTransfer as SunriseTokenfactoryV1MsgForceTransfer, + MsgForceTransferResponse as SunriseTokenfactoryV1MsgForceTransferResponse, +} from "./sunrise/tokenfactory/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseTokenfactoryV1MsgUpdateParamsService, + MsgCreateDenomService as SunriseTokenfactoryV1MsgCreateDenomService, + MsgMintService as SunriseTokenfactoryV1MsgMintService, + MsgBurnService as SunriseTokenfactoryV1MsgBurnService, + MsgChangeAdminService as SunriseTokenfactoryV1MsgChangeAdminService, + MsgSetDenomMetadataService as SunriseTokenfactoryV1MsgSetDenomMetadataService, + MsgForceTransferService as SunriseTokenfactoryV1MsgForceTransferService, +} from "./sunrise/tokenfactory/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseTokenfactoryV1QueryParamsRequest, + QueryParamsResponse as SunriseTokenfactoryV1QueryParamsResponse, + QueryDenomAuthorityMetadataRequest as SunriseTokenfactoryV1QueryDenomAuthorityMetadataRequest, + QueryDenomAuthorityMetadataResponse as SunriseTokenfactoryV1QueryDenomAuthorityMetadataResponse, + QueryDenomsFromCreatorRequest as SunriseTokenfactoryV1QueryDenomsFromCreatorRequest, + QueryDenomsFromCreatorResponse as SunriseTokenfactoryV1QueryDenomsFromCreatorResponse, + QueryBeforeSendHookAddressRequest as SunriseTokenfactoryV1QueryBeforeSendHookAddressRequest, + QueryBeforeSendHookAddressResponse as SunriseTokenfactoryV1QueryBeforeSendHookAddressResponse, + QueryAllBeforeSendHooksAddressesRequest as SunriseTokenfactoryV1QueryAllBeforeSendHooksAddressesRequest, + QueryAllBeforeSendHooksAddressesResponse as SunriseTokenfactoryV1QueryAllBeforeSendHooksAddressesResponse, +} from "./sunrise/tokenfactory/v1/query_pb.js"; +export { + QueryParamsService as SunriseTokenfactoryV1QueryParamsService, + QueryDenomAuthorityMetadataService as SunriseTokenfactoryV1QueryDenomAuthorityMetadataService, + QueryDenomsFromCreatorService as SunriseTokenfactoryV1QueryDenomsFromCreatorService, +} from "./sunrise/tokenfactory/v1/query_cosmes.js"; +export { + Params as SunriseTokenfactoryV1Params, +} from "./sunrise/tokenfactory/v1/params_pb.js"; +export { + GenesisState as SunriseTokenfactoryV1GenesisState, + GenesisDenom as SunriseTokenfactoryV1GenesisDenom, +} from "./sunrise/tokenfactory/v1/genesis_pb.js"; +export { + DenomAuthorityMetadata as SunriseTokenfactoryV1DenomAuthorityMetadata, +} from "./sunrise/tokenfactory/v1/authorityMetadata_pb.js"; +export { + Module as SunriseTokenfactoryModuleV1Module, +} from "./sunrise/tokenfactory/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseTokenconverterV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseTokenconverterV1MsgUpdateParamsResponse, + MsgConvert as SunriseTokenconverterV1MsgConvert, + MsgConvertResponse as SunriseTokenconverterV1MsgConvertResponse, + MsgSend as SunriseTokenconverterV1MsgSend, + MsgSendResponse as SunriseTokenconverterV1MsgSendResponse, +} from "./sunrise/tokenconverter/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseTokenconverterV1MsgUpdateParamsService, + MsgConvertService as SunriseTokenconverterV1MsgConvertService, + MsgSendService as SunriseTokenconverterV1MsgSendService, +} from "./sunrise/tokenconverter/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseTokenconverterV1QueryParamsRequest, + QueryParamsResponse as SunriseTokenconverterV1QueryParamsResponse, +} from "./sunrise/tokenconverter/v1/query_pb.js"; +export { + QueryParamsService as SunriseTokenconverterV1QueryParamsService, +} from "./sunrise/tokenconverter/v1/query_cosmes.js"; +export { + Params as SunriseTokenconverterV1Params, +} from "./sunrise/tokenconverter/v1/params_pb.js"; +export { + GenesisState as SunriseTokenconverterV1GenesisState, +} from "./sunrise/tokenconverter/v1/genesis_pb.js"; +export { + EventConvert as SunriseTokenconverterV1EventConvert, + EventConvertReverse as SunriseTokenconverterV1EventConvertReverse, +} from "./sunrise/tokenconverter/v1/events_pb.js"; +export { + Module as SunriseTokenconverterModuleV1Module, +} from "./sunrise/tokenconverter/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseSwapV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseSwapV1MsgUpdateParamsResponse, + MsgSwapExactAmountIn as SunriseSwapV1MsgSwapExactAmountIn, + MsgSwapExactAmountInResponse as SunriseSwapV1MsgSwapExactAmountInResponse, + MsgSwapExactAmountOut as SunriseSwapV1MsgSwapExactAmountOut, + MsgSwapExactAmountOutResponse as SunriseSwapV1MsgSwapExactAmountOutResponse, +} from "./sunrise/swap/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseSwapV1MsgUpdateParamsService, + MsgSwapExactAmountInService as SunriseSwapV1MsgSwapExactAmountInService, + MsgSwapExactAmountOutService as SunriseSwapV1MsgSwapExactAmountOutService, +} from "./sunrise/swap/v1/tx_cosmes.js"; +export { + RoutePool as SunriseSwapV1RoutePool, + RouteSeries as SunriseSwapV1RouteSeries, + RouteParallel as SunriseSwapV1RouteParallel, + Route as SunriseSwapV1Route, + RouteResultPool as SunriseSwapV1RouteResultPool, + RouteResultSeries as SunriseSwapV1RouteResultSeries, + RouteResultParallel as SunriseSwapV1RouteResultParallel, + RouteResult as SunriseSwapV1RouteResult, +} from "./sunrise/swap/v1/route_pb.js"; +export { + QueryParamsRequest as SunriseSwapV1QueryParamsRequest, + QueryParamsResponse as SunriseSwapV1QueryParamsResponse, + QueryIncomingInFlightPacketRequest as SunriseSwapV1QueryIncomingInFlightPacketRequest, + QueryIncomingInFlightPacketResponse as SunriseSwapV1QueryIncomingInFlightPacketResponse, + QueryIncomingInFlightPacketsRequest as SunriseSwapV1QueryIncomingInFlightPacketsRequest, + QueryIncomingInFlightPacketsResponse as SunriseSwapV1QueryIncomingInFlightPacketsResponse, + QueryOutgoingInFlightPacketRequest as SunriseSwapV1QueryOutgoingInFlightPacketRequest, + QueryOutgoingInFlightPacketResponse as SunriseSwapV1QueryOutgoingInFlightPacketResponse, + QueryOutgoingInFlightPacketsRequest as SunriseSwapV1QueryOutgoingInFlightPacketsRequest, + QueryOutgoingInFlightPacketsResponse as SunriseSwapV1QueryOutgoingInFlightPacketsResponse, + QueryCalculationSwapExactAmountInRequest as SunriseSwapV1QueryCalculationSwapExactAmountInRequest, + QueryCalculationSwapExactAmountInResponse as SunriseSwapV1QueryCalculationSwapExactAmountInResponse, + QueryCalculationSwapExactAmountOutRequest as SunriseSwapV1QueryCalculationSwapExactAmountOutRequest, + QueryCalculationSwapExactAmountOutResponse as SunriseSwapV1QueryCalculationSwapExactAmountOutResponse, +} from "./sunrise/swap/v1/query_pb.js"; +export { + QueryParamsService as SunriseSwapV1QueryParamsService, + QueryIncomingInFlightPacketService as SunriseSwapV1QueryIncomingInFlightPacketService, + QueryIncomingInFlightPacketsService as SunriseSwapV1QueryIncomingInFlightPacketsService, + QueryOutgoingInFlightPacketService as SunriseSwapV1QueryOutgoingInFlightPacketService, + QueryOutgoingInFlightPacketsService as SunriseSwapV1QueryOutgoingInFlightPacketsService, + QueryCalculationSwapExactAmountInService as SunriseSwapV1QueryCalculationSwapExactAmountInService, + QueryCalculationSwapExactAmountOutService as SunriseSwapV1QueryCalculationSwapExactAmountOutService, +} from "./sunrise/swap/v1/query_cosmes.js"; +export { + Params as SunriseSwapV1Params, +} from "./sunrise/swap/v1/params_pb.js"; +export { + PacketMetadata as SunriseSwapV1PacketMetadata, + ForwardMetadata as SunriseSwapV1ForwardMetadata, + ExactAmountIn as SunriseSwapV1ExactAmountIn, + ExactAmountOut as SunriseSwapV1ExactAmountOut, + SwapMetadata as SunriseSwapV1SwapMetadata, +} from "./sunrise/swap/v1/metadata_pb.js"; +export { + PacketIndex as SunriseSwapV1PacketIndex, + IncomingInFlightPacket as SunriseSwapV1IncomingInFlightPacket, + OutgoingInFlightPacket as SunriseSwapV1OutgoingInFlightPacket, +} from "./sunrise/swap/v1/in_flight_packet_pb.js"; +export { + GenesisState as SunriseSwapV1GenesisState, +} from "./sunrise/swap/v1/genesis_pb.js"; +export { + SwapBeforeFeeExtension as SunriseSwapV1SwapBeforeFeeExtension, +} from "./sunrise/swap/v1/extension_pb.js"; +export { + Module as SunriseSwapModuleV1Module, +} from "./sunrise/swap/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseStableV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseStableV1MsgUpdateParamsResponse, + MsgMint as SunriseStableV1MsgMint, + MsgMintResponse as SunriseStableV1MsgMintResponse, + MsgBurn as SunriseStableV1MsgBurn, + MsgBurnResponse as SunriseStableV1MsgBurnResponse, +} from "./sunrise/stable/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseStableV1MsgUpdateParamsService, + MsgMintService as SunriseStableV1MsgMintService, + MsgBurnService as SunriseStableV1MsgBurnService, +} from "./sunrise/stable/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseStableV1QueryParamsRequest, + QueryParamsResponse as SunriseStableV1QueryParamsResponse, +} from "./sunrise/stable/v1/query_pb.js"; +export { + QueryParamsService as SunriseStableV1QueryParamsService, +} from "./sunrise/stable/v1/query_cosmes.js"; +export { + Params as SunriseStableV1Params, +} from "./sunrise/stable/v1/params_pb.js"; +export { + GenesisState as SunriseStableV1GenesisState, +} from "./sunrise/stable/v1/genesis_pb.js"; +export { + Module as SunriseStableModuleV1Module, +} from "./sunrise/stable/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseShareclassV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseShareclassV1MsgUpdateParamsResponse, + MsgNonVotingDelegate as SunriseShareclassV1MsgNonVotingDelegate, + MsgNonVotingDelegateResponse as SunriseShareclassV1MsgNonVotingDelegateResponse, + MsgNonVotingUndelegate as SunriseShareclassV1MsgNonVotingUndelegate, + MsgNonVotingUndelegateResponse as SunriseShareclassV1MsgNonVotingUndelegateResponse, + MsgClaimRewards as SunriseShareclassV1MsgClaimRewards, + MsgClaimRewardsResponse as SunriseShareclassV1MsgClaimRewardsResponse, + MsgCreateValidator as SunriseShareclassV1MsgCreateValidator, + MsgCreateValidatorResponse as SunriseShareclassV1MsgCreateValidatorResponse, +} from "./sunrise/shareclass/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseShareclassV1MsgUpdateParamsService, + MsgNonVotingDelegateService as SunriseShareclassV1MsgNonVotingDelegateService, + MsgNonVotingUndelegateService as SunriseShareclassV1MsgNonVotingUndelegateService, + MsgClaimRewardsService as SunriseShareclassV1MsgClaimRewardsService, + MsgCreateValidatorService as SunriseShareclassV1MsgCreateValidatorService, +} from "./sunrise/shareclass/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseShareclassV1QueryParamsRequest, + QueryParamsResponse as SunriseShareclassV1QueryParamsResponse, + QueryCalculateBondingAmountRequest as SunriseShareclassV1QueryCalculateBondingAmountRequest, + QueryCalculateBondingAmountResponse as SunriseShareclassV1QueryCalculateBondingAmountResponse, + QueryCalculateShareRequest as SunriseShareclassV1QueryCalculateShareRequest, + QueryCalculateShareResponse as SunriseShareclassV1QueryCalculateShareResponse, + QueryAddressBondedRequest as SunriseShareclassV1QueryAddressBondedRequest, + QueryAddressBondedResponse as SunriseShareclassV1QueryAddressBondedResponse, + QueryClaimableRewardsRequest as SunriseShareclassV1QueryClaimableRewardsRequest, + QueryClaimableRewardsResponse as SunriseShareclassV1QueryClaimableRewardsResponse, + QueryAddressUnbondingRequest as SunriseShareclassV1QueryAddressUnbondingRequest, + QueryAddressUnbondingResponse as SunriseShareclassV1QueryAddressUnbondingResponse, +} from "./sunrise/shareclass/v1/query_pb.js"; +export { + QueryParamsService as SunriseShareclassV1QueryParamsService, + QueryCalculateBondingAmountService as SunriseShareclassV1QueryCalculateBondingAmountService, + QueryCalculateShareService as SunriseShareclassV1QueryCalculateShareService, + QueryAddressBondedService as SunriseShareclassV1QueryAddressBondedService, + QueryClaimableRewardsService as SunriseShareclassV1QueryClaimableRewardsService, + QueryAddressUnbondingService as SunriseShareclassV1QueryAddressUnbondingService, +} from "./sunrise/shareclass/v1/query_cosmes.js"; +export { + Params as SunriseShareclassV1Params, +} from "./sunrise/shareclass/v1/params_pb.js"; +export { + GenesisState as SunriseShareclassV1GenesisState, + GenesisRewardMultiplier as SunriseShareclassV1GenesisRewardMultiplier, + GenesisUserLastRewardMultiplier as SunriseShareclassV1GenesisUserLastRewardMultiplier, + GenesisLastRewardHandlingTime as SunriseShareclassV1GenesisLastRewardHandlingTime, +} from "./sunrise/shareclass/v1/genesis_pb.js"; +export { + ValidatorBond as SunriseShareclassV1ValidatorBond, + Unbonding as SunriseShareclassV1Unbonding, +} from "./sunrise/shareclass/v1/bond_pb.js"; +export { + Module as SunriseShareclassModuleV1Module, +} from "./sunrise/shareclass/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseLockupV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseLockupV1MsgUpdateParamsResponse, + MsgInitLockupAccount as SunriseLockupV1MsgInitLockupAccount, + MsgInitLockupAccountResponse as SunriseLockupV1MsgInitLockupAccountResponse, + MsgNonVotingDelegate as SunriseLockupV1MsgNonVotingDelegate, + MsgNonVotingDelegateResponse as SunriseLockupV1MsgNonVotingDelegateResponse, + MsgNonVotingUndelegate as SunriseLockupV1MsgNonVotingUndelegate, + MsgNonVotingUndelegateResponse as SunriseLockupV1MsgNonVotingUndelegateResponse, + MsgClaimRewards as SunriseLockupV1MsgClaimRewards, + MsgClaimRewardsResponse as SunriseLockupV1MsgClaimRewardsResponse, + MsgSend as SunriseLockupV1MsgSend, + MsgSendResponse as SunriseLockupV1MsgSendResponse, +} from "./sunrise/lockup/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseLockupV1MsgUpdateParamsService, + MsgInitLockupAccountService as SunriseLockupV1MsgInitLockupAccountService, + MsgNonVotingDelegateService as SunriseLockupV1MsgNonVotingDelegateService, + MsgNonVotingUndelegateService as SunriseLockupV1MsgNonVotingUndelegateService, + MsgClaimRewardsService as SunriseLockupV1MsgClaimRewardsService, + MsgSendService as SunriseLockupV1MsgSendService, +} from "./sunrise/lockup/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseLockupV1QueryParamsRequest, + QueryParamsResponse as SunriseLockupV1QueryParamsResponse, + QueryLockupAccountsRequest as SunriseLockupV1QueryLockupAccountsRequest, + QueryLockupAccountsResponse as SunriseLockupV1QueryLockupAccountsResponse, + QueryLockupAccountRequest as SunriseLockupV1QueryLockupAccountRequest, + QueryLockupAccountResponse as SunriseLockupV1QueryLockupAccountResponse, + QuerySpendableAmountRequest as SunriseLockupV1QuerySpendableAmountRequest, + QuerySpendableAmountResponse as SunriseLockupV1QuerySpendableAmountResponse, +} from "./sunrise/lockup/v1/query_pb.js"; +export { + QueryParamsService as SunriseLockupV1QueryParamsService, + QueryLockupAccountsService as SunriseLockupV1QueryLockupAccountsService, + QueryLockupAccountService as SunriseLockupV1QueryLockupAccountService, + QuerySpendableAmountService as SunriseLockupV1QuerySpendableAmountService, +} from "./sunrise/lockup/v1/query_cosmes.js"; +export { + Params as SunriseLockupV1Params, +} from "./sunrise/lockup/v1/params_pb.js"; +export { + LockupAccount as SunriseLockupV1LockupAccount, + UnbondingEntries as SunriseLockupV1UnbondingEntries, + UnbondingEntry as SunriseLockupV1UnbondingEntry, +} from "./sunrise/lockup/v1/lockup_account_pb.js"; +export { + GenesisState as SunriseLockupV1GenesisState, +} from "./sunrise/lockup/v1/genesis_pb.js"; +export { + Module as SunriseLockupModuleV1Module, +} from "./sunrise/lockup/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseLiquiditypoolV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseLiquiditypoolV1MsgUpdateParamsResponse, + MsgCreatePool as SunriseLiquiditypoolV1MsgCreatePool, + MsgCreatePoolResponse as SunriseLiquiditypoolV1MsgCreatePoolResponse, + MsgCreatePosition as SunriseLiquiditypoolV1MsgCreatePosition, + MsgCreatePositionResponse as SunriseLiquiditypoolV1MsgCreatePositionResponse, + MsgIncreaseLiquidity as SunriseLiquiditypoolV1MsgIncreaseLiquidity, + MsgIncreaseLiquidityResponse as SunriseLiquiditypoolV1MsgIncreaseLiquidityResponse, + MsgDecreaseLiquidity as SunriseLiquiditypoolV1MsgDecreaseLiquidity, + MsgDecreaseLiquidityResponse as SunriseLiquiditypoolV1MsgDecreaseLiquidityResponse, + MsgClaimRewards as SunriseLiquiditypoolV1MsgClaimRewards, + MsgClaimRewardsResponse as SunriseLiquiditypoolV1MsgClaimRewardsResponse, +} from "./sunrise/liquiditypool/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseLiquiditypoolV1MsgUpdateParamsService, + MsgCreatePoolService as SunriseLiquiditypoolV1MsgCreatePoolService, + MsgCreatePositionService as SunriseLiquiditypoolV1MsgCreatePositionService, + MsgIncreaseLiquidityService as SunriseLiquiditypoolV1MsgIncreaseLiquidityService, + MsgDecreaseLiquidityService as SunriseLiquiditypoolV1MsgDecreaseLiquidityService, + MsgClaimRewardsService as SunriseLiquiditypoolV1MsgClaimRewardsService, +} from "./sunrise/liquiditypool/v1/tx_cosmes.js"; +export { + TickInfo as SunriseLiquiditypoolV1TickInfo, +} from "./sunrise/liquiditypool/v1/ticker_pb.js"; +export { + QueryParamsRequest as SunriseLiquiditypoolV1QueryParamsRequest, + QueryParamsResponse as SunriseLiquiditypoolV1QueryParamsResponse, + QueryPoolRequest as SunriseLiquiditypoolV1QueryPoolRequest, + PoolInfo as SunriseLiquiditypoolV1PoolInfo, + QueryPoolResponse as SunriseLiquiditypoolV1QueryPoolResponse, + QueryPoolsRequest as SunriseLiquiditypoolV1QueryPoolsRequest, + QueryPoolsResponse as SunriseLiquiditypoolV1QueryPoolsResponse, + QueryPositionRequest as SunriseLiquiditypoolV1QueryPositionRequest, + PositionInfo as SunriseLiquiditypoolV1PositionInfo, + QueryPositionResponse as SunriseLiquiditypoolV1QueryPositionResponse, + QueryPositionsRequest as SunriseLiquiditypoolV1QueryPositionsRequest, + QueryPositionsResponse as SunriseLiquiditypoolV1QueryPositionsResponse, + QueryPoolPositionsRequest as SunriseLiquiditypoolV1QueryPoolPositionsRequest, + QueryPoolPositionsResponse as SunriseLiquiditypoolV1QueryPoolPositionsResponse, + QueryAddressPositionsRequest as SunriseLiquiditypoolV1QueryAddressPositionsRequest, + QueryAddressPositionsResponse as SunriseLiquiditypoolV1QueryAddressPositionsResponse, + QueryPositionFeesRequest as SunriseLiquiditypoolV1QueryPositionFeesRequest, + QueryPositionFeesResponse as SunriseLiquiditypoolV1QueryPositionFeesResponse, + QueryCalculationCreatePositionRequest as SunriseLiquiditypoolV1QueryCalculationCreatePositionRequest, + QueryCalculationCreatePositionResponse as SunriseLiquiditypoolV1QueryCalculationCreatePositionResponse, + QueryCalculationIncreaseLiquidityRequest as SunriseLiquiditypoolV1QueryCalculationIncreaseLiquidityRequest, + QueryCalculationIncreaseLiquidityResponse as SunriseLiquiditypoolV1QueryCalculationIncreaseLiquidityResponse, +} from "./sunrise/liquiditypool/v1/query_pb.js"; +export { + QueryParamsService as SunriseLiquiditypoolV1QueryParamsService, + QueryPoolService as SunriseLiquiditypoolV1QueryPoolService, + QueryPoolsService as SunriseLiquiditypoolV1QueryPoolsService, + QueryPositionService as SunriseLiquiditypoolV1QueryPositionService, + QueryPositionsService as SunriseLiquiditypoolV1QueryPositionsService, + QueryPoolPositionsService as SunriseLiquiditypoolV1QueryPoolPositionsService, + QueryAddressPositionsService as SunriseLiquiditypoolV1QueryAddressPositionsService, + QueryPositionFeesService as SunriseLiquiditypoolV1QueryPositionFeesService, + QueryCalculationCreatePositionService as SunriseLiquiditypoolV1QueryCalculationCreatePositionService, + QueryCalculationIncreaseLiquidityService as SunriseLiquiditypoolV1QueryCalculationIncreaseLiquidityService, +} from "./sunrise/liquiditypool/v1/query_cosmes.js"; +export { + Position as SunriseLiquiditypoolV1Position, +} from "./sunrise/liquiditypool/v1/position_pb.js"; +export { + Pool as SunriseLiquiditypoolV1Pool, + TickParams as SunriseLiquiditypoolV1TickParams, +} from "./sunrise/liquiditypool/v1/pool_pb.js"; +export { + Params as SunriseLiquiditypoolV1Params, +} from "./sunrise/liquiditypool/v1/params_pb.js"; +export { + GenesisState as SunriseLiquiditypoolV1GenesisState, +} from "./sunrise/liquiditypool/v1/genesis_pb.js"; +export { + EventCreatePool as SunriseLiquiditypoolV1EventCreatePool, + EventCreatePosition as SunriseLiquiditypoolV1EventCreatePosition, + EventIncreaseLiquidity as SunriseLiquiditypoolV1EventIncreaseLiquidity, + EventDecreaseLiquidity as SunriseLiquiditypoolV1EventDecreaseLiquidity, + EventClaimRewards as SunriseLiquiditypoolV1EventClaimRewards, + EventSwapExactAmountIn as SunriseLiquiditypoolV1EventSwapExactAmountIn, + EventSwapExactAmountOut as SunriseLiquiditypoolV1EventSwapExactAmountOut, +} from "./sunrise/liquiditypool/v1/events_pb.js"; +export { + AccumulatorObject as SunriseLiquiditypoolV1AccumulatorObject, + AccumulatorPosition as SunriseLiquiditypoolV1AccumulatorPosition, +} from "./sunrise/liquiditypool/v1/accumulator_pb.js"; +export { + Module as SunriseLiquiditypoolModuleV1Module, +} from "./sunrise/liquiditypool/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseLiquidityincentiveV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseLiquidityincentiveV1MsgUpdateParamsResponse, + MsgStartNewEpoch as SunriseLiquidityincentiveV1MsgStartNewEpoch, + MsgStartNewEpochResponse as SunriseLiquidityincentiveV1MsgStartNewEpochResponse, + MsgVoteGauge as SunriseLiquidityincentiveV1MsgVoteGauge, + MsgVoteGaugeResponse as SunriseLiquidityincentiveV1MsgVoteGaugeResponse, + MsgRegisterBribe as SunriseLiquidityincentiveV1MsgRegisterBribe, + MsgRegisterBribeResponse as SunriseLiquidityincentiveV1MsgRegisterBribeResponse, + MsgClaimBribes as SunriseLiquidityincentiveV1MsgClaimBribes, + MsgClaimBribesResponse as SunriseLiquidityincentiveV1MsgClaimBribesResponse, +} from "./sunrise/liquidityincentive/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseLiquidityincentiveV1MsgUpdateParamsService, + MsgStartNewEpochService as SunriseLiquidityincentiveV1MsgStartNewEpochService, + MsgVoteGaugeService as SunriseLiquidityincentiveV1MsgVoteGaugeService, + MsgRegisterBribeService as SunriseLiquidityincentiveV1MsgRegisterBribeService, + MsgClaimBribesService as SunriseLiquidityincentiveV1MsgClaimBribesService, +} from "./sunrise/liquidityincentive/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseLiquidityincentiveV1QueryParamsRequest, + QueryParamsResponse as SunriseLiquidityincentiveV1QueryParamsResponse, + QueryEpochRequest as SunriseLiquidityincentiveV1QueryEpochRequest, + QueryEpochResponse as SunriseLiquidityincentiveV1QueryEpochResponse, + QueryEpochsRequest as SunriseLiquidityincentiveV1QueryEpochsRequest, + QueryEpochsResponse as SunriseLiquidityincentiveV1QueryEpochsResponse, + QueryVoteRequest as SunriseLiquidityincentiveV1QueryVoteRequest, + QueryVoteResponse as SunriseLiquidityincentiveV1QueryVoteResponse, + QueryVotesRequest as SunriseLiquidityincentiveV1QueryVotesRequest, + QueryVotesResponse as SunriseLiquidityincentiveV1QueryVotesResponse, + QueryBribesRequest as SunriseLiquidityincentiveV1QueryBribesRequest, + QueryBribesResponse as SunriseLiquidityincentiveV1QueryBribesResponse, + QueryBribeRequest as SunriseLiquidityincentiveV1QueryBribeRequest, + QueryBribeResponse as SunriseLiquidityincentiveV1QueryBribeResponse, + QueryBribeAllocationsRequest as SunriseLiquidityincentiveV1QueryBribeAllocationsRequest, + QueryBribeAllocationsResponse as SunriseLiquidityincentiveV1QueryBribeAllocationsResponse, + QueryBribeAllocationRequest as SunriseLiquidityincentiveV1QueryBribeAllocationRequest, + QueryBribeAllocationResponse as SunriseLiquidityincentiveV1QueryBribeAllocationResponse, + QueryTallyResultRequest as SunriseLiquidityincentiveV1QueryTallyResultRequest, + QueryTallyResultResponse as SunriseLiquidityincentiveV1QueryTallyResultResponse, +} from "./sunrise/liquidityincentive/v1/query_pb.js"; +export { + QueryParamsService as SunriseLiquidityincentiveV1QueryParamsService, + QueryEpochService as SunriseLiquidityincentiveV1QueryEpochService, + QueryEpochsService as SunriseLiquidityincentiveV1QueryEpochsService, + QueryVoteService as SunriseLiquidityincentiveV1QueryVoteService, + QueryVotesService as SunriseLiquidityincentiveV1QueryVotesService, + QueryBribesService as SunriseLiquidityincentiveV1QueryBribesService, + QueryBribeService as SunriseLiquidityincentiveV1QueryBribeService, + QueryBribeAllocationsService as SunriseLiquidityincentiveV1QueryBribeAllocationsService, + QueryBribeAllocationService as SunriseLiquidityincentiveV1QueryBribeAllocationService, + QueryTallyResultService as SunriseLiquidityincentiveV1QueryTallyResultService, +} from "./sunrise/liquidityincentive/v1/query_cosmes.js"; +export { + Params as SunriseLiquidityincentiveV1Params, +} from "./sunrise/liquidityincentive/v1/params_pb.js"; +export { + GenesisState as SunriseLiquidityincentiveV1GenesisState, +} from "./sunrise/liquidityincentive/v1/genesis_pb.js"; +export { + Gauge as SunriseLiquidityincentiveV1Gauge, + PoolWeight as SunriseLiquidityincentiveV1PoolWeight, + Vote as SunriseLiquidityincentiveV1Vote, +} from "./sunrise/liquidityincentive/v1/gauge_pb.js"; +export { + EventStartNewEpoch as SunriseLiquidityincentiveV1EventStartNewEpoch, + EventVoteGauge as SunriseLiquidityincentiveV1EventVoteGauge, + EventRegisterBribe as SunriseLiquidityincentiveV1EventRegisterBribe, + EventClaimBribes as SunriseLiquidityincentiveV1EventClaimBribes, +} from "./sunrise/liquidityincentive/v1/events_pb.js"; +export { + Epoch as SunriseLiquidityincentiveV1Epoch, +} from "./sunrise/liquidityincentive/v1/epoch_pb.js"; +export { + Bribe as SunriseLiquidityincentiveV1Bribe, + BribeAllocation as SunriseLiquidityincentiveV1BribeAllocation, +} from "./sunrise/liquidityincentive/v1/bribe_pb.js"; +export { + Module as SunriseLiquidityincentiveModuleV1Module, +} from "./sunrise/liquidityincentive/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseFeeV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseFeeV1MsgUpdateParamsResponse, +} from "./sunrise/fee/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseFeeV1MsgUpdateParamsService, +} from "./sunrise/fee/v1/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseFeeV1QueryParamsRequest, + QueryParamsResponse as SunriseFeeV1QueryParamsResponse, +} from "./sunrise/fee/v1/query_pb.js"; +export { + QueryParamsService as SunriseFeeV1QueryParamsService, +} from "./sunrise/fee/v1/query_cosmes.js"; +export { + Params as SunriseFeeV1Params, +} from "./sunrise/fee/v1/params_pb.js"; +export { + GenesisState as SunriseFeeV1GenesisState, +} from "./sunrise/fee/v1/genesis_pb.js"; +export { + Module as SunriseFeeModuleV1Module, +} from "./sunrise/fee/module/v1/module_pb.js"; +export { + VoteExtension as SunriseDaV0VoteExtension, +} from "./sunrise/da/v0/vote_extension_pb.js"; +export { + MsgUpdateParams as SunriseDaV0MsgUpdateParams, + MsgUpdateParamsResponse as SunriseDaV0MsgUpdateParamsResponse, + MsgPublishData as SunriseDaV0MsgPublishData, + MsgPublishDataResponse as SunriseDaV0MsgPublishDataResponse, + MsgSubmitInvalidity as SunriseDaV0MsgSubmitInvalidity, + MsgSubmitInvalidityResponse as SunriseDaV0MsgSubmitInvalidityResponse, + MsgSubmitValidityProof as SunriseDaV0MsgSubmitValidityProof, + MsgSubmitValidityProofResponse as SunriseDaV0MsgSubmitValidityProofResponse, + MsgRegisterProofDeputy as SunriseDaV0MsgRegisterProofDeputy, + MsgRegisterProofDeputyResponse as SunriseDaV0MsgRegisterProofDeputyResponse, + MsgUnregisterProofDeputy as SunriseDaV0MsgUnregisterProofDeputy, + MsgUnregisterProofDeputyResponse as SunriseDaV0MsgUnregisterProofDeputyResponse, + MsgVerifyData as SunriseDaV0MsgVerifyData, + MsgVerifyDataResponse as SunriseDaV0MsgVerifyDataResponse, +} from "./sunrise/da/v0/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseDaV0MsgUpdateParamsService, + MsgPublishDataService as SunriseDaV0MsgPublishDataService, + MsgSubmitInvalidityService as SunriseDaV0MsgSubmitInvalidityService, + MsgSubmitValidityProofService as SunriseDaV0MsgSubmitValidityProofService, + MsgRegisterProofDeputyService as SunriseDaV0MsgRegisterProofDeputyService, + MsgUnregisterProofDeputyService as SunriseDaV0MsgUnregisterProofDeputyService, + MsgVerifyDataService as SunriseDaV0MsgVerifyDataService, +} from "./sunrise/da/v0/tx_cosmes.js"; +export { + QueryParamsRequest as SunriseDaV0QueryParamsRequest, + QueryParamsResponse as SunriseDaV0QueryParamsResponse, + QueryPublishedDataRequest as SunriseDaV0QueryPublishedDataRequest, + QueryPublishedDataResponse as SunriseDaV0QueryPublishedDataResponse, + QueryAllPublishedDataRequest as SunriseDaV0QueryAllPublishedDataRequest, + QueryAllPublishedDataResponse as SunriseDaV0QueryAllPublishedDataResponse, + QueryValidityProofRequest as SunriseDaV0QueryValidityProofRequest, + QueryValidityProofResponse as SunriseDaV0QueryValidityProofResponse, + QueryAllValidityProofsRequest as SunriseDaV0QueryAllValidityProofsRequest, + QueryAllValidityProofsResponse as SunriseDaV0QueryAllValidityProofsResponse, + QueryInvalidityRequest as SunriseDaV0QueryInvalidityRequest, + QueryInvalidityResponse as SunriseDaV0QueryInvalidityResponse, + QueryAllInvalidityRequest as SunriseDaV0QueryAllInvalidityRequest, + QueryAllInvalidityResponse as SunriseDaV0QueryAllInvalidityResponse, + QueryValidatorShardIndicesRequest as SunriseDaV0QueryValidatorShardIndicesRequest, + QueryValidatorShardIndicesResponse as SunriseDaV0QueryValidatorShardIndicesResponse, + QueryZkpProofThresholdRequest as SunriseDaV0QueryZkpProofThresholdRequest, + QueryZkpProofThresholdResponse as SunriseDaV0QueryZkpProofThresholdResponse, + QueryProofDeputyRequest as SunriseDaV0QueryProofDeputyRequest, + QueryProofDeputyResponse as SunriseDaV0QueryProofDeputyResponse, +} from "./sunrise/da/v0/query_pb.js"; +export { + QueryParamsService as SunriseDaV0QueryParamsService, + QueryPublishedDataService as SunriseDaV0QueryPublishedDataService, + QueryAllPublishedDataService as SunriseDaV0QueryAllPublishedDataService, + QueryValidityProofService as SunriseDaV0QueryValidityProofService, + QueryAllValidityProofsService as SunriseDaV0QueryAllValidityProofsService, + QueryInvalidityService as SunriseDaV0QueryInvalidityService, + QueryAllInvalidityService as SunriseDaV0QueryAllInvalidityService, + QueryValidatorShardIndicesService as SunriseDaV0QueryValidatorShardIndicesService, + QueryZkpProofThresholdService as SunriseDaV0QueryZkpProofThresholdService, + QueryProofDeputyService as SunriseDaV0QueryProofDeputyService, +} from "./sunrise/da/v0/query_cosmes.js"; +export { + Status as SunriseDaV0Status, + PublishedData as SunriseDaV0PublishedData, + Proof as SunriseDaV0Proof, + Invalidity as SunriseDaV0Invalidity, +} from "./sunrise/da/v0/published_data_pb.js"; +export { + Params as SunriseDaV0Params, +} from "./sunrise/da/v0/params_pb.js"; +export { + Metadata as SunriseDaV0Metadata, + MetadataUriWrapper as SunriseDaV0MetadataUriWrapper, +} from "./sunrise/da/v0/metadata_pb.js"; +export { + GenesisState as SunriseDaV0GenesisState, +} from "./sunrise/da/v0/genesis_pb.js"; +export { + Module as SunriseDaModuleV1Module, +} from "./sunrise/da/module/v1/module_pb.js"; +export { + MsgUpdateParams as SunriseCronV1MsgUpdateParams, + MsgUpdateParamsResponse as SunriseCronV1MsgUpdateParamsResponse, + MsgAddSchedule as SunriseCronV1MsgAddSchedule, + MsgAddScheduleResponse as SunriseCronV1MsgAddScheduleResponse, + MsgRemoveSchedule as SunriseCronV1MsgRemoveSchedule, + MsgRemoveScheduleResponse as SunriseCronV1MsgRemoveScheduleResponse, +} from "./sunrise/cron/v1/tx_pb.js"; +export { + MsgUpdateParamsService as SunriseCronV1MsgUpdateParamsService, + MsgAddScheduleService as SunriseCronV1MsgAddScheduleService, + MsgRemoveScheduleService as SunriseCronV1MsgRemoveScheduleService, +} from "./sunrise/cron/v1/tx_cosmes.js"; +export { + ExecutionStage as SunriseCronV1ExecutionStage, + Schedule as SunriseCronV1Schedule, + MsgExecuteContract as SunriseCronV1MsgExecuteContract, + ScheduleCount as SunriseCronV1ScheduleCount, +} from "./sunrise/cron/v1/schedule_pb.js"; +export { + QueryParamsRequest as SunriseCronV1QueryParamsRequest, + QueryParamsResponse as SunriseCronV1QueryParamsResponse, + QueryGetScheduleRequest as SunriseCronV1QueryGetScheduleRequest, + QueryGetScheduleResponse as SunriseCronV1QueryGetScheduleResponse, + QuerySchedulesRequest as SunriseCronV1QuerySchedulesRequest, + QuerySchedulesResponse as SunriseCronV1QuerySchedulesResponse, +} from "./sunrise/cron/v1/query_pb.js"; +export { + QueryParamsService as SunriseCronV1QueryParamsService, + QueryScheduleService as SunriseCronV1QueryScheduleService, + QuerySchedulesService as SunriseCronV1QuerySchedulesService, +} from "./sunrise/cron/v1/query_cosmes.js"; +export { + Params as SunriseCronV1Params, +} from "./sunrise/cron/v1/params_pb.js"; +export { + GenesisState as SunriseCronV1GenesisState, +} from "./sunrise/cron/v1/genesis_pb.js"; +export { + Module as SunriseCronModuleV1Module, +} from "./sunrise/cron/module/v1/module_pb.js"; +export { + Params as RefractedlabsOracleV1Params, +} from "./refractedlabs/oracle/v1/params_pb.js"; +export { + NamespaceVote as RefractedlabsOracleV1NamespaceVote, + ModuleVote as RefractedlabsOracleV1ModuleVote, + OracleVote as RefractedlabsOracleV1OracleVote, +} from "./refractedlabs/oracle/v1/oracle_vote_pb.js"; +export { + OraclePreVote as RefractedlabsOracleV1OraclePreVote, +} from "./refractedlabs/oracle/v1/oracle_pre_vote_pb.js"; +export { + MissCounter as RefractedlabsOracleV1MissCounter, +} from "./refractedlabs/oracle/v1/miss_counter_pb.js"; +export { + GenesisState as RefractedlabsOracleV1GenesisState, +} from "./refractedlabs/oracle/v1/genesis_pb.js"; +export { + FeederDelegation as RefractedlabsOracleV1FeederDelegation, +} from "./refractedlabs/oracle/v1/feeder_delegation_pb.js"; +export { + VoteType as RefractedlabsOracleV1VoteType, + EventDelegateFeedConsent as RefractedlabsOracleV1EventDelegateFeedConsent, + EventOraclePreVote as RefractedlabsOracleV1EventOraclePreVote, + EventOracleVote as RefractedlabsOracleV1EventOracleVote, + BallotVoteResult as RefractedlabsOracleV1BallotVoteResult, + ValidatorVoteIntervalSummary as RefractedlabsOracleV1ValidatorVoteIntervalSummary, + EventVoteIntervalEnds as RefractedlabsOracleV1EventVoteIntervalEnds, + ValidatorSlashWindowSummary as RefractedlabsOracleV1ValidatorSlashWindowSummary, + EventSlashWindowEnds as RefractedlabsOracleV1EventSlashWindowEnds, + EventSetParams as RefractedlabsOracleV1EventSetParams, +} from "./refractedlabs/oracle/v1/event_pb.js"; +export { + Position as RefractedlabsFlowtradeV1Position, +} from "./refractedlabs/flowtrade/v1/position_pb.js"; +export { + Params as RefractedlabsFlowtradeV1Params, + GasParameters as RefractedlabsFlowtradeV1GasParameters, +} from "./refractedlabs/flowtrade/v1/params_pb.js"; +export { + GenesisState as RefractedlabsFlowtradeV1GenesisState, +} from "./refractedlabs/flowtrade/v1/genesis_pb.js"; +export { + FlowStatus as RefractedlabsFlowtradeV1FlowStatus, + Flow as RefractedlabsFlowtradeV1Flow, + FlowInfo as RefractedlabsFlowtradeV1FlowInfo, + FlowCreationRequest as RefractedlabsFlowtradeV1FlowCreationRequest, +} from "./refractedlabs/flowtrade/v1/flow_pb.js"; +export { + EventSetParams as RefractedlabsFlowtradeV1EventSetParams, + EventFlowCreated as RefractedlabsFlowtradeV1EventFlowCreated, + EventFlowEnded as RefractedlabsFlowtradeV1EventFlowEnded, + EventFlowStopped as RefractedlabsFlowtradeV1EventFlowStopped, + EventFlowCheckedOut as RefractedlabsFlowtradeV1EventFlowCheckedOut, + EventFlowTokenInClaimed as RefractedlabsFlowtradeV1EventFlowTokenInClaimed, + EventFlowTokenOutClaimed as RefractedlabsFlowtradeV1EventFlowTokenOutClaimed, + EventJoinFlow as RefractedlabsFlowtradeV1EventJoinFlow, + EventExitFlow as RefractedlabsFlowtradeV1EventExitFlow, + EventSetOperator as RefractedlabsFlowtradeV1EventSetOperator, + EventSetFlow as RefractedlabsFlowtradeV1EventSetFlow, + EventSetPosition as RefractedlabsFlowtradeV1EventSetPosition, +} from "./refractedlabs/flowtrade/v1/events_pb.js"; +export { + UserStakeState as PryzmYstakingV1UserStakeState, +} from "./pryzm/ystaking/v1/user_stake_state_pb.js"; +export { + MsgBond as PryzmYstakingV1MsgBond, + MsgBondResponse as PryzmYstakingV1MsgBondResponse, + MsgUnbond as PryzmYstakingV1MsgUnbond, + MsgUnbondResponse as PryzmYstakingV1MsgUnbondResponse, + MsgClaimReward as PryzmYstakingV1MsgClaimReward, + MsgClaimRewardResponse as PryzmYstakingV1MsgClaimRewardResponse, + MsgExitPool as PryzmYstakingV1MsgExitPool, + MsgExitPoolResponse as PryzmYstakingV1MsgExitPoolResponse, +} from "./pryzm/ystaking/v1/tx_pb.js"; +export { + MsgBondService as PryzmYstakingV1MsgBondService, + MsgUnbondService as PryzmYstakingV1MsgUnbondService, + MsgClaimRewardService as PryzmYstakingV1MsgClaimRewardService, + MsgExitPoolService as PryzmYstakingV1MsgExitPoolService, +} from "./pryzm/ystaking/v1/tx_cosmes.js"; +export { + QueryBondedAmountRequest as PryzmYstakingV1QueryBondedAmountRequest, + QueryBondedAmountResponse as PryzmYstakingV1QueryBondedAmountResponse, + QueryRewardRequest as PryzmYstakingV1QueryRewardRequest, + QueryRewardResponse as PryzmYstakingV1QueryRewardResponse, + QueryGetUserStakeStateRequest as PryzmYstakingV1QueryGetUserStakeStateRequest, + QueryGetUserStakeStateResponse as PryzmYstakingV1QueryGetUserStakeStateResponse, + QueryAllUserStakeStateRequest as PryzmYstakingV1QueryAllUserStakeStateRequest, + QueryAllUserStakeStateResponse as PryzmYstakingV1QueryAllUserStakeStateResponse, + QueryGetAssetPoolStateRequest as PryzmYstakingV1QueryGetAssetPoolStateRequest, + QueryGetAssetPoolStateResponse as PryzmYstakingV1QueryGetAssetPoolStateResponse, + QueryAllAssetPoolStateRequest as PryzmYstakingV1QueryAllAssetPoolStateRequest, + QueryAllAssetPoolStateResponse as PryzmYstakingV1QueryAllAssetPoolStateResponse, + QueryGetAssetMaturityPoolStateRequest as PryzmYstakingV1QueryGetAssetMaturityPoolStateRequest, + QueryGetAssetMaturityPoolStateResponse as PryzmYstakingV1QueryGetAssetMaturityPoolStateResponse, + QueryAllAssetMaturityPoolStateRequest as PryzmYstakingV1QueryAllAssetMaturityPoolStateRequest, + QueryAllAssetMaturityPoolStateResponse as PryzmYstakingV1QueryAllAssetMaturityPoolStateResponse, +} from "./pryzm/ystaking/v1/query_pb.js"; +export { + QueryBondedAmountService as PryzmYstakingV1QueryBondedAmountService, + QueryRewardService as PryzmYstakingV1QueryRewardService, + QueryUserStakeStateService as PryzmYstakingV1QueryUserStakeStateService, + QueryUserStakeStateAllService as PryzmYstakingV1QueryUserStakeStateAllService, + QueryAssetPoolStateService as PryzmYstakingV1QueryAssetPoolStateService, + QueryAssetPoolStateAllService as PryzmYstakingV1QueryAssetPoolStateAllService, + QueryAssetMaturityPoolStateService as PryzmYstakingV1QueryAssetMaturityPoolStateService, + QueryAssetMaturityPoolStateAllService as PryzmYstakingV1QueryAssetMaturityPoolStateAllService, +} from "./pryzm/ystaking/v1/query_cosmes.js"; +export { + GenesisState as PryzmYstakingV1GenesisState, +} from "./pryzm/ystaking/v1/genesis_pb.js"; +export { + EventYStakingBond as PryzmYstakingV1EventYStakingBond, + EventYStakingUnbond as PryzmYstakingV1EventYStakingUnbond, + EventYStakingExitPool as PryzmYstakingV1EventYStakingExitPool, + EventYStakingClaimReward as PryzmYstakingV1EventYStakingClaimReward, + EventDeactivateYStakingMaturityPool as PryzmYstakingV1EventDeactivateYStakingMaturityPool, + EventSetUserStakeState as PryzmYstakingV1EventSetUserStakeState, + EventSetAssetPoolState as PryzmYstakingV1EventSetAssetPoolState, + EventSetAssetMaturityPoolState as PryzmYstakingV1EventSetAssetMaturityPoolState, + EventDeleteUserStakeState as PryzmYstakingV1EventDeleteUserStakeState, + EventDeleteAssetPoolState as PryzmYstakingV1EventDeleteAssetPoolState, + EventDeleteAssetMaturityPoolState as PryzmYstakingV1EventDeleteAssetMaturityPoolState, +} from "./pryzm/ystaking/v1/event_pb.js"; +export { + AssetPoolState as PryzmYstakingV1AssetPoolState, + AssetMaturityPoolState as PryzmYstakingV1AssetMaturityPoolState, +} from "./pryzm/ystaking/v1/asset_pool_state_pb.js"; +export { + MsgUpdateParams as PryzmTreasuryV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmTreasuryV1MsgUpdateParamsResponse, + MsgSetAction as PryzmTreasuryV1MsgSetAction, + MsgSetActionResponse as PryzmTreasuryV1MsgSetActionResponse, +} from "./pryzm/treasury/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmTreasuryV1MsgUpdateParamsService, + MsgSetActionService as PryzmTreasuryV1MsgSetActionService, +} from "./pryzm/treasury/v1/tx_cosmes.js"; +export { + QueryParamsRequest as PryzmTreasuryV1QueryParamsRequest, + QueryParamsResponse as PryzmTreasuryV1QueryParamsResponse, + QueryGetActionRequest as PryzmTreasuryV1QueryGetActionRequest, + QueryGetActionResponse as PryzmTreasuryV1QueryGetActionResponse, + QueryGetFlowTradeRequest as PryzmTreasuryV1QueryGetFlowTradeRequest, + QueryGetFlowTradeResponse as PryzmTreasuryV1QueryGetFlowTradeResponse, + QueryAllFlowTradeRequest as PryzmTreasuryV1QueryAllFlowTradeRequest, + QueryAllFlowTradeResponse as PryzmTreasuryV1QueryAllFlowTradeResponse, +} from "./pryzm/treasury/v1/query_pb.js"; +export { + QueryParamsService as PryzmTreasuryV1QueryParamsService, + QueryActionService as PryzmTreasuryV1QueryActionService, + QueryFlowTradeService as PryzmTreasuryV1QueryFlowTradeService, + QueryFlowTradeAllService as PryzmTreasuryV1QueryFlowTradeAllService, +} from "./pryzm/treasury/v1/query_cosmes.js"; +export { + Params as PryzmTreasuryV1Params, +} from "./pryzm/treasury/v1/params_pb.js"; +export { + GenesisState as PryzmTreasuryV1GenesisState, +} from "./pryzm/treasury/v1/genesis_pb.js"; +export { + FlowTrade as PryzmTreasuryV1FlowTrade, +} from "./pryzm/treasury/v1/flow_trade_pb.js"; +export { + EventSetParams as PryzmTreasuryV1EventSetParams, + EventTreasuryCollectFee as PryzmTreasuryV1EventTreasuryCollectFee, + EventCreateFlowForAmount as PryzmTreasuryV1EventCreateFlowForAmount, + EventExecuteActionForAmount as PryzmTreasuryV1EventExecuteActionForAmount, + EventSetAction as PryzmTreasuryV1EventSetAction, + EventSetFlowTrade as PryzmTreasuryV1EventSetFlowTrade, + EventRemoveFlowTrade as PryzmTreasuryV1EventRemoveFlowTrade, +} from "./pryzm/treasury/v1/event_pb.js"; +export { + ActionType as PryzmTreasuryV1ActionType, + ActionFlowTradeSettings as PryzmTreasuryV1ActionFlowTradeSettings, + Action as PryzmTreasuryV1Action, +} from "./pryzm/treasury/v1/action_pb.js"; +export { + MsgRefract as PryzmRefractorV1MsgRefract, + MsgRefractResponse as PryzmRefractorV1MsgRefractResponse, + MsgRedeem as PryzmRefractorV1MsgRedeem, + MsgRedeemResponse as PryzmRefractorV1MsgRedeemResponse, + MsgUpdateParams as PryzmRefractorV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmRefractorV1MsgUpdateParamsResponse, + MsgDepositCAsset as PryzmRefractorV1MsgDepositCAsset, + MsgDepositCAssetResponse as PryzmRefractorV1MsgDepositCAssetResponse, +} from "./pryzm/refractor/v1/tx_pb.js"; +export { + MsgRefractService as PryzmRefractorV1MsgRefractService, + MsgRedeemService as PryzmRefractorV1MsgRedeemService, + MsgUpdateParamsService as PryzmRefractorV1MsgUpdateParamsService, + MsgDepositCAssetService as PryzmRefractorV1MsgDepositCAssetService, +} from "./pryzm/refractor/v1/tx_cosmes.js"; +export { + QueryGetAssetStateRequest as PryzmRefractorV1QueryGetAssetStateRequest, + QueryGetAssetStateResponse as PryzmRefractorV1QueryGetAssetStateResponse, + QueryGetCPExchangeRateRequest as PryzmRefractorV1QueryGetCPExchangeRateRequest, + QueryGetCPExchangeRateResponse as PryzmRefractorV1QueryGetCPExchangeRateResponse, + QuerySimulateRefractRequest as PryzmRefractorV1QuerySimulateRefractRequest, + QuerySimulateRefractResponse as PryzmRefractorV1QuerySimulateRefractResponse, + QuerySimulateRedeemRequest as PryzmRefractorV1QuerySimulateRedeemRequest, + QuerySimulateRedeemResponse as PryzmRefractorV1QuerySimulateRedeemResponse, + QueryParamsRequest as PryzmRefractorV1QueryParamsRequest, + QueryParamsResponse as PryzmRefractorV1QueryParamsResponse, +} from "./pryzm/refractor/v1/query_pb.js"; +export { + QueryAssetStateService as PryzmRefractorV1QueryAssetStateService, + QueryCPExchangeRateService as PryzmRefractorV1QueryCPExchangeRateService, + QuerySimulateRefractService as PryzmRefractorV1QuerySimulateRefractService, + QuerySimulateRedeemService as PryzmRefractorV1QuerySimulateRedeemService, + QueryParamsService as PryzmRefractorV1QueryParamsService, +} from "./pryzm/refractor/v1/query_cosmes.js"; +export { + Params as PryzmRefractorV1Params, +} from "./pryzm/refractor/v1/params_pb.js"; +export { + GenesisState as PryzmRefractorV1GenesisState, +} from "./pryzm/refractor/v1/genesis_pb.js"; +export { + EventRefract as PryzmRefractorV1EventRefract, + EventRedeem as PryzmRefractorV1EventRedeem, + EventRefractorYieldDistribution as PryzmRefractorV1EventRefractorYieldDistribution, + EventSetAssetState as PryzmRefractorV1EventSetAssetState, + EventSetParams as PryzmRefractorV1EventSetParams, +} from "./pryzm/refractor/v1/event_pb.js"; +export { + AssetState as PryzmRefractorV1AssetState, +} from "./pryzm/refractor/v1/asset_state_pb.js"; +export { + Vote as PryzmPgovV1Vote, +} from "./pryzm/pgov/v1/vote_pb.js"; +export { + MsgUpdateParams as PryzmPgovV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmPgovV1MsgUpdateParamsResponse, + MsgStakePAssets as PryzmPgovV1MsgStakePAssets, + MsgStakePAssetsResponse as PryzmPgovV1MsgStakePAssetsResponse, + MsgUnstakePAssets as PryzmPgovV1MsgUnstakePAssets, + MsgUnstakePAssetsResponse as PryzmPgovV1MsgUnstakePAssetsResponse, + MsgSubmitVote as PryzmPgovV1MsgSubmitVote, + MsgSubmitVoteResponse as PryzmPgovV1MsgSubmitVoteResponse, + MsgSubmitProposal as PryzmPgovV1MsgSubmitProposal, + MsgSubmitProposalResponse as PryzmPgovV1MsgSubmitProposalResponse, + MsgRetryVoteTransmit as PryzmPgovV1MsgRetryVoteTransmit, + MsgRetryVoteTransmitResponse as PryzmPgovV1MsgRetryVoteTransmitResponse, +} from "./pryzm/pgov/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmPgovV1MsgUpdateParamsService, + MsgStakePAssetsService as PryzmPgovV1MsgStakePAssetsService, + MsgUnstakePAssetsService as PryzmPgovV1MsgUnstakePAssetsService, + MsgSubmitVoteService as PryzmPgovV1MsgSubmitVoteService, + MsgSubmitProposalService as PryzmPgovV1MsgSubmitProposalService, + MsgRetryVoteTransmitService as PryzmPgovV1MsgRetryVoteTransmitService, +} from "./pryzm/pgov/v1/tx_cosmes.js"; +export { + StakedPAsset as PryzmPgovV1StakedPAsset, + TotalStakedPAsset as PryzmPgovV1TotalStakedPAsset, +} from "./pryzm/pgov/v1/staked_p_asset_pb.js"; +export { + VoteReplyData as PryzmPgovV1VoteReplyData, +} from "./pryzm/pgov/v1/reply_pb.js"; +export { + QueryParamsRequest as PryzmPgovV1QueryParamsRequest, + QueryParamsResponse as PryzmPgovV1QueryParamsResponse, + QueryGetStakedPAssetRequest as PryzmPgovV1QueryGetStakedPAssetRequest, + QueryGetStakedPAssetResponse as PryzmPgovV1QueryGetStakedPAssetResponse, + QueryAllStakedPAssetRequest as PryzmPgovV1QueryAllStakedPAssetRequest, + QueryAllStakedPAssetResponse as PryzmPgovV1QueryAllStakedPAssetResponse, + QueryAllTotalStakedPAssetRequest as PryzmPgovV1QueryAllTotalStakedPAssetRequest, + QueryAllTotalStakedPAssetResponse as PryzmPgovV1QueryAllTotalStakedPAssetResponse, + QueryGetTotalStakedPAssetRequest as PryzmPgovV1QueryGetTotalStakedPAssetRequest, + QueryGetTotalStakedPAssetResponse as PryzmPgovV1QueryGetTotalStakedPAssetResponse, + QueryGetVoteRequest as PryzmPgovV1QueryGetVoteRequest, + QueryGetVoteResponse as PryzmPgovV1QueryGetVoteResponse, + QueryAllVoteRequest as PryzmPgovV1QueryAllVoteRequest, + QueryAllVoteResponse as PryzmPgovV1QueryAllVoteResponse, + QueryGetProposalRequest as PryzmPgovV1QueryGetProposalRequest, + QueryGetProposalResponse as PryzmPgovV1QueryGetProposalResponse, + QueryAllProposalRequest as PryzmPgovV1QueryAllProposalRequest, + QueryAllProposalResponse as PryzmPgovV1QueryAllProposalResponse, + QueryTallyResultRequest as PryzmPgovV1QueryTallyResultRequest, + QueryTallyResultResponse as PryzmPgovV1QueryTallyResultResponse, +} from "./pryzm/pgov/v1/query_pb.js"; +export { + QueryParamsService as PryzmPgovV1QueryParamsService, + QueryStakedPAssetService as PryzmPgovV1QueryStakedPAssetService, + QueryStakedPAssetAllService as PryzmPgovV1QueryStakedPAssetAllService, + QueryTotalStakedPAssetService as PryzmPgovV1QueryTotalStakedPAssetService, + QueryTotalStakedPAssetAllService as PryzmPgovV1QueryTotalStakedPAssetAllService, + QueryVoteService as PryzmPgovV1QueryVoteService, + QueryVoteAllService as PryzmPgovV1QueryVoteAllService, + QueryProposalService as PryzmPgovV1QueryProposalService, + QueryProposalAllService as PryzmPgovV1QueryProposalAllService, + QueryTallyResultService as PryzmPgovV1QueryTallyResultService, +} from "./pryzm/pgov/v1/query_cosmes.js"; +export { + ProposalStatus as PryzmPgovV1ProposalStatus, + Proposal as PryzmPgovV1Proposal, +} from "./pryzm/pgov/v1/proposal_pb.js"; +export { + Params as PryzmPgovV1Params, +} from "./pryzm/pgov/v1/params_pb.js"; +export { + GenesisState as PryzmPgovV1GenesisState, +} from "./pryzm/pgov/v1/genesis_pb.js"; +export { + EventSetParams as PryzmPgovV1EventSetParams, + EventSetProposal as PryzmPgovV1EventSetProposal, + EventPAssetStake as PryzmPgovV1EventPAssetStake, + EventPAssetUnstake as PryzmPgovV1EventPAssetUnstake, + EventVoteSubmit as PryzmPgovV1EventVoteSubmit, + EventProposalEnd as PryzmPgovV1EventProposalEnd, + EventVoteTransmit as PryzmPgovV1EventVoteTransmit, + EventVoteTransmitFailure as PryzmPgovV1EventVoteTransmitFailure, + EventVoteAckSuccess as PryzmPgovV1EventVoteAckSuccess, + EventVoteAckFailure as PryzmPgovV1EventVoteAckFailure, + EventVoteTimeout as PryzmPgovV1EventVoteTimeout, +} from "./pryzm/pgov/v1/event_pb.js"; +export { + MsgUpdateParams as PryzmMintV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmMintV1MsgUpdateParamsResponse, + MsgDappAccountSpend as PryzmMintV1MsgDappAccountSpend, + MsgDappAccountSpendResponse as PryzmMintV1MsgDappAccountSpendResponse, +} from "./pryzm/mint/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmMintV1MsgUpdateParamsService, + MsgDappAccountSpendService as PryzmMintV1MsgDappAccountSpendService, +} from "./pryzm/mint/v1/tx_cosmes.js"; +export { + QueryParamsRequest as PryzmMintV1QueryParamsRequest, + QueryParamsResponse as PryzmMintV1QueryParamsResponse, + QueryMinterRequest as PryzmMintV1QueryMinterRequest, + QueryMinterResponse as PryzmMintV1QueryMinterResponse, +} from "./pryzm/mint/v1/query_pb.js"; +export { + QueryParamsService as PryzmMintV1QueryParamsService, + QueryMinterService as PryzmMintV1QueryMinterService, +} from "./pryzm/mint/v1/query_cosmes.js"; +export { + DistributionProportions as PryzmMintV1DistributionProportions, + Params as PryzmMintV1Params, +} from "./pryzm/mint/v1/params_pb.js"; +export { + Minter as PryzmMintV1Minter, +} from "./pryzm/mint/v1/minter_pb.js"; +export { + GenesisState as PryzmMintV1GenesisState, +} from "./pryzm/mint/v1/genesis_pb.js"; +export { + EventMint as PryzmMintV1EventMint, + EventSetParams as PryzmMintV1EventSetParams, +} from "./pryzm/mint/v1/event_pb.js"; +export { + Unbonding as PryzmIncentivesV1Unbonding, +} from "./pryzm/incentives/v1/unbonding_pb.js"; +export { + MsgUpdateParams as PryzmIncentivesV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmIncentivesV1MsgUpdateParamsResponse, + WeightedRewardToken as PryzmIncentivesV1WeightedRewardToken, + MsgCreatePool as PryzmIncentivesV1MsgCreatePool, + MsgCreatePoolResponse as PryzmIncentivesV1MsgCreatePoolResponse, + MsgUpdateRewardTokenWeight as PryzmIncentivesV1MsgUpdateRewardTokenWeight, + MsgUpdateRewardTokenWeightResponse as PryzmIncentivesV1MsgUpdateRewardTokenWeightResponse, + MsgAddRewardTokenToPool as PryzmIncentivesV1MsgAddRewardTokenToPool, + MsgAddRewardTokenToPoolResponse as PryzmIncentivesV1MsgAddRewardTokenToPoolResponse, + MsgBond as PryzmIncentivesV1MsgBond, + MsgBondResponse as PryzmIncentivesV1MsgBondResponse, + MsgUnbond as PryzmIncentivesV1MsgUnbond, + MsgUnbondResponse as PryzmIncentivesV1MsgUnbondResponse, + MsgClaimReward as PryzmIncentivesV1MsgClaimReward, + MsgClaimRewardResponse as PryzmIncentivesV1MsgClaimRewardResponse, + MsgClaimUnbonding as PryzmIncentivesV1MsgClaimUnbonding, + MsgClaimUnbondingResponse as PryzmIncentivesV1MsgClaimUnbondingResponse, + MsgCancelUnbonding as PryzmIncentivesV1MsgCancelUnbonding, + MsgCancelUnbondingResponse as PryzmIncentivesV1MsgCancelUnbondingResponse, + MsgIncentivizePool as PryzmIncentivesV1MsgIncentivizePool, + MsgIncentivizePoolResponse as PryzmIncentivesV1MsgIncentivizePoolResponse, +} from "./pryzm/incentives/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmIncentivesV1MsgUpdateParamsService, + MsgCreatePoolService as PryzmIncentivesV1MsgCreatePoolService, + MsgUpdateRewardTokenWeightService as PryzmIncentivesV1MsgUpdateRewardTokenWeightService, + MsgAddRewardTokenToPoolService as PryzmIncentivesV1MsgAddRewardTokenToPoolService, + MsgBondService as PryzmIncentivesV1MsgBondService, + MsgUnbondService as PryzmIncentivesV1MsgUnbondService, + MsgClaimRewardService as PryzmIncentivesV1MsgClaimRewardService, + MsgClaimUnbondingService as PryzmIncentivesV1MsgClaimUnbondingService, + MsgCancelUnbondingService as PryzmIncentivesV1MsgCancelUnbondingService, + MsgIncentivizePoolService as PryzmIncentivesV1MsgIncentivizePoolService, +} from "./pryzm/incentives/v1/tx_cosmes.js"; +export { + QueryParamsRequest as PryzmIncentivesV1QueryParamsRequest, + QueryParamsResponse as PryzmIncentivesV1QueryParamsResponse, + QueryGetPoolRequest as PryzmIncentivesV1QueryGetPoolRequest, + QueryGetPoolResponse as PryzmIncentivesV1QueryGetPoolResponse, + QueryAllPoolRequest as PryzmIncentivesV1QueryAllPoolRequest, + QueryAllPoolResponse as PryzmIncentivesV1QueryAllPoolResponse, + QueryGetBondRequest as PryzmIncentivesV1QueryGetBondRequest, + QueryGetBondResponse as PryzmIncentivesV1QueryGetBondResponse, + QueryAllBondRequest as PryzmIncentivesV1QueryAllBondRequest, + QueryAllBondResponse as PryzmIncentivesV1QueryAllBondResponse, + QueryGetUnbondingRequest as PryzmIncentivesV1QueryGetUnbondingRequest, + QueryGetUnbondingResponse as PryzmIncentivesV1QueryGetUnbondingResponse, + QueryAllUnbondingRequest as PryzmIncentivesV1QueryAllUnbondingRequest, + QueryAllUnbondingResponse as PryzmIncentivesV1QueryAllUnbondingResponse, +} from "./pryzm/incentives/v1/query_pb.js"; +export { + QueryParamsService as PryzmIncentivesV1QueryParamsService, + QueryPoolService as PryzmIncentivesV1QueryPoolService, + QueryPoolAllService as PryzmIncentivesV1QueryPoolAllService, + QueryBondService as PryzmIncentivesV1QueryBondService, + QueryBondAllService as PryzmIncentivesV1QueryBondAllService, + QueryUnbondingService as PryzmIncentivesV1QueryUnbondingService, + QueryUnbondingAllService as PryzmIncentivesV1QueryUnbondingAllService, +} from "./pryzm/incentives/v1/query_cosmes.js"; +export { + PoolRewardToken as PryzmIncentivesV1PoolRewardToken, + Pool as PryzmIncentivesV1Pool, +} from "./pryzm/incentives/v1/pool_pb.js"; +export { + Params as PryzmIncentivesV1Params, +} from "./pryzm/incentives/v1/params_pb.js"; +export { + GenesisState as PryzmIncentivesV1GenesisState, +} from "./pryzm/incentives/v1/genesis_pb.js"; +export { + EventSetParams as PryzmIncentivesV1EventSetParams, + EventSetBond as PryzmIncentivesV1EventSetBond, + EventRemoveBond as PryzmIncentivesV1EventRemoveBond, + EventSetPool as PryzmIncentivesV1EventSetPool, + EventSetUnbonding as PryzmIncentivesV1EventSetUnbonding, + EventRemoveUnbonding as PryzmIncentivesV1EventRemoveUnbonding, + EventClaimReward as PryzmIncentivesV1EventClaimReward, + EventBond as PryzmIncentivesV1EventBond, + EventUnbond as PryzmIncentivesV1EventUnbond, + EventClaimUnbonding as PryzmIncentivesV1EventClaimUnbonding, + EventCancelUnbonding as PryzmIncentivesV1EventCancelUnbonding, + EventIncentivizePool as PryzmIncentivesV1EventIncentivizePool, +} from "./pryzm/incentives/v1/event_pb.js"; +export { + BondRewardToken as PryzmIncentivesV1BondRewardToken, + Bond as PryzmIncentivesV1Bond, +} from "./pryzm/incentives/v1/bond_pb.js"; +export { + Undelegation as PryzmIcstakingV1Undelegation, + ChannelUndelegation as PryzmIcstakingV1ChannelUndelegation, +} from "./pryzm/icstaking/v1/undelegation_pb.js"; +export { + ICARegistrationType as PryzmIcstakingV1ICARegistrationType, + MsgUpdateParams as PryzmIcstakingV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmIcstakingV1MsgUpdateParamsResponse, + MsgRegisterHostChain as PryzmIcstakingV1MsgRegisterHostChain, + MsgRegisterHostChainResponse as PryzmIcstakingV1MsgRegisterHostChainResponse, + MsgUpdateHostChain as PryzmIcstakingV1MsgUpdateHostChain, + MsgUpdateHostChainResponse as PryzmIcstakingV1MsgUpdateHostChainResponse, + MsgStake as PryzmIcstakingV1MsgStake, + MsgStakeResponse as PryzmIcstakingV1MsgStakeResponse, + MsgStakeLsmShares as PryzmIcstakingV1MsgStakeLsmShares, + MsgStakeLsmSharesResponse as PryzmIcstakingV1MsgStakeLsmSharesResponse, + MsgUnstake as PryzmIcstakingV1MsgUnstake, + MsgUnstakeResponse as PryzmIcstakingV1MsgUnstakeResponse, + MsgRedeemUnstaked as PryzmIcstakingV1MsgRedeemUnstaked, + MsgRedeemUnstakedResponse as PryzmIcstakingV1MsgRedeemUnstakedResponse, + MsgInstantUnstake as PryzmIcstakingV1MsgInstantUnstake, + MsgInstantUnstakeResponse as PryzmIcstakingV1MsgInstantUnstakeResponse, + MsgRebalanceDelegations as PryzmIcstakingV1MsgRebalanceDelegations, + MsgRebalanceDelegationsResponse as PryzmIcstakingV1MsgRebalanceDelegationsResponse, + MsgRedelegate as PryzmIcstakingV1MsgRedelegate, + MsgRedelegateResponse as PryzmIcstakingV1MsgRedelegateResponse, + MsgRegisterInterchainAccount as PryzmIcstakingV1MsgRegisterInterchainAccount, + MsgRegisterInterchainAccountResponse as PryzmIcstakingV1MsgRegisterInterchainAccountResponse, + MsgCreateMultiSigConnection as PryzmIcstakingV1MsgCreateMultiSigConnection, + MsgCreateMultiSigConnectionResponse as PryzmIcstakingV1MsgCreateMultiSigConnectionResponse, + MsgUpdateMultiSigConnection as PryzmIcstakingV1MsgUpdateMultiSigConnection, + MsgUpdateMultiSigConnectionResponse as PryzmIcstakingV1MsgUpdateMultiSigConnectionResponse, + MsgAcknowledgeMultiSigPacket as PryzmIcstakingV1MsgAcknowledgeMultiSigPacket, + MsgAcknowledgeMultiSigPacketResponse as PryzmIcstakingV1MsgAcknowledgeMultiSigPacketResponse, + MsgRegisterHostAccounts as PryzmIcstakingV1MsgRegisterHostAccounts, + MsgRegisterHostAccountsResponse as PryzmIcstakingV1MsgRegisterHostAccountsResponse, + MsgRetryFailedLsmTransfer as PryzmIcstakingV1MsgRetryFailedLsmTransfer, + MsgRetryFailedLsmTransferResponse as PryzmIcstakingV1MsgRetryFailedLsmTransferResponse, + MsgDelistHostChain as PryzmIcstakingV1MsgDelistHostChain, + MsgDelistHostChainResponse as PryzmIcstakingV1MsgDelistHostChainResponse, + MsgUndelegateDelistedHostChain as PryzmIcstakingV1MsgUndelegateDelistedHostChain, + MsgUndelegateDelistedHostChainResponse as PryzmIcstakingV1MsgUndelegateDelistedHostChainResponse, + MsgRedeemDelisted as PryzmIcstakingV1MsgRedeemDelisted, + MsgRedeemDelistedResponse as PryzmIcstakingV1MsgRedeemDelistedResponse, +} from "./pryzm/icstaking/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmIcstakingV1MsgUpdateParamsService, + MsgRegisterHostChainService as PryzmIcstakingV1MsgRegisterHostChainService, + MsgUpdateHostChainService as PryzmIcstakingV1MsgUpdateHostChainService, + MsgStakeService as PryzmIcstakingV1MsgStakeService, + MsgStakeLsmSharesService as PryzmIcstakingV1MsgStakeLsmSharesService, + MsgUnstakeService as PryzmIcstakingV1MsgUnstakeService, + MsgRedeemUnstakedService as PryzmIcstakingV1MsgRedeemUnstakedService, + MsgInstantUnstakeService as PryzmIcstakingV1MsgInstantUnstakeService, + MsgRebalanceDelegationsService as PryzmIcstakingV1MsgRebalanceDelegationsService, + MsgRedelegateService as PryzmIcstakingV1MsgRedelegateService, + MsgRegisterInterchainAccountService as PryzmIcstakingV1MsgRegisterInterchainAccountService, + MsgCreateMultiSigConnectionService as PryzmIcstakingV1MsgCreateMultiSigConnectionService, + MsgUpdateMultiSigConnectionService as PryzmIcstakingV1MsgUpdateMultiSigConnectionService, + MsgAcknowledgeMultiSigPacketService as PryzmIcstakingV1MsgAcknowledgeMultiSigPacketService, + MsgRegisterHostAccountsService as PryzmIcstakingV1MsgRegisterHostAccountsService, + MsgRetryFailedLsmTransferService as PryzmIcstakingV1MsgRetryFailedLsmTransferService, + MsgDelistHostChainService as PryzmIcstakingV1MsgDelistHostChainService, + MsgUndelegateDelistedHostChainService as PryzmIcstakingV1MsgUndelegateDelistedHostChainService, + MsgRedeemDelistedService as PryzmIcstakingV1MsgRedeemDelistedService, +} from "./pryzm/icstaking/v1/tx_cosmes.js"; +export { + SweepTransfer as PryzmIcstakingV1SweepTransfer, +} from "./pryzm/icstaking/v1/sweep_pb.js"; +export { + ReplyData as PryzmIcstakingV1ReplyData, + PacketId as PryzmIcstakingV1PacketId, + DelegateTransferReplyData as PryzmIcstakingV1DelegateTransferReplyData, + DelegateTransferSession as PryzmIcstakingV1DelegateTransferSession, + TransferPacketState as PryzmIcstakingV1TransferPacketState, + DelegateReplyData as PryzmIcstakingV1DelegateReplyData, + DelegationEntry as PryzmIcstakingV1DelegationEntry, + UndelegateReplyData as PryzmIcstakingV1UndelegateReplyData, + UndelegationEntry as PryzmIcstakingV1UndelegationEntry, + RedelegateReplyData as PryzmIcstakingV1RedelegateReplyData, + RedelegationEntry as PryzmIcstakingV1RedelegationEntry, + CompoundData as PryzmIcstakingV1CompoundData, + CollectUndelegatedReplyData as PryzmIcstakingV1CollectUndelegatedReplyData, + SweepData as PryzmIcstakingV1SweepData, + ChannelSweep as PryzmIcstakingV1ChannelSweep, + LsmTransferData as PryzmIcstakingV1LsmTransferData, + LsmReplyData as PryzmIcstakingV1LsmReplyData, +} from "./pryzm/icstaking/v1/reply_pb.js"; +export { + QueryParamsRequest as PryzmIcstakingV1QueryParamsRequest, + QueryParamsResponse as PryzmIcstakingV1QueryParamsResponse, + QueryGetHostChainRequest as PryzmIcstakingV1QueryGetHostChainRequest, + QueryGetHostChainResponse as PryzmIcstakingV1QueryGetHostChainResponse, + QueryAllHostChainRequest as PryzmIcstakingV1QueryAllHostChainRequest, + QueryAllHostChainResponse as PryzmIcstakingV1QueryAllHostChainResponse, + QueryGetHostChainStateRequest as PryzmIcstakingV1QueryGetHostChainStateRequest, + QueryGetHostChainStateResponse as PryzmIcstakingV1QueryGetHostChainStateResponse, + QueryAllHostChainStateRequest as PryzmIcstakingV1QueryAllHostChainStateRequest, + QueryAllHostChainStateResponse as PryzmIcstakingV1QueryAllHostChainStateResponse, + QueryGetUndelegationRequest as PryzmIcstakingV1QueryGetUndelegationRequest, + QueryGetUndelegationResponse as PryzmIcstakingV1QueryGetUndelegationResponse, + QueryAllUndelegationRequest as PryzmIcstakingV1QueryAllUndelegationRequest, + QueryAllUndelegationResponse as PryzmIcstakingV1QueryAllUndelegationResponse, + QueryIncompleteUndelegationRequest as PryzmIcstakingV1QueryIncompleteUndelegationRequest, + QueryIncompleteUndelegationResponse as PryzmIcstakingV1QueryIncompleteUndelegationResponse, + QueryGetChannelUndelegationRequest as PryzmIcstakingV1QueryGetChannelUndelegationRequest, + QueryGetChannelUndelegationResponse as PryzmIcstakingV1QueryGetChannelUndelegationResponse, + QueryAllChannelUndelegationRequest as PryzmIcstakingV1QueryAllChannelUndelegationRequest, + QueryAllChannelUndelegationResponse as PryzmIcstakingV1QueryAllChannelUndelegationResponse, + QueryDelegationQueueBalanceRequest as PryzmIcstakingV1QueryDelegationQueueBalanceRequest, + QueryDelegationQueueBalanceResponse as PryzmIcstakingV1QueryDelegationQueueBalanceResponse, + QueryEpochInfoRequest as PryzmIcstakingV1QueryEpochInfoRequest, + QueryEpochInfoResponse as PryzmIcstakingV1QueryEpochInfoResponse, + QueryAllReplyDataRequest as PryzmIcstakingV1QueryAllReplyDataRequest, + QueryAllReplyDataResponse as PryzmIcstakingV1QueryAllReplyDataResponse, + QueryGetMultiSigConnectionRequest as PryzmIcstakingV1QueryGetMultiSigConnectionRequest, + QueryGetMultiSigConnectionResponse as PryzmIcstakingV1QueryGetMultiSigConnectionResponse, + QueryAllMultiSigConnectionRequest as PryzmIcstakingV1QueryAllMultiSigConnectionRequest, + QueryAllMultiSigConnectionResponse as PryzmIcstakingV1QueryAllMultiSigConnectionResponse, + QueryGetMultiSigPacketRequest as PryzmIcstakingV1QueryGetMultiSigPacketRequest, + QueryGetMultiSigPacketResponse as PryzmIcstakingV1QueryGetMultiSigPacketResponse, + QueryAllMultiSigPacketRequest as PryzmIcstakingV1QueryAllMultiSigPacketRequest, + QueryAllMultiSigPacketResponse as PryzmIcstakingV1QueryAllMultiSigPacketResponse, + QueryAllFailedLsmTransferRequest as PryzmIcstakingV1QueryAllFailedLsmTransferRequest, + QueryAllFailedLsmTransferResponse as PryzmIcstakingV1QueryAllFailedLsmTransferResponse, + QueryAllRedeemableLsmRequest as PryzmIcstakingV1QueryAllRedeemableLsmRequest, + QueryAllRedeemableLsmResponse as PryzmIcstakingV1QueryAllRedeemableLsmResponse, + QueryAllSweepTransferRequest as PryzmIcstakingV1QueryAllSweepTransferRequest, + QueryAllSweepTransferResponse as PryzmIcstakingV1QueryAllSweepTransferResponse, + QuerySimulateStakeRequest as PryzmIcstakingV1QuerySimulateStakeRequest, + QuerySimulateStakeResponse as PryzmIcstakingV1QuerySimulateStakeResponse, +} from "./pryzm/icstaking/v1/query_pb.js"; +export { + QueryParamsService as PryzmIcstakingV1QueryParamsService, + QueryHostChainService as PryzmIcstakingV1QueryHostChainService, + QueryHostChainAllService as PryzmIcstakingV1QueryHostChainAllService, + QueryHostChainStateService as PryzmIcstakingV1QueryHostChainStateService, + QueryHostChainStateAllService as PryzmIcstakingV1QueryHostChainStateAllService, + QueryUndelegationService as PryzmIcstakingV1QueryUndelegationService, + QueryUndelegationAllService as PryzmIcstakingV1QueryUndelegationAllService, + QueryIncompleteUndelegationAllService as PryzmIcstakingV1QueryIncompleteUndelegationAllService, + QueryChannelUndelegationService as PryzmIcstakingV1QueryChannelUndelegationService, + QueryChannelUndelegationAllService as PryzmIcstakingV1QueryChannelUndelegationAllService, + QueryDelegationQueueBalanceService as PryzmIcstakingV1QueryDelegationQueueBalanceService, + QueryEpochInfoService as PryzmIcstakingV1QueryEpochInfoService, + QueryReplyDataAllService as PryzmIcstakingV1QueryReplyDataAllService, + QueryRedeemableLsmAllService as PryzmIcstakingV1QueryRedeemableLsmAllService, + QueryFailedLsmTransferAllService as PryzmIcstakingV1QueryFailedLsmTransferAllService, + QueryMultiSigConnectionService as PryzmIcstakingV1QueryMultiSigConnectionService, + QueryMultiSigConnectionAllService as PryzmIcstakingV1QueryMultiSigConnectionAllService, + QueryMultiSigPacketService as PryzmIcstakingV1QueryMultiSigPacketService, + QueryMultiSigPacketAllService as PryzmIcstakingV1QueryMultiSigPacketAllService, + QuerySweepTransferAllService as PryzmIcstakingV1QuerySweepTransferAllService, + QuerySimulateStakeService as PryzmIcstakingV1QuerySimulateStakeService, +} from "./pryzm/icstaking/v1/query_cosmes.js"; +export { + Params as PryzmIcstakingV1Params, + StakingParams as PryzmIcstakingV1StakingParams, + FeeRatios as PryzmIcstakingV1FeeRatios, + RebalanceParams as PryzmIcstakingV1RebalanceParams, +} from "./pryzm/icstaking/v1/params_pb.js"; +export { + OraclePayload as PryzmIcstakingV1OraclePayload, +} from "./pryzm/icstaking/v1/oracle_payload_pb.js"; +export { + MultiSigConnection as PryzmIcstakingV1MultiSigConnection, + MultiSigPacket as PryzmIcstakingV1MultiSigPacket, + Acknowledgement as PryzmIcstakingV1Acknowledgement, +} from "./pryzm/icstaking/v1/multisig_pb.js"; +export { + RedeemableLsm as PryzmIcstakingV1RedeemableLsm, + FailedLsmTransfer as PryzmIcstakingV1FailedLsmTransfer, +} from "./pryzm/icstaking/v1/lsm_pb.js"; +export { + LoopBackPacket as PryzmIcstakingV1LoopBackPacket, + LoopBackMsgs as PryzmIcstakingV1LoopBackMsgs, + LoopBackTransfer as PryzmIcstakingV1LoopBackTransfer, +} from "./pryzm/icstaking/v1/loopback_pb.js"; +export { + ConnectionType as PryzmIcstakingV1ConnectionType, + TransferChannelType as PryzmIcstakingV1TransferChannelType, + AccountState as PryzmIcstakingV1AccountState, + State as PryzmIcstakingV1State, + HostChain as PryzmIcstakingV1HostChain, + TransferChannel as PryzmIcstakingV1TransferChannel, + Validator as PryzmIcstakingV1Validator, + HostChainState as PryzmIcstakingV1HostChainState, + HostAccounts as PryzmIcstakingV1HostAccounts, + HostAccount as PryzmIcstakingV1HostAccount, + ValidatorState as PryzmIcstakingV1ValidatorState, +} from "./pryzm/icstaking/v1/host_chain_pb.js"; +export { + GenesisState as PryzmIcstakingV1GenesisState, + HostChainEpochTime as PryzmIcstakingV1HostChainEpochTime, + HostChainUndelegationEpoch as PryzmIcstakingV1HostChainUndelegationEpoch, +} from "./pryzm/icstaking/v1/genesis_pb.js"; +export { + EventSetHostChain as PryzmIcstakingV1EventSetHostChain, + EventSetHostChainState as PryzmIcstakingV1EventSetHostChainState, + EventSetParams as PryzmIcstakingV1EventSetParams, + EventSetUndelegation as PryzmIcstakingV1EventSetUndelegation, + EventSetChannelUndelegation as PryzmIcstakingV1EventSetChannelUndelegation, + EventStake as PryzmIcstakingV1EventStake, + EventStakeLsmShares as PryzmIcstakingV1EventStakeLsmShares, + EventUnstake as PryzmIcstakingV1EventUnstake, + EventRedeemUnstaked as PryzmIcstakingV1EventRedeemUnstaked, + EventRedeemDelisted as PryzmIcstakingV1EventRedeemDelisted, + EventInstantUnstake as PryzmIcstakingV1EventInstantUnstake, + EventSetMultiSigConnection as PryzmIcstakingV1EventSetMultiSigConnection, + EventSetMultiSigPacket as PryzmIcstakingV1EventSetMultiSigPacket, + EventAcknowledgeMultiSigPacket as PryzmIcstakingV1EventAcknowledgeMultiSigPacket, +} from "./pryzm/icstaking/v1/event_pb.js"; +export { + MsgRegisterAsset as PryzmAssetsV1MsgRegisterAsset, + MsgRegisterAssetResponse as PryzmAssetsV1MsgRegisterAssetResponse, + MsgDisableAsset as PryzmAssetsV1MsgDisableAsset, + MsgDisableAssetResponse as PryzmAssetsV1MsgDisableAssetResponse, + MsgUpdateMaturityParams as PryzmAssetsV1MsgUpdateMaturityParams, + MsgUpdateMaturityParamsResponse as PryzmAssetsV1MsgUpdateMaturityParamsResponse, + MsgUpdateFeeRatios as PryzmAssetsV1MsgUpdateFeeRatios, + MsgUpdateFeeRatiosResponse as PryzmAssetsV1MsgUpdateFeeRatiosResponse, + MsgUpdateParams as PryzmAssetsV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmAssetsV1MsgUpdateParamsResponse, + MsgDelistRefractableAsset as PryzmAssetsV1MsgDelistRefractableAsset, + MsgDelistRefractableAssetResponse as PryzmAssetsV1MsgDelistRefractableAssetResponse, + MsgIntroduceMaturityLevel as PryzmAssetsV1MsgIntroduceMaturityLevel, + MsgIntroduceMaturityLevelResponse as PryzmAssetsV1MsgIntroduceMaturityLevelResponse, +} from "./pryzm/assets/v1/tx_pb.js"; +export { + MsgUpdateParamsService as PryzmAssetsV1MsgUpdateParamsService, + MsgRegisterAssetService as PryzmAssetsV1MsgRegisterAssetService, + MsgDisableAssetService as PryzmAssetsV1MsgDisableAssetService, + MsgUpdateMaturityParamsService as PryzmAssetsV1MsgUpdateMaturityParamsService, + MsgUpdateFeeRatiosService as PryzmAssetsV1MsgUpdateFeeRatiosService, + MsgIntroduceMaturityLevelService as PryzmAssetsV1MsgIntroduceMaturityLevelService, + MsgDelistRefractableAssetService as PryzmAssetsV1MsgDelistRefractableAssetService, +} from "./pryzm/assets/v1/tx_cosmes.js"; +export { + DelistedMaturityLevel as PryzmAssetsV1DelistedMaturityLevel, + RefractableAsset as PryzmAssetsV1RefractableAsset, + MaturityParams as PryzmAssetsV1MaturityParams, + FeeRatios as PryzmAssetsV1FeeRatios, +} from "./pryzm/assets/v1/refractable_asset_pb.js"; +export { + QueryParamsRequest as PryzmAssetsV1QueryParamsRequest, + QueryParamsResponse as PryzmAssetsV1QueryParamsResponse, + QueryGetRefractableAssetRequest as PryzmAssetsV1QueryGetRefractableAssetRequest, + QueryGetRefractableAssetResponse as PryzmAssetsV1QueryGetRefractableAssetResponse, + QueryAllRefractableAssetRequest as PryzmAssetsV1QueryAllRefractableAssetRequest, + QueryAllRefractableAssetResponse as PryzmAssetsV1QueryAllRefractableAssetResponse, + QueryGetMaturityLevelRequest as PryzmAssetsV1QueryGetMaturityLevelRequest, + QueryGetMaturityLevelResponse as PryzmAssetsV1QueryGetMaturityLevelResponse, + QueryAllMaturityLevelRequest as PryzmAssetsV1QueryAllMaturityLevelRequest, + QueryAllMaturityLevelResponse as PryzmAssetsV1QueryAllMaturityLevelResponse, +} from "./pryzm/assets/v1/query_pb.js"; +export { + QueryParamsService as PryzmAssetsV1QueryParamsService, + QueryRefractableAssetService as PryzmAssetsV1QueryRefractableAssetService, + QueryRefractableAssetAllService as PryzmAssetsV1QueryRefractableAssetAllService, + QueryMaturityLevelService as PryzmAssetsV1QueryMaturityLevelService, + QueryMaturityLevelAllService as PryzmAssetsV1QueryMaturityLevelAllService, +} from "./pryzm/assets/v1/query_cosmes.js"; +export { + Params as PryzmAssetsV1Params, +} from "./pryzm/assets/v1/params_pb.js"; +export { + OraclePayload as PryzmAssetsV1OraclePayload, +} from "./pryzm/assets/v1/oracle_payload_pb.js"; +export { + MaturityLevel as PryzmAssetsV1MaturityLevel, +} from "./pryzm/assets/v1/maturity_level_pb.js"; +export { + GenesisState as PryzmAssetsV1GenesisState, +} from "./pryzm/assets/v1/genesis_pb.js"; +export { + EventSetParams as PryzmAssetsV1EventSetParams, + EventAddMaturityLevel as PryzmAssetsV1EventAddMaturityLevel, + EventDeactivateMaturityLevel as PryzmAssetsV1EventDeactivateMaturityLevel, + EventSetRefractableAsset as PryzmAssetsV1EventSetRefractableAsset, + EventSetMaturityLevel as PryzmAssetsV1EventSetMaturityLevel, +} from "./pryzm/assets/v1/event_pb.js"; +export { + MsgProposeMatch as PryzmAmmV2MsgProposeMatch, + MsgProposeMatchResponse as PryzmAmmV2MsgProposeMatchResponse, +} from "./pryzm/amm/v2/tx_pb.js"; +export { + MsgProposeMatchService as PryzmAmmV2MsgProposeMatchService, +} from "./pryzm/amm/v2/tx_cosmes.js"; +export { + ProposalOrder as PryzmAmmV2ProposalOrder, + PairMatchProposal as PryzmAmmV2PairMatchProposal, +} from "./pryzm/amm/v2/pair_match_proposal_pb.js"; +export { + YammConfiguration as PryzmAmmV1YammConfiguration, +} from "./pryzm/amm/v1/yamm_configuration_pb.js"; +export { + WhitelistedRoute as PryzmAmmV1WhitelistedRoute, +} from "./pryzm/amm/v1/whitelisted_route_pb.js"; +export { + WeightedPoolProperties as PryzmAmmV1WeightedPoolProperties, + WeightedToken as PryzmAmmV1WeightedToken, +} from "./pryzm/amm/v1/weighted_token_pb.js"; +export { + WeightUpdateTiming as PryzmAmmV1WeightUpdateTiming, +} from "./pryzm/amm/v1/weight_update_timing_pb.js"; +export { + TemporalVirtualBalancePoolToken as PryzmAmmV1TemporalVirtualBalancePoolToken, + PermanentVirtualBalancePoolToken as PryzmAmmV1PermanentVirtualBalancePoolToken, +} from "./pryzm/amm/v1/virtual_balance_pool_token_pb.js"; +export { + MsgSingleSwap as PryzmAmmV1MsgSingleSwap, + MsgSingleSwapResponse as PryzmAmmV1MsgSingleSwapResponse, + MsgJoinAllTokensExactLpt as PryzmAmmV1MsgJoinAllTokensExactLpt, + MsgJoinAllTokensExactLptResponse as PryzmAmmV1MsgJoinAllTokensExactLptResponse, + MsgJoinTokenExactLpt as PryzmAmmV1MsgJoinTokenExactLpt, + MsgJoinTokenExactLptResponse as PryzmAmmV1MsgJoinTokenExactLptResponse, + MsgJoinExactTokens as PryzmAmmV1MsgJoinExactTokens, + MsgJoinExactTokensResponse as PryzmAmmV1MsgJoinExactTokensResponse, + MsgZeroImpactJoinYamm as PryzmAmmV1MsgZeroImpactJoinYamm, + MsgZeroImpactJoinYammResponse as PryzmAmmV1MsgZeroImpactJoinYammResponse, + MsgExitExactTokens as PryzmAmmV1MsgExitExactTokens, + MsgExitExactTokensResponse as PryzmAmmV1MsgExitExactTokensResponse, + MsgExitTokenExactLpt as PryzmAmmV1MsgExitTokenExactLpt, + MsgExitTokenExactLptResponse as PryzmAmmV1MsgExitTokenExactLptResponse, + MsgExitAllTokensExactLpt as PryzmAmmV1MsgExitAllTokensExactLpt, + MsgExitAllTokensExactLptResponse as PryzmAmmV1MsgExitAllTokensExactLptResponse, + CreateWeightedPoolToken as PryzmAmmV1CreateWeightedPoolToken, + MsgCreateWeightedPool as PryzmAmmV1MsgCreateWeightedPool, + MsgCreateWeightedPoolResponse as PryzmAmmV1MsgCreateWeightedPoolResponse, + MsgUpdateSwapFee as PryzmAmmV1MsgUpdateSwapFee, + MsgUpdateSwapFeeResponse as PryzmAmmV1MsgUpdateSwapFeeResponse, + MsgInitializePool as PryzmAmmV1MsgInitializePool, + MsgInitializePoolResponse as PryzmAmmV1MsgInitializePoolResponse, + MsgUpdateWeights as PryzmAmmV1MsgUpdateWeights, + MsgUpdateWeightsResponse as PryzmAmmV1MsgUpdateWeightsResponse, + MsgBatchSwap as PryzmAmmV1MsgBatchSwap, + MsgBatchSwapResponse as PryzmAmmV1MsgBatchSwapResponse, + MsgSetYammConfiguration as PryzmAmmV1MsgSetYammConfiguration, + MsgSetYammConfigurationResponse as PryzmAmmV1MsgSetYammConfigurationResponse, + MsgWhitelistRoute as PryzmAmmV1MsgWhitelistRoute, + MsgWhitelistRouteResponse as PryzmAmmV1MsgWhitelistRouteResponse, + MsgSetWhitelistedRouteEnabled as PryzmAmmV1MsgSetWhitelistedRouteEnabled, + MsgSetWhitelistedRouteEnabledResponse as PryzmAmmV1MsgSetWhitelistedRouteEnabledResponse, + MsgSubmitOrder as PryzmAmmV1MsgSubmitOrder, + MsgSubmitOrderResponse as PryzmAmmV1MsgSubmitOrderResponse, + MsgCancelOrder as PryzmAmmV1MsgCancelOrder, + MsgCancelOrderResponse as PryzmAmmV1MsgCancelOrderResponse, + MsgProposeMatch as PryzmAmmV1MsgProposeMatch, + MsgProposeMatchResponse as PryzmAmmV1MsgProposeMatchResponse, + MsgSetCircuitBreakers as PryzmAmmV1MsgSetCircuitBreakers, + MsgSetCircuitBreakersResponse as PryzmAmmV1MsgSetCircuitBreakersResponse, + MsgSetRecoveryMode as PryzmAmmV1MsgSetRecoveryMode, + MsgSetRecoveryModeResponse as PryzmAmmV1MsgSetRecoveryModeResponse, + MsgSetPoolJoinBlocked as PryzmAmmV1MsgSetPoolJoinBlocked, + MsgSetPoolJoinBlockedResponse as PryzmAmmV1MsgSetPoolJoinBlockedResponse, + MsgRecoveryExit as PryzmAmmV1MsgRecoveryExit, + MsgRecoveryExitResponse as PryzmAmmV1MsgRecoveryExitResponse, + MsgSetPauseMode as PryzmAmmV1MsgSetPauseMode, + MsgSetPauseModeResponse as PryzmAmmV1MsgSetPauseModeResponse, + MsgSetVaultPauseMode as PryzmAmmV1MsgSetVaultPauseMode, + MsgSetVaultPauseModeResponse as PryzmAmmV1MsgSetVaultPauseModeResponse, + MsgCreateOraclePricePair as PryzmAmmV1MsgCreateOraclePricePair, + MsgCreateOraclePricePairResponse as PryzmAmmV1MsgCreateOraclePricePairResponse, + MsgUpdateOraclePricePair as PryzmAmmV1MsgUpdateOraclePricePair, + MsgUpdateOraclePricePairResponse as PryzmAmmV1MsgUpdateOraclePricePairResponse, + MsgDeleteOraclePricePair as PryzmAmmV1MsgDeleteOraclePricePair, + MsgDeleteOraclePricePairResponse as PryzmAmmV1MsgDeleteOraclePricePairResponse, + MsgSetSwapProtocolFee as PryzmAmmV1MsgSetSwapProtocolFee, + MsgSetSwapProtocolFeeResponse as PryzmAmmV1MsgSetSwapProtocolFeeResponse, + MsgSetJoinExitProtocolFee as PryzmAmmV1MsgSetJoinExitProtocolFee, + MsgSetJoinExitProtocolFeeResponse as PryzmAmmV1MsgSetJoinExitProtocolFeeResponse, + MsgIntroduceYammLpToWeightedPool as PryzmAmmV1MsgIntroduceYammLpToWeightedPool, + MsgIntroduceYammLpToWeightedPoolResponse as PryzmAmmV1MsgIntroduceYammLpToWeightedPoolResponse, + MsgIntroduceAssetBaseTokenToWeightedPool as PryzmAmmV1MsgIntroduceAssetBaseTokenToWeightedPool, + MsgIntroduceAssetBaseTokenToWeightedPoolResponse as PryzmAmmV1MsgIntroduceAssetBaseTokenToWeightedPoolResponse, + MsgCancelPendingTokenIntroduction as PryzmAmmV1MsgCancelPendingTokenIntroduction, + MsgCancelPendingTokenIntroductionResponse as PryzmAmmV1MsgCancelPendingTokenIntroductionResponse, + MsgRemoveTokenFromWeightedPool as PryzmAmmV1MsgRemoveTokenFromWeightedPool, + MsgRemoveTokenFromWeightedPoolResponse as PryzmAmmV1MsgRemoveTokenFromWeightedPoolResponse, + MsgUpdateParams as PryzmAmmV1MsgUpdateParams, + MsgUpdateParamsResponse as PryzmAmmV1MsgUpdateParamsResponse, + MsgAddMaturityToYamm as PryzmAmmV1MsgAddMaturityToYamm, + MsgAddMaturityToYammResponse as PryzmAmmV1MsgAddMaturityToYammResponse, + MsgSetInitializationAllowList as PryzmAmmV1MsgSetInitializationAllowList, + MsgSetInitializationAllowListResponse as PryzmAmmV1MsgSetInitializationAllowListResponse, + MsgSetPoolAdmins as PryzmAmmV1MsgSetPoolAdmins, + MsgSetPoolAdminsResponse as PryzmAmmV1MsgSetPoolAdminsResponse, + MsgSetPauseAllowList as PryzmAmmV1MsgSetPauseAllowList, + MsgSetPauseAllowListResponse as PryzmAmmV1MsgSetPauseAllowListResponse, + MsgSetPauseWindow as PryzmAmmV1MsgSetPauseWindow, + MsgSetPauseWindowResponse as PryzmAmmV1MsgSetPauseWindowResponse, + MsgSetOrderPairDisabled as PryzmAmmV1MsgSetOrderPairDisabled, + MsgSetOrderPairDisabledResponse as PryzmAmmV1MsgSetOrderPairDisabledResponse, +} from "./pryzm/amm/v1/tx_pb.js"; +export { + MsgSingleSwapService as PryzmAmmV1MsgSingleSwapService, + MsgJoinAllTokensExactLptService as PryzmAmmV1MsgJoinAllTokensExactLptService, + MsgJoinTokenExactLptService as PryzmAmmV1MsgJoinTokenExactLptService, + MsgJoinExactTokensService as PryzmAmmV1MsgJoinExactTokensService, + MsgZeroImpactJoinYammService as PryzmAmmV1MsgZeroImpactJoinYammService, + MsgExitExactTokensService as PryzmAmmV1MsgExitExactTokensService, + MsgExitTokenExactLptService as PryzmAmmV1MsgExitTokenExactLptService, + MsgExitAllTokensExactLptService as PryzmAmmV1MsgExitAllTokensExactLptService, + MsgCreateWeightedPoolService as PryzmAmmV1MsgCreateWeightedPoolService, + MsgUpdateSwapFeeService as PryzmAmmV1MsgUpdateSwapFeeService, + MsgInitializePoolService as PryzmAmmV1MsgInitializePoolService, + MsgUpdateWeightsService as PryzmAmmV1MsgUpdateWeightsService, + MsgBatchSwapService as PryzmAmmV1MsgBatchSwapService, + MsgSetYammConfigurationService as PryzmAmmV1MsgSetYammConfigurationService, + MsgWhitelistRouteService as PryzmAmmV1MsgWhitelistRouteService, + MsgSetWhitelistedRouteEnabledService as PryzmAmmV1MsgSetWhitelistedRouteEnabledService, + MsgSubmitOrderService as PryzmAmmV1MsgSubmitOrderService, + MsgCancelOrderService as PryzmAmmV1MsgCancelOrderService, + MsgProposeMatchService as PryzmAmmV1MsgProposeMatchService, + MsgSetCircuitBreakersService as PryzmAmmV1MsgSetCircuitBreakersService, + MsgSetRecoveryModeService as PryzmAmmV1MsgSetRecoveryModeService, + MsgRecoveryExitService as PryzmAmmV1MsgRecoveryExitService, + MsgSetPauseModeService as PryzmAmmV1MsgSetPauseModeService, + MsgSetVaultPauseModeService as PryzmAmmV1MsgSetVaultPauseModeService, + MsgCreateOraclePricePairService as PryzmAmmV1MsgCreateOraclePricePairService, + MsgUpdateOraclePricePairService as PryzmAmmV1MsgUpdateOraclePricePairService, + MsgDeleteOraclePricePairService as PryzmAmmV1MsgDeleteOraclePricePairService, + MsgSetSwapProtocolFeeService as PryzmAmmV1MsgSetSwapProtocolFeeService, + MsgSetJoinExitProtocolFeeService as PryzmAmmV1MsgSetJoinExitProtocolFeeService, + MsgIntroduceYammLpToWeightedPoolService as PryzmAmmV1MsgIntroduceYammLpToWeightedPoolService, + MsgIntroduceAssetBaseTokenToWeightedPoolService as PryzmAmmV1MsgIntroduceAssetBaseTokenToWeightedPoolService, + MsgCancelPendingTokenIntroductionService as PryzmAmmV1MsgCancelPendingTokenIntroductionService, + MsgRemoveTokenFromWeightedPoolService as PryzmAmmV1MsgRemoveTokenFromWeightedPoolService, + MsgUpdateParamsService as PryzmAmmV1MsgUpdateParamsService, + MsgAddMaturityToYammService as PryzmAmmV1MsgAddMaturityToYammService, + MsgSetInitializationAllowListService as PryzmAmmV1MsgSetInitializationAllowListService, + MsgSetPoolAdminsService as PryzmAmmV1MsgSetPoolAdminsService, + MsgSetPoolJoinBlockedService as PryzmAmmV1MsgSetPoolJoinBlockedService, + MsgSetPauseAllowListService as PryzmAmmV1MsgSetPauseAllowListService, + MsgSetPauseWindowService as PryzmAmmV1MsgSetPauseWindowService, + MsgSetOrderPairDisabledService as PryzmAmmV1MsgSetOrderPairDisabledService, +} from "./pryzm/amm/v1/tx_cosmes.js"; +export { + TokenWeight as PryzmAmmV1TokenWeight, +} from "./pryzm/amm/v1/token_weight_pb.js"; +export { + TokenCircuitBreakerSettings as PryzmAmmV1TokenCircuitBreakerSettings, + CircuitBreakerSettings as PryzmAmmV1CircuitBreakerSettings, +} from "./pryzm/amm/v1/token_circuit_breaker_settings_pb.js"; +export { + ScheduleOrder as PryzmAmmV1ScheduleOrder, +} from "./pryzm/amm/v1/schedule_order_pb.js"; +export { + ExecutableOrderCount as PryzmAmmV1ExecutableOrderCount, +} from "./pryzm/amm/v1/schedule_order_count_pb.js"; +export { + RouteStep as PryzmAmmV1RouteStep, +} from "./pryzm/amm/v1/route_step_pb.js"; +export { + QueryParamsRequest as PryzmAmmV1QueryParamsRequest, + QueryParamsResponse as PryzmAmmV1QueryParamsResponse, + QueryGetPoolTokenRequest as PryzmAmmV1QueryGetPoolTokenRequest, + QueryGetPoolTokenResponse as PryzmAmmV1QueryGetPoolTokenResponse, + QueryAllPoolTokenRequest as PryzmAmmV1QueryAllPoolTokenRequest, + QueryAllPoolTokenResponse as PryzmAmmV1QueryAllPoolTokenResponse, + QueryAllPoolTokenForPoolRequest as PryzmAmmV1QueryAllPoolTokenForPoolRequest, + QueryAllPoolTokenForPoolResponse as PryzmAmmV1QueryAllPoolTokenForPoolResponse, + QueryAllPoolTokenWeightRequest as PryzmAmmV1QueryAllPoolTokenWeightRequest, + QueryAllPoolTokenWeightResponse as PryzmAmmV1QueryAllPoolTokenWeightResponse, + QueryGetPoolTokenWeightRequest as PryzmAmmV1QueryGetPoolTokenWeightRequest, + QueryGetPoolTokenWeightResponse as PryzmAmmV1QueryGetPoolTokenWeightResponse, + QueryAllPoolTokenInfoRequest as PryzmAmmV1QueryAllPoolTokenInfoRequest, + QueryAllPoolTokenInfoResponse as PryzmAmmV1QueryAllPoolTokenInfoResponse, + QueryGetPoolTokenInfoRequest as PryzmAmmV1QueryGetPoolTokenInfoRequest, + QueryGetPoolTokenInfoResponse as PryzmAmmV1QueryGetPoolTokenInfoResponse, + QueryGetPoolRequest as PryzmAmmV1QueryGetPoolRequest, + QueryGetPoolResponse as PryzmAmmV1QueryGetPoolResponse, + QueryAllPoolRequest as PryzmAmmV1QueryAllPoolRequest, + QueryAllPoolResponse as PryzmAmmV1QueryAllPoolResponse, + QueryGetWeightedTokenRequest as PryzmAmmV1QueryGetWeightedTokenRequest, + QueryGetWeightedTokenResponse as PryzmAmmV1QueryGetWeightedTokenResponse, + QueryAllWeightedTokenRequest as PryzmAmmV1QueryAllWeightedTokenRequest, + QueryAllWeightedTokenResponse as PryzmAmmV1QueryAllWeightedTokenResponse, + QueryGetWeightUpdateTimingRequest as PryzmAmmV1QueryGetWeightUpdateTimingRequest, + QueryGetWeightUpdateTimingResponse as PryzmAmmV1QueryGetWeightUpdateTimingResponse, + QueryAllWeightUpdateTimingRequest as PryzmAmmV1QueryAllWeightUpdateTimingRequest, + QueryAllWeightUpdateTimingResponse as PryzmAmmV1QueryAllWeightUpdateTimingResponse, + QuerySimulateSingleSwapRequest as PryzmAmmV1QuerySimulateSingleSwapRequest, + QuerySimulateSingleSwapResponse as PryzmAmmV1QuerySimulateSingleSwapResponse, + QuerySimulateInitializePoolRequest as PryzmAmmV1QuerySimulateInitializePoolRequest, + QuerySimulateInitializePoolResponse as PryzmAmmV1QuerySimulateInitializePoolResponse, + QuerySimulateJoinAllTokensExactLptRequest as PryzmAmmV1QuerySimulateJoinAllTokensExactLptRequest, + QuerySimulateJoinAllTokensExactLptResponse as PryzmAmmV1QuerySimulateJoinAllTokensExactLptResponse, + QuerySimulateJoinExactTokensRequest as PryzmAmmV1QuerySimulateJoinExactTokensRequest, + QuerySimulateJoinExactTokensResponse as PryzmAmmV1QuerySimulateJoinExactTokensResponse, + QuerySimulateZeroImpactJoinYammRequest as PryzmAmmV1QuerySimulateZeroImpactJoinYammRequest, + QuerySimulateZeroImpactJoinYammResponse as PryzmAmmV1QuerySimulateZeroImpactJoinYammResponse, + QuerySimulateJoinTokenExactLptRequest as PryzmAmmV1QuerySimulateJoinTokenExactLptRequest, + QuerySimulateJoinTokenExactLptResponse as PryzmAmmV1QuerySimulateJoinTokenExactLptResponse, + QuerySimulateExitTokenExactLptRequest as PryzmAmmV1QuerySimulateExitTokenExactLptRequest, + QuerySimulateExitTokenExactLptResponse as PryzmAmmV1QuerySimulateExitTokenExactLptResponse, + QuerySimulateExitExactTokensRequest as PryzmAmmV1QuerySimulateExitExactTokensRequest, + QuerySimulateExitExactTokensResponse as PryzmAmmV1QuerySimulateExitExactTokensResponse, + QuerySimulateRecoveryExitRequest as PryzmAmmV1QuerySimulateRecoveryExitRequest, + QuerySimulateRecoveryExitResponse as PryzmAmmV1QuerySimulateRecoveryExitResponse, + QuerySimulateExitAllTokensExactLptRequest as PryzmAmmV1QuerySimulateExitAllTokensExactLptRequest, + QuerySimulateExitAllTokensExactLptResponse as PryzmAmmV1QuerySimulateExitAllTokensExactLptResponse, + QuerySpotPriceRequest as PryzmAmmV1QuerySpotPriceRequest, + QuerySpotPriceResponse as PryzmAmmV1QuerySpotPriceResponse, + QueryGetIntroducingPoolTokenRequest as PryzmAmmV1QueryGetIntroducingPoolTokenRequest, + QueryGetIntroducingPoolTokenResponse as PryzmAmmV1QueryGetIntroducingPoolTokenResponse, + QueryAllIntroducingPoolTokenRequest as PryzmAmmV1QueryAllIntroducingPoolTokenRequest, + QueryAllIntroducingPoolTokenResponse as PryzmAmmV1QueryAllIntroducingPoolTokenResponse, + QueryGetPermanentVirtualBalancePoolTokenRequest as PryzmAmmV1QueryGetPermanentVirtualBalancePoolTokenRequest, + QueryGetPermanentVirtualBalancePoolTokenResponse as PryzmAmmV1QueryGetPermanentVirtualBalancePoolTokenResponse, + QueryAllPermanentVirtualBalancePoolTokenRequest as PryzmAmmV1QueryAllPermanentVirtualBalancePoolTokenRequest, + QueryAllPermanentVirtualBalancePoolTokenResponse as PryzmAmmV1QueryAllPermanentVirtualBalancePoolTokenResponse, + QueryGetExpiringPoolTokenRequest as PryzmAmmV1QueryGetExpiringPoolTokenRequest, + QueryGetExpiringPoolTokenResponse as PryzmAmmV1QueryGetExpiringPoolTokenResponse, + QueryAllExpiringPoolTokenRequest as PryzmAmmV1QueryAllExpiringPoolTokenRequest, + QueryAllExpiringPoolTokenResponse as PryzmAmmV1QueryAllExpiringPoolTokenResponse, + QueryLpTokenRequest as PryzmAmmV1QueryLpTokenRequest, + QueryLpTokenResponse as PryzmAmmV1QueryLpTokenResponse, + QuerySimulateBatchSwapRequest as PryzmAmmV1QuerySimulateBatchSwapRequest, + QuerySimulateBatchSwapResponse as PryzmAmmV1QuerySimulateBatchSwapResponse, + QueryGetYammConfigurationRequest as PryzmAmmV1QueryGetYammConfigurationRequest, + QueryGetYammConfigurationResponse as PryzmAmmV1QueryGetYammConfigurationResponse, + QueryAllYammConfigurationRequest as PryzmAmmV1QueryAllYammConfigurationRequest, + QueryAllYammConfigurationResponse as PryzmAmmV1QueryAllYammConfigurationResponse, + QueryGetWhitelistedRouteRequest as PryzmAmmV1QueryGetWhitelistedRouteRequest, + QueryGetWhitelistedRouteResponse as PryzmAmmV1QueryGetWhitelistedRouteResponse, + QueryAllWhitelistedRouteRequest as PryzmAmmV1QueryAllWhitelistedRouteRequest, + QueryAllWhitelistedRouteResponse as PryzmAmmV1QueryAllWhitelistedRouteResponse, + QueryGetOrderRequest as PryzmAmmV1QueryGetOrderRequest, + QueryGetOrderResponse as PryzmAmmV1QueryGetOrderResponse, + QueryAllOrderRequest as PryzmAmmV1QueryAllOrderRequest, + QueryAllOrderResponse as PryzmAmmV1QueryAllOrderResponse, + QueryGetExecutableOrderRequest as PryzmAmmV1QueryGetExecutableOrderRequest, + QueryGetExecutableOrderResponse as PryzmAmmV1QueryGetExecutableOrderResponse, + QueryAllExecutableOrderRequest as PryzmAmmV1QueryAllExecutableOrderRequest, + QueryAllExecutableOrderResponse as PryzmAmmV1QueryAllExecutableOrderResponse, + QueryGetScheduleOrderRequest as PryzmAmmV1QueryGetScheduleOrderRequest, + QueryGetScheduleOrderResponse as PryzmAmmV1QueryGetScheduleOrderResponse, + QueryAllScheduleOrderRequest as PryzmAmmV1QueryAllScheduleOrderRequest, + QueryAllScheduleOrderResponse as PryzmAmmV1QueryAllScheduleOrderResponse, + QueryGetOraclePricePairRequest as PryzmAmmV1QueryGetOraclePricePairRequest, + QueryGetOraclePricePairResponse as PryzmAmmV1QueryGetOraclePricePairResponse, + QueryAllOraclePricePairRequest as PryzmAmmV1QueryAllOraclePricePairRequest, + QueryAllOraclePricePairResponse as PryzmAmmV1QueryAllOraclePricePairResponse, + QueryVaultPauseModeRequest as PryzmAmmV1QueryVaultPauseModeRequest, + QueryVaultPauseModeResponse as PryzmAmmV1QueryVaultPauseModeResponse, + QueryGetPendingTokenIntroductionRequest as PryzmAmmV1QueryGetPendingTokenIntroductionRequest, + QueryGetPendingTokenIntroductionResponse as PryzmAmmV1QueryGetPendingTokenIntroductionResponse, + QueryAllPendingTokenIntroductionRequest as PryzmAmmV1QueryAllPendingTokenIntroductionRequest, + QueryAllPendingTokenIntroductionResponse as PryzmAmmV1QueryAllPendingTokenIntroductionResponse, + QueryYammPoolIdRequest as PryzmAmmV1QueryYammPoolIdRequest, + QueryYammPoolIdResponse as PryzmAmmV1QueryYammPoolIdResponse, + QueryOrderStepBoundsRequest as PryzmAmmV1QueryOrderStepBoundsRequest, + QueryOrderStepBoundsResponse as PryzmAmmV1QueryOrderStepBoundsResponse, + QueryAllDisabledOrderPairRequest as PryzmAmmV1QueryAllDisabledOrderPairRequest, + QueryAllDisabledOrderPairResponse as PryzmAmmV1QueryAllDisabledOrderPairResponse, + QueryOrderPairDisabledRequest as PryzmAmmV1QueryOrderPairDisabledRequest, + QueryOrderPairDisabledResponse as PryzmAmmV1QueryOrderPairDisabledResponse, +} from "./pryzm/amm/v1/query_pb.js"; +export { + QueryParamsService as PryzmAmmV1QueryParamsService, + QueryPoolTokenService as PryzmAmmV1QueryPoolTokenService, + QueryPoolTokenAllService as PryzmAmmV1QueryPoolTokenAllService, + QueryPoolTokenAllForPoolService as PryzmAmmV1QueryPoolTokenAllForPoolService, + QueryPoolTokenWeightAllService as PryzmAmmV1QueryPoolTokenWeightAllService, + QueryPoolTokenWeightService as PryzmAmmV1QueryPoolTokenWeightService, + QueryPoolTokenInfoAllService as PryzmAmmV1QueryPoolTokenInfoAllService, + QueryPoolTokenInfoService as PryzmAmmV1QueryPoolTokenInfoService, + QueryPoolService as PryzmAmmV1QueryPoolService, + QueryPoolAllService as PryzmAmmV1QueryPoolAllService, + QueryWeightedTokenService as PryzmAmmV1QueryWeightedTokenService, + QueryWeightedTokenAllService as PryzmAmmV1QueryWeightedTokenAllService, + QueryWeightUpdateTimingService as PryzmAmmV1QueryWeightUpdateTimingService, + QueryWeightUpdateTimingAllService as PryzmAmmV1QueryWeightUpdateTimingAllService, + QuerySimulateSingleSwapService as PryzmAmmV1QuerySimulateSingleSwapService, + QuerySimulateInitializePoolService as PryzmAmmV1QuerySimulateInitializePoolService, + QuerySimulateJoinAllTokensExactLptService as PryzmAmmV1QuerySimulateJoinAllTokensExactLptService, + QuerySimulateJoinExactTokensService as PryzmAmmV1QuerySimulateJoinExactTokensService, + QuerySimulateZeroImpactJoinYammService as PryzmAmmV1QuerySimulateZeroImpactJoinYammService, + QuerySimulateRecoveryExitService as PryzmAmmV1QuerySimulateRecoveryExitService, + QuerySimulateJoinTokenExactLptService as PryzmAmmV1QuerySimulateJoinTokenExactLptService, + QuerySimulateExitTokenExactLptService as PryzmAmmV1QuerySimulateExitTokenExactLptService, + QuerySimulateExitExactTokensService as PryzmAmmV1QuerySimulateExitExactTokensService, + QuerySimulateExitAllTokensExactLptService as PryzmAmmV1QuerySimulateExitAllTokensExactLptService, + QuerySpotPriceService as PryzmAmmV1QuerySpotPriceService, + QueryPermanentVirtualBalancePoolTokenService as PryzmAmmV1QueryPermanentVirtualBalancePoolTokenService, + QueryPermanentVirtualBalancePoolTokenAllService as PryzmAmmV1QueryPermanentVirtualBalancePoolTokenAllService, + QueryIntroducingPoolTokenService as PryzmAmmV1QueryIntroducingPoolTokenService, + QueryIntroducingPoolTokenAllService as PryzmAmmV1QueryIntroducingPoolTokenAllService, + QueryExpiringPoolTokenService as PryzmAmmV1QueryExpiringPoolTokenService, + QueryExpiringPoolTokenAllService as PryzmAmmV1QueryExpiringPoolTokenAllService, + QueryLpTokenService as PryzmAmmV1QueryLpTokenService, + QuerySimulateBatchSwapService as PryzmAmmV1QuerySimulateBatchSwapService, + QueryYammConfigurationService as PryzmAmmV1QueryYammConfigurationService, + QueryYammConfigurationAllService as PryzmAmmV1QueryYammConfigurationAllService, + QueryWhitelistedRouteService as PryzmAmmV1QueryWhitelistedRouteService, + QueryWhitelistedRouteAllService as PryzmAmmV1QueryWhitelistedRouteAllService, + QueryOrderService as PryzmAmmV1QueryOrderService, + QueryOrderAllService as PryzmAmmV1QueryOrderAllService, + QueryExecutableOrderService as PryzmAmmV1QueryExecutableOrderService, + QueryExecutableOrderAllService as PryzmAmmV1QueryExecutableOrderAllService, + QueryScheduleOrderService as PryzmAmmV1QueryScheduleOrderService, + QueryScheduleOrderAllService as PryzmAmmV1QueryScheduleOrderAllService, + QueryOraclePricePairService as PryzmAmmV1QueryOraclePricePairService, + QueryOraclePricePairAllService as PryzmAmmV1QueryOraclePricePairAllService, + QueryVaultPauseModeService as PryzmAmmV1QueryVaultPauseModeService, + QueryPendingTokenIntroductionService as PryzmAmmV1QueryPendingTokenIntroductionService, + QueryPendingTokenIntroductionAllService as PryzmAmmV1QueryPendingTokenIntroductionAllService, + QueryYammPoolIdService as PryzmAmmV1QueryYammPoolIdService, + QueryOrderStepBoundsService as PryzmAmmV1QueryOrderStepBoundsService, + QueryDisabledOrderPairAllService as PryzmAmmV1QueryDisabledOrderPairAllService, + QueryOrderPairDisabledService as PryzmAmmV1QueryOrderPairDisabledService, +} from "./pryzm/amm/v1/query_cosmes.js"; +export { + CircuitBreaker as PryzmAmmV1CircuitBreaker, + PoolToken as PryzmAmmV1PoolToken, + TokenAmount as PryzmAmmV1TokenAmount, + TokenInfo as PryzmAmmV1TokenInfo, +} from "./pryzm/amm/v1/pool_token_pb.js"; +export { + PoolType as PryzmAmmV1PoolType, + PoolPauseWindow as PryzmAmmV1PoolPauseWindow, + SwapFeeUpdateParams as PryzmAmmV1SwapFeeUpdateParams, + Pool as PryzmAmmV1Pool, +} from "./pryzm/amm/v1/pool_pb.js"; +export { + PendingTokenIntroduction as PryzmAmmV1PendingTokenIntroduction, +} from "./pryzm/amm/v1/pending_token_introduction_pb.js"; +export { + OrderParameters as PryzmAmmV1OrderParameters, + YammParameters as PryzmAmmV1YammParameters, + GeneralPoolParameters as PryzmAmmV1GeneralPoolParameters, + AuthorizationParameters as PryzmAmmV1AuthorizationParameters, + GasParameters as PryzmAmmV1GasParameters, + WeightedPoolParameters as PryzmAmmV1WeightedPoolParameters, + Params as PryzmAmmV1Params, +} from "./pryzm/amm/v1/params_pb.js"; +export { + PairMatchProposal as PryzmAmmV1PairMatchProposal, + MatchedOrderSummary as PryzmAmmV1MatchedOrderSummary, + MatchedPairSummary as PryzmAmmV1MatchedPairSummary, +} from "./pryzm/amm/v1/pair_match_proposal_pb.js"; +export { + Order as PryzmAmmV1Order, + DisabledOrderPair as PryzmAmmV1DisabledOrderPair, +} from "./pryzm/amm/v1/order_pb.js"; +export { + TwapAlgorithm as PryzmAmmV1TwapAlgorithm, + Pair as PryzmAmmV1Pair, + OraclePricePair as PryzmAmmV1OraclePricePair, +} from "./pryzm/amm/v1/oracle_price_pair_pb.js"; +export { + OraclePayloadDataSourceBlockHeight as PryzmAmmV1OraclePayloadDataSourceBlockHeight, + OraclePayload as PryzmAmmV1OraclePayload, +} from "./pryzm/amm/v1/oracle_payload_pb.js"; +export { + SwapType as PryzmAmmV1SwapType, + JoinType as PryzmAmmV1JoinType, + ExitType as PryzmAmmV1ExitType, + Swap as PryzmAmmV1Swap, + SwapStep as PryzmAmmV1SwapStep, + SwapSummary as PryzmAmmV1SwapSummary, + JoinSummary as PryzmAmmV1JoinSummary, + ExitSummary as PryzmAmmV1ExitSummary, +} from "./pryzm/amm/v1/operations_pb.js"; +export { + GenesisPoolData as PryzmAmmV1GenesisPoolData, + YammPoolAssetId as PryzmAmmV1YammPoolAssetId, + GenesisState as PryzmAmmV1GenesisState, +} from "./pryzm/amm/v1/genesis_pb.js"; +export { + RemoveOrderReason as PryzmAmmV1RemoveOrderReason, + EventSetPool as PryzmAmmV1EventSetPool, + EventSetPoolCount as PryzmAmmV1EventSetPoolCount, + EventSetOrderPairDisabled as PryzmAmmV1EventSetOrderPairDisabled, + EventSetLpTokenSupply as PryzmAmmV1EventSetLpTokenSupply, + EventSetPoolToken as PryzmAmmV1EventSetPoolToken, + EventRemovePoolToken as PryzmAmmV1EventRemovePoolToken, + EventSetWeightedToken as PryzmAmmV1EventSetWeightedToken, + EventRemoveWeightedToken as PryzmAmmV1EventRemoveWeightedToken, + EventSetWeightUpdateTiming as PryzmAmmV1EventSetWeightUpdateTiming, + EventSetWhitelistedRoute as PryzmAmmV1EventSetWhitelistedRoute, + EventSetYammConfiguration as PryzmAmmV1EventSetYammConfiguration, + EventSetOrder as PryzmAmmV1EventSetOrder, + EventSetOrderCount as PryzmAmmV1EventSetOrderCount, + EventRemoveOrder as PryzmAmmV1EventRemoveOrder, + EventCancelOrder as PryzmAmmV1EventCancelOrder, + EventSetScheduleOrder as PryzmAmmV1EventSetScheduleOrder, + EventRemoveScheduleOrder as PryzmAmmV1EventRemoveScheduleOrder, + EventSetExecutableOrder as PryzmAmmV1EventSetExecutableOrder, + EventRemoveExecutableOrder as PryzmAmmV1EventRemoveExecutableOrder, + EventSetIntroducingPoolToken as PryzmAmmV1EventSetIntroducingPoolToken, + EventRemoveIntroducingPoolToken as PryzmAmmV1EventRemoveIntroducingPoolToken, + EventSetExpiringPoolToken as PryzmAmmV1EventSetExpiringPoolToken, + EventRemoveExpiringPoolToken as PryzmAmmV1EventRemoveExpiringPoolToken, + EventSetYammPoolForAssetId as PryzmAmmV1EventSetYammPoolForAssetId, + EventSetVaultPaused as PryzmAmmV1EventSetVaultPaused, + EventExecuteOrder as PryzmAmmV1EventExecuteOrder, + EventExecuteOrdersForPair as PryzmAmmV1EventExecuteOrdersForPair, + EventExecuteMatchProposal as PryzmAmmV1EventExecuteMatchProposal, + EventExitPool as PryzmAmmV1EventExitPool, + EventJoinPool as PryzmAmmV1EventJoinPool, + EventSwap as PryzmAmmV1EventSwap, + EventExitPoolRequest as PryzmAmmV1EventExitPoolRequest, + EventJoinPoolRequest as PryzmAmmV1EventJoinPoolRequest, + EventSingleSwapRequest as PryzmAmmV1EventSingleSwapRequest, + EventBatchSwapRequest as PryzmAmmV1EventBatchSwapRequest, + EventYAssetSwapRefractorAction as PryzmAmmV1EventYAssetSwapRefractorAction, + EventYAssetSwap as PryzmAmmV1EventYAssetSwap, + EventSetOraclePricePair as PryzmAmmV1EventSetOraclePricePair, + EventRemoveOraclePricePair as PryzmAmmV1EventRemoveOraclePricePair, + EventSetPendingTokenIntroduction as PryzmAmmV1EventSetPendingTokenIntroduction, + EventRemovePendingTokenIntroduction as PryzmAmmV1EventRemovePendingTokenIntroduction, + EventSetParams as PryzmAmmV1EventSetParams, + EventSetPermanentVirtualBalancePoolToken as PryzmAmmV1EventSetPermanentVirtualBalancePoolToken, + EventRemovePermanentVirtualBalancePoolToken as PryzmAmmV1EventRemovePermanentVirtualBalancePoolToken, +} from "./pryzm/amm/v1/event_pb.js"; export { MsgSetValidatorSetPreference as OsmosisValsetprefV1beta1MsgSetValidatorSetPreference, MsgSetValidatorSetPreferenceResponse as OsmosisValsetprefV1beta1MsgSetValidatorSetPreferenceResponse, @@ -170,29 +1950,28 @@ export { QueryUserValidatorPreferencesService as OsmosisValsetprefV1beta1QueryUserValidatorPreferencesService, } from "./osmosis/valsetpref/v1beta1/query_cosmes.js"; export { - QueryFeeTokensRequest as OsmosisTxfeesV1beta1QueryFeeTokensRequest, - QueryFeeTokensResponse as OsmosisTxfeesV1beta1QueryFeeTokensResponse, - QueryDenomSpotPriceRequest as OsmosisTxfeesV1beta1QueryDenomSpotPriceRequest, - QueryDenomSpotPriceResponse as OsmosisTxfeesV1beta1QueryDenomSpotPriceResponse, - QueryDenomPoolIdRequest as OsmosisTxfeesV1beta1QueryDenomPoolIdRequest, - QueryDenomPoolIdResponse as OsmosisTxfeesV1beta1QueryDenomPoolIdResponse, - QueryBaseDenomRequest as OsmosisTxfeesV1beta1QueryBaseDenomRequest, - QueryBaseDenomResponse as OsmosisTxfeesV1beta1QueryBaseDenomResponse, + MsgSetFeeTokens as OsmosisTxfeesV1beta1MsgSetFeeTokens, + MsgSetFeeTokensResponse as OsmosisTxfeesV1beta1MsgSetFeeTokensResponse, +} from "./osmosis/txfees/v1beta1/tx_pb.js"; +export { + MsgSetFeeTokensService as OsmosisTxfeesV1beta1MsgSetFeeTokensService, +} from "./osmosis/txfees/v1beta1/tx_cosmes.js"; +export { QueryEipBaseFeeRequest as OsmosisTxfeesV1beta1QueryEipBaseFeeRequest, QueryEipBaseFeeResponse as OsmosisTxfeesV1beta1QueryEipBaseFeeResponse, } from "./osmosis/txfees/v1beta1/query_pb.js"; export { - QueryFeeTokensService as OsmosisTxfeesV1beta1QueryFeeTokensService, - QueryDenomSpotPriceService as OsmosisTxfeesV1beta1QueryDenomSpotPriceService, - QueryDenomPoolIdService as OsmosisTxfeesV1beta1QueryDenomPoolIdService, - QueryBaseDenomService as OsmosisTxfeesV1beta1QueryBaseDenomService, QueryGetEipBaseFeeService as OsmosisTxfeesV1beta1QueryGetEipBaseFeeService, } from "./osmosis/txfees/v1beta1/query_cosmes.js"; +export { + Params as OsmosisTxfeesV1beta1Params, +} from "./osmosis/txfees/v1beta1/params_pb.js"; export { UpdateFeeTokenProposal as OsmosisTxfeesV1beta1UpdateFeeTokenProposal, } from "./osmosis/txfees/v1beta1/gov_pb.js"; export { GenesisState as OsmosisTxfeesV1beta1GenesisState, + TxFeesTracker as OsmosisTxfeesV1beta1TxFeesTracker, } from "./osmosis/txfees/v1beta1/genesis_pb.js"; export { FeeToken as OsmosisTxfeesV1beta1FeeToken, @@ -224,6 +2003,10 @@ export { Params as OsmosisTwapV1beta1Params, GenesisState as OsmosisTwapV1beta1GenesisState, } from "./osmosis/twap/v1beta1/genesis_pb.js"; +export { + WhitelistedHook as OsmosisTokenfactoryWhitelistedHook, + Params as OsmosisTokenfactoryParams, +} from "./osmosis/tokenfactory/params_pb.js"; export { MsgCreateDenom as OsmosisTokenfactoryV1beta1MsgCreateDenom, MsgCreateDenomResponse as OsmosisTokenfactoryV1beta1MsgCreateDenomResponse, @@ -258,12 +2041,15 @@ export { QueryDenomsFromCreatorResponse as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorResponse, QueryBeforeSendHookAddressRequest as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressResponse, + QueryAllBeforeSendHooksAddressesRequest as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesRequest, + QueryAllBeforeSendHooksAddressesResponse as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesResponse, } from "./osmosis/tokenfactory/v1beta1/query_pb.js"; export { QueryParamsService as OsmosisTokenfactoryV1beta1QueryParamsService, QueryDenomAuthorityMetadataService as OsmosisTokenfactoryV1beta1QueryDenomAuthorityMetadataService, QueryDenomsFromCreatorService as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorService, QueryBeforeSendHookAddressService as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressService, + QueryAllBeforeSendHooksAddressesService as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesService, } from "./osmosis/tokenfactory/v1beta1/query_cosmes.js"; export { Params as OsmosisTokenfactoryV1beta1Params, @@ -395,6 +2181,43 @@ export { Child as OsmosisStoreV1beta1Child, Leaf as OsmosisStoreV1beta1Leaf, } from "./osmosis/store/v1beta1/tree_pb.js"; +export { + MsgAddAuthenticator as OsmosisSmartaccountV1beta1MsgAddAuthenticator, + MsgAddAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgAddAuthenticatorResponse, + MsgRemoveAuthenticator as OsmosisSmartaccountV1beta1MsgRemoveAuthenticator, + MsgRemoveAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorResponse, + MsgSetActiveState as OsmosisSmartaccountV1beta1MsgSetActiveState, + MsgSetActiveStateResponse as OsmosisSmartaccountV1beta1MsgSetActiveStateResponse, + TxExtension as OsmosisSmartaccountV1beta1TxExtension, +} from "./osmosis/smartaccount/v1beta1/tx_pb.js"; +export { + MsgAddAuthenticatorService as OsmosisSmartaccountV1beta1MsgAddAuthenticatorService, + MsgRemoveAuthenticatorService as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorService, + MsgSetActiveStateService as OsmosisSmartaccountV1beta1MsgSetActiveStateService, +} from "./osmosis/smartaccount/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as OsmosisSmartaccountV1beta1QueryParamsRequest, + QueryParamsResponse as OsmosisSmartaccountV1beta1QueryParamsResponse, + GetAuthenticatorsRequest as OsmosisSmartaccountV1beta1GetAuthenticatorsRequest, + GetAuthenticatorsResponse as OsmosisSmartaccountV1beta1GetAuthenticatorsResponse, + GetAuthenticatorRequest as OsmosisSmartaccountV1beta1GetAuthenticatorRequest, + GetAuthenticatorResponse as OsmosisSmartaccountV1beta1GetAuthenticatorResponse, +} from "./osmosis/smartaccount/v1beta1/query_pb.js"; +export { + QueryParamsService as OsmosisSmartaccountV1beta1QueryParamsService, + QueryGetAuthenticatorService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorService, + QueryGetAuthenticatorsService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorsService, +} from "./osmosis/smartaccount/v1beta1/query_cosmes.js"; +export { + Params as OsmosisSmartaccountV1beta1Params, +} from "./osmosis/smartaccount/v1beta1/params_pb.js"; +export { + AccountAuthenticator as OsmosisSmartaccountV1beta1AccountAuthenticator, +} from "./osmosis/smartaccount/v1beta1/models_pb.js"; +export { + AuthenticatorData as OsmosisSmartaccountV1beta1AuthenticatorData, + GenesisState as OsmosisSmartaccountV1beta1GenesisState, +} from "./osmosis/smartaccount/v1beta1/genesis_pb.js"; export { MsgSetHotRoutes as OsmosisProtorevV1beta1MsgSetHotRoutes, MsgSetHotRoutesResponse as OsmosisProtorevV1beta1MsgSetHotRoutesResponse, @@ -408,6 +2231,7 @@ export { MsgSetMaxPoolPointsPerBlockResponse as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlockResponse, MsgSetBaseDenoms as OsmosisProtorevV1beta1MsgSetBaseDenoms, MsgSetBaseDenomsResponse as OsmosisProtorevV1beta1MsgSetBaseDenomsResponse, + MsgSetPoolWeights as OsmosisProtorevV1beta1MsgSetPoolWeights, } from "./osmosis/protorev/v1beta1/tx_pb.js"; export { MsgSetHotRoutesService as OsmosisProtorevV1beta1MsgSetHotRoutesService, @@ -514,6 +2338,10 @@ export { MsgSplitRouteSwapExactAmountOutResponse as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountOutResponse, MsgSetDenomPairTakerFee as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFee, MsgSetDenomPairTakerFeeResponse as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFeeResponse, + MsgSetTakerFeeShareAgreementForDenom as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenom, + MsgSetTakerFeeShareAgreementForDenomResponse as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenomResponse, + MsgSetRegisteredAlloyedPool as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPool, + MsgSetRegisteredAlloyedPoolResponse as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPoolResponse, DenomPairTakerFee as OsmosisPoolmanagerV1beta1DenomPairTakerFee, } from "./osmosis/poolmanager/v1beta1/tx_pb.js"; export { @@ -522,10 +2350,17 @@ export { MsgSplitRouteSwapExactAmountInService as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountInService, MsgSplitRouteSwapExactAmountOutService as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountOutService, MsgSetDenomPairTakerFeeService as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFeeService, + MsgSetTakerFeeShareAgreementForDenomService as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenomService, + MsgSetRegisteredAlloyedPoolService as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPoolService, } from "./osmosis/poolmanager/v1beta1/tx_cosmes.js"; export { TrackedVolume as OsmosisPoolmanagerV1beta1TrackedVolume, } from "./osmosis/poolmanager/v1beta1/tracked_volume_pb.js"; +export { + TakerFeeShareAgreement as OsmosisPoolmanagerV1beta1TakerFeeShareAgreement, + TakerFeeSkimAccumulator as OsmosisPoolmanagerV1beta1TakerFeeSkimAccumulator, + AlloyContractTakerFeeShareState as OsmosisPoolmanagerV1beta1AlloyContractTakerFeeShareState, +} from "./osmosis/poolmanager/v1beta1/taker_fee_share_pb.js"; export { SwapAmountInRoute as OsmosisPoolmanagerV1beta1SwapAmountInRoute, SwapAmountOutRoute as OsmosisPoolmanagerV1beta1SwapAmountOutRoute, @@ -563,6 +2398,20 @@ export { TradingPairTakerFeeResponse as OsmosisPoolmanagerV1beta1TradingPairTakerFeeResponse, EstimateTradeBasedOnPriceImpactRequest as OsmosisPoolmanagerV1beta1EstimateTradeBasedOnPriceImpactRequest, EstimateTradeBasedOnPriceImpactResponse as OsmosisPoolmanagerV1beta1EstimateTradeBasedOnPriceImpactResponse, + AllTakerFeeShareAgreementsRequest as OsmosisPoolmanagerV1beta1AllTakerFeeShareAgreementsRequest, + AllTakerFeeShareAgreementsResponse as OsmosisPoolmanagerV1beta1AllTakerFeeShareAgreementsResponse, + TakerFeeShareAgreementFromDenomRequest as OsmosisPoolmanagerV1beta1TakerFeeShareAgreementFromDenomRequest, + TakerFeeShareAgreementFromDenomResponse as OsmosisPoolmanagerV1beta1TakerFeeShareAgreementFromDenomResponse, + TakerFeeShareDenomsToAccruedValueRequest as OsmosisPoolmanagerV1beta1TakerFeeShareDenomsToAccruedValueRequest, + TakerFeeShareDenomsToAccruedValueResponse as OsmosisPoolmanagerV1beta1TakerFeeShareDenomsToAccruedValueResponse, + AllTakerFeeShareAccumulatorsRequest as OsmosisPoolmanagerV1beta1AllTakerFeeShareAccumulatorsRequest, + AllTakerFeeShareAccumulatorsResponse as OsmosisPoolmanagerV1beta1AllTakerFeeShareAccumulatorsResponse, + RegisteredAlloyedPoolFromDenomRequest as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromDenomRequest, + RegisteredAlloyedPoolFromDenomResponse as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromDenomResponse, + RegisteredAlloyedPoolFromPoolIdRequest as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromPoolIdRequest, + RegisteredAlloyedPoolFromPoolIdResponse as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromPoolIdResponse, + AllRegisteredAlloyedPoolsRequest as OsmosisPoolmanagerV1beta1AllRegisteredAlloyedPoolsRequest, + AllRegisteredAlloyedPoolsResponse as OsmosisPoolmanagerV1beta1AllRegisteredAlloyedPoolsResponse, } from "./osmosis/poolmanager/v1beta1/query_pb.js"; export { QueryParamsService as OsmosisPoolmanagerV1beta1QueryParamsService, @@ -582,6 +2431,13 @@ export { QueryTotalVolumeForPoolService as OsmosisPoolmanagerV1beta1QueryTotalVolumeForPoolService, QueryTradingPairTakerFeeService as OsmosisPoolmanagerV1beta1QueryTradingPairTakerFeeService, QueryEstimateTradeBasedOnPriceImpactService as OsmosisPoolmanagerV1beta1QueryEstimateTradeBasedOnPriceImpactService, + QueryAllTakerFeeShareAgreementsService as OsmosisPoolmanagerV1beta1QueryAllTakerFeeShareAgreementsService, + QueryTakerFeeShareAgreementFromDenomService as OsmosisPoolmanagerV1beta1QueryTakerFeeShareAgreementFromDenomService, + QueryTakerFeeShareDenomsToAccruedValueService as OsmosisPoolmanagerV1beta1QueryTakerFeeShareDenomsToAccruedValueService, + QueryAllTakerFeeShareAccumulatorsService as OsmosisPoolmanagerV1beta1QueryAllTakerFeeShareAccumulatorsService, + QueryRegisteredAlloyedPoolFromDenomService as OsmosisPoolmanagerV1beta1QueryRegisteredAlloyedPoolFromDenomService, + QueryRegisteredAlloyedPoolFromPoolIdService as OsmosisPoolmanagerV1beta1QueryRegisteredAlloyedPoolFromPoolIdService, + QueryAllRegisteredAlloyedPoolsService as OsmosisPoolmanagerV1beta1QueryAllRegisteredAlloyedPoolsService, } from "./osmosis/poolmanager/v1beta1/query_cosmes.js"; export { PoolType as OsmosisPoolmanagerV1beta1PoolType, @@ -647,10 +2503,13 @@ export { QueryParamsResponse as OsmosisMintV1beta1QueryParamsResponse, QueryEpochProvisionsRequest as OsmosisMintV1beta1QueryEpochProvisionsRequest, QueryEpochProvisionsResponse as OsmosisMintV1beta1QueryEpochProvisionsResponse, + QueryInflationRequest as OsmosisMintV1beta1QueryInflationRequest, + QueryInflationResponse as OsmosisMintV1beta1QueryInflationResponse, } from "./osmosis/mint/v1beta1/query_pb.js"; export { QueryParamsService as OsmosisMintV1beta1QueryParamsService, QueryEpochProvisionsService as OsmosisMintV1beta1QueryEpochProvisionsService, + QueryInflationService as OsmosisMintV1beta1QueryInflationService, } from "./osmosis/mint/v1beta1/query_cosmes.js"; export { Minter as OsmosisMintV1beta1Minter, @@ -674,6 +2533,8 @@ export { MsgForceUnlockResponse as OsmosisLockupMsgForceUnlockResponse, MsgSetRewardReceiverAddress as OsmosisLockupMsgSetRewardReceiverAddress, MsgSetRewardReceiverAddressResponse as OsmosisLockupMsgSetRewardReceiverAddressResponse, + MsgUnlockPeriodLock as OsmosisLockupMsgUnlockPeriodLock, + MsgUnlockTokens as OsmosisLockupMsgUnlockTokens, } from "./osmosis/lockup/tx_pb.js"; export { MsgLockTokensService as OsmosisLockupMsgLockTokensService, @@ -759,6 +2620,14 @@ export { export { GenesisState as OsmosisLockupGenesisState, } from "./osmosis/lockup/genesis_pb.js"; +export { + PoolData as OsmosisIngestV1beta1PoolData, + ProcessBlockRequest as OsmosisIngestV1beta1ProcessBlockRequest, + ProcessBlockReply as OsmosisIngestV1beta1ProcessBlockReply, +} from "./osmosis/ingest/v1beta1/ingest_pb.js"; +export { + SQSIngesterProcessBlockService as OsmosisIngestV1beta1SQSIngesterProcessBlockService, +} from "./osmosis/ingest/v1beta1/ingest_cosmes.js"; export { MsgCreateGauge as OsmosisIncentivesMsgCreateGauge, MsgCreateGaugeResponse as OsmosisIncentivesMsgCreateGaugeResponse, @@ -802,6 +2671,14 @@ export { QueryCurrentWeightByGroupGaugeIDRequest as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDRequest, QueryCurrentWeightByGroupGaugeIDResponse as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDResponse, GaugeWeight as OsmosisIncentivesGaugeWeight, + QueryInternalGaugesRequest as OsmosisIncentivesQueryInternalGaugesRequest, + QueryInternalGaugesResponse as OsmosisIncentivesQueryInternalGaugesResponse, + QueryExternalGaugesRequest as OsmosisIncentivesQueryExternalGaugesRequest, + QueryExternalGaugesResponse as OsmosisIncentivesQueryExternalGaugesResponse, + QueryGaugesByPoolIDRequest as OsmosisIncentivesQueryGaugesByPoolIDRequest, + QueryGaugesByPoolIDResponse as OsmosisIncentivesQueryGaugesByPoolIDResponse, + ParamsRequest as OsmosisIncentivesParamsRequest, + ParamsResponse as OsmosisIncentivesParamsResponse, } from "./osmosis/incentives/query_pb.js"; export { QueryModuleToDistributeCoinsService as OsmosisIncentivesQueryModuleToDistributeCoinsService, @@ -818,6 +2695,10 @@ export { QueryAllGroupsWithGaugeService as OsmosisIncentivesQueryAllGroupsWithGaugeService, QueryGroupByGroupGaugeIDService as OsmosisIncentivesQueryGroupByGroupGaugeIDService, QueryCurrentWeightByGroupGaugeIDService as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDService, + QueryInternalGaugesService as OsmosisIncentivesQueryInternalGaugesService, + QueryExternalGaugesService as OsmosisIncentivesQueryExternalGaugesService, + QueryGaugesByPoolIDService as OsmosisIncentivesQueryGaugesByPoolIDService, + QueryParamsService as OsmosisIncentivesQueryParamsService, } from "./osmosis/incentives/query_cosmes.js"; export { Params as OsmosisIncentivesParams, @@ -906,6 +2787,8 @@ export { BalancerToConcentratedPoolLink as OsmosisGammV1beta1BalancerToConcentratedPoolLink, } from "./osmosis/gamm/v1beta1/shared_pb.js"; export { + ParamsRequest as OsmosisGammV1beta1ParamsRequest, + ParamsResponse as OsmosisGammV1beta1ParamsResponse, QueryPoolRequest as OsmosisGammV1beta1QueryPoolRequest, QueryPoolResponse as OsmosisGammV1beta1QueryPoolResponse, QueryPoolsRequest as OsmosisGammV1beta1QueryPoolsRequest, @@ -959,7 +2842,11 @@ export { QueryEstimateSwapExactAmountOutService as OsmosisGammV1beta1QueryEstimateSwapExactAmountOutService, QueryConcentratedPoolIdLinkFromCFMMService as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMService, QueryCFMMConcentratedPoolLinksService as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksService, + QueryParamsService as OsmosisGammV1beta1QueryParamsService, } from "./osmosis/gamm/v1beta1/query_cosmes.js"; +export { + Params as OsmosisGammV1beta1Params, +} from "./osmosis/gamm/v1beta1/params_pb.js"; export { ReplaceMigrationRecordsProposal as OsmosisGammV1beta1ReplaceMigrationRecordsProposal, UpdateMigrationRecordsProposal as OsmosisGammV1beta1UpdateMigrationRecordsProposal, @@ -968,7 +2855,6 @@ export { SetScalingFactorControllerProposal as OsmosisGammV1beta1SetScalingFactorControllerProposal, } from "./osmosis/gamm/v1beta1/gov_pb.js"; export { - Params as OsmosisGammV1beta1Params, GenesisState as OsmosisGammV1beta1GenesisState, } from "./osmosis/gamm/v1beta1/genesis_pb.js"; export { @@ -1035,11 +2921,14 @@ export { PoolsResponse as OsmosisCosmwasmpoolV1beta1PoolsResponse, ContractInfoByPoolIdRequest as OsmosisCosmwasmpoolV1beta1ContractInfoByPoolIdRequest, ContractInfoByPoolIdResponse as OsmosisCosmwasmpoolV1beta1ContractInfoByPoolIdResponse, + PoolRawFilteredStateRequest as OsmosisCosmwasmpoolV1beta1PoolRawFilteredStateRequest, + PoolRawFilteredStateResponse as OsmosisCosmwasmpoolV1beta1PoolRawFilteredStateResponse, } from "./osmosis/cosmwasmpool/v1beta1/query_pb.js"; export { QueryPoolsService as OsmosisCosmwasmpoolV1beta1QueryPoolsService, QueryParamsService as OsmosisCosmwasmpoolV1beta1QueryParamsService, QueryContractInfoByPoolIdService as OsmosisCosmwasmpoolV1beta1QueryContractInfoByPoolIdService, + QueryPoolRawFilteredStateService as OsmosisCosmwasmpoolV1beta1QueryPoolRawFilteredStateService, } from "./osmosis/cosmwasmpool/v1beta1/query_cosmes.js"; export { Params as OsmosisCosmwasmpoolV1beta1Params, @@ -1099,6 +2988,12 @@ export { export { InstantiateMsg as OsmosisCosmwasmpoolV1beta1ModelInstantiateMsg, } from "./osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.js"; +export { + ShareDenomResponse as OsmosisCosmwasmpoolV1beta1ModelV3ShareDenomResponse, + TotalPoolLiquidityResponse as OsmosisCosmwasmpoolV1beta1ModelV3TotalPoolLiquidityResponse, + AssetConfig as OsmosisCosmwasmpoolV1beta1ModelV3AssetConfig, + ListAssetConfigsResponse as OsmosisCosmwasmpoolV1beta1ModelV3ListAssetConfigsResponse, +} from "./osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.js"; export { Params as OsmosisConcentratedliquidityParams, } from "./osmosis/concentratedliquidity/params_pb.js"; @@ -1130,7 +3025,7 @@ export { TickInfo as OsmosisConcentratedliquidityV1beta1TickInfo, UptimeTrackers as OsmosisConcentratedliquidityV1beta1UptimeTrackers, UptimeTracker as OsmosisConcentratedliquidityV1beta1UptimeTracker, -} from "./osmosis/concentratedliquidity/v1beta1/tickInfo_pb.js"; +} from "./osmosis/concentratedliquidity/v1beta1/tick_info_pb.js"; export { UserPositionsRequest as OsmosisConcentratedliquidityV1beta1UserPositionsRequest, UserPositionsResponse as OsmosisConcentratedliquidityV1beta1UserPositionsResponse, @@ -1221,6 +3116,2427 @@ export { Options as OsmosisAccumV1beta1Options, Record as OsmosisAccumV1beta1Record, } from "./osmosis/accum/v1beta1/accum_pb.js"; +export { + MsgWithdrawProtocolFees as NobleSwapV1MsgWithdrawProtocolFees, + MsgWithdrawProtocolFeesResponse as NobleSwapV1MsgWithdrawProtocolFeesResponse, + MsgWithdrawRewards as NobleSwapV1MsgWithdrawRewards, + MsgWithdrawRewardsResponse as NobleSwapV1MsgWithdrawRewardsResponse, + MsgSwap as NobleSwapV1MsgSwap, + MsgSwapResponse as NobleSwapV1MsgSwapResponse, + MsgPauseByAlgorithm as NobleSwapV1MsgPauseByAlgorithm, + MsgPauseByAlgorithmResponse as NobleSwapV1MsgPauseByAlgorithmResponse, + MsgPauseByPoolIds as NobleSwapV1MsgPauseByPoolIds, + MsgPauseByPoolIdsResponse as NobleSwapV1MsgPauseByPoolIdsResponse, + MsgUnpauseByAlgorithm as NobleSwapV1MsgUnpauseByAlgorithm, + MsgUnpauseByAlgorithmResponse as NobleSwapV1MsgUnpauseByAlgorithmResponse, + MsgUnpauseByPoolIds as NobleSwapV1MsgUnpauseByPoolIds, + MsgUnpauseByPoolIdsResponse as NobleSwapV1MsgUnpauseByPoolIdsResponse, +} from "./noble/swap/v1/tx_pb.js"; +export { + MsgSwapService as NobleSwapV1MsgSwapService, + MsgWithdrawProtocolFeesService as NobleSwapV1MsgWithdrawProtocolFeesService, + MsgWithdrawRewardsService as NobleSwapV1MsgWithdrawRewardsService, + MsgPauseByAlgorithmService as NobleSwapV1MsgPauseByAlgorithmService, + MsgPauseByPoolIdsService as NobleSwapV1MsgPauseByPoolIdsService, + MsgUnpauseByAlgorithmService as NobleSwapV1MsgUnpauseByAlgorithmService, + MsgUnpauseByPoolIdsService as NobleSwapV1MsgUnpauseByPoolIdsService, +} from "./noble/swap/v1/tx_cosmes.js"; +export { + Route as NobleSwapV1Route, + Swap as NobleSwapV1Swap, +} from "./noble/swap/v1/swap_pb.js"; +export { + Rate as NobleSwapV1Rate, +} from "./noble/swap/v1/rate_pb.js"; +export { + QueryRates as NobleSwapV1QueryRates, + QueryRatesResponse as NobleSwapV1QueryRatesResponse, + QueryRate as NobleSwapV1QueryRate, + QueryRateResponse as NobleSwapV1QueryRateResponse, + QueryPaused as NobleSwapV1QueryPaused, + QueryPausedResponse as NobleSwapV1QueryPausedResponse, + QueryPools as NobleSwapV1QueryPools, + QueryPoolsResponse as NobleSwapV1QueryPoolsResponse, + QueryPool as NobleSwapV1QueryPool, + QueryPoolResponse as NobleSwapV1QueryPoolResponse, + QuerySimulateSwap as NobleSwapV1QuerySimulateSwap, +} from "./noble/swap/v1/query_pb.js"; +export { + QueryPausedService as NobleSwapV1QueryPausedService, + QueryPoolsService as NobleSwapV1QueryPoolsService, + QueryPoolService as NobleSwapV1QueryPoolService, + QuerySimulateSwapService as NobleSwapV1QuerySimulateSwapService, + QueryRatesService as NobleSwapV1QueryRatesService, + QueryRateService as NobleSwapV1QueryRateService, +} from "./noble/swap/v1/query_cosmes.js"; +export { + Pool as NobleSwapV1Pool, + PoolDetails as NobleSwapV1PoolDetails, +} from "./noble/swap/v1/pool_pb.js"; +export { + GenesisState as NobleSwapV1GenesisState, +} from "./noble/swap/v1/genesis_pb.js"; +export { + PoolsPaused as NobleSwapV1PoolsPaused, + PoolsUnpaused as NobleSwapV1PoolsUnpaused, + Swapped as NobleSwapV1Swapped, + WithdrawnProtocolFees as NobleSwapV1WithdrawnProtocolFees, + WithdrawnRewards as NobleSwapV1WithdrawnRewards, +} from "./noble/swap/v1/events_pb.js"; +export { + Algorithm as NobleSwapV1Algorithm, +} from "./noble/swap/v1/algorithm_pb.js"; +export { + MsgCreatePool as NobleSwapStableswapV1MsgCreatePool, + MsgCreatePoolResponse as NobleSwapStableswapV1MsgCreatePoolResponse, + MsgUpdatePool as NobleSwapStableswapV1MsgUpdatePool, + MsgUpdatePoolResponse as NobleSwapStableswapV1MsgUpdatePoolResponse, + MsgAddLiquidity as NobleSwapStableswapV1MsgAddLiquidity, + MsgAddLiquidityResponse as NobleSwapStableswapV1MsgAddLiquidityResponse, + MsgRemoveLiquidity as NobleSwapStableswapV1MsgRemoveLiquidity, + MsgRemoveLiquidityResponse as NobleSwapStableswapV1MsgRemoveLiquidityResponse, +} from "./noble/swap/stableswap/v1/tx_pb.js"; +export { + MsgCreatePoolService as NobleSwapStableswapV1MsgCreatePoolService, + MsgUpdatePoolService as NobleSwapStableswapV1MsgUpdatePoolService, + MsgAddLiquidityService as NobleSwapStableswapV1MsgAddLiquidityService, + MsgRemoveLiquidityService as NobleSwapStableswapV1MsgRemoveLiquidityService, +} from "./noble/swap/stableswap/v1/tx_cosmes.js"; +export { + QueryPositionsByProvider as NobleSwapStableswapV1QueryPositionsByProvider, + QueryPositionsByProviderResponse as NobleSwapStableswapV1QueryPositionsByProviderResponse, + QueryBondedPositionsByProvider as NobleSwapStableswapV1QueryBondedPositionsByProvider, + QueryBondedPositionsByProviderResponse as NobleSwapStableswapV1QueryBondedPositionsByProviderResponse, + QueryUnbondingPositionsByProvider as NobleSwapStableswapV1QueryUnbondingPositionsByProvider, + QueryUnbondingPositionsByProviderResponse as NobleSwapStableswapV1QueryUnbondingPositionsByProviderResponse, + QueryRewardsByProvider as NobleSwapStableswapV1QueryRewardsByProvider, + QueryRewardsByProviderResponse as NobleSwapStableswapV1QueryRewardsByProviderResponse, + QueryBondedPositionResponseEntry as NobleSwapStableswapV1QueryBondedPositionResponseEntry, + QueryUnbondingPositionResponseEntry as NobleSwapStableswapV1QueryUnbondingPositionResponseEntry, + QueryRewardsResponseEntry as NobleSwapStableswapV1QueryRewardsResponseEntry, +} from "./noble/swap/stableswap/v1/query_pb.js"; +export { + QueryPositionsByProviderService as NobleSwapStableswapV1QueryPositionsByProviderService, + QueryBondedPositionsByProviderService as NobleSwapStableswapV1QueryBondedPositionsByProviderService, + QueryUnbondingPositionsByProviderService as NobleSwapStableswapV1QueryUnbondingPositionsByProviderService, + QueryRewardsByProviderService as NobleSwapStableswapV1QueryRewardsByProviderService, +} from "./noble/swap/stableswap/v1/query_cosmes.js"; +export { + BondedPosition as NobleSwapStableswapV1BondedPosition, + UnbondingPosition as NobleSwapStableswapV1UnbondingPosition, +} from "./noble/swap/stableswap/v1/position_pb.js"; +export { + Pool as NobleSwapStableswapV1Pool, +} from "./noble/swap/stableswap/v1/pool_pb.js"; +export { + GenesisState as NobleSwapStableswapV1GenesisState, + BondedPositionEntry as NobleSwapStableswapV1BondedPositionEntry, + UnbondingPositionEntry as NobleSwapStableswapV1UnbondingPositionEntry, + PoolsTotalUnbondingSharesEntry as NobleSwapStableswapV1PoolsTotalUnbondingSharesEntry, + UsersTotalBondedSharesEntry as NobleSwapStableswapV1UsersTotalBondedSharesEntry, + UsersTotalUnbondingSharesEntry as NobleSwapStableswapV1UsersTotalUnbondingSharesEntry, +} from "./noble/swap/stableswap/v1/genesis_pb.js"; +export { + PoolCreated as NobleSwapStableswapV1PoolCreated, + PoolUpdated as NobleSwapStableswapV1PoolUpdated, + LiquidityAdded as NobleSwapStableswapV1LiquidityAdded, + LiquidityRemoved as NobleSwapStableswapV1LiquidityRemoved, +} from "./noble/swap/stableswap/v1/events_pb.js"; +export { + Module as NobleSwapModuleV1Module, + StableSwap as NobleSwapModuleV1StableSwap, +} from "./noble/swap/module/v1/module_pb.js"; +export { + VaultType as NobleDollarVaultsV1VaultType, + PausedType as NobleDollarVaultsV1PausedType, + Reward as NobleDollarVaultsV1Reward, + Position as NobleDollarVaultsV1Position, + PositionRewards as NobleDollarVaultsV1PositionRewards, + PositionEntry as NobleDollarVaultsV1PositionEntry, + Stats as NobleDollarVaultsV1Stats, +} from "./noble/dollar/vaults/v1/vaults_pb.js"; +export { + MsgLock as NobleDollarVaultsV1MsgLock, + MsgLockResponse as NobleDollarVaultsV1MsgLockResponse, + MsgUnlock as NobleDollarVaultsV1MsgUnlock, + MsgUnlockResponse as NobleDollarVaultsV1MsgUnlockResponse, + MsgSetPausedState as NobleDollarVaultsV1MsgSetPausedState, + MsgSetPausedStateResponse as NobleDollarVaultsV1MsgSetPausedStateResponse, +} from "./noble/dollar/vaults/v1/tx_pb.js"; +export { + MsgLockService as NobleDollarVaultsV1MsgLockService, + MsgUnlockService as NobleDollarVaultsV1MsgUnlockService, + MsgSetPausedStateService as NobleDollarVaultsV1MsgSetPausedStateService, +} from "./noble/dollar/vaults/v1/tx_cosmes.js"; +export { + QueryPositionsByProvider as NobleDollarVaultsV1QueryPositionsByProvider, + QueryPositionsByProviderResponse as NobleDollarVaultsV1QueryPositionsByProviderResponse, + QueryPaused as NobleDollarVaultsV1QueryPaused, + QueryPausedResponse as NobleDollarVaultsV1QueryPausedResponse, + QueryPendingRewards as NobleDollarVaultsV1QueryPendingRewards, + QueryPendingRewardsResponse as NobleDollarVaultsV1QueryPendingRewardsResponse, + QueryPendingRewardsByProvider as NobleDollarVaultsV1QueryPendingRewardsByProvider, + QueryPendingRewardsByProviderResponse as NobleDollarVaultsV1QueryPendingRewardsByProviderResponse, + QueryStats as NobleDollarVaultsV1QueryStats, + QueryStatsResponse as NobleDollarVaultsV1QueryStatsResponse, +} from "./noble/dollar/vaults/v1/query_pb.js"; +export { + QueryPositionsByProviderService as NobleDollarVaultsV1QueryPositionsByProviderService, + QueryPendingRewardsService as NobleDollarVaultsV1QueryPendingRewardsService, + QueryPendingRewardsByProviderService as NobleDollarVaultsV1QueryPendingRewardsByProviderService, + QueryPausedService as NobleDollarVaultsV1QueryPausedService, + QueryStatsService as NobleDollarVaultsV1QueryStatsService, +} from "./noble/dollar/vaults/v1/query_cosmes.js"; +export { + GenesisState as NobleDollarVaultsV1GenesisState, +} from "./noble/dollar/vaults/v1/genesis_pb.js"; +export { + PositionLocked as NobleDollarVaultsV1PositionLocked, + PositionUnlocked as NobleDollarVaultsV1PositionUnlocked, + PausedStateUpdated as NobleDollarVaultsV1PausedStateUpdated, + RewardClaimed as NobleDollarVaultsV1RewardClaimed, +} from "./noble/dollar/vaults/v1/events_pb.js"; +export { + MsgSetYieldRecipient as NobleDollarV2MsgSetYieldRecipient, + MsgSetYieldRecipientResponse as NobleDollarV2MsgSetYieldRecipientResponse, +} from "./noble/dollar/v2/tx_pb.js"; +export { + MsgSetYieldRecipientService as NobleDollarV2MsgSetYieldRecipientService, +} from "./noble/dollar/v2/tx_cosmes.js"; +export { + QueryStats as NobleDollarV2QueryStats, + QueryStatsResponse as NobleDollarV2QueryStatsResponse, + QueryStatsResponse_ExternalYield as NobleDollarV2QueryStatsResponse_ExternalYield, + QueryYieldRecipients as NobleDollarV2QueryYieldRecipients, + QueryYieldRecipientsResponse as NobleDollarV2QueryYieldRecipientsResponse, + QueryYieldRecipient as NobleDollarV2QueryYieldRecipient, + QueryYieldRecipientResponse as NobleDollarV2QueryYieldRecipientResponse, + QueryRetryAmounts as NobleDollarV2QueryRetryAmounts, + QueryRetryAmountsResponse as NobleDollarV2QueryRetryAmountsResponse, + QueryRetryAmount as NobleDollarV2QueryRetryAmount, + QueryRetryAmountResponse as NobleDollarV2QueryRetryAmountResponse, +} from "./noble/dollar/v2/query_pb.js"; +export { + QueryStatsService as NobleDollarV2QueryStatsService, + QueryYieldRecipientsService as NobleDollarV2QueryYieldRecipientsService, + QueryYieldRecipientService as NobleDollarV2QueryYieldRecipientService, + QueryRetryAmountsService as NobleDollarV2QueryRetryAmountsService, + QueryRetryAmountService as NobleDollarV2QueryRetryAmountService, +} from "./noble/dollar/v2/query_cosmes.js"; +export { + GenesisState as NobleDollarV2GenesisState, +} from "./noble/dollar/v2/genesis_pb.js"; +export { + YieldRecipientSet as NobleDollarV2YieldRecipientSet, +} from "./noble/dollar/v2/events_pb.js"; +export { + Provider as NobleDollarV2Provider, + Stats as NobleDollarV2Stats, +} from "./noble/dollar/v2/dollar_pb.js"; +export { + MsgClaimYield as NobleDollarV1MsgClaimYield, + MsgClaimYieldResponse as NobleDollarV1MsgClaimYieldResponse, + MsgSetPausedState as NobleDollarV1MsgSetPausedState, + MsgSetPausedStateResponse as NobleDollarV1MsgSetPausedStateResponse, +} from "./noble/dollar/v1/tx_pb.js"; +export { + MsgClaimYieldService as NobleDollarV1MsgClaimYieldService, + MsgSetPausedStateService as NobleDollarV1MsgSetPausedStateService, +} from "./noble/dollar/v1/tx_cosmes.js"; +export { + QueryIndex as NobleDollarV1QueryIndex, + QueryIndexResponse as NobleDollarV1QueryIndexResponse, + QueryPaused as NobleDollarV1QueryPaused, + QueryPausedResponse as NobleDollarV1QueryPausedResponse, + QueryPrincipal as NobleDollarV1QueryPrincipal, + QueryPrincipalResponse as NobleDollarV1QueryPrincipalResponse, + QueryYield as NobleDollarV1QueryYield, + QueryYieldResponse as NobleDollarV1QueryYieldResponse, + QueryStats as NobleDollarV1QueryStats, + QueryStatsResponse as NobleDollarV1QueryStatsResponse, +} from "./noble/dollar/v1/query_pb.js"; +export { + QueryIndexService as NobleDollarV1QueryIndexService, + QueryPausedService as NobleDollarV1QueryPausedService, + QueryPrincipalService as NobleDollarV1QueryPrincipalService, + QueryYieldService as NobleDollarV1QueryYieldService, + QueryStatsService as NobleDollarV1QueryStatsService, +} from "./noble/dollar/v1/query_cosmes.js"; +export { + GenesisState as NobleDollarV1GenesisState, +} from "./noble/dollar/v1/genesis_pb.js"; +export { + Paused as NobleDollarV1Paused, + Unpaused as NobleDollarV1Unpaused, + YieldClaimed as NobleDollarV1YieldClaimed, + IndexUpdated as NobleDollarV1IndexUpdated, +} from "./noble/dollar/v1/events_pb.js"; +export { + Stats as NobleDollarV1Stats, +} from "./noble/dollar/v1/dollar_pb.js"; +export { + MsgDeliver as NobleDollarPortalV1MsgDeliver, + MsgDeliverResponse as NobleDollarPortalV1MsgDeliverResponse, + MsgTransfer as NobleDollarPortalV1MsgTransfer, + MsgTransferResponse as NobleDollarPortalV1MsgTransferResponse, + MsgSetPausedState as NobleDollarPortalV1MsgSetPausedState, + MsgSetPausedStateResponse as NobleDollarPortalV1MsgSetPausedStateResponse, + MsgSetPeer as NobleDollarPortalV1MsgSetPeer, + MsgSetPeerResponse as NobleDollarPortalV1MsgSetPeerResponse, + MsgSetBridgingPath as NobleDollarPortalV1MsgSetBridgingPath, + MsgSetBridgingPathResponse as NobleDollarPortalV1MsgSetBridgingPathResponse, + MsgTransferOwnership as NobleDollarPortalV1MsgTransferOwnership, + MsgTransferOwnershipResponse as NobleDollarPortalV1MsgTransferOwnershipResponse, +} from "./noble/dollar/portal/v1/tx_pb.js"; +export { + MsgDeliverService as NobleDollarPortalV1MsgDeliverService, + MsgTransferService as NobleDollarPortalV1MsgTransferService, + MsgSetPausedStateService as NobleDollarPortalV1MsgSetPausedStateService, + MsgSetPeerService as NobleDollarPortalV1MsgSetPeerService, + MsgSetBridgingPathService as NobleDollarPortalV1MsgSetBridgingPathService, + MsgTransferOwnershipService as NobleDollarPortalV1MsgTransferOwnershipService, +} from "./noble/dollar/portal/v1/tx_cosmes.js"; +export { + QueryOwner as NobleDollarPortalV1QueryOwner, + QueryOwnerResponse as NobleDollarPortalV1QueryOwnerResponse, + QueryPaused as NobleDollarPortalV1QueryPaused, + QueryPausedResponse as NobleDollarPortalV1QueryPausedResponse, + QueryPeers as NobleDollarPortalV1QueryPeers, + QueryPeersResponse as NobleDollarPortalV1QueryPeersResponse, + QueryDestinationTokens as NobleDollarPortalV1QueryDestinationTokens, + QueryDestinationTokensResponse as NobleDollarPortalV1QueryDestinationTokensResponse, + QueryNonce as NobleDollarPortalV1QueryNonce, + QueryNonceResponse as NobleDollarPortalV1QueryNonceResponse, +} from "./noble/dollar/portal/v1/query_pb.js"; +export { + QueryOwnerService as NobleDollarPortalV1QueryOwnerService, + QueryPausedService as NobleDollarPortalV1QueryPausedService, + QueryPeersService as NobleDollarPortalV1QueryPeersService, + QueryDestinationTokensService as NobleDollarPortalV1QueryDestinationTokensService, + QueryNonceService as NobleDollarPortalV1QueryNonceService, +} from "./noble/dollar/portal/v1/query_cosmes.js"; +export { + Peer as NobleDollarPortalV1Peer, + BridgingPath as NobleDollarPortalV1BridgingPath, +} from "./noble/dollar/portal/v1/portal_pb.js"; +export { + MsgDeliverInjection as NobleDollarPortalV1MsgDeliverInjection, +} from "./noble/dollar/portal/v1/injection_pb.js"; +export { + GenesisState as NobleDollarPortalV1GenesisState, +} from "./noble/dollar/portal/v1/genesis_pb.js"; +export { + Delivered as NobleDollarPortalV1Delivered, + MTokenReceived as NobleDollarPortalV1MTokenReceived, + TransferRedeemed as NobleDollarPortalV1TransferRedeemed, + USDNTokenSent as NobleDollarPortalV1USDNTokenSent, + PeerUpdated as NobleDollarPortalV1PeerUpdated, + BridgingPathSet as NobleDollarPortalV1BridgingPathSet, + OwnershipTransferred as NobleDollarPortalV1OwnershipTransferred, + Paused as NobleDollarPortalV1Paused, + Unpaused as NobleDollarPortalV1Unpaused, +} from "./noble/dollar/portal/v1/events_pb.js"; +export { + TransceiverMessage as NobleDollarPortalNttV1TransceiverMessage, +} from "./noble/dollar/portal/ntt/v1/transceiver_pb.js"; +export { + NativeTokenTransfer as NobleDollarPortalNttV1NativeTokenTransfer, +} from "./noble/dollar/portal/ntt/v1/ntt_pb.js"; +export { + ManagerMessage as NobleDollarPortalNttV1ManagerMessage, +} from "./noble/dollar/portal/ntt/v1/manager_pb.js"; +export { + Module as NobleDollarModuleV1Module, +} from "./noble/dollar/module/v1/module_pb.js"; +export { + MsgCreateDenom as NibiruTokenfactoryV1MsgCreateDenom, + MsgCreateDenomResponse as NibiruTokenfactoryV1MsgCreateDenomResponse, + MsgChangeAdmin as NibiruTokenfactoryV1MsgChangeAdmin, + MsgChangeAdminResponse as NibiruTokenfactoryV1MsgChangeAdminResponse, + MsgUpdateModuleParams as NibiruTokenfactoryV1MsgUpdateModuleParams, + MsgUpdateModuleParamsResponse as NibiruTokenfactoryV1MsgUpdateModuleParamsResponse, + MsgMint as NibiruTokenfactoryV1MsgMint, + MsgMintResponse as NibiruTokenfactoryV1MsgMintResponse, + MsgBurn as NibiruTokenfactoryV1MsgBurn, + MsgBurnResponse as NibiruTokenfactoryV1MsgBurnResponse, + MsgSetDenomMetadata as NibiruTokenfactoryV1MsgSetDenomMetadata, + MsgSetDenomMetadataResponse as NibiruTokenfactoryV1MsgSetDenomMetadataResponse, + MsgSudoSetDenomMetadata as NibiruTokenfactoryV1MsgSudoSetDenomMetadata, + MsgSudoSetDenomMetadataResponse as NibiruTokenfactoryV1MsgSudoSetDenomMetadataResponse, + MsgBurnNative as NibiruTokenfactoryV1MsgBurnNative, + MsgBurnNativeResponse as NibiruTokenfactoryV1MsgBurnNativeResponse, +} from "./nibiru/tokenfactory/v1/tx_pb.js"; +export { + MsgCreateDenomService as NibiruTokenfactoryV1MsgCreateDenomService, + MsgChangeAdminService as NibiruTokenfactoryV1MsgChangeAdminService, + MsgUpdateModuleParamsService as NibiruTokenfactoryV1MsgUpdateModuleParamsService, + MsgMintService as NibiruTokenfactoryV1MsgMintService, + MsgBurnService as NibiruTokenfactoryV1MsgBurnService, + MsgSetDenomMetadataService as NibiruTokenfactoryV1MsgSetDenomMetadataService, + MsgSudoSetDenomMetadataService as NibiruTokenfactoryV1MsgSudoSetDenomMetadataService, + MsgBurnNativeService as NibiruTokenfactoryV1MsgBurnNativeService, +} from "./nibiru/tokenfactory/v1/tx_cosmes.js"; +export { + DenomAuthorityMetadata as NibiruTokenfactoryV1DenomAuthorityMetadata, + ModuleParams as NibiruTokenfactoryV1ModuleParams, + TFDenom as NibiruTokenfactoryV1TFDenom, + GenesisState as NibiruTokenfactoryV1GenesisState, + GenesisDenom as NibiruTokenfactoryV1GenesisDenom, +} from "./nibiru/tokenfactory/v1/state_pb.js"; +export { + QueryParamsRequest as NibiruTokenfactoryV1QueryParamsRequest, + QueryParamsResponse as NibiruTokenfactoryV1QueryParamsResponse, + QueryDenomsRequest as NibiruTokenfactoryV1QueryDenomsRequest, + QueryDenomsResponse as NibiruTokenfactoryV1QueryDenomsResponse, + QueryDenomInfoRequest as NibiruTokenfactoryV1QueryDenomInfoRequest, + QueryDenomInfoResponse as NibiruTokenfactoryV1QueryDenomInfoResponse, +} from "./nibiru/tokenfactory/v1/query_pb.js"; +export { + QueryParamsService as NibiruTokenfactoryV1QueryParamsService, + QueryDenomsService as NibiruTokenfactoryV1QueryDenomsService, + QueryDenomInfoService as NibiruTokenfactoryV1QueryDenomInfoService, +} from "./nibiru/tokenfactory/v1/query_cosmes.js"; +export { + EventCreateDenom as NibiruTokenfactoryV1EventCreateDenom, + EventChangeAdmin as NibiruTokenfactoryV1EventChangeAdmin, + EventMint as NibiruTokenfactoryV1EventMint, + EventBurn as NibiruTokenfactoryV1EventBurn, + EventSetDenomMetadata as NibiruTokenfactoryV1EventSetDenomMetadata, +} from "./nibiru/tokenfactory/v1/event_pb.js"; +export { + Module as NibiruTokenfactoryModuleModule, + ModuleAccountPermission as NibiruTokenfactoryModuleModuleAccountPermission, +} from "./nibiru/tokenfactory/module/module_pb.js"; +export { + MsgEditSudoers as NibiruSudoV1MsgEditSudoers, + MsgEditSudoersResponse as NibiruSudoV1MsgEditSudoersResponse, + MsgChangeRoot as NibiruSudoV1MsgChangeRoot, + MsgChangeRootResponse as NibiruSudoV1MsgChangeRootResponse, + MsgEditZeroGasActors as NibiruSudoV1MsgEditZeroGasActors, + MsgEditZeroGasActorsResponse as NibiruSudoV1MsgEditZeroGasActorsResponse, +} from "./nibiru/sudo/v1/tx_pb.js"; +export { + MsgEditSudoersService as NibiruSudoV1MsgEditSudoersService, + MsgChangeRootService as NibiruSudoV1MsgChangeRootService, + MsgEditZeroGasActorsService as NibiruSudoV1MsgEditZeroGasActorsService, +} from "./nibiru/sudo/v1/tx_cosmes.js"; +export { + Sudoers as NibiruSudoV1Sudoers, + GenesisState as NibiruSudoV1GenesisState, + ZeroGasActors as NibiruSudoV1ZeroGasActors, +} from "./nibiru/sudo/v1/state_pb.js"; +export { + QuerySudoersRequest as NibiruSudoV1QuerySudoersRequest, + QuerySudoersResponse as NibiruSudoV1QuerySudoersResponse, + QueryZeroGasActorsRequest as NibiruSudoV1QueryZeroGasActorsRequest, + QueryZeroGasActorsResponse as NibiruSudoV1QueryZeroGasActorsResponse, +} from "./nibiru/sudo/v1/query_pb.js"; +export { + QueryQuerySudoersService as NibiruSudoV1QueryQuerySudoersService, + QueryQueryZeroGasActorsService as NibiruSudoV1QueryQueryZeroGasActorsService, +} from "./nibiru/sudo/v1/query_cosmes.js"; +export { + EventUpdateSudoers as NibiruSudoV1EventUpdateSudoers, +} from "./nibiru/sudo/v1/event_pb.js"; +export { + Module as NibiruSudoModuleModule, + ModuleAccountPermission as NibiruSudoModuleModuleAccountPermission, +} from "./nibiru/sudo/module/module_pb.js"; +export { + MsgAggregateExchangeRatePrevote as NibiruOracleV1MsgAggregateExchangeRatePrevote, + MsgAggregateExchangeRatePrevoteResponse as NibiruOracleV1MsgAggregateExchangeRatePrevoteResponse, + MsgAggregateExchangeRateVote as NibiruOracleV1MsgAggregateExchangeRateVote, + MsgAggregateExchangeRateVoteResponse as NibiruOracleV1MsgAggregateExchangeRateVoteResponse, + MsgDelegateFeedConsent as NibiruOracleV1MsgDelegateFeedConsent, + MsgDelegateFeedConsentResponse as NibiruOracleV1MsgDelegateFeedConsentResponse, + MsgEditOracleParams as NibiruOracleV1MsgEditOracleParams, + MsgEditOracleParamsResponse as NibiruOracleV1MsgEditOracleParamsResponse, + OracleParamsMsg as NibiruOracleV1OracleParamsMsg, +} from "./nibiru/oracle/v1/tx_pb.js"; +export { + MsgAggregateExchangeRatePrevoteService as NibiruOracleV1MsgAggregateExchangeRatePrevoteService, + MsgAggregateExchangeRateVoteService as NibiruOracleV1MsgAggregateExchangeRateVoteService, + MsgDelegateFeedConsentService as NibiruOracleV1MsgDelegateFeedConsentService, + MsgEditOracleParamsService as NibiruOracleV1MsgEditOracleParamsService, +} from "./nibiru/oracle/v1/tx_cosmes.js"; +export { + PriceSnapshot as NibiruOracleV1PriceSnapshot, +} from "./nibiru/oracle/v1/state_pb.js"; +export { + QueryExchangeRateRequest as NibiruOracleV1QueryExchangeRateRequest, + QueryExchangeRateResponse as NibiruOracleV1QueryExchangeRateResponse, + QueryExchangeRatesRequest as NibiruOracleV1QueryExchangeRatesRequest, + QueryExchangeRatesResponse as NibiruOracleV1QueryExchangeRatesResponse, + QueryActivesRequest as NibiruOracleV1QueryActivesRequest, + QueryActivesResponse as NibiruOracleV1QueryActivesResponse, + QueryVoteTargetsRequest as NibiruOracleV1QueryVoteTargetsRequest, + QueryVoteTargetsResponse as NibiruOracleV1QueryVoteTargetsResponse, + QueryFeederDelegationRequest as NibiruOracleV1QueryFeederDelegationRequest, + QueryFeederDelegationResponse as NibiruOracleV1QueryFeederDelegationResponse, + QueryMissCounterRequest as NibiruOracleV1QueryMissCounterRequest, + QueryMissCounterResponse as NibiruOracleV1QueryMissCounterResponse, + QueryAggregatePrevoteRequest as NibiruOracleV1QueryAggregatePrevoteRequest, + QueryAggregatePrevoteResponse as NibiruOracleV1QueryAggregatePrevoteResponse, + QueryAggregatePrevotesRequest as NibiruOracleV1QueryAggregatePrevotesRequest, + QueryAggregatePrevotesResponse as NibiruOracleV1QueryAggregatePrevotesResponse, + QueryAggregateVoteRequest as NibiruOracleV1QueryAggregateVoteRequest, + QueryAggregateVoteResponse as NibiruOracleV1QueryAggregateVoteResponse, + QueryAggregateVotesRequest as NibiruOracleV1QueryAggregateVotesRequest, + QueryAggregateVotesResponse as NibiruOracleV1QueryAggregateVotesResponse, + QueryParamsRequest as NibiruOracleV1QueryParamsRequest, + QueryParamsResponse as NibiruOracleV1QueryParamsResponse, +} from "./nibiru/oracle/v1/query_pb.js"; +export { + QueryExchangeRateService as NibiruOracleV1QueryExchangeRateService, + QueryExchangeRateTwapService as NibiruOracleV1QueryExchangeRateTwapService, + QueryExchangeRatesService as NibiruOracleV1QueryExchangeRatesService, + QueryActivesService as NibiruOracleV1QueryActivesService, + QueryVoteTargetsService as NibiruOracleV1QueryVoteTargetsService, + QueryFeederDelegationService as NibiruOracleV1QueryFeederDelegationService, + QueryMissCounterService as NibiruOracleV1QueryMissCounterService, + QueryAggregatePrevoteService as NibiruOracleV1QueryAggregatePrevoteService, + QueryAggregatePrevotesService as NibiruOracleV1QueryAggregatePrevotesService, + QueryAggregateVoteService as NibiruOracleV1QueryAggregateVoteService, + QueryAggregateVotesService as NibiruOracleV1QueryAggregateVotesService, + QueryParamsService as NibiruOracleV1QueryParamsService, +} from "./nibiru/oracle/v1/query_cosmes.js"; +export { + Params as NibiruOracleV1Params, + AggregateExchangeRatePrevote as NibiruOracleV1AggregateExchangeRatePrevote, + AggregateExchangeRateVote as NibiruOracleV1AggregateExchangeRateVote, + ExchangeRateTuple as NibiruOracleV1ExchangeRateTuple, + ExchangeRateAtBlock as NibiruOracleV1ExchangeRateAtBlock, + Rewards as NibiruOracleV1Rewards, +} from "./nibiru/oracle/v1/oracle_pb.js"; +export { + GenesisState as NibiruOracleV1GenesisState, + FeederDelegation as NibiruOracleV1FeederDelegation, + MissCounter as NibiruOracleV1MissCounter, +} from "./nibiru/oracle/v1/genesis_pb.js"; +export { + EventPriceUpdate as NibiruOracleV1EventPriceUpdate, + EventDelegateFeederConsent as NibiruOracleV1EventDelegateFeederConsent, + EventAggregateVote as NibiruOracleV1EventAggregateVote, + EventAggregatePrevote as NibiruOracleV1EventAggregatePrevote, + EventValidatorPerformance as NibiruOracleV1EventValidatorPerformance, +} from "./nibiru/oracle/v1/event_pb.js"; +export { + Module as NibiruOracleModuleModule, + ModuleAccountPermission as NibiruOracleModuleModuleAccountPermission, +} from "./nibiru/oracle/module/module_pb.js"; +export { + MsgToggleInflation as NibiruInflationV1MsgToggleInflation, + MsgEditInflationParams as NibiruInflationV1MsgEditInflationParams, + MsgToggleInflationResponse as NibiruInflationV1MsgToggleInflationResponse, + MsgEditInflationParamsResponse as NibiruInflationV1MsgEditInflationParamsResponse, + MsgBurn as NibiruInflationV1MsgBurn, + MsgBurnResponse as NibiruInflationV1MsgBurnResponse, +} from "./nibiru/inflation/v1/tx_pb.js"; +export { + MsgToggleInflationService as NibiruInflationV1MsgToggleInflationService, + MsgEditInflationParamsService as NibiruInflationV1MsgEditInflationParamsService, +} from "./nibiru/inflation/v1/tx_cosmes.js"; +export { + QueryPeriodRequest as NibiruInflationV1QueryPeriodRequest, + QueryPeriodResponse as NibiruInflationV1QueryPeriodResponse, + QueryEpochMintProvisionRequest as NibiruInflationV1QueryEpochMintProvisionRequest, + QueryEpochMintProvisionResponse as NibiruInflationV1QueryEpochMintProvisionResponse, + QuerySkippedEpochsRequest as NibiruInflationV1QuerySkippedEpochsRequest, + QuerySkippedEpochsResponse as NibiruInflationV1QuerySkippedEpochsResponse, + QueryCirculatingSupplyRequest as NibiruInflationV1QueryCirculatingSupplyRequest, + QueryCirculatingSupplyResponse as NibiruInflationV1QueryCirculatingSupplyResponse, + QueryInflationRateRequest as NibiruInflationV1QueryInflationRateRequest, + QueryInflationRateResponse as NibiruInflationV1QueryInflationRateResponse, + QueryParamsRequest as NibiruInflationV1QueryParamsRequest, + QueryParamsResponse as NibiruInflationV1QueryParamsResponse, +} from "./nibiru/inflation/v1/query_pb.js"; +export { + QueryPeriodService as NibiruInflationV1QueryPeriodService, + QueryEpochMintProvisionService as NibiruInflationV1QueryEpochMintProvisionService, + QuerySkippedEpochsService as NibiruInflationV1QuerySkippedEpochsService, + QueryCirculatingSupplyService as NibiruInflationV1QueryCirculatingSupplyService, + QueryInflationRateService as NibiruInflationV1QueryInflationRateService, + QueryParamsService as NibiruInflationV1QueryParamsService, +} from "./nibiru/inflation/v1/query_cosmes.js"; +export { + InflationDistribution as NibiruInflationV1InflationDistribution, +} from "./nibiru/inflation/v1/inflation_pb.js"; +export { + GenesisState as NibiruInflationV1GenesisState, + Params as NibiruInflationV1Params, +} from "./nibiru/inflation/v1/genesis_pb.js"; +export { + EventInflationDistribution as NibiruInflationV1EventInflationDistribution, +} from "./nibiru/inflation/v1/event_pb.js"; +export { + Module as NibiruInflationModuleModule, + ModuleAccountPermission as NibiruInflationModuleModuleAccountPermission, +} from "./nibiru/inflation/module/module_pb.js"; +export { + GenesisState as NibiruGenmsgV1GenesisState, +} from "./nibiru/genmsg/v1/genmsg_pb.js"; +export { + EpochInfo as NibiruEpochsV1EpochInfo, +} from "./nibiru/epochs/v1/state_pb.js"; +export { + QueryEpochInfosRequest as NibiruEpochsV1QueryEpochInfosRequest, + QueryEpochInfosResponse as NibiruEpochsV1QueryEpochInfosResponse, + QueryCurrentEpochRequest as NibiruEpochsV1QueryCurrentEpochRequest, + QueryCurrentEpochResponse as NibiruEpochsV1QueryCurrentEpochResponse, +} from "./nibiru/epochs/v1/query_pb.js"; +export { + QueryEpochInfosService as NibiruEpochsV1QueryEpochInfosService, + QueryCurrentEpochService as NibiruEpochsV1QueryCurrentEpochService, +} from "./nibiru/epochs/v1/query_cosmes.js"; +export { + GenesisState as NibiruEpochsV1GenesisState, +} from "./nibiru/epochs/v1/genesis_pb.js"; +export { + EventEpochStart as NibiruEpochsV1EventEpochStart, + EventEpochEnd as NibiruEpochsV1EventEpochEnd, +} from "./nibiru/epochs/v1/event_pb.js"; +export { + Module as NibiruEpochsModuleModule, + ModuleAccountPermission as NibiruEpochsModuleModuleAccountPermission, +} from "./nibiru/epochs/module/module_pb.js"; +export { + MsgRegisterFeeShare as NibiruDevgasV1MsgRegisterFeeShare, + MsgRegisterFeeShareResponse as NibiruDevgasV1MsgRegisterFeeShareResponse, + MsgUpdateFeeShare as NibiruDevgasV1MsgUpdateFeeShare, + MsgUpdateFeeShareResponse as NibiruDevgasV1MsgUpdateFeeShareResponse, + MsgCancelFeeShare as NibiruDevgasV1MsgCancelFeeShare, + MsgCancelFeeShareResponse as NibiruDevgasV1MsgCancelFeeShareResponse, + MsgUpdateParams as NibiruDevgasV1MsgUpdateParams, + MsgUpdateParamsResponse as NibiruDevgasV1MsgUpdateParamsResponse, +} from "./nibiru/devgas/v1/tx_pb.js"; +export { + MsgRegisterFeeShareService as NibiruDevgasV1MsgRegisterFeeShareService, + MsgUpdateFeeShareService as NibiruDevgasV1MsgUpdateFeeShareService, + MsgCancelFeeShareService as NibiruDevgasV1MsgCancelFeeShareService, + MsgUpdateParamsService as NibiruDevgasV1MsgUpdateParamsService, +} from "./nibiru/devgas/v1/tx_cosmes.js"; +export { + QueryFeeSharesRequest as NibiruDevgasV1QueryFeeSharesRequest, + QueryFeeSharesResponse as NibiruDevgasV1QueryFeeSharesResponse, + QueryFeeShareRequest as NibiruDevgasV1QueryFeeShareRequest, + QueryFeeShareResponse as NibiruDevgasV1QueryFeeShareResponse, + QueryParamsRequest as NibiruDevgasV1QueryParamsRequest, + QueryParamsResponse as NibiruDevgasV1QueryParamsResponse, + QueryFeeSharesByWithdrawerRequest as NibiruDevgasV1QueryFeeSharesByWithdrawerRequest, + QueryFeeSharesByWithdrawerResponse as NibiruDevgasV1QueryFeeSharesByWithdrawerResponse, +} from "./nibiru/devgas/v1/query_pb.js"; +export { + QueryFeeSharesService as NibiruDevgasV1QueryFeeSharesService, + QueryFeeShareService as NibiruDevgasV1QueryFeeShareService, + QueryParamsService as NibiruDevgasV1QueryParamsService, + QueryFeeSharesByWithdrawerService as NibiruDevgasV1QueryFeeSharesByWithdrawerService, +} from "./nibiru/devgas/v1/query_cosmes.js"; +export { + GenesisState as NibiruDevgasV1GenesisState, + ModuleParams as NibiruDevgasV1ModuleParams, +} from "./nibiru/devgas/v1/genesis_pb.js"; +export { + EventRegisterDevGas as NibiruDevgasV1EventRegisterDevGas, + EventCancelDevGas as NibiruDevgasV1EventCancelDevGas, + EventUpdateDevGas as NibiruDevgasV1EventUpdateDevGas, + EventPayoutDevGas as NibiruDevgasV1EventPayoutDevGas, +} from "./nibiru/devgas/v1/event_pb.js"; +export { + FeeShare as NibiruDevgasV1FeeShare, +} from "./nibiru/devgas/v1/devgas_pb.js"; +export { + MsgTransfer as NeutronTransferV1MsgTransfer, + MsgTransferResponse as NeutronTransferV1MsgTransferResponse, + MsgUpdateParams as NeutronTransferV1MsgUpdateParams, + MsgUpdateParamsResponse as NeutronTransferV1MsgUpdateParamsResponse, +} from "./neutron/transfer/v1/tx_pb.js"; +export { + MsgTransferService as NeutronTransferV1MsgTransferService, + MsgUpdateParamsService as NeutronTransferV1MsgUpdateParamsService, +} from "./neutron/transfer/v1/tx_cosmes.js"; +export { + QueryDenomTraceService as NeutronTransferV1QueryDenomTraceService, + QueryDenomTracesService as NeutronTransferV1QueryDenomTracesService, + QueryParamsService as NeutronTransferV1QueryParamsService, + QueryDenomHashService as NeutronTransferV1QueryDenomHashService, +} from "./neutron/transfer/v1/query_cosmes.js"; +export { + QueryVerifyStateValuesRequest as NeutronStateVerifierV1QueryVerifyStateValuesRequest, + QueryVerifyStateValuesResponse as NeutronStateVerifierV1QueryVerifyStateValuesResponse, + QueryConsensusStateRequest as NeutronStateVerifierV1QueryConsensusStateRequest, + QueryConsensusStateResponse as NeutronStateVerifierV1QueryConsensusStateResponse, +} from "./neutron/state_verifier/v1/query_pb.js"; +export { + QueryVerifyStateValuesService as NeutronStateVerifierV1QueryVerifyStateValuesService, + QueryQueryConsensusStateService as NeutronStateVerifierV1QueryQueryConsensusStateService, +} from "./neutron/state_verifier/v1/query_cosmes.js"; +export { + ConsensusState as NeutronStateVerifierV1ConsensusState, + GenesisState as NeutronStateVerifierV1GenesisState, +} from "./neutron/state_verifier/v1/genesis_pb.js"; +export { + MsgUpdateParams as NeutronRevenueMsgUpdateParams, + MsgUpdateParamsResponse as NeutronRevenueMsgUpdateParamsResponse, + MsgFundTreasury as NeutronRevenueMsgFundTreasury, + MsgFundTreasuryResponse as NeutronRevenueMsgFundTreasuryResponse, +} from "./neutron/revenue/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronRevenueMsgUpdateParamsService, + MsgFundTreasuryService as NeutronRevenueMsgFundTreasuryService, +} from "./neutron/revenue/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronRevenueQueryParamsRequest, + QueryParamsResponse as NeutronRevenueQueryParamsResponse, + QueryPaymentInfoRequest as NeutronRevenueQueryPaymentInfoRequest, + QueryPaymentInfoResponse as NeutronRevenueQueryPaymentInfoResponse, + QueryValidatorStatsRequest as NeutronRevenueQueryValidatorStatsRequest, + QueryValidatorStatsResponse as NeutronRevenueQueryValidatorStatsResponse, + QueryValidatorsStatsRequest as NeutronRevenueQueryValidatorsStatsRequest, + QueryValidatorsStatsResponse as NeutronRevenueQueryValidatorsStatsResponse, + ValidatorStats as NeutronRevenueValidatorStats, +} from "./neutron/revenue/query_pb.js"; +export { + QueryParamsService as NeutronRevenueQueryParamsService, + QueryPaymentInfoService as NeutronRevenueQueryPaymentInfoService, + QueryValidatorStatsService as NeutronRevenueQueryValidatorStatsService, + QueryValidatorsStatsService as NeutronRevenueQueryValidatorsStatsService, +} from "./neutron/revenue/query_cosmes.js"; +export { + Params as NeutronRevenueParams, + RewardQuote as NeutronRevenueRewardQuote, + PaymentScheduleType as NeutronRevenuePaymentScheduleType, + MonthlyPaymentScheduleType as NeutronRevenueMonthlyPaymentScheduleType, + BlockBasedPaymentScheduleType as NeutronRevenueBlockBasedPaymentScheduleType, + EmptyPaymentScheduleType as NeutronRevenueEmptyPaymentScheduleType, + PerformanceRequirement as NeutronRevenuePerformanceRequirement, +} from "./neutron/revenue/params_pb.js"; +export { + GenesisState as NeutronRevenueGenesisState, + PaymentSchedule as NeutronRevenuePaymentSchedule, + ValidatorInfo as NeutronRevenueValidatorInfo, + MonthlyPaymentSchedule as NeutronRevenueMonthlyPaymentSchedule, + BlockBasedPaymentSchedule as NeutronRevenueBlockBasedPaymentSchedule, + EmptyPaymentSchedule as NeutronRevenueEmptyPaymentSchedule, + RewardAssetPrice as NeutronRevenueRewardAssetPrice, +} from "./neutron/revenue/genesis_pb.js"; +export { + MsgRegisterInterchainAccount as NeutronInterchaintxsV1MsgRegisterInterchainAccount, + MsgRegisterInterchainAccountResponse as NeutronInterchaintxsV1MsgRegisterInterchainAccountResponse, + MsgSubmitTx as NeutronInterchaintxsV1MsgSubmitTx, + MsgSubmitTxResponse as NeutronInterchaintxsV1MsgSubmitTxResponse, + MsgUpdateParams as NeutronInterchaintxsV1MsgUpdateParams, + MsgUpdateParamsResponse as NeutronInterchaintxsV1MsgUpdateParamsResponse, +} from "./neutron/interchaintxs/v1/tx_pb.js"; +export { + MsgRegisterInterchainAccountService as NeutronInterchaintxsV1MsgRegisterInterchainAccountService, + MsgSubmitTxService as NeutronInterchaintxsV1MsgSubmitTxService, + MsgUpdateParamsService as NeutronInterchaintxsV1MsgUpdateParamsService, +} from "./neutron/interchaintxs/v1/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronInterchaintxsV1QueryParamsRequest, + QueryParamsResponse as NeutronInterchaintxsV1QueryParamsResponse, + QueryInterchainAccountAddressRequest as NeutronInterchaintxsV1QueryInterchainAccountAddressRequest, + QueryInterchainAccountAddressResponse as NeutronInterchaintxsV1QueryInterchainAccountAddressResponse, +} from "./neutron/interchaintxs/v1/query_pb.js"; +export { + QueryParamsService as NeutronInterchaintxsV1QueryParamsService, + QueryInterchainAccountAddressService as NeutronInterchaintxsV1QueryInterchainAccountAddressService, +} from "./neutron/interchaintxs/v1/query_cosmes.js"; +export { + Params as NeutronInterchaintxsV1Params, +} from "./neutron/interchaintxs/v1/params_pb.js"; +export { + GenesisState as NeutronInterchaintxsV1GenesisState, +} from "./neutron/interchaintxs/v1/genesis_pb.js"; +export { + MsgRegisterInterchainQuery as NeutronInterchainqueriesMsgRegisterInterchainQuery, + MsgRegisterInterchainQueryResponse as NeutronInterchainqueriesMsgRegisterInterchainQueryResponse, + MsgSubmitQueryResult as NeutronInterchainqueriesMsgSubmitQueryResult, + QueryResult as NeutronInterchainqueriesQueryResult, + StorageValue as NeutronInterchainqueriesStorageValue, + Block as NeutronInterchainqueriesBlock, + TxValue as NeutronInterchainqueriesTxValue, + MsgSubmitQueryResultResponse as NeutronInterchainqueriesMsgSubmitQueryResultResponse, + MsgRemoveInterchainQueryRequest as NeutronInterchainqueriesMsgRemoveInterchainQueryRequest, + MsgRemoveInterchainQueryResponse as NeutronInterchainqueriesMsgRemoveInterchainQueryResponse, + MsgUpdateInterchainQueryRequest as NeutronInterchainqueriesMsgUpdateInterchainQueryRequest, + MsgUpdateInterchainQueryResponse as NeutronInterchainqueriesMsgUpdateInterchainQueryResponse, + MsgUpdateParams as NeutronInterchainqueriesMsgUpdateParams, + MsgUpdateParamsResponse as NeutronInterchainqueriesMsgUpdateParamsResponse, +} from "./neutron/interchainqueries/tx_pb.js"; +export { + MsgRegisterInterchainQueryService as NeutronInterchainqueriesMsgRegisterInterchainQueryService, + MsgSubmitQueryResultService as NeutronInterchainqueriesMsgSubmitQueryResultService, + MsgRemoveInterchainQueryService as NeutronInterchainqueriesMsgRemoveInterchainQueryService, + MsgUpdateInterchainQueryService as NeutronInterchainqueriesMsgUpdateInterchainQueryService, + MsgUpdateParamsService as NeutronInterchainqueriesMsgUpdateParamsService, +} from "./neutron/interchainqueries/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronInterchainqueriesQueryParamsRequest, + QueryParamsResponse as NeutronInterchainqueriesQueryParamsResponse, + QueryRegisteredQueriesRequest as NeutronInterchainqueriesQueryRegisteredQueriesRequest, + QueryRegisteredQueriesResponse as NeutronInterchainqueriesQueryRegisteredQueriesResponse, + QueryRegisteredQueryRequest as NeutronInterchainqueriesQueryRegisteredQueryRequest, + QueryRegisteredQueryResponse as NeutronInterchainqueriesQueryRegisteredQueryResponse, + QueryRegisteredQueryResultRequest as NeutronInterchainqueriesQueryRegisteredQueryResultRequest, + QueryRegisteredQueryResultResponse as NeutronInterchainqueriesQueryRegisteredQueryResultResponse, + Transaction as NeutronInterchainqueriesTransaction, + QueryLastRemoteHeight as NeutronInterchainqueriesQueryLastRemoteHeight, + QueryLastRemoteHeightResponse as NeutronInterchainqueriesQueryLastRemoteHeightResponse, +} from "./neutron/interchainqueries/query_pb.js"; +export { + QueryParamsService as NeutronInterchainqueriesQueryParamsService, + QueryRegisteredQueriesService as NeutronInterchainqueriesQueryRegisteredQueriesService, + QueryRegisteredQueryService as NeutronInterchainqueriesQueryRegisteredQueryService, + QueryQueryResultService as NeutronInterchainqueriesQueryQueryResultService, + QueryLastRemoteHeightService as NeutronInterchainqueriesQueryLastRemoteHeightService, +} from "./neutron/interchainqueries/query_cosmes.js"; +export { + Params as NeutronInterchainqueriesParams, +} from "./neutron/interchainqueries/params_pb.js"; +export { + RegisteredQuery as NeutronInterchainqueriesRegisteredQuery, + KVKey as NeutronInterchainqueriesKVKey, + GenesisState as NeutronInterchainqueriesGenesisState, +} from "./neutron/interchainqueries/genesis_pb.js"; +export { + MsgUpdateParams as NeutronIbcratelimitV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as NeutronIbcratelimitV1beta1MsgUpdateParamsResponse, +} from "./neutron/ibcratelimit/v1beta1/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronIbcratelimitV1beta1MsgUpdateParamsService, +} from "./neutron/ibcratelimit/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronIbcratelimitV1beta1QueryParamsRequest, + QueryParamsResponse as NeutronIbcratelimitV1beta1QueryParamsResponse, +} from "./neutron/ibcratelimit/v1beta1/query_pb.js"; +export { + QueryParamsService as NeutronIbcratelimitV1beta1QueryParamsService, +} from "./neutron/ibcratelimit/v1beta1/query_cosmes.js"; +export { + Params as NeutronIbcratelimitV1beta1Params, +} from "./neutron/ibcratelimit/v1beta1/params_pb.js"; +export { + GenesisState as NeutronIbcratelimitV1beta1GenesisState, +} from "./neutron/ibcratelimit/v1beta1/genesis_pb.js"; +export { + MsgManageHookSubscription as NeutronHarpoonMsgManageHookSubscription, + MsgManageHookSubscriptionResponse as NeutronHarpoonMsgManageHookSubscriptionResponse, + HookSubscription as NeutronHarpoonHookSubscription, +} from "./neutron/harpoon/tx_pb.js"; +export { + MsgManageHookSubscriptionService as NeutronHarpoonMsgManageHookSubscriptionService, +} from "./neutron/harpoon/tx_cosmes.js"; +export { + QuerySubscribedContractsRequest as NeutronHarpoonQuerySubscribedContractsRequest, + QuerySubscribedContractsResponse as NeutronHarpoonQuerySubscribedContractsResponse, +} from "./neutron/harpoon/query_pb.js"; +export { + QuerySubscribedContractsService as NeutronHarpoonQuerySubscribedContractsService, +} from "./neutron/harpoon/query_cosmes.js"; +export { + HookType as NeutronHarpoonHookType, + HookSubscriptions as NeutronHarpoonHookSubscriptions, +} from "./neutron/harpoon/hooks_pb.js"; +export { + GenesisState as NeutronHarpoonGenesisState, +} from "./neutron/harpoon/genesis_pb.js"; +export { + MsgUpdateParams as NeutronFeerefunderMsgUpdateParams, + MsgUpdateParamsResponse as NeutronFeerefunderMsgUpdateParamsResponse, +} from "./neutron/feerefunder/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronFeerefunderMsgUpdateParamsService, +} from "./neutron/feerefunder/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronFeerefunderQueryParamsRequest, + QueryParamsResponse as NeutronFeerefunderQueryParamsResponse, + FeeInfoRequest as NeutronFeerefunderFeeInfoRequest, + FeeInfoResponse as NeutronFeerefunderFeeInfoResponse, +} from "./neutron/feerefunder/query_pb.js"; +export { + QueryParamsService as NeutronFeerefunderQueryParamsService, + QueryFeeInfoService as NeutronFeerefunderQueryFeeInfoService, +} from "./neutron/feerefunder/query_cosmes.js"; +export { + Params as NeutronFeerefunderParams, +} from "./neutron/feerefunder/params_pb.js"; +export { + GenesisState as NeutronFeerefunderGenesisState, + FeeInfo as NeutronFeerefunderFeeInfo, +} from "./neutron/feerefunder/genesis_pb.js"; +export { + Fee as NeutronFeerefunderFee, + PacketID as NeutronFeerefunderPacketID, +} from "./neutron/feerefunder/fee_pb.js"; +export { + MsgUpdateParams as NeutronFeeburnerMsgUpdateParams, + MsgUpdateParamsResponse as NeutronFeeburnerMsgUpdateParamsResponse, +} from "./neutron/feeburner/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronFeeburnerMsgUpdateParamsService, +} from "./neutron/feeburner/tx_cosmes.js"; +export { + TotalBurnedNeutronsAmount as NeutronFeeburnerTotalBurnedNeutronsAmount, +} from "./neutron/feeburner/total_burned_neutrons_amount_pb.js"; +export { + QueryParamsRequest as NeutronFeeburnerQueryParamsRequest, + QueryParamsResponse as NeutronFeeburnerQueryParamsResponse, + QueryTotalBurnedNeutronsAmountRequest as NeutronFeeburnerQueryTotalBurnedNeutronsAmountRequest, + QueryTotalBurnedNeutronsAmountResponse as NeutronFeeburnerQueryTotalBurnedNeutronsAmountResponse, +} from "./neutron/feeburner/query_pb.js"; +export { + QueryParamsService as NeutronFeeburnerQueryParamsService, + QueryTotalBurnedNeutronsAmountService as NeutronFeeburnerQueryTotalBurnedNeutronsAmountService, +} from "./neutron/feeburner/query_cosmes.js"; +export { + Params as NeutronFeeburnerParams, +} from "./neutron/feeburner/params_pb.js"; +export { + GenesisState as NeutronFeeburnerGenesisState, +} from "./neutron/feeburner/genesis_pb.js"; +export { + MsgUpdateParams as NeutronDynamicfeesV1MsgUpdateParams, + MsgUpdateParamsResponse as NeutronDynamicfeesV1MsgUpdateParamsResponse, +} from "./neutron/dynamicfees/v1/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronDynamicfeesV1MsgUpdateParamsService, +} from "./neutron/dynamicfees/v1/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronDynamicfeesV1QueryParamsRequest, + QueryParamsResponse as NeutronDynamicfeesV1QueryParamsResponse, +} from "./neutron/dynamicfees/v1/query_pb.js"; +export { + QueryParamsService as NeutronDynamicfeesV1QueryParamsService, +} from "./neutron/dynamicfees/v1/query_cosmes.js"; +export { + Params as NeutronDynamicfeesV1Params, +} from "./neutron/dynamicfees/v1/params_pb.js"; +export { + GenesisState as NeutronDynamicfeesV1GenesisState, +} from "./neutron/dynamicfees/v1/genesis_pb.js"; +export { + LimitOrderType as NeutronDexLimitOrderType, + DepositOptions as NeutronDexDepositOptions, + MsgDeposit as NeutronDexMsgDeposit, + FailedDeposit as NeutronDexFailedDeposit, + MsgDepositResponse as NeutronDexMsgDepositResponse, + MsgWithdrawal as NeutronDexMsgWithdrawal, + MsgWithdrawalWithShares as NeutronDexMsgWithdrawalWithShares, + MsgWithdrawalResponse as NeutronDexMsgWithdrawalResponse, + MsgPlaceLimitOrder as NeutronDexMsgPlaceLimitOrder, + MsgPlaceLimitOrderResponse as NeutronDexMsgPlaceLimitOrderResponse, + MsgWithdrawFilledLimitOrder as NeutronDexMsgWithdrawFilledLimitOrder, + MsgWithdrawFilledLimitOrderResponse as NeutronDexMsgWithdrawFilledLimitOrderResponse, + MsgCancelLimitOrder as NeutronDexMsgCancelLimitOrder, + MsgCancelLimitOrderResponse as NeutronDexMsgCancelLimitOrderResponse, + MultiHopRoute as NeutronDexMultiHopRoute, + MsgMultiHopSwap as NeutronDexMsgMultiHopSwap, + MsgMultiHopSwapResponse as NeutronDexMsgMultiHopSwapResponse, + MsgUpdateParams as NeutronDexMsgUpdateParams, + MsgUpdateParamsResponse as NeutronDexMsgUpdateParamsResponse, +} from "./neutron/dex/tx_pb.js"; +export { + MsgDepositService as NeutronDexMsgDepositService, + MsgWithdrawalService as NeutronDexMsgWithdrawalService, + MsgWithdrawalWithSharesService as NeutronDexMsgWithdrawalWithSharesService, + MsgPlaceLimitOrderService as NeutronDexMsgPlaceLimitOrderService, + MsgWithdrawFilledLimitOrderService as NeutronDexMsgWithdrawFilledLimitOrderService, + MsgCancelLimitOrderService as NeutronDexMsgCancelLimitOrderService, + MsgMultiHopSwapService as NeutronDexMsgMultiHopSwapService, + MsgUpdateParamsService as NeutronDexMsgUpdateParamsService, +} from "./neutron/dex/tx_cosmes.js"; +export { + TradePairID as NeutronDexTradePairID, +} from "./neutron/dex/trade_pair_id_pb.js"; +export { + TickLiquidity as NeutronDexTickLiquidity, +} from "./neutron/dex/tick_liquidity_pb.js"; +export { + QueryParamsRequest as NeutronDexQueryParamsRequest, + QueryParamsResponse as NeutronDexQueryParamsResponse, + QueryGetLimitOrderTrancheUserRequest as NeutronDexQueryGetLimitOrderTrancheUserRequest, + QueryGetLimitOrderTrancheUserResponse as NeutronDexQueryGetLimitOrderTrancheUserResponse, + QueryAllLimitOrderTrancheUserRequest as NeutronDexQueryAllLimitOrderTrancheUserRequest, + QueryAllLimitOrderTrancheUserResponse as NeutronDexQueryAllLimitOrderTrancheUserResponse, + QueryGetLimitOrderTrancheRequest as NeutronDexQueryGetLimitOrderTrancheRequest, + QueryGetLimitOrderTrancheResponse as NeutronDexQueryGetLimitOrderTrancheResponse, + QueryAllLimitOrderTrancheRequest as NeutronDexQueryAllLimitOrderTrancheRequest, + QueryAllLimitOrderTrancheResponse as NeutronDexQueryAllLimitOrderTrancheResponse, + QueryAllUserDepositsRequest as NeutronDexQueryAllUserDepositsRequest, + QueryAllUserDepositsResponse as NeutronDexQueryAllUserDepositsResponse, + QueryAllLimitOrderTrancheUserByAddressRequest as NeutronDexQueryAllLimitOrderTrancheUserByAddressRequest, + QueryAllLimitOrderTrancheUserByAddressResponse as NeutronDexQueryAllLimitOrderTrancheUserByAddressResponse, + QueryAllTickLiquidityRequest as NeutronDexQueryAllTickLiquidityRequest, + QueryAllTickLiquidityResponse as NeutronDexQueryAllTickLiquidityResponse, + QueryGetInactiveLimitOrderTrancheRequest as NeutronDexQueryGetInactiveLimitOrderTrancheRequest, + QueryGetInactiveLimitOrderTrancheResponse as NeutronDexQueryGetInactiveLimitOrderTrancheResponse, + QueryAllInactiveLimitOrderTrancheRequest as NeutronDexQueryAllInactiveLimitOrderTrancheRequest, + QueryAllInactiveLimitOrderTrancheResponse as NeutronDexQueryAllInactiveLimitOrderTrancheResponse, + QueryAllPoolReservesRequest as NeutronDexQueryAllPoolReservesRequest, + QueryAllPoolReservesResponse as NeutronDexQueryAllPoolReservesResponse, + QueryGetPoolReservesRequest as NeutronDexQueryGetPoolReservesRequest, + QueryGetPoolReservesResponse as NeutronDexQueryGetPoolReservesResponse, + QueryEstimateMultiHopSwapRequest as NeutronDexQueryEstimateMultiHopSwapRequest, + QueryEstimateMultiHopSwapResponse as NeutronDexQueryEstimateMultiHopSwapResponse, + QueryEstimatePlaceLimitOrderRequest as NeutronDexQueryEstimatePlaceLimitOrderRequest, + QueryEstimatePlaceLimitOrderResponse as NeutronDexQueryEstimatePlaceLimitOrderResponse, + QueryPoolRequest as NeutronDexQueryPoolRequest, + QueryPoolByIDRequest as NeutronDexQueryPoolByIDRequest, + QueryPoolResponse as NeutronDexQueryPoolResponse, + QueryGetPoolMetadataRequest as NeutronDexQueryGetPoolMetadataRequest, + QueryGetPoolMetadataResponse as NeutronDexQueryGetPoolMetadataResponse, + QueryAllPoolMetadataRequest as NeutronDexQueryAllPoolMetadataRequest, + QueryAllPoolMetadataResponse as NeutronDexQueryAllPoolMetadataResponse, + QuerySimulateDepositRequest as NeutronDexQuerySimulateDepositRequest, + QuerySimulateDepositResponse as NeutronDexQuerySimulateDepositResponse, + QuerySimulateWithdrawalRequest as NeutronDexQuerySimulateWithdrawalRequest, + QuerySimulateWithdrawalWithSharesRequest as NeutronDexQuerySimulateWithdrawalWithSharesRequest, + QuerySimulateWithdrawalResponse as NeutronDexQuerySimulateWithdrawalResponse, + QuerySimulatePlaceLimitOrderRequest as NeutronDexQuerySimulatePlaceLimitOrderRequest, + QuerySimulatePlaceLimitOrderResponse as NeutronDexQuerySimulatePlaceLimitOrderResponse, + QuerySimulateWithdrawFilledLimitOrderRequest as NeutronDexQuerySimulateWithdrawFilledLimitOrderRequest, + QuerySimulateWithdrawFilledLimitOrderResponse as NeutronDexQuerySimulateWithdrawFilledLimitOrderResponse, + QuerySimulateCancelLimitOrderRequest as NeutronDexQuerySimulateCancelLimitOrderRequest, + QuerySimulateCancelLimitOrderResponse as NeutronDexQuerySimulateCancelLimitOrderResponse, + QuerySimulateMultiHopSwapRequest as NeutronDexQuerySimulateMultiHopSwapRequest, + QuerySimulateMultiHopSwapResponse as NeutronDexQuerySimulateMultiHopSwapResponse, +} from "./neutron/dex/query_pb.js"; +export { + QueryParamsService as NeutronDexQueryParamsService, + QueryLimitOrderTrancheUserService as NeutronDexQueryLimitOrderTrancheUserService, + QueryLimitOrderTrancheUserAllService as NeutronDexQueryLimitOrderTrancheUserAllService, + QueryLimitOrderTrancheUserAllByAddressService as NeutronDexQueryLimitOrderTrancheUserAllByAddressService, + QueryLimitOrderTrancheService as NeutronDexQueryLimitOrderTrancheService, + QueryLimitOrderTrancheAllService as NeutronDexQueryLimitOrderTrancheAllService, + QueryUserDepositsAllService as NeutronDexQueryUserDepositsAllService, + QueryTickLiquidityAllService as NeutronDexQueryTickLiquidityAllService, + QueryInactiveLimitOrderTrancheService as NeutronDexQueryInactiveLimitOrderTrancheService, + QueryInactiveLimitOrderTrancheAllService as NeutronDexQueryInactiveLimitOrderTrancheAllService, + QueryPoolReservesAllService as NeutronDexQueryPoolReservesAllService, + QueryPoolReservesService as NeutronDexQueryPoolReservesService, + QueryEstimateMultiHopSwapService as NeutronDexQueryEstimateMultiHopSwapService, + QueryEstimatePlaceLimitOrderService as NeutronDexQueryEstimatePlaceLimitOrderService, + QueryPoolService as NeutronDexQueryPoolService, + QueryPoolByIDService as NeutronDexQueryPoolByIDService, + QueryPoolMetadataService as NeutronDexQueryPoolMetadataService, + QueryPoolMetadataAllService as NeutronDexQueryPoolMetadataAllService, + QuerySimulateDepositService as NeutronDexQuerySimulateDepositService, + QuerySimulateWithdrawalService as NeutronDexQuerySimulateWithdrawalService, + QuerySimulateWithdrawalWithSharesService as NeutronDexQuerySimulateWithdrawalWithSharesService, + QuerySimulatePlaceLimitOrderService as NeutronDexQuerySimulatePlaceLimitOrderService, + QuerySimulateWithdrawFilledLimitOrderService as NeutronDexQuerySimulateWithdrawFilledLimitOrderService, + QuerySimulateCancelLimitOrderService as NeutronDexQuerySimulateCancelLimitOrderService, + QuerySimulateMultiHopSwapService as NeutronDexQuerySimulateMultiHopSwapService, +} from "./neutron/dex/query_cosmes.js"; +export { + PrecDecCoin as NeutronDexPrecDecCoin, +} from "./neutron/dex/precdec_coin_pb.js"; +export { + PoolReservesKey as NeutronDexPoolReservesKey, + PoolReserves as NeutronDexPoolReserves, +} from "./neutron/dex/pool_reserves_pb.js"; +export { + Pool as NeutronDexPool, +} from "./neutron/dex/pool_pb.js"; +export { + PoolMetadata as NeutronDexPoolMetadata, +} from "./neutron/dex/pool_metadata_pb.js"; +export { + Params as NeutronDexParams, +} from "./neutron/dex/params_pb.js"; +export { + PairID as NeutronDexPairID, +} from "./neutron/dex/pair_id_pb.js"; +export { + LimitOrderTrancheUser as NeutronDexLimitOrderTrancheUser, +} from "./neutron/dex/limit_order_tranche_user_pb.js"; +export { + LimitOrderTrancheKey as NeutronDexLimitOrderTrancheKey, + LimitOrderTranche as NeutronDexLimitOrderTranche, +} from "./neutron/dex/limit_order_tranche_pb.js"; +export { + LimitOrderExpiration as NeutronDexLimitOrderExpiration, +} from "./neutron/dex/limit_order_expiration_pb.js"; +export { + GenesisState as NeutronDexGenesisState, +} from "./neutron/dex/genesis_pb.js"; +export { + DepositRecord as NeutronDexDepositRecord, +} from "./neutron/dex/deposit_record_pb.js"; +export { + Params as NeutronDexV2Params, +} from "./neutron/dex/v2/params_pb.js"; +export { + PubKey as NeutronCryptoV1beta1Ethsecp256k1PubKey, + PrivKey as NeutronCryptoV1beta1Ethsecp256k1PrivKey, +} from "./neutron/crypto/v1beta1/ethsecp256k1/keys_pb.js"; +export { + MsgAddSchedule as NeutronCronMsgAddSchedule, + MsgAddScheduleResponse as NeutronCronMsgAddScheduleResponse, + MsgRemoveSchedule as NeutronCronMsgRemoveSchedule, + MsgRemoveScheduleResponse as NeutronCronMsgRemoveScheduleResponse, + MsgUpdateParams as NeutronCronMsgUpdateParams, + MsgUpdateParamsResponse as NeutronCronMsgUpdateParamsResponse, +} from "./neutron/cron/tx_pb.js"; +export { + MsgAddScheduleService as NeutronCronMsgAddScheduleService, + MsgRemoveScheduleService as NeutronCronMsgRemoveScheduleService, + MsgUpdateParamsService as NeutronCronMsgUpdateParamsService, +} from "./neutron/cron/tx_cosmes.js"; +export { + ExecutionStage as NeutronCronExecutionStage, + Schedule as NeutronCronSchedule, + MsgExecuteContract as NeutronCronMsgExecuteContract, + ScheduleCount as NeutronCronScheduleCount, +} from "./neutron/cron/schedule_pb.js"; +export { + QueryParamsRequest as NeutronCronQueryParamsRequest, + QueryParamsResponse as NeutronCronQueryParamsResponse, + QueryGetScheduleRequest as NeutronCronQueryGetScheduleRequest, + QueryGetScheduleResponse as NeutronCronQueryGetScheduleResponse, + QuerySchedulesRequest as NeutronCronQuerySchedulesRequest, + QuerySchedulesResponse as NeutronCronQuerySchedulesResponse, +} from "./neutron/cron/query_pb.js"; +export { + QueryParamsService as NeutronCronQueryParamsService, + QueryScheduleService as NeutronCronQueryScheduleService, + QuerySchedulesService as NeutronCronQuerySchedulesService, +} from "./neutron/cron/query_cosmes.js"; +export { + Params as NeutronCronParams, +} from "./neutron/cron/params_pb.js"; +export { + GenesisState as NeutronCronGenesisState, +} from "./neutron/cron/genesis_pb.js"; +export { + Schedule as NeutronCronV1Schedule, + MsgExecuteContract as NeutronCronV1MsgExecuteContract, + ScheduleCount as NeutronCronV1ScheduleCount, +} from "./neutron/cron/v1/schedule_pb.js"; +export { + MsgUpdateParams as NeutronContractmanagerMsgUpdateParams, + MsgUpdateParamsResponse as NeutronContractmanagerMsgUpdateParamsResponse, + MsgResubmitFailure as NeutronContractmanagerMsgResubmitFailure, + MsgResubmitFailureResponse as NeutronContractmanagerMsgResubmitFailureResponse, +} from "./neutron/contractmanager/tx_pb.js"; +export { + MsgUpdateParamsService as NeutronContractmanagerMsgUpdateParamsService, + MsgResubmitFailureService as NeutronContractmanagerMsgResubmitFailureService, +} from "./neutron/contractmanager/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronContractmanagerQueryParamsRequest, + QueryParamsResponse as NeutronContractmanagerQueryParamsResponse, + QueryFailuresRequest as NeutronContractmanagerQueryFailuresRequest, + QueryFailureRequest as NeutronContractmanagerQueryFailureRequest, + QueryFailureResponse as NeutronContractmanagerQueryFailureResponse, + QueryFailuresResponse as NeutronContractmanagerQueryFailuresResponse, +} from "./neutron/contractmanager/query_pb.js"; +export { + QueryParamsService as NeutronContractmanagerQueryParamsService, + QueryAddressFailureService as NeutronContractmanagerQueryAddressFailureService, + QueryAddressFailuresService as NeutronContractmanagerQueryAddressFailuresService, + QueryFailuresService as NeutronContractmanagerQueryFailuresService, +} from "./neutron/contractmanager/query_cosmes.js"; +export { + Params as NeutronContractmanagerParams, +} from "./neutron/contractmanager/params_pb.js"; +export { + GenesisState as NeutronContractmanagerGenesisState, +} from "./neutron/contractmanager/genesis_pb.js"; +export { + Failure as NeutronContractmanagerFailure, +} from "./neutron/contractmanager/failure_pb.js"; +export { + Failure as NeutronContractmanagerV1Failure, +} from "./neutron/contractmanager/v1/failure_pb.js"; +export { + WhitelistedHook as NeutronCoinfactoryWhitelistedHook, + Params as NeutronCoinfactoryParams, +} from "./neutron/coinfactory/params_pb.js"; +export { + MsgCreateDenom as NeutronCoinfactoryV1beta1MsgCreateDenom, + MsgCreateDenomResponse as NeutronCoinfactoryV1beta1MsgCreateDenomResponse, + MsgMint as NeutronCoinfactoryV1beta1MsgMint, + MsgMintResponse as NeutronCoinfactoryV1beta1MsgMintResponse, + MsgBurn as NeutronCoinfactoryV1beta1MsgBurn, + MsgBurnResponse as NeutronCoinfactoryV1beta1MsgBurnResponse, + MsgChangeAdmin as NeutronCoinfactoryV1beta1MsgChangeAdmin, + MsgChangeAdminResponse as NeutronCoinfactoryV1beta1MsgChangeAdminResponse, + MsgSetBeforeSendHook as NeutronCoinfactoryV1beta1MsgSetBeforeSendHook, + MsgSetBeforeSendHookResponse as NeutronCoinfactoryV1beta1MsgSetBeforeSendHookResponse, + MsgSetDenomMetadata as NeutronCoinfactoryV1beta1MsgSetDenomMetadata, + MsgSetDenomMetadataResponse as NeutronCoinfactoryV1beta1MsgSetDenomMetadataResponse, + MsgForceTransfer as NeutronCoinfactoryV1beta1MsgForceTransfer, + MsgForceTransferResponse as NeutronCoinfactoryV1beta1MsgForceTransferResponse, + MsgUpdateParams as NeutronCoinfactoryV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as NeutronCoinfactoryV1beta1MsgUpdateParamsResponse, +} from "./neutron/coinfactory/v1beta1/tx_pb.js"; +export { + MsgCreateDenomService as NeutronCoinfactoryV1beta1MsgCreateDenomService, + MsgMintService as NeutronCoinfactoryV1beta1MsgMintService, + MsgBurnService as NeutronCoinfactoryV1beta1MsgBurnService, + MsgChangeAdminService as NeutronCoinfactoryV1beta1MsgChangeAdminService, + MsgSetDenomMetadataService as NeutronCoinfactoryV1beta1MsgSetDenomMetadataService, + MsgSetBeforeSendHookService as NeutronCoinfactoryV1beta1MsgSetBeforeSendHookService, + MsgForceTransferService as NeutronCoinfactoryV1beta1MsgForceTransferService, + MsgUpdateParamsService as NeutronCoinfactoryV1beta1MsgUpdateParamsService, +} from "./neutron/coinfactory/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as NeutronCoinfactoryV1beta1QueryParamsRequest, + QueryParamsResponse as NeutronCoinfactoryV1beta1QueryParamsResponse, + QueryDenomAuthorityMetadataRequest as NeutronCoinfactoryV1beta1QueryDenomAuthorityMetadataRequest, + QueryDenomAuthorityMetadataResponse as NeutronCoinfactoryV1beta1QueryDenomAuthorityMetadataResponse, + QueryDenomsFromCreatorRequest as NeutronCoinfactoryV1beta1QueryDenomsFromCreatorRequest, + QueryDenomsFromCreatorResponse as NeutronCoinfactoryV1beta1QueryDenomsFromCreatorResponse, + QueryBeforeSendHookAddressRequest as NeutronCoinfactoryV1beta1QueryBeforeSendHookAddressRequest, + QueryBeforeSendHookAddressResponse as NeutronCoinfactoryV1beta1QueryBeforeSendHookAddressResponse, + QueryFullDenomRequest as NeutronCoinfactoryV1beta1QueryFullDenomRequest, + QueryFullDenomResponse as NeutronCoinfactoryV1beta1QueryFullDenomResponse, +} from "./neutron/coinfactory/v1beta1/query_pb.js"; +export { + QueryParamsService as NeutronCoinfactoryV1beta1QueryParamsService, + QueryDenomAuthorityMetadataService as NeutronCoinfactoryV1beta1QueryDenomAuthorityMetadataService, + QueryDenomsFromCreatorService as NeutronCoinfactoryV1beta1QueryDenomsFromCreatorService, + QueryBeforeSendHookAddressService as NeutronCoinfactoryV1beta1QueryBeforeSendHookAddressService, + QueryFullDenomService as NeutronCoinfactoryV1beta1QueryFullDenomService, +} from "./neutron/coinfactory/v1beta1/query_cosmes.js"; +export { + Params as NeutronCoinfactoryV1beta1Params, +} from "./neutron/coinfactory/v1beta1/params_pb.js"; +export { + GenesisState as NeutronCoinfactoryV1beta1GenesisState, + GenesisDenom as NeutronCoinfactoryV1beta1GenesisDenom, +} from "./neutron/coinfactory/v1beta1/genesis_pb.js"; +export { + DenomAuthorityMetadata as NeutronCoinfactoryV1beta1DenomAuthorityMetadata, +} from "./neutron/coinfactory/v1beta1/authorityMetadata_pb.js"; +export { + QueryParamsRequest as MilkywayServicesV1QueryParamsRequest, + QueryParamsResponse as MilkywayServicesV1QueryParamsResponse, + QueryServicesRequest as MilkywayServicesV1QueryServicesRequest, + QueryServicesResponse as MilkywayServicesV1QueryServicesResponse, + QueryServiceRequest as MilkywayServicesV1QueryServiceRequest, + QueryServiceResponse as MilkywayServicesV1QueryServiceResponse, + QueryServiceParamsRequest as MilkywayServicesV1QueryServiceParamsRequest, + QueryServiceParamsResponse as MilkywayServicesV1QueryServiceParamsResponse, +} from "./milkyway/services/v1/query_pb.js"; +export { + QueryServiceService as MilkywayServicesV1QueryServiceService, + QueryServicesService as MilkywayServicesV1QueryServicesService, + QueryServiceParamsService as MilkywayServicesV1QueryServiceParamsService, + QueryParamsService as MilkywayServicesV1QueryParamsService, +} from "./milkyway/services/v1/query_cosmes.js"; +export { + Params as MilkywayServicesV1Params, +} from "./milkyway/services/v1/params_pb.js"; +export { + ServiceStatus as MilkywayServicesV1ServiceStatus, + Service as MilkywayServicesV1Service, + ServiceParams as MilkywayServicesV1ServiceParams, +} from "./milkyway/services/v1/models_pb.js"; +export { + MsgCreateService as MilkywayServicesV1MsgCreateService, + MsgCreateServiceResponse as MilkywayServicesV1MsgCreateServiceResponse, + MsgUpdateService as MilkywayServicesV1MsgUpdateService, + MsgUpdateServiceResponse as MilkywayServicesV1MsgUpdateServiceResponse, + MsgActivateService as MilkywayServicesV1MsgActivateService, + MsgActivateServiceResponse as MilkywayServicesV1MsgActivateServiceResponse, + MsgDeactivateService as MilkywayServicesV1MsgDeactivateService, + MsgDeactivateServiceResponse as MilkywayServicesV1MsgDeactivateServiceResponse, + MsgDeleteService as MilkywayServicesV1MsgDeleteService, + MsgDeleteServiceResponse as MilkywayServicesV1MsgDeleteServiceResponse, + MsgTransferServiceOwnership as MilkywayServicesV1MsgTransferServiceOwnership, + MsgTransferServiceOwnershipResponse as MilkywayServicesV1MsgTransferServiceOwnershipResponse, + MsgSetServiceParams as MilkywayServicesV1MsgSetServiceParams, + MsgSetServiceParamsResponse as MilkywayServicesV1MsgSetServiceParamsResponse, + MsgUpdateParams as MilkywayServicesV1MsgUpdateParams, + MsgUpdateParamsResponse as MilkywayServicesV1MsgUpdateParamsResponse, + MsgAccreditService as MilkywayServicesV1MsgAccreditService, + MsgAccreditServiceResponse as MilkywayServicesV1MsgAccreditServiceResponse, + MsgRevokeServiceAccreditation as MilkywayServicesV1MsgRevokeServiceAccreditation, + MsgRevokeServiceAccreditationResponse as MilkywayServicesV1MsgRevokeServiceAccreditationResponse, +} from "./milkyway/services/v1/messages_pb.js"; +export { + MsgCreateServiceService as MilkywayServicesV1MsgCreateServiceService, + MsgUpdateServiceService as MilkywayServicesV1MsgUpdateServiceService, + MsgActivateServiceService as MilkywayServicesV1MsgActivateServiceService, + MsgDeactivateServiceService as MilkywayServicesV1MsgDeactivateServiceService, + MsgDeleteServiceService as MilkywayServicesV1MsgDeleteServiceService, + MsgTransferServiceOwnershipService as MilkywayServicesV1MsgTransferServiceOwnershipService, + MsgSetServiceParamsService as MilkywayServicesV1MsgSetServiceParamsService, + MsgUpdateParamsService as MilkywayServicesV1MsgUpdateParamsService, + MsgAccreditServiceService as MilkywayServicesV1MsgAccreditServiceService, + MsgRevokeServiceAccreditationService as MilkywayServicesV1MsgRevokeServiceAccreditationService, +} from "./milkyway/services/v1/messages_cosmes.js"; +export { + GenesisState as MilkywayServicesV1GenesisState, + ServiceParamsRecord as MilkywayServicesV1ServiceParamsRecord, +} from "./milkyway/services/v1/genesis_pb.js"; +export { + QueryParamsRequest as MilkywayRewardsV1QueryParamsRequest, + QueryParamsResponse as MilkywayRewardsV1QueryParamsResponse, + QueryRewardsPlansRequest as MilkywayRewardsV1QueryRewardsPlansRequest, + QueryRewardsPlansResponse as MilkywayRewardsV1QueryRewardsPlansResponse, + QueryRewardsPlanRequest as MilkywayRewardsV1QueryRewardsPlanRequest, + QueryRewardsPlanResponse as MilkywayRewardsV1QueryRewardsPlanResponse, + QueryPoolOutstandingRewardsRequest as MilkywayRewardsV1QueryPoolOutstandingRewardsRequest, + QueryPoolOutstandingRewardsResponse as MilkywayRewardsV1QueryPoolOutstandingRewardsResponse, + QueryOperatorOutstandingRewardsRequest as MilkywayRewardsV1QueryOperatorOutstandingRewardsRequest, + QueryOperatorOutstandingRewardsResponse as MilkywayRewardsV1QueryOperatorOutstandingRewardsResponse, + QueryServiceOutstandingRewardsRequest as MilkywayRewardsV1QueryServiceOutstandingRewardsRequest, + QueryServiceOutstandingRewardsResponse as MilkywayRewardsV1QueryServiceOutstandingRewardsResponse, + QueryOperatorCommissionRequest as MilkywayRewardsV1QueryOperatorCommissionRequest, + QueryOperatorCommissionResponse as MilkywayRewardsV1QueryOperatorCommissionResponse, + QueryPoolServiceTotalDelegatorSharesRequest as MilkywayRewardsV1QueryPoolServiceTotalDelegatorSharesRequest, + QueryPoolServiceTotalDelegatorSharesResponse as MilkywayRewardsV1QueryPoolServiceTotalDelegatorSharesResponse, + QueryPoolDelegationRewardsRequest as MilkywayRewardsV1QueryPoolDelegationRewardsRequest, + QueryPoolDelegationRewardsResponse as MilkywayRewardsV1QueryPoolDelegationRewardsResponse, + QueryOperatorDelegationRewardsRequest as MilkywayRewardsV1QueryOperatorDelegationRewardsRequest, + QueryOperatorDelegationRewardsResponse as MilkywayRewardsV1QueryOperatorDelegationRewardsResponse, + QueryServiceDelegationRewardsRequest as MilkywayRewardsV1QueryServiceDelegationRewardsRequest, + QueryServiceDelegationRewardsResponse as MilkywayRewardsV1QueryServiceDelegationRewardsResponse, + QueryDelegatorTotalRewardsRequest as MilkywayRewardsV1QueryDelegatorTotalRewardsRequest, + QueryDelegatorTotalRewardsResponse as MilkywayRewardsV1QueryDelegatorTotalRewardsResponse, + QueryDelegatorWithdrawAddressRequest as MilkywayRewardsV1QueryDelegatorWithdrawAddressRequest, + QueryDelegatorWithdrawAddressResponse as MilkywayRewardsV1QueryDelegatorWithdrawAddressResponse, +} from "./milkyway/rewards/v1/query_pb.js"; +export { + QueryParamsService as MilkywayRewardsV1QueryParamsService, + QueryRewardsPlansService as MilkywayRewardsV1QueryRewardsPlansService, + QueryRewardsPlanService as MilkywayRewardsV1QueryRewardsPlanService, + QueryPoolOutstandingRewardsService as MilkywayRewardsV1QueryPoolOutstandingRewardsService, + QueryOperatorOutstandingRewardsService as MilkywayRewardsV1QueryOperatorOutstandingRewardsService, + QueryServiceOutstandingRewardsService as MilkywayRewardsV1QueryServiceOutstandingRewardsService, + QueryOperatorCommissionService as MilkywayRewardsV1QueryOperatorCommissionService, + QueryPoolServiceTotalDelegatorSharesService as MilkywayRewardsV1QueryPoolServiceTotalDelegatorSharesService, + QueryPoolDelegationRewardsService as MilkywayRewardsV1QueryPoolDelegationRewardsService, + QueryOperatorDelegationRewardsService as MilkywayRewardsV1QueryOperatorDelegationRewardsService, + QueryServiceDelegationRewardsService as MilkywayRewardsV1QueryServiceDelegationRewardsService, + QueryDelegatorTotalRewardsService as MilkywayRewardsV1QueryDelegatorTotalRewardsService, + QueryDelegatorWithdrawAddressService as MilkywayRewardsV1QueryDelegatorWithdrawAddressService, +} from "./milkyway/rewards/v1/query_cosmes.js"; +export { + Params as MilkywayRewardsV1Params, +} from "./milkyway/rewards/v1/params_pb.js"; +export { + RewardsPlan as MilkywayRewardsV1RewardsPlan, + Distribution as MilkywayRewardsV1Distribution, + DistributionTypeBasic as MilkywayRewardsV1DistributionTypeBasic, + DistributionTypeWeighted as MilkywayRewardsV1DistributionTypeWeighted, + DistributionWeight as MilkywayRewardsV1DistributionWeight, + DistributionTypeEgalitarian as MilkywayRewardsV1DistributionTypeEgalitarian, + UsersDistribution as MilkywayRewardsV1UsersDistribution, + UsersDistributionTypeBasic as MilkywayRewardsV1UsersDistributionTypeBasic, + HistoricalRewards as MilkywayRewardsV1HistoricalRewards, + CurrentRewards as MilkywayRewardsV1CurrentRewards, + OutstandingRewards as MilkywayRewardsV1OutstandingRewards, + AccumulatedCommission as MilkywayRewardsV1AccumulatedCommission, + DelegatorStartingInfo as MilkywayRewardsV1DelegatorStartingInfo, + DelegationDelegatorReward as MilkywayRewardsV1DelegationDelegatorReward, + PoolServiceTotalDelegatorShares as MilkywayRewardsV1PoolServiceTotalDelegatorShares, + Pool as MilkywayRewardsV1Pool, + DecPool as MilkywayRewardsV1DecPool, + ServicePool as MilkywayRewardsV1ServicePool, +} from "./milkyway/rewards/v1/models_pb.js"; +export { + MsgCreateRewardsPlan as MilkywayRewardsV1MsgCreateRewardsPlan, + MsgCreateRewardsPlanResponse as MilkywayRewardsV1MsgCreateRewardsPlanResponse, + MsgEditRewardsPlan as MilkywayRewardsV1MsgEditRewardsPlan, + MsgEditRewardsPlanResponse as MilkywayRewardsV1MsgEditRewardsPlanResponse, + MsgSetWithdrawAddress as MilkywayRewardsV1MsgSetWithdrawAddress, + MsgSetWithdrawAddressResponse as MilkywayRewardsV1MsgSetWithdrawAddressResponse, + MsgWithdrawDelegatorReward as MilkywayRewardsV1MsgWithdrawDelegatorReward, + MsgWithdrawDelegatorRewardResponse as MilkywayRewardsV1MsgWithdrawDelegatorRewardResponse, + MsgWithdrawOperatorCommission as MilkywayRewardsV1MsgWithdrawOperatorCommission, + MsgWithdrawOperatorCommissionResponse as MilkywayRewardsV1MsgWithdrawOperatorCommissionResponse, + MsgUpdateParams as MilkywayRewardsV1MsgUpdateParams, + MsgUpdateParamsResponse as MilkywayRewardsV1MsgUpdateParamsResponse, +} from "./milkyway/rewards/v1/messages_pb.js"; +export { + MsgCreateRewardsPlanService as MilkywayRewardsV1MsgCreateRewardsPlanService, + MsgEditRewardsPlanService as MilkywayRewardsV1MsgEditRewardsPlanService, + MsgSetWithdrawAddressService as MilkywayRewardsV1MsgSetWithdrawAddressService, + MsgWithdrawDelegatorRewardService as MilkywayRewardsV1MsgWithdrawDelegatorRewardService, + MsgWithdrawOperatorCommissionService as MilkywayRewardsV1MsgWithdrawOperatorCommissionService, + MsgUpdateParamsService as MilkywayRewardsV1MsgUpdateParamsService, +} from "./milkyway/rewards/v1/messages_cosmes.js"; +export { + DelegatorWithdrawInfo as MilkywayRewardsV1DelegatorWithdrawInfo, + OutstandingRewardsRecord as MilkywayRewardsV1OutstandingRewardsRecord, + HistoricalRewardsRecord as MilkywayRewardsV1HistoricalRewardsRecord, + CurrentRewardsRecord as MilkywayRewardsV1CurrentRewardsRecord, + DelegatorStartingInfoRecord as MilkywayRewardsV1DelegatorStartingInfoRecord, + OperatorAccumulatedCommissionRecord as MilkywayRewardsV1OperatorAccumulatedCommissionRecord, + DelegationTypeRecords as MilkywayRewardsV1DelegationTypeRecords, + GenesisState as MilkywayRewardsV1GenesisState, +} from "./milkyway/rewards/v1/genesis_pb.js"; +export { + QueryOperatorJoinedServicesRequest as MilkywayRestakingV1QueryOperatorJoinedServicesRequest, + QueryOperatorJoinedServicesResponse as MilkywayRestakingV1QueryOperatorJoinedServicesResponse, + QueryServiceAllowedOperatorsRequest as MilkywayRestakingV1QueryServiceAllowedOperatorsRequest, + QueryServiceAllowedOperatorsResponse as MilkywayRestakingV1QueryServiceAllowedOperatorsResponse, + QueryServiceSecuringPoolsRequest as MilkywayRestakingV1QueryServiceSecuringPoolsRequest, + QueryServiceSecuringPoolsResponse as MilkywayRestakingV1QueryServiceSecuringPoolsResponse, + QueryServiceOperatorsRequest as MilkywayRestakingV1QueryServiceOperatorsRequest, + QueryServiceOperatorsResponse as MilkywayRestakingV1QueryServiceOperatorsResponse, + QueryPoolDelegationsRequest as MilkywayRestakingV1QueryPoolDelegationsRequest, + QueryPoolDelegationsResponse as MilkywayRestakingV1QueryPoolDelegationsResponse, + QueryPoolDelegationRequest as MilkywayRestakingV1QueryPoolDelegationRequest, + QueryPoolDelegationResponse as MilkywayRestakingV1QueryPoolDelegationResponse, + QueryPoolUnbondingDelegationsRequest as MilkywayRestakingV1QueryPoolUnbondingDelegationsRequest, + QueryPoolUnbondingDelegationsResponse as MilkywayRestakingV1QueryPoolUnbondingDelegationsResponse, + QueryPoolUnbondingDelegationRequest as MilkywayRestakingV1QueryPoolUnbondingDelegationRequest, + QueryPoolUnbondingDelegationResponse as MilkywayRestakingV1QueryPoolUnbondingDelegationResponse, + QueryOperatorDelegationsRequest as MilkywayRestakingV1QueryOperatorDelegationsRequest, + QueryOperatorDelegationsResponse as MilkywayRestakingV1QueryOperatorDelegationsResponse, + QueryOperatorDelegationRequest as MilkywayRestakingV1QueryOperatorDelegationRequest, + QueryOperatorDelegationResponse as MilkywayRestakingV1QueryOperatorDelegationResponse, + QueryOperatorUnbondingDelegationsRequest as MilkywayRestakingV1QueryOperatorUnbondingDelegationsRequest, + QueryOperatorUnbondingDelegationsResponse as MilkywayRestakingV1QueryOperatorUnbondingDelegationsResponse, + QueryOperatorUnbondingDelegationRequest as MilkywayRestakingV1QueryOperatorUnbondingDelegationRequest, + QueryOperatorUnbondingDelegationResponse as MilkywayRestakingV1QueryOperatorUnbondingDelegationResponse, + QueryServiceDelegationsRequest as MilkywayRestakingV1QueryServiceDelegationsRequest, + QueryServiceDelegationsResponse as MilkywayRestakingV1QueryServiceDelegationsResponse, + QueryServiceDelegationRequest as MilkywayRestakingV1QueryServiceDelegationRequest, + QueryServiceDelegationResponse as MilkywayRestakingV1QueryServiceDelegationResponse, + QueryServiceUnbondingDelegationsRequest as MilkywayRestakingV1QueryServiceUnbondingDelegationsRequest, + QueryServiceUnbondingDelegationsResponse as MilkywayRestakingV1QueryServiceUnbondingDelegationsResponse, + QueryServiceUnbondingDelegationRequest as MilkywayRestakingV1QueryServiceUnbondingDelegationRequest, + QueryServiceUnbondingDelegationResponse as MilkywayRestakingV1QueryServiceUnbondingDelegationResponse, + QueryDelegatorPoolDelegationsRequest as MilkywayRestakingV1QueryDelegatorPoolDelegationsRequest, + QueryDelegatorPoolDelegationsResponse as MilkywayRestakingV1QueryDelegatorPoolDelegationsResponse, + QueryDelegatorPoolUnbondingDelegationsRequest as MilkywayRestakingV1QueryDelegatorPoolUnbondingDelegationsRequest, + QueryDelegatorPoolUnbondingDelegationsResponse as MilkywayRestakingV1QueryDelegatorPoolUnbondingDelegationsResponse, + QueryDelegatorOperatorDelegationsRequest as MilkywayRestakingV1QueryDelegatorOperatorDelegationsRequest, + QueryDelegatorOperatorDelegationsResponse as MilkywayRestakingV1QueryDelegatorOperatorDelegationsResponse, + QueryDelegatorOperatorUnbondingDelegationsRequest as MilkywayRestakingV1QueryDelegatorOperatorUnbondingDelegationsRequest, + QueryDelegatorOperatorUnbondingDelegationsResponse as MilkywayRestakingV1QueryDelegatorOperatorUnbondingDelegationsResponse, + QueryDelegatorServiceDelegationsRequest as MilkywayRestakingV1QueryDelegatorServiceDelegationsRequest, + QueryDelegatorServiceDelegationsResponse as MilkywayRestakingV1QueryDelegatorServiceDelegationsResponse, + QueryDelegatorServiceUnbondingDelegationsRequest as MilkywayRestakingV1QueryDelegatorServiceUnbondingDelegationsRequest, + QueryDelegatorServiceUnbondingDelegationsResponse as MilkywayRestakingV1QueryDelegatorServiceUnbondingDelegationsResponse, + QueryDelegatorPoolsRequest as MilkywayRestakingV1QueryDelegatorPoolsRequest, + QueryDelegatorPoolsResponse as MilkywayRestakingV1QueryDelegatorPoolsResponse, + QueryDelegatorPoolRequest as MilkywayRestakingV1QueryDelegatorPoolRequest, + QueryDelegatorPoolResponse as MilkywayRestakingV1QueryDelegatorPoolResponse, + QueryDelegatorOperatorsRequest as MilkywayRestakingV1QueryDelegatorOperatorsRequest, + QueryDelegatorOperatorsResponse as MilkywayRestakingV1QueryDelegatorOperatorsResponse, + QueryDelegatorOperatorRequest as MilkywayRestakingV1QueryDelegatorOperatorRequest, + QueryDelegatorOperatorResponse as MilkywayRestakingV1QueryDelegatorOperatorResponse, + QueryDelegatorServicesRequest as MilkywayRestakingV1QueryDelegatorServicesRequest, + QueryDelegatorServicesResponse as MilkywayRestakingV1QueryDelegatorServicesResponse, + QueryDelegatorServiceRequest as MilkywayRestakingV1QueryDelegatorServiceRequest, + QueryDelegatorServiceResponse as MilkywayRestakingV1QueryDelegatorServiceResponse, + QueryUserPreferencesRequest as MilkywayRestakingV1QueryUserPreferencesRequest, + QueryUserPreferencesResponse as MilkywayRestakingV1QueryUserPreferencesResponse, + QueryParamsRequest as MilkywayRestakingV1QueryParamsRequest, + QueryParamsResponse as MilkywayRestakingV1QueryParamsResponse, +} from "./milkyway/restaking/v1/query_pb.js"; +export { + QueryOperatorJoinedServicesService as MilkywayRestakingV1QueryOperatorJoinedServicesService, + QueryServiceAllowedOperatorsService as MilkywayRestakingV1QueryServiceAllowedOperatorsService, + QueryServiceSecuringPoolsService as MilkywayRestakingV1QueryServiceSecuringPoolsService, + QueryServiceOperatorsService as MilkywayRestakingV1QueryServiceOperatorsService, + QueryPoolDelegationsService as MilkywayRestakingV1QueryPoolDelegationsService, + QueryPoolDelegationService as MilkywayRestakingV1QueryPoolDelegationService, + QueryPoolUnbondingDelegationsService as MilkywayRestakingV1QueryPoolUnbondingDelegationsService, + QueryPoolUnbondingDelegationService as MilkywayRestakingV1QueryPoolUnbondingDelegationService, + QueryOperatorDelegationsService as MilkywayRestakingV1QueryOperatorDelegationsService, + QueryOperatorDelegationService as MilkywayRestakingV1QueryOperatorDelegationService, + QueryOperatorUnbondingDelegationsService as MilkywayRestakingV1QueryOperatorUnbondingDelegationsService, + QueryOperatorUnbondingDelegationService as MilkywayRestakingV1QueryOperatorUnbondingDelegationService, + QueryServiceDelegationsService as MilkywayRestakingV1QueryServiceDelegationsService, + QueryServiceDelegationService as MilkywayRestakingV1QueryServiceDelegationService, + QueryServiceUnbondingDelegationsService as MilkywayRestakingV1QueryServiceUnbondingDelegationsService, + QueryServiceUnbondingDelegationService as MilkywayRestakingV1QueryServiceUnbondingDelegationService, + QueryDelegatorPoolDelegationsService as MilkywayRestakingV1QueryDelegatorPoolDelegationsService, + QueryDelegatorPoolUnbondingDelegationsService as MilkywayRestakingV1QueryDelegatorPoolUnbondingDelegationsService, + QueryDelegatorOperatorDelegationsService as MilkywayRestakingV1QueryDelegatorOperatorDelegationsService, + QueryDelegatorOperatorUnbondingDelegationsService as MilkywayRestakingV1QueryDelegatorOperatorUnbondingDelegationsService, + QueryDelegatorServiceDelegationsService as MilkywayRestakingV1QueryDelegatorServiceDelegationsService, + QueryDelegatorServiceUnbondingDelegationsService as MilkywayRestakingV1QueryDelegatorServiceUnbondingDelegationsService, + QueryDelegatorPoolsService as MilkywayRestakingV1QueryDelegatorPoolsService, + QueryDelegatorPoolService as MilkywayRestakingV1QueryDelegatorPoolService, + QueryDelegatorOperatorsService as MilkywayRestakingV1QueryDelegatorOperatorsService, + QueryDelegatorOperatorService as MilkywayRestakingV1QueryDelegatorOperatorService, + QueryDelegatorServicesService as MilkywayRestakingV1QueryDelegatorServicesService, + QueryDelegatorServiceService as MilkywayRestakingV1QueryDelegatorServiceService, + QueryUserPreferencesService as MilkywayRestakingV1QueryUserPreferencesService, + QueryParamsService as MilkywayRestakingV1QueryParamsService, +} from "./milkyway/restaking/v1/query_cosmes.js"; +export { + Params as MilkywayRestakingV1Params, +} from "./milkyway/restaking/v1/params_pb.js"; +export { + DelegationType as MilkywayRestakingV1DelegationType, + Delegation as MilkywayRestakingV1Delegation, + DelegationResponse as MilkywayRestakingV1DelegationResponse, + UnbondingDelegation as MilkywayRestakingV1UnbondingDelegation, + UnbondingDelegationEntry as MilkywayRestakingV1UnbondingDelegationEntry, + DTData as MilkywayRestakingV1DTData, + DTDataList as MilkywayRestakingV1DTDataList, + UserPreferences as MilkywayRestakingV1UserPreferences, + TrustedServiceEntry as MilkywayRestakingV1TrustedServiceEntry, +} from "./milkyway/restaking/v1/models_pb.js"; +export { + MsgJoinService as MilkywayRestakingV1MsgJoinService, + MsgJoinServiceResponse as MilkywayRestakingV1MsgJoinServiceResponse, + MsgLeaveService as MilkywayRestakingV1MsgLeaveService, + MsgLeaveServiceResponse as MilkywayRestakingV1MsgLeaveServiceResponse, + MsgAddOperatorToAllowList as MilkywayRestakingV1MsgAddOperatorToAllowList, + MsgAddOperatorToAllowListResponse as MilkywayRestakingV1MsgAddOperatorToAllowListResponse, + MsgRemoveOperatorFromAllowlist as MilkywayRestakingV1MsgRemoveOperatorFromAllowlist, + MsgRemoveOperatorFromAllowlistResponse as MilkywayRestakingV1MsgRemoveOperatorFromAllowlistResponse, + MsgBorrowPoolSecurity as MilkywayRestakingV1MsgBorrowPoolSecurity, + MsgBorrowPoolSecurityResponse as MilkywayRestakingV1MsgBorrowPoolSecurityResponse, + MsgCeasePoolSecurityBorrow as MilkywayRestakingV1MsgCeasePoolSecurityBorrow, + MsgCeasePoolSecurityBorrowResponse as MilkywayRestakingV1MsgCeasePoolSecurityBorrowResponse, + MsgDelegatePool as MilkywayRestakingV1MsgDelegatePool, + MsgDelegatePoolResponse as MilkywayRestakingV1MsgDelegatePoolResponse, + MsgDelegateOperator as MilkywayRestakingV1MsgDelegateOperator, + MsgDelegateOperatorResponse as MilkywayRestakingV1MsgDelegateOperatorResponse, + MsgDelegateService as MilkywayRestakingV1MsgDelegateService, + MsgDelegateServiceResponse as MilkywayRestakingV1MsgDelegateServiceResponse, + MsgUpdateParams as MilkywayRestakingV1MsgUpdateParams, + MsgUpdateParamsResponse as MilkywayRestakingV1MsgUpdateParamsResponse, + MsgUndelegatePool as MilkywayRestakingV1MsgUndelegatePool, + MsgUndelegateOperator as MilkywayRestakingV1MsgUndelegateOperator, + MsgUndelegateService as MilkywayRestakingV1MsgUndelegateService, + MsgUndelegateResponse as MilkywayRestakingV1MsgUndelegateResponse, + MsgSetUserPreferences as MilkywayRestakingV1MsgSetUserPreferences, + MsgSetUserPreferencesResponse as MilkywayRestakingV1MsgSetUserPreferencesResponse, +} from "./milkyway/restaking/v1/messages_pb.js"; +export { + MsgJoinServiceService as MilkywayRestakingV1MsgJoinServiceService, + MsgLeaveServiceService as MilkywayRestakingV1MsgLeaveServiceService, + MsgAddOperatorToAllowListService as MilkywayRestakingV1MsgAddOperatorToAllowListService, + MsgRemoveOperatorFromAllowlistService as MilkywayRestakingV1MsgRemoveOperatorFromAllowlistService, + MsgBorrowPoolSecurityService as MilkywayRestakingV1MsgBorrowPoolSecurityService, + MsgCeasePoolSecurityBorrowService as MilkywayRestakingV1MsgCeasePoolSecurityBorrowService, + MsgDelegatePoolService as MilkywayRestakingV1MsgDelegatePoolService, + MsgDelegateOperatorService as MilkywayRestakingV1MsgDelegateOperatorService, + MsgDelegateServiceService as MilkywayRestakingV1MsgDelegateServiceService, + MsgUpdateParamsService as MilkywayRestakingV1MsgUpdateParamsService, + MsgUndelegatePoolService as MilkywayRestakingV1MsgUndelegatePoolService, + MsgUndelegateOperatorService as MilkywayRestakingV1MsgUndelegateOperatorService, + MsgUndelegateServiceService as MilkywayRestakingV1MsgUndelegateServiceService, + MsgSetUserPreferencesService as MilkywayRestakingV1MsgSetUserPreferencesService, +} from "./milkyway/restaking/v1/messages_cosmes.js"; +export { + OperatorJoinedServices as MilkywayRestakingV1OperatorJoinedServices, + ServiceAllowedOperators as MilkywayRestakingV1ServiceAllowedOperators, + ServiceSecuringPools as MilkywayRestakingV1ServiceSecuringPools, + UserPreferencesEntry as MilkywayRestakingV1UserPreferencesEntry, + GenesisState as MilkywayRestakingV1GenesisState, +} from "./milkyway/restaking/v1/genesis_pb.js"; +export { + QueryPoolByIdRequest as MilkywayPoolsV1QueryPoolByIdRequest, + QueryPoolByDenomRequest as MilkywayPoolsV1QueryPoolByDenomRequest, + QueryPoolResponse as MilkywayPoolsV1QueryPoolResponse, + QueryPoolsRequest as MilkywayPoolsV1QueryPoolsRequest, + QueryPoolsResponse as MilkywayPoolsV1QueryPoolsResponse, +} from "./milkyway/pools/v1/query_pb.js"; +export { + QueryPoolByIDService as MilkywayPoolsV1QueryPoolByIDService, + QueryPoolByDenomService as MilkywayPoolsV1QueryPoolByDenomService, + QueryPoolsService as MilkywayPoolsV1QueryPoolsService, +} from "./milkyway/pools/v1/query_cosmes.js"; +export { + Pool as MilkywayPoolsV1Pool, +} from "./milkyway/pools/v1/models_pb.js"; +export { + GenesisState as MilkywayPoolsV1GenesisState, +} from "./milkyway/pools/v1/genesis_pb.js"; +export { + QueryOperatorRequest as MilkywayOperatorsV1QueryOperatorRequest, + QueryOperatorResponse as MilkywayOperatorsV1QueryOperatorResponse, + QueryOperatorParamsRequest as MilkywayOperatorsV1QueryOperatorParamsRequest, + QueryOperatorParamsResponse as MilkywayOperatorsV1QueryOperatorParamsResponse, + QueryOperatorsRequest as MilkywayOperatorsV1QueryOperatorsRequest, + QueryOperatorsResponse as MilkywayOperatorsV1QueryOperatorsResponse, + QueryParamsRequest as MilkywayOperatorsV1QueryParamsRequest, + QueryParamsResponse as MilkywayOperatorsV1QueryParamsResponse, +} from "./milkyway/operators/v1/query_pb.js"; +export { + QueryOperatorService as MilkywayOperatorsV1QueryOperatorService, + QueryOperatorParamsService as MilkywayOperatorsV1QueryOperatorParamsService, + QueryOperatorsService as MilkywayOperatorsV1QueryOperatorsService, + QueryParamsService as MilkywayOperatorsV1QueryParamsService, +} from "./milkyway/operators/v1/query_cosmes.js"; +export { + Params as MilkywayOperatorsV1Params, +} from "./milkyway/operators/v1/params_pb.js"; +export { + OperatorStatus as MilkywayOperatorsV1OperatorStatus, + Operator as MilkywayOperatorsV1Operator, + OperatorParams as MilkywayOperatorsV1OperatorParams, +} from "./milkyway/operators/v1/models_pb.js"; +export { + MsgRegisterOperator as MilkywayOperatorsV1MsgRegisterOperator, + MsgRegisterOperatorResponse as MilkywayOperatorsV1MsgRegisterOperatorResponse, + MsgUpdateOperator as MilkywayOperatorsV1MsgUpdateOperator, + MsgUpdateOperatorResponse as MilkywayOperatorsV1MsgUpdateOperatorResponse, + MsgDeactivateOperator as MilkywayOperatorsV1MsgDeactivateOperator, + MsgDeactivateOperatorResponse as MilkywayOperatorsV1MsgDeactivateOperatorResponse, + MsgReactivateOperator as MilkywayOperatorsV1MsgReactivateOperator, + MsgReactivateOperatorResponse as MilkywayOperatorsV1MsgReactivateOperatorResponse, + MsgDeleteOperator as MilkywayOperatorsV1MsgDeleteOperator, + MsgDeleteOperatorResponse as MilkywayOperatorsV1MsgDeleteOperatorResponse, + MsgSetOperatorParams as MilkywayOperatorsV1MsgSetOperatorParams, + MsgSetOperatorParamsResponse as MilkywayOperatorsV1MsgSetOperatorParamsResponse, + MsgTransferOperatorOwnership as MilkywayOperatorsV1MsgTransferOperatorOwnership, + MsgTransferOperatorOwnershipResponse as MilkywayOperatorsV1MsgTransferOperatorOwnershipResponse, + MsgUpdateParams as MilkywayOperatorsV1MsgUpdateParams, + MsgUpdateParamsResponse as MilkywayOperatorsV1MsgUpdateParamsResponse, +} from "./milkyway/operators/v1/messages_pb.js"; +export { + MsgRegisterOperatorService as MilkywayOperatorsV1MsgRegisterOperatorService, + MsgUpdateOperatorService as MilkywayOperatorsV1MsgUpdateOperatorService, + MsgDeactivateOperatorService as MilkywayOperatorsV1MsgDeactivateOperatorService, + MsgReactivateOperatorService as MilkywayOperatorsV1MsgReactivateOperatorService, + MsgDeleteOperatorService as MilkywayOperatorsV1MsgDeleteOperatorService, + MsgTransferOperatorOwnershipService as MilkywayOperatorsV1MsgTransferOperatorOwnershipService, + MsgSetOperatorParamsService as MilkywayOperatorsV1MsgSetOperatorParamsService, + MsgUpdateParamsService as MilkywayOperatorsV1MsgUpdateParamsService, +} from "./milkyway/operators/v1/messages_cosmes.js"; +export { + GenesisState as MilkywayOperatorsV1GenesisState, + UnbondingOperator as MilkywayOperatorsV1UnbondingOperator, + OperatorParamsRecord as MilkywayOperatorsV1OperatorParamsRecord, +} from "./milkyway/operators/v1/genesis_pb.js"; +export { + QueryUserInsuranceFundRequest as MilkywayLiquidvestingV1QueryUserInsuranceFundRequest, + QueryUserInsuranceFundResponse as MilkywayLiquidvestingV1QueryUserInsuranceFundResponse, + QueryUserInsuranceFundsRequest as MilkywayLiquidvestingV1QueryUserInsuranceFundsRequest, + UserInsuranceFundData as MilkywayLiquidvestingV1UserInsuranceFundData, + QueryUserInsuranceFundsResponse as MilkywayLiquidvestingV1QueryUserInsuranceFundsResponse, + QueryUserRestakableAssetsRequest as MilkywayLiquidvestingV1QueryUserRestakableAssetsRequest, + QueryUserRestakableAssetsResponse as MilkywayLiquidvestingV1QueryUserRestakableAssetsResponse, + QueryInsuranceFundRequest as MilkywayLiquidvestingV1QueryInsuranceFundRequest, + QueryInsuranceFundResponse as MilkywayLiquidvestingV1QueryInsuranceFundResponse, + QueryParamsRequest as MilkywayLiquidvestingV1QueryParamsRequest, + QueryParamsResponse as MilkywayLiquidvestingV1QueryParamsResponse, +} from "./milkyway/liquidvesting/v1/query_pb.js"; +export { + QueryUserInsuranceFundService as MilkywayLiquidvestingV1QueryUserInsuranceFundService, + QueryUserInsuranceFundsService as MilkywayLiquidvestingV1QueryUserInsuranceFundsService, + QueryUserRestakableAssetsService as MilkywayLiquidvestingV1QueryUserRestakableAssetsService, + QueryInsuranceFundService as MilkywayLiquidvestingV1QueryInsuranceFundService, + QueryParamsService as MilkywayLiquidvestingV1QueryParamsService, +} from "./milkyway/liquidvesting/v1/query_cosmes.js"; +export { + Params as MilkywayLiquidvestingV1Params, +} from "./milkyway/liquidvesting/v1/params_pb.js"; +export { + UserInsuranceFund as MilkywayLiquidvestingV1UserInsuranceFund, + BurnCoins as MilkywayLiquidvestingV1BurnCoins, + BurnCoinsList as MilkywayLiquidvestingV1BurnCoinsList, + UserInsuranceFundEntry as MilkywayLiquidvestingV1UserInsuranceFundEntry, +} from "./milkyway/liquidvesting/v1/models_pb.js"; +export { + MsgMintLockedRepresentation as MilkywayLiquidvestingV1MsgMintLockedRepresentation, + MsgMintLockedRepresentationResponse as MilkywayLiquidvestingV1MsgMintLockedRepresentationResponse, + MsgBurnLockedRepresentation as MilkywayLiquidvestingV1MsgBurnLockedRepresentation, + MsgBurnLockedRepresentationResponse as MilkywayLiquidvestingV1MsgBurnLockedRepresentationResponse, + MsgWithdrawInsuranceFund as MilkywayLiquidvestingV1MsgWithdrawInsuranceFund, + MsgWithdrawInsuranceFundResponse as MilkywayLiquidvestingV1MsgWithdrawInsuranceFundResponse, + MsgUpdateParams as MilkywayLiquidvestingV1MsgUpdateParams, + MsgUpdateParamsResponse as MilkywayLiquidvestingV1MsgUpdateParamsResponse, +} from "./milkyway/liquidvesting/v1/messages_pb.js"; +export { + MsgMintLockedRepresentationService as MilkywayLiquidvestingV1MsgMintLockedRepresentationService, + MsgBurnLockedRepresentationService as MilkywayLiquidvestingV1MsgBurnLockedRepresentationService, + MsgWithdrawInsuranceFundService as MilkywayLiquidvestingV1MsgWithdrawInsuranceFundService, + MsgUpdateParamsService as MilkywayLiquidvestingV1MsgUpdateParamsService, +} from "./milkyway/liquidvesting/v1/messages_cosmes.js"; +export { + GenesisState as MilkywayLiquidvestingV1GenesisState, +} from "./milkyway/liquidvesting/v1/genesis_pb.js"; +export { + QueryInvestorsRewardRatioRequest as MilkywayInvestorsV1QueryInvestorsRewardRatioRequest, + QueryInvestorsRewardRatioResponse as MilkywayInvestorsV1QueryInvestorsRewardRatioResponse, + QueryVestingInvestorsRequest as MilkywayInvestorsV1QueryVestingInvestorsRequest, + QueryVestingInvestorsResponse as MilkywayInvestorsV1QueryVestingInvestorsResponse, +} from "./milkyway/investors/v1/query_pb.js"; +export { + QueryInvestorsRewardRatioService as MilkywayInvestorsV1QueryInvestorsRewardRatioService, + QueryVestingInvestorsService as MilkywayInvestorsV1QueryVestingInvestorsService, +} from "./milkyway/investors/v1/query_cosmes.js"; +export { + VestingInvestorRewards as MilkywayInvestorsV1VestingInvestorRewards, +} from "./milkyway/investors/v1/models_pb.js"; +export { + MsgAddVestingInvestor as MilkywayInvestorsV1MsgAddVestingInvestor, + MsgAddVestingInvestorResponse as MilkywayInvestorsV1MsgAddVestingInvestorResponse, + MsgUpdateInvestorsRewardRatio as MilkywayInvestorsV1MsgUpdateInvestorsRewardRatio, + MsgUpdateInvestorsRewardRatioResponse as MilkywayInvestorsV1MsgUpdateInvestorsRewardRatioResponse, +} from "./milkyway/investors/v1/messages_pb.js"; +export { + MsgAddVestingInvestorService as MilkywayInvestorsV1MsgAddVestingInvestorService, + MsgUpdateInvestorsRewardRatioService as MilkywayInvestorsV1MsgUpdateInvestorsRewardRatioService, +} from "./milkyway/investors/v1/messages_cosmes.js"; +export { + GenesisState as MilkywayInvestorsV1GenesisState, +} from "./milkyway/investors/v1/genesis_pb.js"; +export { + QueryAssetsRequest as MilkywayAssetsV1QueryAssetsRequest, + QueryAssetsResponse as MilkywayAssetsV1QueryAssetsResponse, + QueryAssetRequest as MilkywayAssetsV1QueryAssetRequest, + QueryAssetResponse as MilkywayAssetsV1QueryAssetResponse, +} from "./milkyway/assets/v1/query_pb.js"; +export { + QueryAssetsService as MilkywayAssetsV1QueryAssetsService, + QueryAssetService as MilkywayAssetsV1QueryAssetService, +} from "./milkyway/assets/v1/query_cosmes.js"; +export { + Asset as MilkywayAssetsV1Asset, +} from "./milkyway/assets/v1/models_pb.js"; +export { + MsgRegisterAsset as MilkywayAssetsV1MsgRegisterAsset, + MsgRegisterAssetResponse as MilkywayAssetsV1MsgRegisterAssetResponse, + MsgDeregisterAsset as MilkywayAssetsV1MsgDeregisterAsset, + MsgDeregisterAssetResponse as MilkywayAssetsV1MsgDeregisterAssetResponse, +} from "./milkyway/assets/v1/messages_pb.js"; +export { + MsgRegisterAssetService as MilkywayAssetsV1MsgRegisterAssetService, + MsgDeregisterAssetService as MilkywayAssetsV1MsgDeregisterAssetService, +} from "./milkyway/assets/v1/messages_cosmes.js"; +export { + GenesisState as MilkywayAssetsV1GenesisState, +} from "./milkyway/assets/v1/genesis_pb.js"; +export { + QueryCirculatingSupplyRequest as KavaValidatorvestingV1beta1QueryCirculatingSupplyRequest, + QueryCirculatingSupplyResponse as KavaValidatorvestingV1beta1QueryCirculatingSupplyResponse, + QueryTotalSupplyRequest as KavaValidatorvestingV1beta1QueryTotalSupplyRequest, + QueryTotalSupplyResponse as KavaValidatorvestingV1beta1QueryTotalSupplyResponse, + QueryCirculatingSupplyHARDRequest as KavaValidatorvestingV1beta1QueryCirculatingSupplyHARDRequest, + QueryCirculatingSupplyHARDResponse as KavaValidatorvestingV1beta1QueryCirculatingSupplyHARDResponse, + QueryCirculatingSupplyUSDXRequest as KavaValidatorvestingV1beta1QueryCirculatingSupplyUSDXRequest, + QueryCirculatingSupplyUSDXResponse as KavaValidatorvestingV1beta1QueryCirculatingSupplyUSDXResponse, + QueryCirculatingSupplySWPRequest as KavaValidatorvestingV1beta1QueryCirculatingSupplySWPRequest, + QueryCirculatingSupplySWPResponse as KavaValidatorvestingV1beta1QueryCirculatingSupplySWPResponse, + QueryTotalSupplyHARDRequest as KavaValidatorvestingV1beta1QueryTotalSupplyHARDRequest, + QueryTotalSupplyHARDResponse as KavaValidatorvestingV1beta1QueryTotalSupplyHARDResponse, + QueryTotalSupplyUSDXRequest as KavaValidatorvestingV1beta1QueryTotalSupplyUSDXRequest, + QueryTotalSupplyUSDXResponse as KavaValidatorvestingV1beta1QueryTotalSupplyUSDXResponse, +} from "./kava/validatorvesting/v1beta1/query_pb.js"; +export { + QueryCirculatingSupplyService as KavaValidatorvestingV1beta1QueryCirculatingSupplyService, + QueryTotalSupplyService as KavaValidatorvestingV1beta1QueryTotalSupplyService, + QueryCirculatingSupplyHARDService as KavaValidatorvestingV1beta1QueryCirculatingSupplyHARDService, + QueryCirculatingSupplyUSDXService as KavaValidatorvestingV1beta1QueryCirculatingSupplyUSDXService, + QueryCirculatingSupplySWPService as KavaValidatorvestingV1beta1QueryCirculatingSupplySWPService, + QueryTotalSupplyHARDService as KavaValidatorvestingV1beta1QueryTotalSupplyHARDService, + QueryTotalSupplyUSDXService as KavaValidatorvestingV1beta1QueryTotalSupplyUSDXService, +} from "./kava/validatorvesting/v1beta1/query_cosmes.js"; +export { + MsgDeposit as KavaSwapV1beta1MsgDeposit, + MsgDepositResponse as KavaSwapV1beta1MsgDepositResponse, + MsgWithdraw as KavaSwapV1beta1MsgWithdraw, + MsgWithdrawResponse as KavaSwapV1beta1MsgWithdrawResponse, + MsgSwapExactForTokens as KavaSwapV1beta1MsgSwapExactForTokens, + MsgSwapExactForTokensResponse as KavaSwapV1beta1MsgSwapExactForTokensResponse, + MsgSwapForExactTokens as KavaSwapV1beta1MsgSwapForExactTokens, + MsgSwapForExactTokensResponse as KavaSwapV1beta1MsgSwapForExactTokensResponse, +} from "./kava/swap/v1beta1/tx_pb.js"; +export { + MsgDepositService as KavaSwapV1beta1MsgDepositService, + MsgWithdrawService as KavaSwapV1beta1MsgWithdrawService, + MsgSwapExactForTokensService as KavaSwapV1beta1MsgSwapExactForTokensService, + MsgSwapForExactTokensService as KavaSwapV1beta1MsgSwapForExactTokensService, +} from "./kava/swap/v1beta1/tx_cosmes.js"; +export { + Params as KavaSwapV1beta1Params, + AllowedPool as KavaSwapV1beta1AllowedPool, + PoolRecord as KavaSwapV1beta1PoolRecord, + ShareRecord as KavaSwapV1beta1ShareRecord, +} from "./kava/swap/v1beta1/swap_pb.js"; +export { + QueryParamsRequest as KavaSwapV1beta1QueryParamsRequest, + QueryParamsResponse as KavaSwapV1beta1QueryParamsResponse, + QueryPoolsRequest as KavaSwapV1beta1QueryPoolsRequest, + QueryPoolsResponse as KavaSwapV1beta1QueryPoolsResponse, + PoolResponse as KavaSwapV1beta1PoolResponse, + QueryDepositsRequest as KavaSwapV1beta1QueryDepositsRequest, + QueryDepositsResponse as KavaSwapV1beta1QueryDepositsResponse, + DepositResponse as KavaSwapV1beta1DepositResponse, +} from "./kava/swap/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaSwapV1beta1QueryParamsService, + QueryPoolsService as KavaSwapV1beta1QueryPoolsService, + QueryDepositsService as KavaSwapV1beta1QueryDepositsService, +} from "./kava/swap/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaSwapV1beta1GenesisState, +} from "./kava/swap/v1beta1/genesis_pb.js"; +export { + MsgDeposit as KavaSavingsV1beta1MsgDeposit, + MsgDepositResponse as KavaSavingsV1beta1MsgDepositResponse, + MsgWithdraw as KavaSavingsV1beta1MsgWithdraw, + MsgWithdrawResponse as KavaSavingsV1beta1MsgWithdrawResponse, +} from "./kava/savings/v1beta1/tx_pb.js"; +export { + MsgDepositService as KavaSavingsV1beta1MsgDepositService, + MsgWithdrawService as KavaSavingsV1beta1MsgWithdrawService, +} from "./kava/savings/v1beta1/tx_cosmes.js"; +export { + Params as KavaSavingsV1beta1Params, + Deposit as KavaSavingsV1beta1Deposit, +} from "./kava/savings/v1beta1/store_pb.js"; +export { + QueryParamsRequest as KavaSavingsV1beta1QueryParamsRequest, + QueryParamsResponse as KavaSavingsV1beta1QueryParamsResponse, + QueryDepositsRequest as KavaSavingsV1beta1QueryDepositsRequest, + QueryDepositsResponse as KavaSavingsV1beta1QueryDepositsResponse, + QueryTotalSupplyRequest as KavaSavingsV1beta1QueryTotalSupplyRequest, + QueryTotalSupplyResponse as KavaSavingsV1beta1QueryTotalSupplyResponse, +} from "./kava/savings/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaSavingsV1beta1QueryParamsService, + QueryDepositsService as KavaSavingsV1beta1QueryDepositsService, + QueryTotalSupplyService as KavaSavingsV1beta1QueryTotalSupplyService, +} from "./kava/savings/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaSavingsV1beta1GenesisState, +} from "./kava/savings/v1beta1/genesis_pb.js"; +export { + MsgMintDeposit as KavaRouterV1beta1MsgMintDeposit, + MsgMintDepositResponse as KavaRouterV1beta1MsgMintDepositResponse, + MsgDelegateMintDeposit as KavaRouterV1beta1MsgDelegateMintDeposit, + MsgDelegateMintDepositResponse as KavaRouterV1beta1MsgDelegateMintDepositResponse, + MsgWithdrawBurn as KavaRouterV1beta1MsgWithdrawBurn, + MsgWithdrawBurnResponse as KavaRouterV1beta1MsgWithdrawBurnResponse, + MsgWithdrawBurnUndelegate as KavaRouterV1beta1MsgWithdrawBurnUndelegate, + MsgWithdrawBurnUndelegateResponse as KavaRouterV1beta1MsgWithdrawBurnUndelegateResponse, +} from "./kava/router/v1beta1/tx_pb.js"; +export { + MsgMintDepositService as KavaRouterV1beta1MsgMintDepositService, + MsgDelegateMintDepositService as KavaRouterV1beta1MsgDelegateMintDepositService, + MsgWithdrawBurnService as KavaRouterV1beta1MsgWithdrawBurnService, + MsgWithdrawBurnUndelegateService as KavaRouterV1beta1MsgWithdrawBurnUndelegateService, +} from "./kava/router/v1beta1/tx_cosmes.js"; +export { + MsgPostPrice as KavaPricefeedV1beta1MsgPostPrice, + MsgPostPriceResponse as KavaPricefeedV1beta1MsgPostPriceResponse, +} from "./kava/pricefeed/v1beta1/tx_pb.js"; +export { + MsgPostPriceService as KavaPricefeedV1beta1MsgPostPriceService, +} from "./kava/pricefeed/v1beta1/tx_cosmes.js"; +export { + Params as KavaPricefeedV1beta1Params, + Market as KavaPricefeedV1beta1Market, + PostedPrice as KavaPricefeedV1beta1PostedPrice, + CurrentPrice as KavaPricefeedV1beta1CurrentPrice, +} from "./kava/pricefeed/v1beta1/store_pb.js"; +export { + QueryParamsRequest as KavaPricefeedV1beta1QueryParamsRequest, + QueryParamsResponse as KavaPricefeedV1beta1QueryParamsResponse, + QueryPriceRequest as KavaPricefeedV1beta1QueryPriceRequest, + QueryPriceResponse as KavaPricefeedV1beta1QueryPriceResponse, + QueryPricesRequest as KavaPricefeedV1beta1QueryPricesRequest, + QueryPricesResponse as KavaPricefeedV1beta1QueryPricesResponse, + QueryRawPricesRequest as KavaPricefeedV1beta1QueryRawPricesRequest, + QueryRawPricesResponse as KavaPricefeedV1beta1QueryRawPricesResponse, + QueryOraclesRequest as KavaPricefeedV1beta1QueryOraclesRequest, + QueryOraclesResponse as KavaPricefeedV1beta1QueryOraclesResponse, + QueryMarketsRequest as KavaPricefeedV1beta1QueryMarketsRequest, + QueryMarketsResponse as KavaPricefeedV1beta1QueryMarketsResponse, + PostedPriceResponse as KavaPricefeedV1beta1PostedPriceResponse, + CurrentPriceResponse as KavaPricefeedV1beta1CurrentPriceResponse, + MarketResponse as KavaPricefeedV1beta1MarketResponse, +} from "./kava/pricefeed/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaPricefeedV1beta1QueryParamsService, + QueryPriceService as KavaPricefeedV1beta1QueryPriceService, + QueryPricesService as KavaPricefeedV1beta1QueryPricesService, + QueryRawPricesService as KavaPricefeedV1beta1QueryRawPricesService, + QueryOraclesService as KavaPricefeedV1beta1QueryOraclesService, + QueryMarketsService as KavaPricefeedV1beta1QueryMarketsService, +} from "./kava/pricefeed/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaPricefeedV1beta1GenesisState, +} from "./kava/pricefeed/v1beta1/genesis_pb.js"; +export { + QueryTotalFractionalBalancesRequest as KavaPrecisebankV1QueryTotalFractionalBalancesRequest, + QueryTotalFractionalBalancesResponse as KavaPrecisebankV1QueryTotalFractionalBalancesResponse, + QueryRemainderRequest as KavaPrecisebankV1QueryRemainderRequest, + QueryRemainderResponse as KavaPrecisebankV1QueryRemainderResponse, + QueryFractionalBalanceRequest as KavaPrecisebankV1QueryFractionalBalanceRequest, + QueryFractionalBalanceResponse as KavaPrecisebankV1QueryFractionalBalanceResponse, +} from "./kava/precisebank/v1/query_pb.js"; +export { + QueryTotalFractionalBalancesService as KavaPrecisebankV1QueryTotalFractionalBalancesService, + QueryRemainderService as KavaPrecisebankV1QueryRemainderService, + QueryFractionalBalanceService as KavaPrecisebankV1QueryFractionalBalanceService, +} from "./kava/precisebank/v1/query_cosmes.js"; +export { + GenesisState as KavaPrecisebankV1GenesisState, + FractionalBalance as KavaPrecisebankV1FractionalBalance, +} from "./kava/precisebank/v1/genesis_pb.js"; +export { + MsgMintDerivative as KavaLiquidV1beta1MsgMintDerivative, + MsgMintDerivativeResponse as KavaLiquidV1beta1MsgMintDerivativeResponse, + MsgBurnDerivative as KavaLiquidV1beta1MsgBurnDerivative, + MsgBurnDerivativeResponse as KavaLiquidV1beta1MsgBurnDerivativeResponse, +} from "./kava/liquid/v1beta1/tx_pb.js"; +export { + MsgMintDerivativeService as KavaLiquidV1beta1MsgMintDerivativeService, + MsgBurnDerivativeService as KavaLiquidV1beta1MsgBurnDerivativeService, +} from "./kava/liquid/v1beta1/tx_cosmes.js"; +export { + QueryDelegatedBalanceRequest as KavaLiquidV1beta1QueryDelegatedBalanceRequest, + QueryDelegatedBalanceResponse as KavaLiquidV1beta1QueryDelegatedBalanceResponse, + QueryTotalSupplyRequest as KavaLiquidV1beta1QueryTotalSupplyRequest, + QueryTotalSupplyResponse as KavaLiquidV1beta1QueryTotalSupplyResponse, +} from "./kava/liquid/v1beta1/query_pb.js"; +export { + QueryDelegatedBalanceService as KavaLiquidV1beta1QueryDelegatedBalanceService, + QueryTotalSupplyService as KavaLiquidV1beta1QueryTotalSupplyService, +} from "./kava/liquid/v1beta1/query_cosmes.js"; +export { + QueryParamsRequest as KavaKavadistV1beta1QueryParamsRequest, + QueryParamsResponse as KavaKavadistV1beta1QueryParamsResponse, + QueryBalanceRequest as KavaKavadistV1beta1QueryBalanceRequest, + QueryBalanceResponse as KavaKavadistV1beta1QueryBalanceResponse, +} from "./kava/kavadist/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaKavadistV1beta1QueryParamsService, + QueryBalanceService as KavaKavadistV1beta1QueryBalanceService, +} from "./kava/kavadist/v1beta1/query_cosmes.js"; +export { + CommunityPoolMultiSpendProposal as KavaKavadistV1beta1CommunityPoolMultiSpendProposal, + CommunityPoolMultiSpendProposalJSON as KavaKavadistV1beta1CommunityPoolMultiSpendProposalJSON, + MultiSpendRecipient as KavaKavadistV1beta1MultiSpendRecipient, +} from "./kava/kavadist/v1beta1/proposal_pb.js"; +export { + Params as KavaKavadistV1beta1Params, + InfrastructureParams as KavaKavadistV1beta1InfrastructureParams, + CoreReward as KavaKavadistV1beta1CoreReward, + PartnerReward as KavaKavadistV1beta1PartnerReward, + Period as KavaKavadistV1beta1Period, +} from "./kava/kavadist/v1beta1/params_pb.js"; +export { + GenesisState as KavaKavadistV1beta1GenesisState, +} from "./kava/kavadist/v1beta1/genesis_pb.js"; +export { + MsgIssueTokens as KavaIssuanceV1beta1MsgIssueTokens, + MsgIssueTokensResponse as KavaIssuanceV1beta1MsgIssueTokensResponse, + MsgRedeemTokens as KavaIssuanceV1beta1MsgRedeemTokens, + MsgRedeemTokensResponse as KavaIssuanceV1beta1MsgRedeemTokensResponse, + MsgBlockAddress as KavaIssuanceV1beta1MsgBlockAddress, + MsgBlockAddressResponse as KavaIssuanceV1beta1MsgBlockAddressResponse, + MsgUnblockAddress as KavaIssuanceV1beta1MsgUnblockAddress, + MsgUnblockAddressResponse as KavaIssuanceV1beta1MsgUnblockAddressResponse, + MsgSetPauseStatus as KavaIssuanceV1beta1MsgSetPauseStatus, + MsgSetPauseStatusResponse as KavaIssuanceV1beta1MsgSetPauseStatusResponse, +} from "./kava/issuance/v1beta1/tx_pb.js"; +export { + MsgIssueTokensService as KavaIssuanceV1beta1MsgIssueTokensService, + MsgRedeemTokensService as KavaIssuanceV1beta1MsgRedeemTokensService, + MsgBlockAddressService as KavaIssuanceV1beta1MsgBlockAddressService, + MsgUnblockAddressService as KavaIssuanceV1beta1MsgUnblockAddressService, + MsgSetPauseStatusService as KavaIssuanceV1beta1MsgSetPauseStatusService, +} from "./kava/issuance/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaIssuanceV1beta1QueryParamsRequest, + QueryParamsResponse as KavaIssuanceV1beta1QueryParamsResponse, +} from "./kava/issuance/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaIssuanceV1beta1QueryParamsService, +} from "./kava/issuance/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaIssuanceV1beta1GenesisState, + Params as KavaIssuanceV1beta1Params, + Asset as KavaIssuanceV1beta1Asset, + RateLimit as KavaIssuanceV1beta1RateLimit, + AssetSupply as KavaIssuanceV1beta1AssetSupply, +} from "./kava/issuance/v1beta1/genesis_pb.js"; +export { + Selection as KavaIncentiveV1beta1Selection, + MsgClaimUSDXMintingReward as KavaIncentiveV1beta1MsgClaimUSDXMintingReward, + MsgClaimUSDXMintingRewardResponse as KavaIncentiveV1beta1MsgClaimUSDXMintingRewardResponse, + MsgClaimHardReward as KavaIncentiveV1beta1MsgClaimHardReward, + MsgClaimHardRewardResponse as KavaIncentiveV1beta1MsgClaimHardRewardResponse, + MsgClaimDelegatorReward as KavaIncentiveV1beta1MsgClaimDelegatorReward, + MsgClaimDelegatorRewardResponse as KavaIncentiveV1beta1MsgClaimDelegatorRewardResponse, + MsgClaimSwapReward as KavaIncentiveV1beta1MsgClaimSwapReward, + MsgClaimSwapRewardResponse as KavaIncentiveV1beta1MsgClaimSwapRewardResponse, + MsgClaimSavingsReward as KavaIncentiveV1beta1MsgClaimSavingsReward, + MsgClaimSavingsRewardResponse as KavaIncentiveV1beta1MsgClaimSavingsRewardResponse, + MsgClaimEarnReward as KavaIncentiveV1beta1MsgClaimEarnReward, + MsgClaimEarnRewardResponse as KavaIncentiveV1beta1MsgClaimEarnRewardResponse, +} from "./kava/incentive/v1beta1/tx_pb.js"; +export { + MsgClaimUSDXMintingRewardService as KavaIncentiveV1beta1MsgClaimUSDXMintingRewardService, + MsgClaimHardRewardService as KavaIncentiveV1beta1MsgClaimHardRewardService, + MsgClaimDelegatorRewardService as KavaIncentiveV1beta1MsgClaimDelegatorRewardService, + MsgClaimSwapRewardService as KavaIncentiveV1beta1MsgClaimSwapRewardService, + MsgClaimSavingsRewardService as KavaIncentiveV1beta1MsgClaimSavingsRewardService, + MsgClaimEarnRewardService as KavaIncentiveV1beta1MsgClaimEarnRewardService, +} from "./kava/incentive/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaIncentiveV1beta1QueryParamsRequest, + QueryParamsResponse as KavaIncentiveV1beta1QueryParamsResponse, + QueryRewardsRequest as KavaIncentiveV1beta1QueryRewardsRequest, + QueryRewardsResponse as KavaIncentiveV1beta1QueryRewardsResponse, + QueryRewardFactorsRequest as KavaIncentiveV1beta1QueryRewardFactorsRequest, + QueryRewardFactorsResponse as KavaIncentiveV1beta1QueryRewardFactorsResponse, + QueryApyRequest as KavaIncentiveV1beta1QueryApyRequest, + QueryApyResponse as KavaIncentiveV1beta1QueryApyResponse, +} from "./kava/incentive/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaIncentiveV1beta1QueryParamsService, + QueryRewardsService as KavaIncentiveV1beta1QueryRewardsService, + QueryRewardFactorsService as KavaIncentiveV1beta1QueryRewardFactorsService, + QueryApyService as KavaIncentiveV1beta1QueryApyService, +} from "./kava/incentive/v1beta1/query_cosmes.js"; +export { + RewardPeriod as KavaIncentiveV1beta1RewardPeriod, + MultiRewardPeriod as KavaIncentiveV1beta1MultiRewardPeriod, + Multiplier as KavaIncentiveV1beta1Multiplier, + MultipliersPerDenom as KavaIncentiveV1beta1MultipliersPerDenom, + Params as KavaIncentiveV1beta1Params, +} from "./kava/incentive/v1beta1/params_pb.js"; +export { + AccumulationTime as KavaIncentiveV1beta1AccumulationTime, + GenesisRewardState as KavaIncentiveV1beta1GenesisRewardState, + GenesisState as KavaIncentiveV1beta1GenesisState, +} from "./kava/incentive/v1beta1/genesis_pb.js"; +export { + BaseClaim as KavaIncentiveV1beta1BaseClaim, + BaseMultiClaim as KavaIncentiveV1beta1BaseMultiClaim, + RewardIndex as KavaIncentiveV1beta1RewardIndex, + RewardIndexesProto as KavaIncentiveV1beta1RewardIndexesProto, + MultiRewardIndex as KavaIncentiveV1beta1MultiRewardIndex, + MultiRewardIndexesProto as KavaIncentiveV1beta1MultiRewardIndexesProto, + USDXMintingClaim as KavaIncentiveV1beta1USDXMintingClaim, + HardLiquidityProviderClaim as KavaIncentiveV1beta1HardLiquidityProviderClaim, + DelegatorClaim as KavaIncentiveV1beta1DelegatorClaim, + SwapClaim as KavaIncentiveV1beta1SwapClaim, + SavingsClaim as KavaIncentiveV1beta1SavingsClaim, + EarnClaim as KavaIncentiveV1beta1EarnClaim, +} from "./kava/incentive/v1beta1/claims_pb.js"; +export { + Apy as KavaIncentiveV1beta1Apy, +} from "./kava/incentive/v1beta1/apy_pb.js"; +export { + MsgDeposit as KavaHardV1beta1MsgDeposit, + MsgDepositResponse as KavaHardV1beta1MsgDepositResponse, + MsgWithdraw as KavaHardV1beta1MsgWithdraw, + MsgWithdrawResponse as KavaHardV1beta1MsgWithdrawResponse, + MsgBorrow as KavaHardV1beta1MsgBorrow, + MsgBorrowResponse as KavaHardV1beta1MsgBorrowResponse, + MsgRepay as KavaHardV1beta1MsgRepay, + MsgRepayResponse as KavaHardV1beta1MsgRepayResponse, + MsgLiquidate as KavaHardV1beta1MsgLiquidate, + MsgLiquidateResponse as KavaHardV1beta1MsgLiquidateResponse, +} from "./kava/hard/v1beta1/tx_pb.js"; +export { + MsgDepositService as KavaHardV1beta1MsgDepositService, + MsgWithdrawService as KavaHardV1beta1MsgWithdrawService, + MsgBorrowService as KavaHardV1beta1MsgBorrowService, + MsgRepayService as KavaHardV1beta1MsgRepayService, + MsgLiquidateService as KavaHardV1beta1MsgLiquidateService, +} from "./kava/hard/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaHardV1beta1QueryParamsRequest, + QueryParamsResponse as KavaHardV1beta1QueryParamsResponse, + QueryAccountsRequest as KavaHardV1beta1QueryAccountsRequest, + QueryAccountsResponse as KavaHardV1beta1QueryAccountsResponse, + QueryDepositsRequest as KavaHardV1beta1QueryDepositsRequest, + QueryDepositsResponse as KavaHardV1beta1QueryDepositsResponse, + QueryUnsyncedDepositsRequest as KavaHardV1beta1QueryUnsyncedDepositsRequest, + QueryUnsyncedDepositsResponse as KavaHardV1beta1QueryUnsyncedDepositsResponse, + QueryTotalDepositedRequest as KavaHardV1beta1QueryTotalDepositedRequest, + QueryTotalDepositedResponse as KavaHardV1beta1QueryTotalDepositedResponse, + QueryBorrowsRequest as KavaHardV1beta1QueryBorrowsRequest, + QueryBorrowsResponse as KavaHardV1beta1QueryBorrowsResponse, + QueryUnsyncedBorrowsRequest as KavaHardV1beta1QueryUnsyncedBorrowsRequest, + QueryUnsyncedBorrowsResponse as KavaHardV1beta1QueryUnsyncedBorrowsResponse, + QueryTotalBorrowedRequest as KavaHardV1beta1QueryTotalBorrowedRequest, + QueryTotalBorrowedResponse as KavaHardV1beta1QueryTotalBorrowedResponse, + QueryInterestRateRequest as KavaHardV1beta1QueryInterestRateRequest, + QueryInterestRateResponse as KavaHardV1beta1QueryInterestRateResponse, + QueryReservesRequest as KavaHardV1beta1QueryReservesRequest, + QueryReservesResponse as KavaHardV1beta1QueryReservesResponse, + QueryInterestFactorsRequest as KavaHardV1beta1QueryInterestFactorsRequest, + QueryInterestFactorsResponse as KavaHardV1beta1QueryInterestFactorsResponse, + DepositResponse as KavaHardV1beta1DepositResponse, + SupplyInterestFactorResponse as KavaHardV1beta1SupplyInterestFactorResponse, + BorrowResponse as KavaHardV1beta1BorrowResponse, + BorrowInterestFactorResponse as KavaHardV1beta1BorrowInterestFactorResponse, + MoneyMarketInterestRate as KavaHardV1beta1MoneyMarketInterestRate, + InterestFactor as KavaHardV1beta1InterestFactor, +} from "./kava/hard/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaHardV1beta1QueryParamsService, + QueryAccountsService as KavaHardV1beta1QueryAccountsService, + QueryDepositsService as KavaHardV1beta1QueryDepositsService, + QueryUnsyncedDepositsService as KavaHardV1beta1QueryUnsyncedDepositsService, + QueryTotalDepositedService as KavaHardV1beta1QueryTotalDepositedService, + QueryBorrowsService as KavaHardV1beta1QueryBorrowsService, + QueryUnsyncedBorrowsService as KavaHardV1beta1QueryUnsyncedBorrowsService, + QueryTotalBorrowedService as KavaHardV1beta1QueryTotalBorrowedService, + QueryInterestRateService as KavaHardV1beta1QueryInterestRateService, + QueryReservesService as KavaHardV1beta1QueryReservesService, + QueryInterestFactorsService as KavaHardV1beta1QueryInterestFactorsService, +} from "./kava/hard/v1beta1/query_cosmes.js"; +export { + Params as KavaHardV1beta1Params, + MoneyMarket as KavaHardV1beta1MoneyMarket, + BorrowLimit as KavaHardV1beta1BorrowLimit, + InterestRateModel as KavaHardV1beta1InterestRateModel, + Deposit as KavaHardV1beta1Deposit, + Borrow as KavaHardV1beta1Borrow, + SupplyInterestFactor as KavaHardV1beta1SupplyInterestFactor, + BorrowInterestFactor as KavaHardV1beta1BorrowInterestFactor, + CoinsProto as KavaHardV1beta1CoinsProto, +} from "./kava/hard/v1beta1/hard_pb.js"; +export { + GenesisState as KavaHardV1beta1GenesisState, + GenesisAccumulationTime as KavaHardV1beta1GenesisAccumulationTime, +} from "./kava/hard/v1beta1/genesis_pb.js"; +export { + MsgConvertCoinToERC20 as KavaEvmutilV1beta1MsgConvertCoinToERC20, + MsgConvertCoinToERC20Response as KavaEvmutilV1beta1MsgConvertCoinToERC20Response, + MsgConvertERC20ToCoin as KavaEvmutilV1beta1MsgConvertERC20ToCoin, + MsgConvertERC20ToCoinResponse as KavaEvmutilV1beta1MsgConvertERC20ToCoinResponse, + MsgConvertCosmosCoinToERC20 as KavaEvmutilV1beta1MsgConvertCosmosCoinToERC20, + MsgConvertCosmosCoinToERC20Response as KavaEvmutilV1beta1MsgConvertCosmosCoinToERC20Response, + MsgConvertCosmosCoinFromERC20 as KavaEvmutilV1beta1MsgConvertCosmosCoinFromERC20, + MsgConvertCosmosCoinFromERC20Response as KavaEvmutilV1beta1MsgConvertCosmosCoinFromERC20Response, +} from "./kava/evmutil/v1beta1/tx_pb.js"; +export { + MsgConvertCoinToERC20Service as KavaEvmutilV1beta1MsgConvertCoinToERC20Service, + MsgConvertERC20ToCoinService as KavaEvmutilV1beta1MsgConvertERC20ToCoinService, + MsgConvertCosmosCoinToERC20Service as KavaEvmutilV1beta1MsgConvertCosmosCoinToERC20Service, + MsgConvertCosmosCoinFromERC20Service as KavaEvmutilV1beta1MsgConvertCosmosCoinFromERC20Service, +} from "./kava/evmutil/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaEvmutilV1beta1QueryParamsRequest, + QueryParamsResponse as KavaEvmutilV1beta1QueryParamsResponse, + QueryDeployedCosmosCoinContractsRequest as KavaEvmutilV1beta1QueryDeployedCosmosCoinContractsRequest, + QueryDeployedCosmosCoinContractsResponse as KavaEvmutilV1beta1QueryDeployedCosmosCoinContractsResponse, + DeployedCosmosCoinContract as KavaEvmutilV1beta1DeployedCosmosCoinContract, +} from "./kava/evmutil/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaEvmutilV1beta1QueryParamsService, + QueryDeployedCosmosCoinContractsService as KavaEvmutilV1beta1QueryDeployedCosmosCoinContractsService, +} from "./kava/evmutil/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaEvmutilV1beta1GenesisState, + Account as KavaEvmutilV1beta1Account, + Params as KavaEvmutilV1beta1Params, +} from "./kava/evmutil/v1beta1/genesis_pb.js"; +export { + ConversionPair as KavaEvmutilV1beta1ConversionPair, + AllowedCosmosCoinERC20Token as KavaEvmutilV1beta1AllowedCosmosCoinERC20Token, +} from "./kava/evmutil/v1beta1/conversion_pair_pb.js"; +export { + AllowedVault as KavaEarnV1beta1AllowedVault, + VaultRecord as KavaEarnV1beta1VaultRecord, + VaultShareRecord as KavaEarnV1beta1VaultShareRecord, + VaultShare as KavaEarnV1beta1VaultShare, +} from "./kava/earn/v1beta1/vault_pb.js"; +export { + MsgDeposit as KavaEarnV1beta1MsgDeposit, + MsgDepositResponse as KavaEarnV1beta1MsgDepositResponse, + MsgWithdraw as KavaEarnV1beta1MsgWithdraw, + MsgWithdrawResponse as KavaEarnV1beta1MsgWithdrawResponse, +} from "./kava/earn/v1beta1/tx_pb.js"; +export { + MsgDepositService as KavaEarnV1beta1MsgDepositService, + MsgWithdrawService as KavaEarnV1beta1MsgWithdrawService, +} from "./kava/earn/v1beta1/tx_cosmes.js"; +export { + StrategyType as KavaEarnV1beta1StrategyType, +} from "./kava/earn/v1beta1/strategy_pb.js"; +export { + QueryParamsRequest as KavaEarnV1beta1QueryParamsRequest, + QueryParamsResponse as KavaEarnV1beta1QueryParamsResponse, + QueryVaultsRequest as KavaEarnV1beta1QueryVaultsRequest, + QueryVaultsResponse as KavaEarnV1beta1QueryVaultsResponse, + QueryVaultRequest as KavaEarnV1beta1QueryVaultRequest, + QueryVaultResponse as KavaEarnV1beta1QueryVaultResponse, + VaultResponse as KavaEarnV1beta1VaultResponse, + QueryDepositsRequest as KavaEarnV1beta1QueryDepositsRequest, + QueryDepositsResponse as KavaEarnV1beta1QueryDepositsResponse, + DepositResponse as KavaEarnV1beta1DepositResponse, + QueryTotalSupplyRequest as KavaEarnV1beta1QueryTotalSupplyRequest, + QueryTotalSupplyResponse as KavaEarnV1beta1QueryTotalSupplyResponse, +} from "./kava/earn/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaEarnV1beta1QueryParamsService, + QueryVaultsService as KavaEarnV1beta1QueryVaultsService, + QueryVaultService as KavaEarnV1beta1QueryVaultService, + QueryDepositsService as KavaEarnV1beta1QueryDepositsService, + QueryTotalSupplyService as KavaEarnV1beta1QueryTotalSupplyService, +} from "./kava/earn/v1beta1/query_cosmes.js"; +export { + CommunityPoolDepositProposal as KavaEarnV1beta1CommunityPoolDepositProposal, + CommunityPoolDepositProposalJSON as KavaEarnV1beta1CommunityPoolDepositProposalJSON, + CommunityPoolWithdrawProposal as KavaEarnV1beta1CommunityPoolWithdrawProposal, + CommunityPoolWithdrawProposalJSON as KavaEarnV1beta1CommunityPoolWithdrawProposalJSON, +} from "./kava/earn/v1beta1/proposal_pb.js"; +export { + Params as KavaEarnV1beta1Params, +} from "./kava/earn/v1beta1/params_pb.js"; +export { + GenesisState as KavaEarnV1beta1GenesisState, +} from "./kava/earn/v1beta1/genesis_pb.js"; +export { + MsgFundCommunityPool as KavaCommunityV1beta1MsgFundCommunityPool, + MsgFundCommunityPoolResponse as KavaCommunityV1beta1MsgFundCommunityPoolResponse, + MsgUpdateParams as KavaCommunityV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as KavaCommunityV1beta1MsgUpdateParamsResponse, +} from "./kava/community/v1beta1/tx_pb.js"; +export { + MsgFundCommunityPoolService as KavaCommunityV1beta1MsgFundCommunityPoolService, + MsgUpdateParamsService as KavaCommunityV1beta1MsgUpdateParamsService, +} from "./kava/community/v1beta1/tx_cosmes.js"; +export { + StakingRewardsState as KavaCommunityV1beta1StakingRewardsState, +} from "./kava/community/v1beta1/staking_pb.js"; +export { + QueryParamsRequest as KavaCommunityV1beta1QueryParamsRequest, + QueryParamsResponse as KavaCommunityV1beta1QueryParamsResponse, + QueryBalanceRequest as KavaCommunityV1beta1QueryBalanceRequest, + QueryBalanceResponse as KavaCommunityV1beta1QueryBalanceResponse, + QueryTotalBalanceRequest as KavaCommunityV1beta1QueryTotalBalanceRequest, + QueryTotalBalanceResponse as KavaCommunityV1beta1QueryTotalBalanceResponse, + QueryAnnualizedRewardsRequest as KavaCommunityV1beta1QueryAnnualizedRewardsRequest, + QueryAnnualizedRewardsResponse as KavaCommunityV1beta1QueryAnnualizedRewardsResponse, +} from "./kava/community/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaCommunityV1beta1QueryParamsService, + QueryBalanceService as KavaCommunityV1beta1QueryBalanceService, + QueryTotalBalanceService as KavaCommunityV1beta1QueryTotalBalanceService, + QueryAnnualizedRewardsService as KavaCommunityV1beta1QueryAnnualizedRewardsService, +} from "./kava/community/v1beta1/query_cosmes.js"; +export { + CommunityPoolLendDepositProposal as KavaCommunityV1beta1CommunityPoolLendDepositProposal, + CommunityPoolLendWithdrawProposal as KavaCommunityV1beta1CommunityPoolLendWithdrawProposal, + CommunityCDPRepayDebtProposal as KavaCommunityV1beta1CommunityCDPRepayDebtProposal, + CommunityCDPWithdrawCollateralProposal as KavaCommunityV1beta1CommunityCDPWithdrawCollateralProposal, +} from "./kava/community/v1beta1/proposal_pb.js"; +export { + Params as KavaCommunityV1beta1Params, +} from "./kava/community/v1beta1/params_pb.js"; +export { + GenesisState as KavaCommunityV1beta1GenesisState, +} from "./kava/community/v1beta1/genesis_pb.js"; +export { + MsgSubmitProposal as KavaCommitteeV1beta1MsgSubmitProposal, + MsgSubmitProposalResponse as KavaCommitteeV1beta1MsgSubmitProposalResponse, + MsgVote as KavaCommitteeV1beta1MsgVote, + MsgVoteResponse as KavaCommitteeV1beta1MsgVoteResponse, +} from "./kava/committee/v1beta1/tx_pb.js"; +export { + MsgSubmitProposalService as KavaCommitteeV1beta1MsgSubmitProposalService, + MsgVoteService as KavaCommitteeV1beta1MsgVoteService, +} from "./kava/committee/v1beta1/tx_cosmes.js"; +export { + QueryCommitteesRequest as KavaCommitteeV1beta1QueryCommitteesRequest, + QueryCommitteesResponse as KavaCommitteeV1beta1QueryCommitteesResponse, + QueryCommitteeRequest as KavaCommitteeV1beta1QueryCommitteeRequest, + QueryCommitteeResponse as KavaCommitteeV1beta1QueryCommitteeResponse, + QueryProposalsRequest as KavaCommitteeV1beta1QueryProposalsRequest, + QueryProposalsResponse as KavaCommitteeV1beta1QueryProposalsResponse, + QueryProposalRequest as KavaCommitteeV1beta1QueryProposalRequest, + QueryProposalResponse as KavaCommitteeV1beta1QueryProposalResponse, + QueryNextProposalIDRequest as KavaCommitteeV1beta1QueryNextProposalIDRequest, + QueryNextProposalIDResponse as KavaCommitteeV1beta1QueryNextProposalIDResponse, + QueryVotesRequest as KavaCommitteeV1beta1QueryVotesRequest, + QueryVotesResponse as KavaCommitteeV1beta1QueryVotesResponse, + QueryVoteRequest as KavaCommitteeV1beta1QueryVoteRequest, + QueryVoteResponse as KavaCommitteeV1beta1QueryVoteResponse, + QueryTallyRequest as KavaCommitteeV1beta1QueryTallyRequest, + QueryTallyResponse as KavaCommitteeV1beta1QueryTallyResponse, + QueryRawParamsRequest as KavaCommitteeV1beta1QueryRawParamsRequest, + QueryRawParamsResponse as KavaCommitteeV1beta1QueryRawParamsResponse, +} from "./kava/committee/v1beta1/query_pb.js"; +export { + QueryCommitteesService as KavaCommitteeV1beta1QueryCommitteesService, + QueryCommitteeService as KavaCommitteeV1beta1QueryCommitteeService, + QueryProposalsService as KavaCommitteeV1beta1QueryProposalsService, + QueryProposalService as KavaCommitteeV1beta1QueryProposalService, + QueryNextProposalIDService as KavaCommitteeV1beta1QueryNextProposalIDService, + QueryVotesService as KavaCommitteeV1beta1QueryVotesService, + QueryVoteService as KavaCommitteeV1beta1QueryVoteService, + QueryTallyService as KavaCommitteeV1beta1QueryTallyService, + QueryRawParamsService as KavaCommitteeV1beta1QueryRawParamsService, +} from "./kava/committee/v1beta1/query_cosmes.js"; +export { + CommitteeChangeProposal as KavaCommitteeV1beta1CommitteeChangeProposal, + CommitteeDeleteProposal as KavaCommitteeV1beta1CommitteeDeleteProposal, +} from "./kava/committee/v1beta1/proposal_pb.js"; +export { + GodPermission as KavaCommitteeV1beta1GodPermission, + SoftwareUpgradePermission as KavaCommitteeV1beta1SoftwareUpgradePermission, + TextPermission as KavaCommitteeV1beta1TextPermission, + CommunityCDPRepayDebtPermission as KavaCommitteeV1beta1CommunityCDPRepayDebtPermission, + CommunityCDPWithdrawCollateralPermission as KavaCommitteeV1beta1CommunityCDPWithdrawCollateralPermission, + CommunityPoolLendWithdrawPermission as KavaCommitteeV1beta1CommunityPoolLendWithdrawPermission, + ParamsChangePermission as KavaCommitteeV1beta1ParamsChangePermission, + AllowedParamsChange as KavaCommitteeV1beta1AllowedParamsChange, + SubparamRequirement as KavaCommitteeV1beta1SubparamRequirement, +} from "./kava/committee/v1beta1/permissions_pb.js"; +export { + VoteType as KavaCommitteeV1beta1VoteType, + GenesisState as KavaCommitteeV1beta1GenesisState, + Proposal as KavaCommitteeV1beta1Proposal, + Vote as KavaCommitteeV1beta1Vote, +} from "./kava/committee/v1beta1/genesis_pb.js"; +export { + TallyOption as KavaCommitteeV1beta1TallyOption, + BaseCommittee as KavaCommitteeV1beta1BaseCommittee, + MemberCommittee as KavaCommitteeV1beta1MemberCommittee, + TokenCommittee as KavaCommitteeV1beta1TokenCommittee, +} from "./kava/committee/v1beta1/committee_pb.js"; +export { + MsgCreateCDP as KavaCdpV1beta1MsgCreateCDP, + MsgCreateCDPResponse as KavaCdpV1beta1MsgCreateCDPResponse, + MsgDeposit as KavaCdpV1beta1MsgDeposit, + MsgDepositResponse as KavaCdpV1beta1MsgDepositResponse, + MsgWithdraw as KavaCdpV1beta1MsgWithdraw, + MsgWithdrawResponse as KavaCdpV1beta1MsgWithdrawResponse, + MsgDrawDebt as KavaCdpV1beta1MsgDrawDebt, + MsgDrawDebtResponse as KavaCdpV1beta1MsgDrawDebtResponse, + MsgRepayDebt as KavaCdpV1beta1MsgRepayDebt, + MsgRepayDebtResponse as KavaCdpV1beta1MsgRepayDebtResponse, + MsgLiquidate as KavaCdpV1beta1MsgLiquidate, + MsgLiquidateResponse as KavaCdpV1beta1MsgLiquidateResponse, +} from "./kava/cdp/v1beta1/tx_pb.js"; +export { + MsgCreateCDPService as KavaCdpV1beta1MsgCreateCDPService, + MsgDepositService as KavaCdpV1beta1MsgDepositService, + MsgWithdrawService as KavaCdpV1beta1MsgWithdrawService, + MsgDrawDebtService as KavaCdpV1beta1MsgDrawDebtService, + MsgRepayDebtService as KavaCdpV1beta1MsgRepayDebtService, + MsgLiquidateService as KavaCdpV1beta1MsgLiquidateService, +} from "./kava/cdp/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaCdpV1beta1QueryParamsRequest, + QueryParamsResponse as KavaCdpV1beta1QueryParamsResponse, + QueryAccountsRequest as KavaCdpV1beta1QueryAccountsRequest, + QueryAccountsResponse as KavaCdpV1beta1QueryAccountsResponse, + QueryCdpRequest as KavaCdpV1beta1QueryCdpRequest, + QueryCdpResponse as KavaCdpV1beta1QueryCdpResponse, + QueryCdpsRequest as KavaCdpV1beta1QueryCdpsRequest, + QueryCdpsResponse as KavaCdpV1beta1QueryCdpsResponse, + QueryDepositsRequest as KavaCdpV1beta1QueryDepositsRequest, + QueryDepositsResponse as KavaCdpV1beta1QueryDepositsResponse, + QueryTotalPrincipalRequest as KavaCdpV1beta1QueryTotalPrincipalRequest, + QueryTotalPrincipalResponse as KavaCdpV1beta1QueryTotalPrincipalResponse, + QueryTotalCollateralRequest as KavaCdpV1beta1QueryTotalCollateralRequest, + QueryTotalCollateralResponse as KavaCdpV1beta1QueryTotalCollateralResponse, + CDPResponse as KavaCdpV1beta1CDPResponse, +} from "./kava/cdp/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaCdpV1beta1QueryParamsService, + QueryAccountsService as KavaCdpV1beta1QueryAccountsService, + QueryTotalPrincipalService as KavaCdpV1beta1QueryTotalPrincipalService, + QueryTotalCollateralService as KavaCdpV1beta1QueryTotalCollateralService, + QueryCdpsService as KavaCdpV1beta1QueryCdpsService, + QueryCdpService as KavaCdpV1beta1QueryCdpService, + QueryDepositsService as KavaCdpV1beta1QueryDepositsService, +} from "./kava/cdp/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaCdpV1beta1GenesisState, + Params as KavaCdpV1beta1Params, + DebtParam as KavaCdpV1beta1DebtParam, + CollateralParam as KavaCdpV1beta1CollateralParam, + GenesisAccumulationTime as KavaCdpV1beta1GenesisAccumulationTime, + GenesisTotalPrincipal as KavaCdpV1beta1GenesisTotalPrincipal, +} from "./kava/cdp/v1beta1/genesis_pb.js"; +export { + CDP as KavaCdpV1beta1CDP, + Deposit as KavaCdpV1beta1Deposit, + TotalPrincipal as KavaCdpV1beta1TotalPrincipal, + TotalCollateral as KavaCdpV1beta1TotalCollateral, + OwnerCDPIndex as KavaCdpV1beta1OwnerCDPIndex, +} from "./kava/cdp/v1beta1/cdp_pb.js"; +export { + MsgCreateAtomicSwap as KavaBep3V1beta1MsgCreateAtomicSwap, + MsgCreateAtomicSwapResponse as KavaBep3V1beta1MsgCreateAtomicSwapResponse, + MsgClaimAtomicSwap as KavaBep3V1beta1MsgClaimAtomicSwap, + MsgClaimAtomicSwapResponse as KavaBep3V1beta1MsgClaimAtomicSwapResponse, + MsgRefundAtomicSwap as KavaBep3V1beta1MsgRefundAtomicSwap, + MsgRefundAtomicSwapResponse as KavaBep3V1beta1MsgRefundAtomicSwapResponse, +} from "./kava/bep3/v1beta1/tx_pb.js"; +export { + MsgCreateAtomicSwapService as KavaBep3V1beta1MsgCreateAtomicSwapService, + MsgClaimAtomicSwapService as KavaBep3V1beta1MsgClaimAtomicSwapService, + MsgRefundAtomicSwapService as KavaBep3V1beta1MsgRefundAtomicSwapService, +} from "./kava/bep3/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaBep3V1beta1QueryParamsRequest, + QueryParamsResponse as KavaBep3V1beta1QueryParamsResponse, + QueryAssetSupplyRequest as KavaBep3V1beta1QueryAssetSupplyRequest, + AssetSupplyResponse as KavaBep3V1beta1AssetSupplyResponse, + QueryAssetSupplyResponse as KavaBep3V1beta1QueryAssetSupplyResponse, + QueryAssetSuppliesRequest as KavaBep3V1beta1QueryAssetSuppliesRequest, + QueryAssetSuppliesResponse as KavaBep3V1beta1QueryAssetSuppliesResponse, + QueryAtomicSwapRequest as KavaBep3V1beta1QueryAtomicSwapRequest, + QueryAtomicSwapResponse as KavaBep3V1beta1QueryAtomicSwapResponse, + AtomicSwapResponse as KavaBep3V1beta1AtomicSwapResponse, + QueryAtomicSwapsRequest as KavaBep3V1beta1QueryAtomicSwapsRequest, + QueryAtomicSwapsResponse as KavaBep3V1beta1QueryAtomicSwapsResponse, +} from "./kava/bep3/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaBep3V1beta1QueryParamsService, + QueryAssetSupplyService as KavaBep3V1beta1QueryAssetSupplyService, + QueryAssetSuppliesService as KavaBep3V1beta1QueryAssetSuppliesService, + QueryAtomicSwapService as KavaBep3V1beta1QueryAtomicSwapService, + QueryAtomicSwapsService as KavaBep3V1beta1QueryAtomicSwapsService, +} from "./kava/bep3/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaBep3V1beta1GenesisState, +} from "./kava/bep3/v1beta1/genesis_pb.js"; +export { + SwapStatus as KavaBep3V1beta1SwapStatus, + SwapDirection as KavaBep3V1beta1SwapDirection, + Params as KavaBep3V1beta1Params, + AssetParam as KavaBep3V1beta1AssetParam, + SupplyLimit as KavaBep3V1beta1SupplyLimit, + AtomicSwap as KavaBep3V1beta1AtomicSwap, + AssetSupply as KavaBep3V1beta1AssetSupply, +} from "./kava/bep3/v1beta1/bep3_pb.js"; +export { + MsgPlaceBid as KavaAuctionV1beta1MsgPlaceBid, + MsgPlaceBidResponse as KavaAuctionV1beta1MsgPlaceBidResponse, +} from "./kava/auction/v1beta1/tx_pb.js"; +export { + MsgPlaceBidService as KavaAuctionV1beta1MsgPlaceBidService, +} from "./kava/auction/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as KavaAuctionV1beta1QueryParamsRequest, + QueryParamsResponse as KavaAuctionV1beta1QueryParamsResponse, + QueryAuctionRequest as KavaAuctionV1beta1QueryAuctionRequest, + QueryAuctionResponse as KavaAuctionV1beta1QueryAuctionResponse, + QueryAuctionsRequest as KavaAuctionV1beta1QueryAuctionsRequest, + QueryAuctionsResponse as KavaAuctionV1beta1QueryAuctionsResponse, + QueryNextAuctionIDRequest as KavaAuctionV1beta1QueryNextAuctionIDRequest, + QueryNextAuctionIDResponse as KavaAuctionV1beta1QueryNextAuctionIDResponse, +} from "./kava/auction/v1beta1/query_pb.js"; +export { + QueryParamsService as KavaAuctionV1beta1QueryParamsService, + QueryAuctionService as KavaAuctionV1beta1QueryAuctionService, + QueryAuctionsService as KavaAuctionV1beta1QueryAuctionsService, + QueryNextAuctionIDService as KavaAuctionV1beta1QueryNextAuctionIDService, +} from "./kava/auction/v1beta1/query_cosmes.js"; +export { + GenesisState as KavaAuctionV1beta1GenesisState, + Params as KavaAuctionV1beta1Params, +} from "./kava/auction/v1beta1/genesis_pb.js"; +export { + BaseAuction as KavaAuctionV1beta1BaseAuction, + SurplusAuction as KavaAuctionV1beta1SurplusAuction, + DebtAuction as KavaAuctionV1beta1DebtAuction, + CollateralAuction as KavaAuctionV1beta1CollateralAuction, + WeightedAddresses as KavaAuctionV1beta1WeightedAddresses, +} from "./kava/auction/v1beta1/auction_pb.js"; export { Params as InjectiveWasmxV1Params, RegisteredContract as InjectiveWasmxV1RegisteredContract, @@ -1277,6 +5593,9 @@ export { EventContractRegistered as InjectiveWasmxV1EventContractRegistered, EventContractDeregistered as InjectiveWasmxV1EventContractDeregistered, } from "./injective/wasmx/v1/events_pb.js"; +export { + ContractExecutionCompatAuthorization as InjectiveWasmxV1ContractExecutionCompatAuthorization, +} from "./injective/wasmx/v1/authz_pb.js"; export { TxResponseGenericMessage as InjectiveTypesV1beta1TxResponseGenericMessage, TxResponseData as InjectiveTypesV1beta1TxResponseData, @@ -1284,9 +5603,36 @@ export { export { ExtensionOptionsWeb3Tx as InjectiveTypesV1beta1ExtensionOptionsWeb3Tx, } from "./injective/types/v1beta1/tx_ext_pb.js"; +export { + TxResult as InjectiveTypesV1beta1TxResult, +} from "./injective/types/v1beta1/indexer_pb.js"; export { EthAccount as InjectiveTypesV1beta1EthAccount, } from "./injective/types/v1beta1/account_pb.js"; +export { + Params as InjectiveTxfeesV1beta1Params, +} from "./injective/txfees/v1beta1/txfees_pb.js"; +export { + MsgUpdateParams as InjectiveTxfeesV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as InjectiveTxfeesV1beta1MsgUpdateParamsResponse, +} from "./injective/txfees/v1beta1/tx_pb.js"; +export { + MsgUpdateParamsService as InjectiveTxfeesV1beta1MsgUpdateParamsService, +} from "./injective/txfees/v1beta1/tx_cosmes.js"; +export { + EipBaseFee as InjectiveTxfeesV1beta1EipBaseFee, + QueryParamsRequest as InjectiveTxfeesV1beta1QueryParamsRequest, + QueryParamsResponse as InjectiveTxfeesV1beta1QueryParamsResponse, + QueryEipBaseFeeRequest as InjectiveTxfeesV1beta1QueryEipBaseFeeRequest, + QueryEipBaseFeeResponse as InjectiveTxfeesV1beta1QueryEipBaseFeeResponse, +} from "./injective/txfees/v1beta1/query_pb.js"; +export { + QueryParamsService as InjectiveTxfeesV1beta1QueryParamsService, + QueryGetEipBaseFeeService as InjectiveTxfeesV1beta1QueryGetEipBaseFeeService, +} from "./injective/txfees/v1beta1/query_cosmes.js"; +export { + GenesisState as InjectiveTxfeesV1beta1GenesisState, +} from "./injective/txfees/v1beta1/genesis_pb.js"; export { MsgCreateDenom as InjectiveTokenfactoryV1beta1MsgCreateDenom, MsgCreateDenomResponse as InjectiveTokenfactoryV1beta1MsgCreateDenomResponse, @@ -1297,6 +5643,7 @@ export { MsgChangeAdmin as InjectiveTokenfactoryV1beta1MsgChangeAdmin, MsgChangeAdminResponse as InjectiveTokenfactoryV1beta1MsgChangeAdminResponse, MsgSetDenomMetadata as InjectiveTokenfactoryV1beta1MsgSetDenomMetadata, + MsgSetDenomMetadata_AdminBurnDisabled as InjectiveTokenfactoryV1beta1MsgSetDenomMetadata_AdminBurnDisabled, MsgSetDenomMetadataResponse as InjectiveTokenfactoryV1beta1MsgSetDenomMetadataResponse, MsgUpdateParams as InjectiveTokenfactoryV1beta1MsgUpdateParams, MsgUpdateParamsResponse as InjectiveTokenfactoryV1beta1MsgUpdateParamsResponse, @@ -1333,15 +5680,47 @@ export { GenesisDenom as InjectiveTokenfactoryV1beta1GenesisDenom, } from "./injective/tokenfactory/v1beta1/genesis_pb.js"; export { - EventCreateTFDenom as InjectiveTokenfactoryV1beta1EventCreateTFDenom, - EventMintTFDenom as InjectiveTokenfactoryV1beta1EventMintTFDenom, - EventBurnDenom as InjectiveTokenfactoryV1beta1EventBurnDenom, - EventChangeTFAdmin as InjectiveTokenfactoryV1beta1EventChangeTFAdmin, - EventSetTFDenomMetadata as InjectiveTokenfactoryV1beta1EventSetTFDenomMetadata, + EventCreateDenom as InjectiveTokenfactoryV1beta1EventCreateDenom, + EventMint as InjectiveTokenfactoryV1beta1EventMint, + EventBurn as InjectiveTokenfactoryV1beta1EventBurn, + EventChangeAdmin as InjectiveTokenfactoryV1beta1EventChangeAdmin, + EventSetDenomMetadata as InjectiveTokenfactoryV1beta1EventSetDenomMetadata, } from "./injective/tokenfactory/v1beta1/events_pb.js"; export { DenomAuthorityMetadata as InjectiveTokenfactoryV1beta1DenomAuthorityMetadata, } from "./injective/tokenfactory/v1beta1/authorityMetadata_pb.js"; +export { + OrderUpdateStatus as InjectiveStreamV2OrderUpdateStatus, + StreamRequest as InjectiveStreamV2StreamRequest, + StreamResponse as InjectiveStreamV2StreamResponse, + OrderbookUpdate as InjectiveStreamV2OrderbookUpdate, + Orderbook as InjectiveStreamV2Orderbook, + BankBalance as InjectiveStreamV2BankBalance, + SubaccountDeposits as InjectiveStreamV2SubaccountDeposits, + SubaccountDeposit as InjectiveStreamV2SubaccountDeposit, + SpotOrderUpdate as InjectiveStreamV2SpotOrderUpdate, + SpotOrder as InjectiveStreamV2SpotOrder, + DerivativeOrderUpdate as InjectiveStreamV2DerivativeOrderUpdate, + DerivativeOrder as InjectiveStreamV2DerivativeOrder, + Position as InjectiveStreamV2Position, + OraclePrice as InjectiveStreamV2OraclePrice, + SpotTrade as InjectiveStreamV2SpotTrade, + DerivativeTrade as InjectiveStreamV2DerivativeTrade, + OrderFailureUpdate as InjectiveStreamV2OrderFailureUpdate, + ConditionalOrderTriggerFailureUpdate as InjectiveStreamV2ConditionalOrderTriggerFailureUpdate, + TradesFilter as InjectiveStreamV2TradesFilter, + PositionsFilter as InjectiveStreamV2PositionsFilter, + OrdersFilter as InjectiveStreamV2OrdersFilter, + OrderbookFilter as InjectiveStreamV2OrderbookFilter, + BankBalancesFilter as InjectiveStreamV2BankBalancesFilter, + SubaccountDepositsFilter as InjectiveStreamV2SubaccountDepositsFilter, + OraclePriceFilter as InjectiveStreamV2OraclePriceFilter, + OrderFailuresFilter as InjectiveStreamV2OrderFailuresFilter, + ConditionalOrderTriggerFailuresFilter as InjectiveStreamV2ConditionalOrderTriggerFailuresFilter, +} from "./injective/stream/v2/query_pb.js"; +export { + StreamStreamV2Service as InjectiveStreamV2StreamStreamV2Service, +} from "./injective/stream/v2/query_cosmes.js"; export { OrderUpdateStatus as InjectiveStreamV1beta1OrderUpdateStatus, StreamRequest as InjectiveStreamV1beta1StreamRequest, @@ -1375,59 +5754,75 @@ export { MsgUpdateParamsResponse as InjectivePermissionsV1beta1MsgUpdateParamsResponse, MsgCreateNamespace as InjectivePermissionsV1beta1MsgCreateNamespace, MsgCreateNamespaceResponse as InjectivePermissionsV1beta1MsgCreateNamespaceResponse, - MsgDeleteNamespace as InjectivePermissionsV1beta1MsgDeleteNamespace, - MsgDeleteNamespaceResponse as InjectivePermissionsV1beta1MsgDeleteNamespaceResponse, MsgUpdateNamespace as InjectivePermissionsV1beta1MsgUpdateNamespace, - MsgUpdateNamespace_MsgSetWasmHook as InjectivePermissionsV1beta1MsgUpdateNamespace_MsgSetWasmHook, - MsgUpdateNamespace_MsgSetMintsPaused as InjectivePermissionsV1beta1MsgUpdateNamespace_MsgSetMintsPaused, - MsgUpdateNamespace_MsgSetSendsPaused as InjectivePermissionsV1beta1MsgUpdateNamespace_MsgSetSendsPaused, - MsgUpdateNamespace_MsgSetBurnsPaused as InjectivePermissionsV1beta1MsgUpdateNamespace_MsgSetBurnsPaused, + MsgUpdateNamespace_SetContractHook as InjectivePermissionsV1beta1MsgUpdateNamespace_SetContractHook, MsgUpdateNamespaceResponse as InjectivePermissionsV1beta1MsgUpdateNamespaceResponse, - MsgUpdateNamespaceRoles as InjectivePermissionsV1beta1MsgUpdateNamespaceRoles, - MsgUpdateNamespaceRolesResponse as InjectivePermissionsV1beta1MsgUpdateNamespaceRolesResponse, - MsgRevokeNamespaceRoles as InjectivePermissionsV1beta1MsgRevokeNamespaceRoles, - MsgRevokeNamespaceRolesResponse as InjectivePermissionsV1beta1MsgRevokeNamespaceRolesResponse, + MsgUpdateActorRoles as InjectivePermissionsV1beta1MsgUpdateActorRoles, + MsgUpdateActorRolesResponse as InjectivePermissionsV1beta1MsgUpdateActorRolesResponse, MsgClaimVoucher as InjectivePermissionsV1beta1MsgClaimVoucher, MsgClaimVoucherResponse as InjectivePermissionsV1beta1MsgClaimVoucherResponse, } from "./injective/permissions/v1beta1/tx_pb.js"; export { MsgUpdateParamsService as InjectivePermissionsV1beta1MsgUpdateParamsService, MsgCreateNamespaceService as InjectivePermissionsV1beta1MsgCreateNamespaceService, - MsgDeleteNamespaceService as InjectivePermissionsV1beta1MsgDeleteNamespaceService, MsgUpdateNamespaceService as InjectivePermissionsV1beta1MsgUpdateNamespaceService, - MsgUpdateNamespaceRolesService as InjectivePermissionsV1beta1MsgUpdateNamespaceRolesService, - MsgRevokeNamespaceRolesService as InjectivePermissionsV1beta1MsgRevokeNamespaceRolesService, + MsgUpdateActorRolesService as InjectivePermissionsV1beta1MsgUpdateActorRolesService, MsgClaimVoucherService as InjectivePermissionsV1beta1MsgClaimVoucherService, } from "./injective/permissions/v1beta1/tx_cosmes.js"; export { QueryParamsRequest as InjectivePermissionsV1beta1QueryParamsRequest, QueryParamsResponse as InjectivePermissionsV1beta1QueryParamsResponse, - QueryAllNamespacesRequest as InjectivePermissionsV1beta1QueryAllNamespacesRequest, - QueryAllNamespacesResponse as InjectivePermissionsV1beta1QueryAllNamespacesResponse, - QueryNamespaceByDenomRequest as InjectivePermissionsV1beta1QueryNamespaceByDenomRequest, - QueryNamespaceByDenomResponse as InjectivePermissionsV1beta1QueryNamespaceByDenomResponse, - QueryAddressesByRoleRequest as InjectivePermissionsV1beta1QueryAddressesByRoleRequest, - QueryAddressesByRoleResponse as InjectivePermissionsV1beta1QueryAddressesByRoleResponse, - QueryAddressRolesRequest as InjectivePermissionsV1beta1QueryAddressRolesRequest, - QueryAddressRolesResponse as InjectivePermissionsV1beta1QueryAddressRolesResponse, - QueryVouchersForAddressRequest as InjectivePermissionsV1beta1QueryVouchersForAddressRequest, - QueryVouchersForAddressResponse as InjectivePermissionsV1beta1QueryVouchersForAddressResponse, + QueryNamespaceDenomsRequest as InjectivePermissionsV1beta1QueryNamespaceDenomsRequest, + QueryNamespaceDenomsResponse as InjectivePermissionsV1beta1QueryNamespaceDenomsResponse, + QueryNamespacesRequest as InjectivePermissionsV1beta1QueryNamespacesRequest, + QueryNamespacesResponse as InjectivePermissionsV1beta1QueryNamespacesResponse, + QueryNamespaceRequest as InjectivePermissionsV1beta1QueryNamespaceRequest, + QueryNamespaceResponse as InjectivePermissionsV1beta1QueryNamespaceResponse, + QueryActorsByRoleRequest as InjectivePermissionsV1beta1QueryActorsByRoleRequest, + QueryActorsByRoleResponse as InjectivePermissionsV1beta1QueryActorsByRoleResponse, + QueryRolesByActorRequest as InjectivePermissionsV1beta1QueryRolesByActorRequest, + QueryRolesByActorResponse as InjectivePermissionsV1beta1QueryRolesByActorResponse, + QueryRoleManagersRequest as InjectivePermissionsV1beta1QueryRoleManagersRequest, + QueryRoleManagersResponse as InjectivePermissionsV1beta1QueryRoleManagersResponse, + QueryRoleManagerRequest as InjectivePermissionsV1beta1QueryRoleManagerRequest, + QueryRoleManagerResponse as InjectivePermissionsV1beta1QueryRoleManagerResponse, + QueryPolicyStatusesRequest as InjectivePermissionsV1beta1QueryPolicyStatusesRequest, + QueryPolicyStatusesResponse as InjectivePermissionsV1beta1QueryPolicyStatusesResponse, + QueryPolicyManagerCapabilitiesRequest as InjectivePermissionsV1beta1QueryPolicyManagerCapabilitiesRequest, + QueryPolicyManagerCapabilitiesResponse as InjectivePermissionsV1beta1QueryPolicyManagerCapabilitiesResponse, + QueryVouchersRequest as InjectivePermissionsV1beta1QueryVouchersRequest, + QueryVouchersResponse as InjectivePermissionsV1beta1QueryVouchersResponse, + QueryVoucherRequest as InjectivePermissionsV1beta1QueryVoucherRequest, + QueryVoucherResponse as InjectivePermissionsV1beta1QueryVoucherResponse, + QueryModuleStateRequest as InjectivePermissionsV1beta1QueryModuleStateRequest, + QueryModuleStateResponse as InjectivePermissionsV1beta1QueryModuleStateResponse, } from "./injective/permissions/v1beta1/query_pb.js"; export { QueryParamsService as InjectivePermissionsV1beta1QueryParamsService, - QueryAllNamespacesService as InjectivePermissionsV1beta1QueryAllNamespacesService, - QueryNamespaceByDenomService as InjectivePermissionsV1beta1QueryNamespaceByDenomService, - QueryAddressRolesService as InjectivePermissionsV1beta1QueryAddressRolesService, - QueryAddressesByRoleService as InjectivePermissionsV1beta1QueryAddressesByRoleService, - QueryVouchersForAddressService as InjectivePermissionsV1beta1QueryVouchersForAddressService, + QueryNamespaceDenomsService as InjectivePermissionsV1beta1QueryNamespaceDenomsService, + QueryNamespacesService as InjectivePermissionsV1beta1QueryNamespacesService, + QueryNamespaceService as InjectivePermissionsV1beta1QueryNamespaceService, + QueryRolesByActorService as InjectivePermissionsV1beta1QueryRolesByActorService, + QueryActorsByRoleService as InjectivePermissionsV1beta1QueryActorsByRoleService, + QueryRoleManagersService as InjectivePermissionsV1beta1QueryRoleManagersService, + QueryRoleManagerService as InjectivePermissionsV1beta1QueryRoleManagerService, + QueryPolicyStatusesService as InjectivePermissionsV1beta1QueryPolicyStatusesService, + QueryPolicyManagerCapabilitiesService as InjectivePermissionsV1beta1QueryPolicyManagerCapabilitiesService, + QueryVouchersService as InjectivePermissionsV1beta1QueryVouchersService, + QueryVoucherService as InjectivePermissionsV1beta1QueryVoucherService, + QueryPermissionsModuleStateService as InjectivePermissionsV1beta1QueryPermissionsModuleStateService, } from "./injective/permissions/v1beta1/query_cosmes.js"; export { Action as InjectivePermissionsV1beta1Action, Namespace as InjectivePermissionsV1beta1Namespace, + ActorRoles as InjectivePermissionsV1beta1ActorRoles, + RoleActors as InjectivePermissionsV1beta1RoleActors, + RoleManager as InjectivePermissionsV1beta1RoleManager, + PolicyStatus as InjectivePermissionsV1beta1PolicyStatus, Role as InjectivePermissionsV1beta1Role, - Roles as InjectivePermissionsV1beta1Roles, + PolicyManagerCapability as InjectivePermissionsV1beta1PolicyManagerCapability, RoleIDs as InjectivePermissionsV1beta1RoleIDs, - Voucher as InjectivePermissionsV1beta1Voucher, + AddressVoucher as InjectivePermissionsV1beta1AddressVoucher, } from "./injective/permissions/v1beta1/permissions_pb.js"; export { Params as InjectivePermissionsV1beta1Params, @@ -1435,6 +5830,9 @@ export { export { GenesisState as InjectivePermissionsV1beta1GenesisState, } from "./injective/permissions/v1beta1/genesis_pb.js"; +export { + EventSetVoucher as InjectivePermissionsV1beta1EventSetVoucher, +} from "./injective/permissions/v1beta1/events_pb.js"; export { BridgeValidator as InjectivePeggyV1BridgeValidator, Valset as InjectivePeggyV1Valset, @@ -1442,6 +5840,10 @@ export { LastClaimEvent as InjectivePeggyV1LastClaimEvent, ERC20ToDenom as InjectivePeggyV1ERC20ToDenom, } from "./injective/peggy/v1/types_pb.js"; +export { + RateLimit as InjectivePeggyV1RateLimit, + BridgeTransfer as InjectivePeggyV1BridgeTransfer, +} from "./injective/peggy/v1/rate_limit_pb.js"; export { QueryParamsRequest as InjectivePeggyV1QueryParamsRequest, QueryParamsResponse as InjectivePeggyV1QueryParamsResponse, @@ -1509,10 +5911,6 @@ export { QueryPeggyModuleStateService as InjectivePeggyV1QueryPeggyModuleStateService, QueryMissingPeggoNoncesService as InjectivePeggyV1QueryMissingPeggoNoncesService, } from "./injective/peggy/v1/query_cosmes.js"; -export { - BlacklistEthereumAddressesProposal as InjectivePeggyV1BlacklistEthereumAddressesProposal, - RevokeEthereumBlacklistProposal as InjectivePeggyV1RevokeEthereumBlacklistProposal, -} from "./injective/peggy/v1/proposal_pb.js"; export { IDSet as InjectivePeggyV1IDSet, BatchFees as InjectivePeggyV1BatchFees, @@ -1545,6 +5943,16 @@ export { MsgValsetUpdatedClaimResponse as InjectivePeggyV1MsgValsetUpdatedClaimResponse, MsgUpdateParams as InjectivePeggyV1MsgUpdateParams, MsgUpdateParamsResponse as InjectivePeggyV1MsgUpdateParamsResponse, + MsgBlacklistEthereumAddresses as InjectivePeggyV1MsgBlacklistEthereumAddresses, + MsgBlacklistEthereumAddressesResponse as InjectivePeggyV1MsgBlacklistEthereumAddressesResponse, + MsgRevokeEthereumBlacklist as InjectivePeggyV1MsgRevokeEthereumBlacklist, + MsgRevokeEthereumBlacklistResponse as InjectivePeggyV1MsgRevokeEthereumBlacklistResponse, + MsgCreateRateLimit as InjectivePeggyV1MsgCreateRateLimit, + MsgCreateRateLimitResponse as InjectivePeggyV1MsgCreateRateLimitResponse, + MsgUpdateRateLimit as InjectivePeggyV1MsgUpdateRateLimit, + MsgUpdateRateLimitResponse as InjectivePeggyV1MsgUpdateRateLimitResponse, + MsgRemoveRateLimit as InjectivePeggyV1MsgRemoveRateLimit, + MsgRemoveRateLimitResponse as InjectivePeggyV1MsgRemoveRateLimitResponse, } from "./injective/peggy/v1/msgs_pb.js"; export { MsgValsetConfirmService as InjectivePeggyV1MsgValsetConfirmService, @@ -1559,11 +5967,17 @@ export { MsgCancelSendToEthService as InjectivePeggyV1MsgCancelSendToEthService, MsgSubmitBadSignatureEvidenceService as InjectivePeggyV1MsgSubmitBadSignatureEvidenceService, MsgUpdateParamsService as InjectivePeggyV1MsgUpdateParamsService, + MsgBlacklistEthereumAddressesService as InjectivePeggyV1MsgBlacklistEthereumAddressesService, + MsgRevokeEthereumBlacklistService as InjectivePeggyV1MsgRevokeEthereumBlacklistService, + MsgCreateRateLimitService as InjectivePeggyV1MsgCreateRateLimitService, + MsgUpdateRateLimitService as InjectivePeggyV1MsgUpdateRateLimitService, + MsgRemoveRateLimitService as InjectivePeggyV1MsgRemoveRateLimitService, } from "./injective/peggy/v1/msgs_cosmes.js"; export { GenesisState as InjectivePeggyV1GenesisState, } from "./injective/peggy/v1/genesis_pb.js"; export { + JailReason as InjectivePeggyV1JailReason, EventAttestationObserved as InjectivePeggyV1EventAttestationObserved, EventBridgeWithdrawCanceled as InjectivePeggyV1EventBridgeWithdrawCanceled, EventOutgoingBatch as InjectivePeggyV1EventOutgoingBatch, @@ -1581,6 +5995,10 @@ export { EventCancelSendToEth as InjectivePeggyV1EventCancelSendToEth, EventSubmitBadSignatureEvidence as InjectivePeggyV1EventSubmitBadSignatureEvidence, EventValidatorSlash as InjectivePeggyV1EventValidatorSlash, + EventDepositReceived as InjectivePeggyV1EventDepositReceived, + EventWithdrawalsCompleted as InjectivePeggyV1EventWithdrawalsCompleted, + Withdrawal as InjectivePeggyV1Withdrawal, + EventValidatorJailed as InjectivePeggyV1EventValidatorJailed, } from "./injective/peggy/v1/events_pb.js"; export { SignType as InjectivePeggyV1SignType, @@ -1603,6 +6021,8 @@ export { MsgRelayBandRatesResponse as InjectiveOracleV1beta1MsgRelayBandRatesResponse, MsgRelayCoinbaseMessages as InjectiveOracleV1beta1MsgRelayCoinbaseMessages, MsgRelayCoinbaseMessagesResponse as InjectiveOracleV1beta1MsgRelayCoinbaseMessagesResponse, + MsgRelayStorkPrices as InjectiveOracleV1beta1MsgRelayStorkPrices, + MsgRelayStorkPricesResponse as InjectiveOracleV1beta1MsgRelayStorkPricesResponse, MsgRequestBandIBCRates as InjectiveOracleV1beta1MsgRequestBandIBCRates, MsgRequestBandIBCRatesResponse as InjectiveOracleV1beta1MsgRequestBandIBCRatesResponse, MsgRelayPythPrices as InjectiveOracleV1beta1MsgRelayPythPrices, @@ -1616,6 +6036,7 @@ export { MsgRelayBandRatesService as InjectiveOracleV1beta1MsgRelayBandRatesService, MsgRequestBandIBCRatesService as InjectiveOracleV1beta1MsgRequestBandIBCRatesService, MsgRelayCoinbaseMessagesService as InjectiveOracleV1beta1MsgRelayCoinbaseMessagesService, + MsgRelayStorkMessageService as InjectiveOracleV1beta1MsgRelayStorkMessageService, MsgRelayPythPricesService as InjectiveOracleV1beta1MsgRelayPythPricesService, MsgUpdateParamsService as InjectiveOracleV1beta1MsgUpdateParamsService, } from "./injective/oracle/v1beta1/tx_cosmes.js"; @@ -1636,6 +6057,10 @@ export { QueryCoinbasePriceStatesResponse as InjectiveOracleV1beta1QueryCoinbasePriceStatesResponse, QueryPythPriceStatesRequest as InjectiveOracleV1beta1QueryPythPriceStatesRequest, QueryPythPriceStatesResponse as InjectiveOracleV1beta1QueryPythPriceStatesResponse, + QueryStorkPriceStatesRequest as InjectiveOracleV1beta1QueryStorkPriceStatesRequest, + QueryStorkPriceStatesResponse as InjectiveOracleV1beta1QueryStorkPriceStatesResponse, + QueryStorkPublishersRequest as InjectiveOracleV1beta1QueryStorkPublishersRequest, + QueryStorkPublishersResponse as InjectiveOracleV1beta1QueryStorkPublishersResponse, QueryProviderPriceStateRequest as InjectiveOracleV1beta1QueryProviderPriceStateRequest, QueryProviderPriceStateResponse as InjectiveOracleV1beta1QueryProviderPriceStateResponse, QueryModuleStateRequest as InjectiveOracleV1beta1QueryModuleStateRequest, @@ -1649,6 +6074,7 @@ export { QueryOracleProvidersInfoResponse as InjectiveOracleV1beta1QueryOracleProvidersInfoResponse, QueryOracleProviderPricesRequest as InjectiveOracleV1beta1QueryOracleProviderPricesRequest, QueryOracleProviderPricesResponse as InjectiveOracleV1beta1QueryOracleProviderPricesResponse, + ScalingOptions as InjectiveOracleV1beta1ScalingOptions, QueryOraclePriceRequest as InjectiveOracleV1beta1QueryOraclePriceRequest, PricePairState as InjectiveOracleV1beta1PricePairState, QueryOraclePriceResponse as InjectiveOracleV1beta1QueryOraclePriceResponse, @@ -1661,6 +6087,8 @@ export { QueryPriceFeedPriceStatesService as InjectiveOracleV1beta1QueryPriceFeedPriceStatesService, QueryCoinbasePriceStatesService as InjectiveOracleV1beta1QueryCoinbasePriceStatesService, QueryPythPriceStatesService as InjectiveOracleV1beta1QueryPythPriceStatesService, + QueryStorkPriceStatesService as InjectiveOracleV1beta1QueryStorkPriceStatesService, + QueryStorkPublishersService as InjectiveOracleV1beta1QueryStorkPublishersService, QueryProviderPriceStateService as InjectiveOracleV1beta1QueryProviderPriceStateService, QueryOracleModuleStateService as InjectiveOracleV1beta1QueryOracleModuleStateService, QueryHistoricalPriceRecordsService as InjectiveOracleV1beta1QueryHistoricalPriceRecordsService, @@ -1680,6 +6108,8 @@ export { AuthorizeBandOracleRequestProposal as InjectiveOracleV1beta1AuthorizeBandOracleRequestProposal, UpdateBandOracleRequestProposal as InjectiveOracleV1beta1UpdateBandOracleRequestProposal, EnableBandIBCProposal as InjectiveOracleV1beta1EnableBandIBCProposal, + GrantStorkPublisherPrivilegeProposal as InjectiveOracleV1beta1GrantStorkPublisherPrivilegeProposal, + RevokeStorkPublisherPrivilegeProposal as InjectiveOracleV1beta1RevokeStorkPublisherPrivilegeProposal, } from "./injective/oracle/v1beta1/proposal_pb.js"; export { OracleType as InjectiveOracleV1beta1OracleType, @@ -1694,6 +6124,7 @@ export { PriceFeedInfo as InjectiveOracleV1beta1PriceFeedInfo, PriceFeedPrice as InjectiveOracleV1beta1PriceFeedPrice, CoinbasePriceState as InjectiveOracleV1beta1CoinbasePriceState, + StorkPriceState as InjectiveOracleV1beta1StorkPriceState, PriceState as InjectiveOracleV1beta1PriceState, PythPriceState as InjectiveOracleV1beta1PythPriceState, BandOracleRequest as InjectiveOracleV1beta1BandOracleRequest, @@ -1704,6 +6135,8 @@ export { PriceRecord as InjectiveOracleV1beta1PriceRecord, MetadataStatistics as InjectiveOracleV1beta1MetadataStatistics, PriceAttestation as InjectiveOracleV1beta1PriceAttestation, + AssetPair as InjectiveOracleV1beta1AssetPair, + SignedPriceOfAssetPair as InjectiveOracleV1beta1SignedPriceOfAssetPair, } from "./injective/oracle/v1beta1/oracle_pb.js"; export { GenesisState as InjectiveOracleV1beta1GenesisState, @@ -1719,6 +6152,7 @@ export { SetPriceFeedPriceEvent as InjectiveOracleV1beta1SetPriceFeedPriceEvent, SetProviderPriceEvent as InjectiveOracleV1beta1SetProviderPriceEvent, SetCoinbasePriceEvent as InjectiveOracleV1beta1SetCoinbasePriceEvent, + EventSetStorkPrices as InjectiveOracleV1beta1EventSetStorkPrices, EventSetPythPrices as InjectiveOracleV1beta1EventSetPythPrices, } from "./injective/oracle/v1beta1/events_pb.js"; export { @@ -1864,6 +6298,576 @@ export { EventInsuranceWithdraw as InjectiveInsuranceV1beta1EventInsuranceWithdraw, } from "./injective/insurance/v1beta1/events_pb.js"; export { + MsgUpdateSpotMarket as InjectiveExchangeV2MsgUpdateSpotMarket, + MsgUpdateSpotMarketResponse as InjectiveExchangeV2MsgUpdateSpotMarketResponse, + MsgUpdateDerivativeMarket as InjectiveExchangeV2MsgUpdateDerivativeMarket, + MsgUpdateDerivativeMarketResponse as InjectiveExchangeV2MsgUpdateDerivativeMarketResponse, + MsgUpdateParams as InjectiveExchangeV2MsgUpdateParams, + MsgUpdateParamsResponse as InjectiveExchangeV2MsgUpdateParamsResponse, + MsgDeposit as InjectiveExchangeV2MsgDeposit, + MsgDepositResponse as InjectiveExchangeV2MsgDepositResponse, + MsgWithdraw as InjectiveExchangeV2MsgWithdraw, + MsgWithdrawResponse as InjectiveExchangeV2MsgWithdrawResponse, + MsgCreateSpotLimitOrder as InjectiveExchangeV2MsgCreateSpotLimitOrder, + MsgCreateSpotLimitOrderResponse as InjectiveExchangeV2MsgCreateSpotLimitOrderResponse, + MsgBatchCreateSpotLimitOrders as InjectiveExchangeV2MsgBatchCreateSpotLimitOrders, + MsgBatchCreateSpotLimitOrdersResponse as InjectiveExchangeV2MsgBatchCreateSpotLimitOrdersResponse, + MsgInstantSpotMarketLaunch as InjectiveExchangeV2MsgInstantSpotMarketLaunch, + MsgInstantSpotMarketLaunchResponse as InjectiveExchangeV2MsgInstantSpotMarketLaunchResponse, + MsgInstantPerpetualMarketLaunch as InjectiveExchangeV2MsgInstantPerpetualMarketLaunch, + MsgInstantPerpetualMarketLaunchResponse as InjectiveExchangeV2MsgInstantPerpetualMarketLaunchResponse, + MsgInstantBinaryOptionsMarketLaunch as InjectiveExchangeV2MsgInstantBinaryOptionsMarketLaunch, + MsgInstantBinaryOptionsMarketLaunchResponse as InjectiveExchangeV2MsgInstantBinaryOptionsMarketLaunchResponse, + MsgInstantExpiryFuturesMarketLaunch as InjectiveExchangeV2MsgInstantExpiryFuturesMarketLaunch, + MsgInstantExpiryFuturesMarketLaunchResponse as InjectiveExchangeV2MsgInstantExpiryFuturesMarketLaunchResponse, + MsgCreateSpotMarketOrder as InjectiveExchangeV2MsgCreateSpotMarketOrder, + MsgCreateSpotMarketOrderResponse as InjectiveExchangeV2MsgCreateSpotMarketOrderResponse, + SpotMarketOrderResults as InjectiveExchangeV2SpotMarketOrderResults, + MsgCreateDerivativeLimitOrder as InjectiveExchangeV2MsgCreateDerivativeLimitOrder, + MsgCreateDerivativeLimitOrderResponse as InjectiveExchangeV2MsgCreateDerivativeLimitOrderResponse, + MsgCreateBinaryOptionsLimitOrder as InjectiveExchangeV2MsgCreateBinaryOptionsLimitOrder, + MsgCreateBinaryOptionsLimitOrderResponse as InjectiveExchangeV2MsgCreateBinaryOptionsLimitOrderResponse, + MsgBatchCreateDerivativeLimitOrders as InjectiveExchangeV2MsgBatchCreateDerivativeLimitOrders, + MsgBatchCreateDerivativeLimitOrdersResponse as InjectiveExchangeV2MsgBatchCreateDerivativeLimitOrdersResponse, + MsgCancelSpotOrder as InjectiveExchangeV2MsgCancelSpotOrder, + MsgCancelSpotOrderResponse as InjectiveExchangeV2MsgCancelSpotOrderResponse, + MsgBatchCancelSpotOrders as InjectiveExchangeV2MsgBatchCancelSpotOrders, + MsgBatchCancelSpotOrdersResponse as InjectiveExchangeV2MsgBatchCancelSpotOrdersResponse, + MsgBatchCancelBinaryOptionsOrders as InjectiveExchangeV2MsgBatchCancelBinaryOptionsOrders, + MsgBatchCancelBinaryOptionsOrdersResponse as InjectiveExchangeV2MsgBatchCancelBinaryOptionsOrdersResponse, + MsgBatchUpdateOrders as InjectiveExchangeV2MsgBatchUpdateOrders, + MsgBatchUpdateOrdersResponse as InjectiveExchangeV2MsgBatchUpdateOrdersResponse, + MsgCreateDerivativeMarketOrder as InjectiveExchangeV2MsgCreateDerivativeMarketOrder, + MsgCreateDerivativeMarketOrderResponse as InjectiveExchangeV2MsgCreateDerivativeMarketOrderResponse, + DerivativeMarketOrderResults as InjectiveExchangeV2DerivativeMarketOrderResults, + MsgCreateBinaryOptionsMarketOrder as InjectiveExchangeV2MsgCreateBinaryOptionsMarketOrder, + MsgCreateBinaryOptionsMarketOrderResponse as InjectiveExchangeV2MsgCreateBinaryOptionsMarketOrderResponse, + MsgCancelDerivativeOrder as InjectiveExchangeV2MsgCancelDerivativeOrder, + MsgCancelDerivativeOrderResponse as InjectiveExchangeV2MsgCancelDerivativeOrderResponse, + MsgCancelBinaryOptionsOrder as InjectiveExchangeV2MsgCancelBinaryOptionsOrder, + MsgCancelBinaryOptionsOrderResponse as InjectiveExchangeV2MsgCancelBinaryOptionsOrderResponse, + OrderData as InjectiveExchangeV2OrderData, + MsgBatchCancelDerivativeOrders as InjectiveExchangeV2MsgBatchCancelDerivativeOrders, + MsgBatchCancelDerivativeOrdersResponse as InjectiveExchangeV2MsgBatchCancelDerivativeOrdersResponse, + MsgSubaccountTransfer as InjectiveExchangeV2MsgSubaccountTransfer, + MsgSubaccountTransferResponse as InjectiveExchangeV2MsgSubaccountTransferResponse, + MsgExternalTransfer as InjectiveExchangeV2MsgExternalTransfer, + MsgExternalTransferResponse as InjectiveExchangeV2MsgExternalTransferResponse, + MsgLiquidatePosition as InjectiveExchangeV2MsgLiquidatePosition, + MsgLiquidatePositionResponse as InjectiveExchangeV2MsgLiquidatePositionResponse, + MsgOffsetPosition as InjectiveExchangeV2MsgOffsetPosition, + MsgOffsetPositionResponse as InjectiveExchangeV2MsgOffsetPositionResponse, + MsgEmergencySettleMarket as InjectiveExchangeV2MsgEmergencySettleMarket, + MsgEmergencySettleMarketResponse as InjectiveExchangeV2MsgEmergencySettleMarketResponse, + MsgIncreasePositionMargin as InjectiveExchangeV2MsgIncreasePositionMargin, + MsgIncreasePositionMarginResponse as InjectiveExchangeV2MsgIncreasePositionMarginResponse, + MsgDecreasePositionMargin as InjectiveExchangeV2MsgDecreasePositionMargin, + MsgDecreasePositionMarginResponse as InjectiveExchangeV2MsgDecreasePositionMarginResponse, + MsgPrivilegedExecuteContract as InjectiveExchangeV2MsgPrivilegedExecuteContract, + MsgPrivilegedExecuteContractResponse as InjectiveExchangeV2MsgPrivilegedExecuteContractResponse, + MsgRewardsOptOut as InjectiveExchangeV2MsgRewardsOptOut, + MsgRewardsOptOutResponse as InjectiveExchangeV2MsgRewardsOptOutResponse, + MsgReclaimLockedFunds as InjectiveExchangeV2MsgReclaimLockedFunds, + MsgReclaimLockedFundsResponse as InjectiveExchangeV2MsgReclaimLockedFundsResponse, + MsgSignData as InjectiveExchangeV2MsgSignData, + MsgSignDoc as InjectiveExchangeV2MsgSignDoc, + MsgAdminUpdateBinaryOptionsMarket as InjectiveExchangeV2MsgAdminUpdateBinaryOptionsMarket, + MsgAdminUpdateBinaryOptionsMarketResponse as InjectiveExchangeV2MsgAdminUpdateBinaryOptionsMarketResponse, + MsgAuthorizeStakeGrants as InjectiveExchangeV2MsgAuthorizeStakeGrants, + MsgAuthorizeStakeGrantsResponse as InjectiveExchangeV2MsgAuthorizeStakeGrantsResponse, + MsgActivateStakeGrant as InjectiveExchangeV2MsgActivateStakeGrant, + MsgActivateStakeGrantResponse as InjectiveExchangeV2MsgActivateStakeGrantResponse, + MsgBatchExchangeModification as InjectiveExchangeV2MsgBatchExchangeModification, + MsgBatchExchangeModificationResponse as InjectiveExchangeV2MsgBatchExchangeModificationResponse, + MsgSpotMarketLaunch as InjectiveExchangeV2MsgSpotMarketLaunch, + MsgSpotMarketLaunchResponse as InjectiveExchangeV2MsgSpotMarketLaunchResponse, + MsgPerpetualMarketLaunch as InjectiveExchangeV2MsgPerpetualMarketLaunch, + MsgPerpetualMarketLaunchResponse as InjectiveExchangeV2MsgPerpetualMarketLaunchResponse, + MsgExpiryFuturesMarketLaunch as InjectiveExchangeV2MsgExpiryFuturesMarketLaunch, + MsgExpiryFuturesMarketLaunchResponse as InjectiveExchangeV2MsgExpiryFuturesMarketLaunchResponse, + MsgBinaryOptionsMarketLaunch as InjectiveExchangeV2MsgBinaryOptionsMarketLaunch, + MsgBinaryOptionsMarketLaunchResponse as InjectiveExchangeV2MsgBinaryOptionsMarketLaunchResponse, + MsgBatchCommunityPoolSpend as InjectiveExchangeV2MsgBatchCommunityPoolSpend, + MsgBatchCommunityPoolSpendResponse as InjectiveExchangeV2MsgBatchCommunityPoolSpendResponse, + MsgSpotMarketParamUpdate as InjectiveExchangeV2MsgSpotMarketParamUpdate, + MsgSpotMarketParamUpdateResponse as InjectiveExchangeV2MsgSpotMarketParamUpdateResponse, + MsgDerivativeMarketParamUpdate as InjectiveExchangeV2MsgDerivativeMarketParamUpdate, + MsgDerivativeMarketParamUpdateResponse as InjectiveExchangeV2MsgDerivativeMarketParamUpdateResponse, + MsgBinaryOptionsMarketParamUpdate as InjectiveExchangeV2MsgBinaryOptionsMarketParamUpdate, + MsgBinaryOptionsMarketParamUpdateResponse as InjectiveExchangeV2MsgBinaryOptionsMarketParamUpdateResponse, + MsgMarketForcedSettlement as InjectiveExchangeV2MsgMarketForcedSettlement, + MsgMarketForcedSettlementResponse as InjectiveExchangeV2MsgMarketForcedSettlementResponse, + MsgTradingRewardCampaignLaunch as InjectiveExchangeV2MsgTradingRewardCampaignLaunch, + MsgTradingRewardCampaignLaunchResponse as InjectiveExchangeV2MsgTradingRewardCampaignLaunchResponse, + MsgExchangeEnable as InjectiveExchangeV2MsgExchangeEnable, + MsgExchangeEnableResponse as InjectiveExchangeV2MsgExchangeEnableResponse, + MsgTradingRewardCampaignUpdate as InjectiveExchangeV2MsgTradingRewardCampaignUpdate, + MsgTradingRewardCampaignUpdateResponse as InjectiveExchangeV2MsgTradingRewardCampaignUpdateResponse, + MsgTradingRewardPendingPointsUpdate as InjectiveExchangeV2MsgTradingRewardPendingPointsUpdate, + MsgTradingRewardPendingPointsUpdateResponse as InjectiveExchangeV2MsgTradingRewardPendingPointsUpdateResponse, + MsgFeeDiscount as InjectiveExchangeV2MsgFeeDiscount, + MsgFeeDiscountResponse as InjectiveExchangeV2MsgFeeDiscountResponse, + MsgAtomicMarketOrderFeeMultiplierSchedule as InjectiveExchangeV2MsgAtomicMarketOrderFeeMultiplierSchedule, + MsgAtomicMarketOrderFeeMultiplierScheduleResponse as InjectiveExchangeV2MsgAtomicMarketOrderFeeMultiplierScheduleResponse, + MsgCancelPostOnlyMode as InjectiveExchangeV2MsgCancelPostOnlyMode, + MsgCancelPostOnlyModeResponse as InjectiveExchangeV2MsgCancelPostOnlyModeResponse, +} from "./injective/exchange/v2/tx_pb.js"; +export { + MsgDepositService as InjectiveExchangeV2MsgDepositService, + MsgWithdrawService as InjectiveExchangeV2MsgWithdrawService, + MsgInstantSpotMarketLaunchService as InjectiveExchangeV2MsgInstantSpotMarketLaunchService, + MsgInstantPerpetualMarketLaunchService as InjectiveExchangeV2MsgInstantPerpetualMarketLaunchService, + MsgInstantExpiryFuturesMarketLaunchService as InjectiveExchangeV2MsgInstantExpiryFuturesMarketLaunchService, + MsgCreateSpotLimitOrderService as InjectiveExchangeV2MsgCreateSpotLimitOrderService, + MsgBatchCreateSpotLimitOrdersService as InjectiveExchangeV2MsgBatchCreateSpotLimitOrdersService, + MsgCreateSpotMarketOrderService as InjectiveExchangeV2MsgCreateSpotMarketOrderService, + MsgCancelSpotOrderService as InjectiveExchangeV2MsgCancelSpotOrderService, + MsgBatchCancelSpotOrdersService as InjectiveExchangeV2MsgBatchCancelSpotOrdersService, + MsgBatchUpdateOrdersService as InjectiveExchangeV2MsgBatchUpdateOrdersService, + MsgPrivilegedExecuteContractService as InjectiveExchangeV2MsgPrivilegedExecuteContractService, + MsgCreateDerivativeLimitOrderService as InjectiveExchangeV2MsgCreateDerivativeLimitOrderService, + MsgBatchCreateDerivativeLimitOrdersService as InjectiveExchangeV2MsgBatchCreateDerivativeLimitOrdersService, + MsgCreateDerivativeMarketOrderService as InjectiveExchangeV2MsgCreateDerivativeMarketOrderService, + MsgCancelDerivativeOrderService as InjectiveExchangeV2MsgCancelDerivativeOrderService, + MsgBatchCancelDerivativeOrdersService as InjectiveExchangeV2MsgBatchCancelDerivativeOrdersService, + MsgInstantBinaryOptionsMarketLaunchService as InjectiveExchangeV2MsgInstantBinaryOptionsMarketLaunchService, + MsgCreateBinaryOptionsLimitOrderService as InjectiveExchangeV2MsgCreateBinaryOptionsLimitOrderService, + MsgCreateBinaryOptionsMarketOrderService as InjectiveExchangeV2MsgCreateBinaryOptionsMarketOrderService, + MsgCancelBinaryOptionsOrderService as InjectiveExchangeV2MsgCancelBinaryOptionsOrderService, + MsgBatchCancelBinaryOptionsOrdersService as InjectiveExchangeV2MsgBatchCancelBinaryOptionsOrdersService, + MsgSubaccountTransferService as InjectiveExchangeV2MsgSubaccountTransferService, + MsgExternalTransferService as InjectiveExchangeV2MsgExternalTransferService, + MsgLiquidatePositionService as InjectiveExchangeV2MsgLiquidatePositionService, + MsgEmergencySettleMarketService as InjectiveExchangeV2MsgEmergencySettleMarketService, + MsgOffsetPositionService as InjectiveExchangeV2MsgOffsetPositionService, + MsgIncreasePositionMarginService as InjectiveExchangeV2MsgIncreasePositionMarginService, + MsgDecreasePositionMarginService as InjectiveExchangeV2MsgDecreasePositionMarginService, + MsgRewardsOptOutService as InjectiveExchangeV2MsgRewardsOptOutService, + MsgAdminUpdateBinaryOptionsMarketService as InjectiveExchangeV2MsgAdminUpdateBinaryOptionsMarketService, + MsgUpdateParamsService as InjectiveExchangeV2MsgUpdateParamsService, + MsgUpdateSpotMarketService as InjectiveExchangeV2MsgUpdateSpotMarketService, + MsgUpdateDerivativeMarketService as InjectiveExchangeV2MsgUpdateDerivativeMarketService, + MsgAuthorizeStakeGrantsService as InjectiveExchangeV2MsgAuthorizeStakeGrantsService, + MsgActivateStakeGrantService as InjectiveExchangeV2MsgActivateStakeGrantService, + MsgBatchExchangeModificationService as InjectiveExchangeV2MsgBatchExchangeModificationService, + MsgLaunchSpotMarketService as InjectiveExchangeV2MsgLaunchSpotMarketService, + MsgLaunchPerpetualMarketService as InjectiveExchangeV2MsgLaunchPerpetualMarketService, + MsgLaunchExpiryFuturesMarketService as InjectiveExchangeV2MsgLaunchExpiryFuturesMarketService, + MsgLaunchBinaryOptionsMarketService as InjectiveExchangeV2MsgLaunchBinaryOptionsMarketService, + MsgBatchSpendCommunityPoolService as InjectiveExchangeV2MsgBatchSpendCommunityPoolService, + MsgSpotMarketParamUpdateService as InjectiveExchangeV2MsgSpotMarketParamUpdateService, + MsgDerivativeMarketParamUpdateService as InjectiveExchangeV2MsgDerivativeMarketParamUpdateService, + MsgBinaryOptionsMarketParamUpdateService as InjectiveExchangeV2MsgBinaryOptionsMarketParamUpdateService, + MsgForceSettleMarketService as InjectiveExchangeV2MsgForceSettleMarketService, + MsgLaunchTradingRewardCampaignService as InjectiveExchangeV2MsgLaunchTradingRewardCampaignService, + MsgEnableExchangeService as InjectiveExchangeV2MsgEnableExchangeService, + MsgUpdateTradingRewardCampaignService as InjectiveExchangeV2MsgUpdateTradingRewardCampaignService, + MsgUpdateTradingRewardPendingPointsService as InjectiveExchangeV2MsgUpdateTradingRewardPendingPointsService, + MsgUpdateFeeDiscountService as InjectiveExchangeV2MsgUpdateFeeDiscountService, + MsgUpdateAtomicMarketOrderFeeMultiplierScheduleService as InjectiveExchangeV2MsgUpdateAtomicMarketOrderFeeMultiplierScheduleService, + MsgCancelPostOnlyModeService as InjectiveExchangeV2MsgCancelPostOnlyModeService, +} from "./injective/exchange/v2/tx_cosmes.js"; +export { + OrderSide as InjectiveExchangeV2OrderSide, + CancellationStrategy as InjectiveExchangeV2CancellationStrategy, + Subaccount as InjectiveExchangeV2Subaccount, + QuerySubaccountOrdersRequest as InjectiveExchangeV2QuerySubaccountOrdersRequest, + QuerySubaccountOrdersResponse as InjectiveExchangeV2QuerySubaccountOrdersResponse, + SubaccountOrderbookMetadataWithMarket as InjectiveExchangeV2SubaccountOrderbookMetadataWithMarket, + QueryExchangeParamsRequest as InjectiveExchangeV2QueryExchangeParamsRequest, + QueryExchangeParamsResponse as InjectiveExchangeV2QueryExchangeParamsResponse, + QuerySubaccountDepositsRequest as InjectiveExchangeV2QuerySubaccountDepositsRequest, + QuerySubaccountDepositsResponse as InjectiveExchangeV2QuerySubaccountDepositsResponse, + QueryExchangeBalancesRequest as InjectiveExchangeV2QueryExchangeBalancesRequest, + QueryExchangeBalancesResponse as InjectiveExchangeV2QueryExchangeBalancesResponse, + QueryAggregateVolumeRequest as InjectiveExchangeV2QueryAggregateVolumeRequest, + QueryAggregateVolumeResponse as InjectiveExchangeV2QueryAggregateVolumeResponse, + QueryAggregateVolumesRequest as InjectiveExchangeV2QueryAggregateVolumesRequest, + QueryAggregateVolumesResponse as InjectiveExchangeV2QueryAggregateVolumesResponse, + QueryAggregateMarketVolumeRequest as InjectiveExchangeV2QueryAggregateMarketVolumeRequest, + QueryAggregateMarketVolumeResponse as InjectiveExchangeV2QueryAggregateMarketVolumeResponse, + QueryAuctionExchangeTransferDenomDecimalRequest as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalRequest, + QueryAuctionExchangeTransferDenomDecimalResponse as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalResponse, + QueryAuctionExchangeTransferDenomDecimalsRequest as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalsRequest, + QueryAuctionExchangeTransferDenomDecimalsResponse as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalsResponse, + QueryAggregateMarketVolumesRequest as InjectiveExchangeV2QueryAggregateMarketVolumesRequest, + QueryAggregateMarketVolumesResponse as InjectiveExchangeV2QueryAggregateMarketVolumesResponse, + QuerySubaccountDepositRequest as InjectiveExchangeV2QuerySubaccountDepositRequest, + QuerySubaccountDepositResponse as InjectiveExchangeV2QuerySubaccountDepositResponse, + QuerySpotMarketsRequest as InjectiveExchangeV2QuerySpotMarketsRequest, + QuerySpotMarketsResponse as InjectiveExchangeV2QuerySpotMarketsResponse, + QuerySpotMarketRequest as InjectiveExchangeV2QuerySpotMarketRequest, + QuerySpotMarketResponse as InjectiveExchangeV2QuerySpotMarketResponse, + QuerySpotOrderbookRequest as InjectiveExchangeV2QuerySpotOrderbookRequest, + QuerySpotOrderbookResponse as InjectiveExchangeV2QuerySpotOrderbookResponse, + FullSpotMarket as InjectiveExchangeV2FullSpotMarket, + QueryFullSpotMarketsRequest as InjectiveExchangeV2QueryFullSpotMarketsRequest, + QueryFullSpotMarketsResponse as InjectiveExchangeV2QueryFullSpotMarketsResponse, + QueryFullSpotMarketRequest as InjectiveExchangeV2QueryFullSpotMarketRequest, + QueryFullSpotMarketResponse as InjectiveExchangeV2QueryFullSpotMarketResponse, + QuerySpotOrdersByHashesRequest as InjectiveExchangeV2QuerySpotOrdersByHashesRequest, + QuerySpotOrdersByHashesResponse as InjectiveExchangeV2QuerySpotOrdersByHashesResponse, + QueryTraderSpotOrdersRequest as InjectiveExchangeV2QueryTraderSpotOrdersRequest, + QueryAccountAddressSpotOrdersRequest as InjectiveExchangeV2QueryAccountAddressSpotOrdersRequest, + TrimmedSpotLimitOrder as InjectiveExchangeV2TrimmedSpotLimitOrder, + QueryTraderSpotOrdersResponse as InjectiveExchangeV2QueryTraderSpotOrdersResponse, + QueryAccountAddressSpotOrdersResponse as InjectiveExchangeV2QueryAccountAddressSpotOrdersResponse, + QuerySpotMidPriceAndTOBRequest as InjectiveExchangeV2QuerySpotMidPriceAndTOBRequest, + QuerySpotMidPriceAndTOBResponse as InjectiveExchangeV2QuerySpotMidPriceAndTOBResponse, + QueryDerivativeMidPriceAndTOBRequest as InjectiveExchangeV2QueryDerivativeMidPriceAndTOBRequest, + QueryDerivativeMidPriceAndTOBResponse as InjectiveExchangeV2QueryDerivativeMidPriceAndTOBResponse, + QueryDerivativeOrderbookRequest as InjectiveExchangeV2QueryDerivativeOrderbookRequest, + QueryDerivativeOrderbookResponse as InjectiveExchangeV2QueryDerivativeOrderbookResponse, + QueryTraderSpotOrdersToCancelUpToAmountRequest as InjectiveExchangeV2QueryTraderSpotOrdersToCancelUpToAmountRequest, + QueryTraderDerivativeOrdersToCancelUpToAmountRequest as InjectiveExchangeV2QueryTraderDerivativeOrdersToCancelUpToAmountRequest, + QueryTraderDerivativeOrdersRequest as InjectiveExchangeV2QueryTraderDerivativeOrdersRequest, + QueryAccountAddressDerivativeOrdersRequest as InjectiveExchangeV2QueryAccountAddressDerivativeOrdersRequest, + TrimmedDerivativeLimitOrder as InjectiveExchangeV2TrimmedDerivativeLimitOrder, + QueryTraderDerivativeOrdersResponse as InjectiveExchangeV2QueryTraderDerivativeOrdersResponse, + QueryAccountAddressDerivativeOrdersResponse as InjectiveExchangeV2QueryAccountAddressDerivativeOrdersResponse, + QueryDerivativeOrdersByHashesRequest as InjectiveExchangeV2QueryDerivativeOrdersByHashesRequest, + QueryDerivativeOrdersByHashesResponse as InjectiveExchangeV2QueryDerivativeOrdersByHashesResponse, + QueryDerivativeMarketsRequest as InjectiveExchangeV2QueryDerivativeMarketsRequest, + PriceLevel as InjectiveExchangeV2PriceLevel, + PerpetualMarketState as InjectiveExchangeV2PerpetualMarketState, + FullDerivativeMarket as InjectiveExchangeV2FullDerivativeMarket, + QueryDerivativeMarketsResponse as InjectiveExchangeV2QueryDerivativeMarketsResponse, + QueryDerivativeMarketRequest as InjectiveExchangeV2QueryDerivativeMarketRequest, + QueryDerivativeMarketResponse as InjectiveExchangeV2QueryDerivativeMarketResponse, + QueryDerivativeMarketAddressRequest as InjectiveExchangeV2QueryDerivativeMarketAddressRequest, + QueryDerivativeMarketAddressResponse as InjectiveExchangeV2QueryDerivativeMarketAddressResponse, + QuerySubaccountTradeNonceRequest as InjectiveExchangeV2QuerySubaccountTradeNonceRequest, + QueryPositionsInMarketRequest as InjectiveExchangeV2QueryPositionsInMarketRequest, + QueryPositionsInMarketResponse as InjectiveExchangeV2QueryPositionsInMarketResponse, + QuerySubaccountPositionsRequest as InjectiveExchangeV2QuerySubaccountPositionsRequest, + QuerySubaccountPositionInMarketRequest as InjectiveExchangeV2QuerySubaccountPositionInMarketRequest, + QuerySubaccountEffectivePositionInMarketRequest as InjectiveExchangeV2QuerySubaccountEffectivePositionInMarketRequest, + QuerySubaccountOrderMetadataRequest as InjectiveExchangeV2QuerySubaccountOrderMetadataRequest, + QuerySubaccountPositionsResponse as InjectiveExchangeV2QuerySubaccountPositionsResponse, + QuerySubaccountPositionInMarketResponse as InjectiveExchangeV2QuerySubaccountPositionInMarketResponse, + EffectivePosition as InjectiveExchangeV2EffectivePosition, + QuerySubaccountEffectivePositionInMarketResponse as InjectiveExchangeV2QuerySubaccountEffectivePositionInMarketResponse, + QueryPerpetualMarketInfoRequest as InjectiveExchangeV2QueryPerpetualMarketInfoRequest, + QueryPerpetualMarketInfoResponse as InjectiveExchangeV2QueryPerpetualMarketInfoResponse, + QueryExpiryFuturesMarketInfoRequest as InjectiveExchangeV2QueryExpiryFuturesMarketInfoRequest, + QueryExpiryFuturesMarketInfoResponse as InjectiveExchangeV2QueryExpiryFuturesMarketInfoResponse, + QueryPerpetualMarketFundingRequest as InjectiveExchangeV2QueryPerpetualMarketFundingRequest, + QueryPerpetualMarketFundingResponse as InjectiveExchangeV2QueryPerpetualMarketFundingResponse, + QuerySubaccountOrderMetadataResponse as InjectiveExchangeV2QuerySubaccountOrderMetadataResponse, + QuerySubaccountTradeNonceResponse as InjectiveExchangeV2QuerySubaccountTradeNonceResponse, + QueryModuleStateRequest as InjectiveExchangeV2QueryModuleStateRequest, + QueryModuleStateResponse as InjectiveExchangeV2QueryModuleStateResponse, + QueryPositionsRequest as InjectiveExchangeV2QueryPositionsRequest, + QueryPositionsResponse as InjectiveExchangeV2QueryPositionsResponse, + QueryTradeRewardPointsRequest as InjectiveExchangeV2QueryTradeRewardPointsRequest, + QueryTradeRewardPointsResponse as InjectiveExchangeV2QueryTradeRewardPointsResponse, + QueryTradeRewardCampaignRequest as InjectiveExchangeV2QueryTradeRewardCampaignRequest, + QueryTradeRewardCampaignResponse as InjectiveExchangeV2QueryTradeRewardCampaignResponse, + QueryIsOptedOutOfRewardsRequest as InjectiveExchangeV2QueryIsOptedOutOfRewardsRequest, + QueryIsOptedOutOfRewardsResponse as InjectiveExchangeV2QueryIsOptedOutOfRewardsResponse, + QueryOptedOutOfRewardsAccountsRequest as InjectiveExchangeV2QueryOptedOutOfRewardsAccountsRequest, + QueryOptedOutOfRewardsAccountsResponse as InjectiveExchangeV2QueryOptedOutOfRewardsAccountsResponse, + QueryFeeDiscountAccountInfoRequest as InjectiveExchangeV2QueryFeeDiscountAccountInfoRequest, + QueryFeeDiscountAccountInfoResponse as InjectiveExchangeV2QueryFeeDiscountAccountInfoResponse, + QueryFeeDiscountScheduleRequest as InjectiveExchangeV2QueryFeeDiscountScheduleRequest, + QueryFeeDiscountScheduleResponse as InjectiveExchangeV2QueryFeeDiscountScheduleResponse, + QueryBalanceMismatchesRequest as InjectiveExchangeV2QueryBalanceMismatchesRequest, + BalanceMismatch as InjectiveExchangeV2BalanceMismatch, + QueryBalanceMismatchesResponse as InjectiveExchangeV2QueryBalanceMismatchesResponse, + QueryBalanceWithBalanceHoldsRequest as InjectiveExchangeV2QueryBalanceWithBalanceHoldsRequest, + BalanceWithMarginHold as InjectiveExchangeV2BalanceWithMarginHold, + QueryBalanceWithBalanceHoldsResponse as InjectiveExchangeV2QueryBalanceWithBalanceHoldsResponse, + QueryFeeDiscountTierStatisticsRequest as InjectiveExchangeV2QueryFeeDiscountTierStatisticsRequest, + TierStatistic as InjectiveExchangeV2TierStatistic, + QueryFeeDiscountTierStatisticsResponse as InjectiveExchangeV2QueryFeeDiscountTierStatisticsResponse, + MitoVaultInfosRequest as InjectiveExchangeV2MitoVaultInfosRequest, + MitoVaultInfosResponse as InjectiveExchangeV2MitoVaultInfosResponse, + QueryMarketIDFromVaultRequest as InjectiveExchangeV2QueryMarketIDFromVaultRequest, + QueryMarketIDFromVaultResponse as InjectiveExchangeV2QueryMarketIDFromVaultResponse, + QueryHistoricalTradeRecordsRequest as InjectiveExchangeV2QueryHistoricalTradeRecordsRequest, + QueryHistoricalTradeRecordsResponse as InjectiveExchangeV2QueryHistoricalTradeRecordsResponse, + TradeHistoryOptions as InjectiveExchangeV2TradeHistoryOptions, + QueryMarketVolatilityRequest as InjectiveExchangeV2QueryMarketVolatilityRequest, + QueryMarketVolatilityResponse as InjectiveExchangeV2QueryMarketVolatilityResponse, + QueryBinaryMarketsRequest as InjectiveExchangeV2QueryBinaryMarketsRequest, + QueryBinaryMarketsResponse as InjectiveExchangeV2QueryBinaryMarketsResponse, + QueryTraderDerivativeConditionalOrdersRequest as InjectiveExchangeV2QueryTraderDerivativeConditionalOrdersRequest, + TrimmedDerivativeConditionalOrder as InjectiveExchangeV2TrimmedDerivativeConditionalOrder, + QueryTraderDerivativeConditionalOrdersResponse as InjectiveExchangeV2QueryTraderDerivativeConditionalOrdersResponse, + QueryFullSpotOrderbookRequest as InjectiveExchangeV2QueryFullSpotOrderbookRequest, + QueryFullSpotOrderbookResponse as InjectiveExchangeV2QueryFullSpotOrderbookResponse, + QueryFullDerivativeOrderbookRequest as InjectiveExchangeV2QueryFullDerivativeOrderbookRequest, + QueryFullDerivativeOrderbookResponse as InjectiveExchangeV2QueryFullDerivativeOrderbookResponse, + TrimmedLimitOrder as InjectiveExchangeV2TrimmedLimitOrder, + QueryMarketAtomicExecutionFeeMultiplierRequest as InjectiveExchangeV2QueryMarketAtomicExecutionFeeMultiplierRequest, + QueryMarketAtomicExecutionFeeMultiplierResponse as InjectiveExchangeV2QueryMarketAtomicExecutionFeeMultiplierResponse, + QueryActiveStakeGrantRequest as InjectiveExchangeV2QueryActiveStakeGrantRequest, + QueryActiveStakeGrantResponse as InjectiveExchangeV2QueryActiveStakeGrantResponse, + QueryGrantAuthorizationRequest as InjectiveExchangeV2QueryGrantAuthorizationRequest, + QueryGrantAuthorizationResponse as InjectiveExchangeV2QueryGrantAuthorizationResponse, + QueryGrantAuthorizationsRequest as InjectiveExchangeV2QueryGrantAuthorizationsRequest, + QueryGrantAuthorizationsResponse as InjectiveExchangeV2QueryGrantAuthorizationsResponse, + QueryMarketBalanceRequest as InjectiveExchangeV2QueryMarketBalanceRequest, + QueryMarketBalanceResponse as InjectiveExchangeV2QueryMarketBalanceResponse, + QueryMarketBalancesRequest as InjectiveExchangeV2QueryMarketBalancesRequest, + QueryMarketBalancesResponse as InjectiveExchangeV2QueryMarketBalancesResponse, + MarketBalance as InjectiveExchangeV2MarketBalance, + QueryDenomMinNotionalRequest as InjectiveExchangeV2QueryDenomMinNotionalRequest, + QueryDenomMinNotionalResponse as InjectiveExchangeV2QueryDenomMinNotionalResponse, + QueryDenomMinNotionalsRequest as InjectiveExchangeV2QueryDenomMinNotionalsRequest, + QueryDenomMinNotionalsResponse as InjectiveExchangeV2QueryDenomMinNotionalsResponse, + OpenInterest as InjectiveExchangeV2OpenInterest, + QueryOpenInterestRequest as InjectiveExchangeV2QueryOpenInterestRequest, + QueryOpenInterestResponse as InjectiveExchangeV2QueryOpenInterestResponse, +} from "./injective/exchange/v2/query_pb.js"; +export { + QueryL3DerivativeOrderBookService as InjectiveExchangeV2QueryL3DerivativeOrderBookService, + QueryL3SpotOrderBookService as InjectiveExchangeV2QueryL3SpotOrderBookService, + QueryQueryExchangeParamsService as InjectiveExchangeV2QueryQueryExchangeParamsService, + QuerySubaccountDepositsService as InjectiveExchangeV2QuerySubaccountDepositsService, + QuerySubaccountDepositService as InjectiveExchangeV2QuerySubaccountDepositService, + QueryExchangeBalancesService as InjectiveExchangeV2QueryExchangeBalancesService, + QueryAggregateVolumeService as InjectiveExchangeV2QueryAggregateVolumeService, + QueryAggregateVolumesService as InjectiveExchangeV2QueryAggregateVolumesService, + QueryAggregateMarketVolumeService as InjectiveExchangeV2QueryAggregateMarketVolumeService, + QueryAggregateMarketVolumesService as InjectiveExchangeV2QueryAggregateMarketVolumesService, + QueryAuctionExchangeTransferDenomDecimalService as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalService, + QueryAuctionExchangeTransferDenomDecimalsService as InjectiveExchangeV2QueryAuctionExchangeTransferDenomDecimalsService, + QuerySpotMarketsService as InjectiveExchangeV2QuerySpotMarketsService, + QuerySpotMarketService as InjectiveExchangeV2QuerySpotMarketService, + QueryFullSpotMarketsService as InjectiveExchangeV2QueryFullSpotMarketsService, + QueryFullSpotMarketService as InjectiveExchangeV2QueryFullSpotMarketService, + QuerySpotOrderbookService as InjectiveExchangeV2QuerySpotOrderbookService, + QueryTraderSpotOrdersService as InjectiveExchangeV2QueryTraderSpotOrdersService, + QueryAccountAddressSpotOrdersService as InjectiveExchangeV2QueryAccountAddressSpotOrdersService, + QuerySpotOrdersByHashesService as InjectiveExchangeV2QuerySpotOrdersByHashesService, + QuerySubaccountOrdersService as InjectiveExchangeV2QuerySubaccountOrdersService, + QueryTraderSpotTransientOrdersService as InjectiveExchangeV2QueryTraderSpotTransientOrdersService, + QuerySpotMidPriceAndTOBService as InjectiveExchangeV2QuerySpotMidPriceAndTOBService, + QueryDerivativeMidPriceAndTOBService as InjectiveExchangeV2QueryDerivativeMidPriceAndTOBService, + QueryDerivativeOrderbookService as InjectiveExchangeV2QueryDerivativeOrderbookService, + QueryTraderDerivativeOrdersService as InjectiveExchangeV2QueryTraderDerivativeOrdersService, + QueryAccountAddressDerivativeOrdersService as InjectiveExchangeV2QueryAccountAddressDerivativeOrdersService, + QueryDerivativeOrdersByHashesService as InjectiveExchangeV2QueryDerivativeOrdersByHashesService, + QueryTraderDerivativeTransientOrdersService as InjectiveExchangeV2QueryTraderDerivativeTransientOrdersService, + QueryDerivativeMarketsService as InjectiveExchangeV2QueryDerivativeMarketsService, + QueryDerivativeMarketService as InjectiveExchangeV2QueryDerivativeMarketService, + QueryDerivativeMarketAddressService as InjectiveExchangeV2QueryDerivativeMarketAddressService, + QuerySubaccountTradeNonceService as InjectiveExchangeV2QuerySubaccountTradeNonceService, + QueryExchangeModuleStateService as InjectiveExchangeV2QueryExchangeModuleStateService, + QueryPositionsService as InjectiveExchangeV2QueryPositionsService, + QueryPositionsInMarketService as InjectiveExchangeV2QueryPositionsInMarketService, + QuerySubaccountPositionsService as InjectiveExchangeV2QuerySubaccountPositionsService, + QuerySubaccountPositionInMarketService as InjectiveExchangeV2QuerySubaccountPositionInMarketService, + QuerySubaccountEffectivePositionInMarketService as InjectiveExchangeV2QuerySubaccountEffectivePositionInMarketService, + QueryPerpetualMarketInfoService as InjectiveExchangeV2QueryPerpetualMarketInfoService, + QueryExpiryFuturesMarketInfoService as InjectiveExchangeV2QueryExpiryFuturesMarketInfoService, + QueryPerpetualMarketFundingService as InjectiveExchangeV2QueryPerpetualMarketFundingService, + QuerySubaccountOrderMetadataService as InjectiveExchangeV2QuerySubaccountOrderMetadataService, + QueryTradeRewardPointsService as InjectiveExchangeV2QueryTradeRewardPointsService, + QueryPendingTradeRewardPointsService as InjectiveExchangeV2QueryPendingTradeRewardPointsService, + QueryTradeRewardCampaignService as InjectiveExchangeV2QueryTradeRewardCampaignService, + QueryFeeDiscountAccountInfoService as InjectiveExchangeV2QueryFeeDiscountAccountInfoService, + QueryFeeDiscountScheduleService as InjectiveExchangeV2QueryFeeDiscountScheduleService, + QueryBalanceMismatchesService as InjectiveExchangeV2QueryBalanceMismatchesService, + QueryBalanceWithBalanceHoldsService as InjectiveExchangeV2QueryBalanceWithBalanceHoldsService, + QueryFeeDiscountTierStatisticsService as InjectiveExchangeV2QueryFeeDiscountTierStatisticsService, + QueryMitoVaultInfosService as InjectiveExchangeV2QueryMitoVaultInfosService, + QueryQueryMarketIDFromVaultService as InjectiveExchangeV2QueryQueryMarketIDFromVaultService, + QueryHistoricalTradeRecordsService as InjectiveExchangeV2QueryHistoricalTradeRecordsService, + QueryIsOptedOutOfRewardsService as InjectiveExchangeV2QueryIsOptedOutOfRewardsService, + QueryOptedOutOfRewardsAccountsService as InjectiveExchangeV2QueryOptedOutOfRewardsAccountsService, + QueryMarketVolatilityService as InjectiveExchangeV2QueryMarketVolatilityService, + QueryBinaryOptionsMarketsService as InjectiveExchangeV2QueryBinaryOptionsMarketsService, + QueryTraderDerivativeConditionalOrdersService as InjectiveExchangeV2QueryTraderDerivativeConditionalOrdersService, + QueryMarketAtomicExecutionFeeMultiplierService as InjectiveExchangeV2QueryMarketAtomicExecutionFeeMultiplierService, + QueryActiveStakeGrantService as InjectiveExchangeV2QueryActiveStakeGrantService, + QueryGrantAuthorizationService as InjectiveExchangeV2QueryGrantAuthorizationService, + QueryGrantAuthorizationsService as InjectiveExchangeV2QueryGrantAuthorizationsService, + QueryMarketBalanceService as InjectiveExchangeV2QueryMarketBalanceService, + QueryMarketBalancesService as InjectiveExchangeV2QueryMarketBalancesService, + QueryDenomMinNotionalService as InjectiveExchangeV2QueryDenomMinNotionalService, + QueryDenomMinNotionalsService as InjectiveExchangeV2QueryDenomMinNotionalsService, + QueryOpenInterestService as InjectiveExchangeV2QueryOpenInterestService, +} from "./injective/exchange/v2/query_cosmes.js"; +export { + ExchangeType as InjectiveExchangeV2ExchangeType, + SpotMarketParamUpdateProposal as InjectiveExchangeV2SpotMarketParamUpdateProposal, + ExchangeEnableProposal as InjectiveExchangeV2ExchangeEnableProposal, + BatchExchangeModificationProposal as InjectiveExchangeV2BatchExchangeModificationProposal, + SpotMarketLaunchProposal as InjectiveExchangeV2SpotMarketLaunchProposal, + PerpetualMarketLaunchProposal as InjectiveExchangeV2PerpetualMarketLaunchProposal, + BinaryOptionsMarketLaunchProposal as InjectiveExchangeV2BinaryOptionsMarketLaunchProposal, + ExpiryFuturesMarketLaunchProposal as InjectiveExchangeV2ExpiryFuturesMarketLaunchProposal, + DerivativeMarketParamUpdateProposal as InjectiveExchangeV2DerivativeMarketParamUpdateProposal, + AdminInfo as InjectiveExchangeV2AdminInfo, + MarketForcedSettlementProposal as InjectiveExchangeV2MarketForcedSettlementProposal, + UpdateAuctionExchangeTransferDenomDecimalsProposal as InjectiveExchangeV2UpdateAuctionExchangeTransferDenomDecimalsProposal, + BinaryOptionsMarketParamUpdateProposal as InjectiveExchangeV2BinaryOptionsMarketParamUpdateProposal, + ProviderOracleParams as InjectiveExchangeV2ProviderOracleParams, + OracleParams as InjectiveExchangeV2OracleParams, + TradingRewardCampaignLaunchProposal as InjectiveExchangeV2TradingRewardCampaignLaunchProposal, + TradingRewardCampaignUpdateProposal as InjectiveExchangeV2TradingRewardCampaignUpdateProposal, + RewardPointUpdate as InjectiveExchangeV2RewardPointUpdate, + TradingRewardPendingPointsUpdateProposal as InjectiveExchangeV2TradingRewardPendingPointsUpdateProposal, + FeeDiscountProposal as InjectiveExchangeV2FeeDiscountProposal, + BatchCommunityPoolSpendProposal as InjectiveExchangeV2BatchCommunityPoolSpendProposal, + AtomicMarketOrderFeeMultiplierScheduleProposal as InjectiveExchangeV2AtomicMarketOrderFeeMultiplierScheduleProposal, + DenomMinNotionalProposal as InjectiveExchangeV2DenomMinNotionalProposal, +} from "./injective/exchange/v2/proposal_pb.js"; +export { + SpotOrderBook as InjectiveExchangeV2SpotOrderBook, + DerivativeOrderBook as InjectiveExchangeV2DerivativeOrderBook, + ConditionalDerivativeOrderBook as InjectiveExchangeV2ConditionalDerivativeOrderBook, + SubaccountOrderbookMetadata as InjectiveExchangeV2SubaccountOrderbookMetadata, +} from "./injective/exchange/v2/orderbook_pb.js"; +export { + OrderType as InjectiveExchangeV2OrderType, + OrderMask as InjectiveExchangeV2OrderMask, + AtomicMarketOrderAccessLevel as InjectiveExchangeV2AtomicMarketOrderAccessLevel, + OrderInfo as InjectiveExchangeV2OrderInfo, + SpotOrder as InjectiveExchangeV2SpotOrder, + SpotMarketOrder as InjectiveExchangeV2SpotMarketOrder, + SpotLimitOrder as InjectiveExchangeV2SpotLimitOrder, + DerivativeOrder as InjectiveExchangeV2DerivativeOrder, + DerivativeMarketOrder as InjectiveExchangeV2DerivativeMarketOrder, + DerivativeLimitOrder as InjectiveExchangeV2DerivativeLimitOrder, +} from "./injective/exchange/v2/order_pb.js"; +export { + MarketStatus as InjectiveExchangeV2MarketStatus, + OpenNotionalCap as InjectiveExchangeV2OpenNotionalCap, + OpenNotionalCapUncapped as InjectiveExchangeV2OpenNotionalCapUncapped, + OpenNotionalCapCapped as InjectiveExchangeV2OpenNotionalCapCapped, + MarketFeeMultiplier as InjectiveExchangeV2MarketFeeMultiplier, + SpotMarket as InjectiveExchangeV2SpotMarket, + BinaryOptionsMarket as InjectiveExchangeV2BinaryOptionsMarket, + DerivativeMarket as InjectiveExchangeV2DerivativeMarket, + DerivativeMarketSettlementInfo as InjectiveExchangeV2DerivativeMarketSettlementInfo, + MarketVolume as InjectiveExchangeV2MarketVolume, + VolumeRecord as InjectiveExchangeV2VolumeRecord, + ExpiryFuturesMarketInfoState as InjectiveExchangeV2ExpiryFuturesMarketInfoState, + PerpetualMarketFundingState as InjectiveExchangeV2PerpetualMarketFundingState, + ExpiryFuturesMarketInfo as InjectiveExchangeV2ExpiryFuturesMarketInfo, + PerpetualMarketInfo as InjectiveExchangeV2PerpetualMarketInfo, + PerpetualMarketFunding as InjectiveExchangeV2PerpetualMarketFunding, +} from "./injective/exchange/v2/market_pb.js"; +export { + GenesisState as InjectiveExchangeV2GenesisState, + OrderbookSequence as InjectiveExchangeV2OrderbookSequence, + FeeDiscountAccountTierTTL as InjectiveExchangeV2FeeDiscountAccountTierTTL, + FeeDiscountBucketVolumeAccounts as InjectiveExchangeV2FeeDiscountBucketVolumeAccounts, + AccountVolume as InjectiveExchangeV2AccountVolume, + TradingRewardCampaignAccountPoints as InjectiveExchangeV2TradingRewardCampaignAccountPoints, + TradingRewardCampaignAccountPendingPoints as InjectiveExchangeV2TradingRewardCampaignAccountPendingPoints, + SubaccountNonce as InjectiveExchangeV2SubaccountNonce, + FullGrantAuthorizations as InjectiveExchangeV2FullGrantAuthorizations, + FullActiveGrant as InjectiveExchangeV2FullActiveGrant, +} from "./injective/exchange/v2/genesis_pb.js"; +export { + ExecutionType as InjectiveExchangeV2ExecutionType, + Params as InjectiveExchangeV2Params, + NextFundingTimestamp as InjectiveExchangeV2NextFundingTimestamp, + MidPriceAndTOB as InjectiveExchangeV2MidPriceAndTOB, + Deposit as InjectiveExchangeV2Deposit, + SubaccountTradeNonce as InjectiveExchangeV2SubaccountTradeNonce, + SubaccountOrder as InjectiveExchangeV2SubaccountOrder, + SubaccountOrderData as InjectiveExchangeV2SubaccountOrderData, + Position as InjectiveExchangeV2Position, + Balance as InjectiveExchangeV2Balance, + DerivativePosition as InjectiveExchangeV2DerivativePosition, + MarketOrderIndicator as InjectiveExchangeV2MarketOrderIndicator, + TradeLog as InjectiveExchangeV2TradeLog, + PositionDelta as InjectiveExchangeV2PositionDelta, + DerivativeTradeLog as InjectiveExchangeV2DerivativeTradeLog, + SubaccountPosition as InjectiveExchangeV2SubaccountPosition, + SubaccountDeposit as InjectiveExchangeV2SubaccountDeposit, + DepositUpdate as InjectiveExchangeV2DepositUpdate, + PointsMultiplier as InjectiveExchangeV2PointsMultiplier, + TradingRewardCampaignBoostInfo as InjectiveExchangeV2TradingRewardCampaignBoostInfo, + CampaignRewardPool as InjectiveExchangeV2CampaignRewardPool, + TradingRewardCampaignInfo as InjectiveExchangeV2TradingRewardCampaignInfo, + FeeDiscountTierInfo as InjectiveExchangeV2FeeDiscountTierInfo, + FeeDiscountSchedule as InjectiveExchangeV2FeeDiscountSchedule, + FeeDiscountTierTTL as InjectiveExchangeV2FeeDiscountTierTTL, + AccountRewards as InjectiveExchangeV2AccountRewards, + TradeRecords as InjectiveExchangeV2TradeRecords, + SubaccountIDs as InjectiveExchangeV2SubaccountIDs, + TradeRecord as InjectiveExchangeV2TradeRecord, + Level as InjectiveExchangeV2Level, + AggregateSubaccountVolumeRecord as InjectiveExchangeV2AggregateSubaccountVolumeRecord, + AggregateAccountVolumeRecord as InjectiveExchangeV2AggregateAccountVolumeRecord, + DenomDecimals as InjectiveExchangeV2DenomDecimals, + GrantAuthorization as InjectiveExchangeV2GrantAuthorization, + ActiveGrant as InjectiveExchangeV2ActiveGrant, + EffectiveGrant as InjectiveExchangeV2EffectiveGrant, + DenomMinNotional as InjectiveExchangeV2DenomMinNotional, +} from "./injective/exchange/v2/exchange_pb.js"; +export { + EventBatchSpotExecution as InjectiveExchangeV2EventBatchSpotExecution, + EventBatchDerivativeExecution as InjectiveExchangeV2EventBatchDerivativeExecution, + EventLostFundsFromLiquidation as InjectiveExchangeV2EventLostFundsFromLiquidation, + EventBatchDerivativePosition as InjectiveExchangeV2EventBatchDerivativePosition, + EventDerivativeMarketPaused as InjectiveExchangeV2EventDerivativeMarketPaused, + EventSettledMarketBalance as InjectiveExchangeV2EventSettledMarketBalance, + EventNotSettledMarketBalance as InjectiveExchangeV2EventNotSettledMarketBalance, + EventMarketBeyondBankruptcy as InjectiveExchangeV2EventMarketBeyondBankruptcy, + EventAllPositionsHaircut as InjectiveExchangeV2EventAllPositionsHaircut, + EventBinaryOptionsMarketUpdate as InjectiveExchangeV2EventBinaryOptionsMarketUpdate, + EventNewSpotOrders as InjectiveExchangeV2EventNewSpotOrders, + EventNewDerivativeOrders as InjectiveExchangeV2EventNewDerivativeOrders, + EventCancelSpotOrder as InjectiveExchangeV2EventCancelSpotOrder, + EventSpotMarketUpdate as InjectiveExchangeV2EventSpotMarketUpdate, + EventPerpetualMarketUpdate as InjectiveExchangeV2EventPerpetualMarketUpdate, + EventExpiryFuturesMarketUpdate as InjectiveExchangeV2EventExpiryFuturesMarketUpdate, + EventPerpetualMarketFundingUpdate as InjectiveExchangeV2EventPerpetualMarketFundingUpdate, + EventSubaccountDeposit as InjectiveExchangeV2EventSubaccountDeposit, + EventSubaccountWithdraw as InjectiveExchangeV2EventSubaccountWithdraw, + EventSubaccountBalanceTransfer as InjectiveExchangeV2EventSubaccountBalanceTransfer, + EventBatchDepositUpdate as InjectiveExchangeV2EventBatchDepositUpdate, + DerivativeMarketOrderCancel as InjectiveExchangeV2DerivativeMarketOrderCancel, + EventCancelDerivativeOrder as InjectiveExchangeV2EventCancelDerivativeOrder, + EventFeeDiscountSchedule as InjectiveExchangeV2EventFeeDiscountSchedule, + EventTradingRewardCampaignUpdate as InjectiveExchangeV2EventTradingRewardCampaignUpdate, + EventTradingRewardDistribution as InjectiveExchangeV2EventTradingRewardDistribution, + EventNewConditionalDerivativeOrder as InjectiveExchangeV2EventNewConditionalDerivativeOrder, + EventCancelConditionalDerivativeOrder as InjectiveExchangeV2EventCancelConditionalDerivativeOrder, + EventConditionalDerivativeOrderTrigger as InjectiveExchangeV2EventConditionalDerivativeOrderTrigger, + EventOrderFail as InjectiveExchangeV2EventOrderFail, + EventAtomicMarketOrderFeeMultipliersUpdated as InjectiveExchangeV2EventAtomicMarketOrderFeeMultipliersUpdated, + EventOrderbookUpdate as InjectiveExchangeV2EventOrderbookUpdate, + OrderbookUpdate as InjectiveExchangeV2OrderbookUpdate, + Orderbook as InjectiveExchangeV2Orderbook, + EventGrantAuthorizations as InjectiveExchangeV2EventGrantAuthorizations, + EventGrantActivation as InjectiveExchangeV2EventGrantActivation, + EventInvalidGrant as InjectiveExchangeV2EventInvalidGrant, + EventOrderCancelFail as InjectiveExchangeV2EventOrderCancelFail, + EventDerivativeOrdersV2Migration as InjectiveExchangeV2EventDerivativeOrdersV2Migration, + DerivativeOrderV2Changes as InjectiveExchangeV2DerivativeOrderV2Changes, + EventSpotOrdersV2Migration as InjectiveExchangeV2EventSpotOrdersV2Migration, + EventTriggerConditionalMarketOrderFailed as InjectiveExchangeV2EventTriggerConditionalMarketOrderFailed, + EventTriggerConditionalLimitOrderFailed as InjectiveExchangeV2EventTriggerConditionalLimitOrderFailed, + SpotOrderV2Changes as InjectiveExchangeV2SpotOrderV2Changes, + EventDerivativePositionV2Migration as InjectiveExchangeV2EventDerivativePositionV2Migration, +} from "./injective/exchange/v2/events_pb.js"; +export { + CreateSpotLimitOrderAuthz as InjectiveExchangeV2CreateSpotLimitOrderAuthz, + CreateSpotMarketOrderAuthz as InjectiveExchangeV2CreateSpotMarketOrderAuthz, + BatchCreateSpotLimitOrdersAuthz as InjectiveExchangeV2BatchCreateSpotLimitOrdersAuthz, + CancelSpotOrderAuthz as InjectiveExchangeV2CancelSpotOrderAuthz, + BatchCancelSpotOrdersAuthz as InjectiveExchangeV2BatchCancelSpotOrdersAuthz, + CreateDerivativeLimitOrderAuthz as InjectiveExchangeV2CreateDerivativeLimitOrderAuthz, + CreateDerivativeMarketOrderAuthz as InjectiveExchangeV2CreateDerivativeMarketOrderAuthz, + BatchCreateDerivativeLimitOrdersAuthz as InjectiveExchangeV2BatchCreateDerivativeLimitOrdersAuthz, + CancelDerivativeOrderAuthz as InjectiveExchangeV2CancelDerivativeOrderAuthz, + BatchCancelDerivativeOrdersAuthz as InjectiveExchangeV2BatchCancelDerivativeOrdersAuthz, + BatchUpdateOrdersAuthz as InjectiveExchangeV2BatchUpdateOrdersAuthz, + GenericExchangeAuthorization as InjectiveExchangeV2GenericExchangeAuthorization, +} from "./injective/exchange/v2/authz_pb.js"; +export { + MsgUpdateSpotMarket as InjectiveExchangeV1beta1MsgUpdateSpotMarket, + MsgUpdateSpotMarketResponse as InjectiveExchangeV1beta1MsgUpdateSpotMarketResponse, + MsgUpdateDerivativeMarket as InjectiveExchangeV1beta1MsgUpdateDerivativeMarket, + MsgUpdateDerivativeMarketResponse as InjectiveExchangeV1beta1MsgUpdateDerivativeMarketResponse, MsgUpdateParams as InjectiveExchangeV1beta1MsgUpdateParams, MsgUpdateParamsResponse as InjectiveExchangeV1beta1MsgUpdateParamsResponse, MsgDeposit as InjectiveExchangeV1beta1MsgDeposit, @@ -1921,6 +6925,8 @@ export { MsgEmergencySettleMarketResponse as InjectiveExchangeV1beta1MsgEmergencySettleMarketResponse, MsgIncreasePositionMargin as InjectiveExchangeV1beta1MsgIncreasePositionMargin, MsgIncreasePositionMarginResponse as InjectiveExchangeV1beta1MsgIncreasePositionMarginResponse, + MsgDecreasePositionMargin as InjectiveExchangeV1beta1MsgDecreasePositionMargin, + MsgDecreasePositionMarginResponse as InjectiveExchangeV1beta1MsgDecreasePositionMarginResponse, MsgPrivilegedExecuteContract as InjectiveExchangeV1beta1MsgPrivilegedExecuteContract, MsgPrivilegedExecuteContractResponse as InjectiveExchangeV1beta1MsgPrivilegedExecuteContractResponse, MsgRewardsOptOut as InjectiveExchangeV1beta1MsgRewardsOptOut, @@ -1931,13 +6937,17 @@ export { MsgSignDoc as InjectiveExchangeV1beta1MsgSignDoc, MsgAdminUpdateBinaryOptionsMarket as InjectiveExchangeV1beta1MsgAdminUpdateBinaryOptionsMarket, MsgAdminUpdateBinaryOptionsMarketResponse as InjectiveExchangeV1beta1MsgAdminUpdateBinaryOptionsMarketResponse, + MsgAuthorizeStakeGrants as InjectiveExchangeV1beta1MsgAuthorizeStakeGrants, + MsgAuthorizeStakeGrantsResponse as InjectiveExchangeV1beta1MsgAuthorizeStakeGrantsResponse, + MsgActivateStakeGrant as InjectiveExchangeV1beta1MsgActivateStakeGrant, + MsgActivateStakeGrantResponse as InjectiveExchangeV1beta1MsgActivateStakeGrantResponse, + MsgBatchExchangeModification as InjectiveExchangeV1beta1MsgBatchExchangeModification, + MsgBatchExchangeModificationResponse as InjectiveExchangeV1beta1MsgBatchExchangeModificationResponse, } from "./injective/exchange/v1beta1/tx_pb.js"; export { MsgDepositService as InjectiveExchangeV1beta1MsgDepositService, MsgWithdrawService as InjectiveExchangeV1beta1MsgWithdrawService, MsgInstantSpotMarketLaunchService as InjectiveExchangeV1beta1MsgInstantSpotMarketLaunchService, - MsgInstantPerpetualMarketLaunchService as InjectiveExchangeV1beta1MsgInstantPerpetualMarketLaunchService, - MsgInstantExpiryFuturesMarketLaunchService as InjectiveExchangeV1beta1MsgInstantExpiryFuturesMarketLaunchService, MsgCreateSpotLimitOrderService as InjectiveExchangeV1beta1MsgCreateSpotLimitOrderService, MsgBatchCreateSpotLimitOrdersService as InjectiveExchangeV1beta1MsgBatchCreateSpotLimitOrdersService, MsgCreateSpotMarketOrderService as InjectiveExchangeV1beta1MsgCreateSpotMarketOrderService, @@ -1960,10 +6970,14 @@ export { MsgLiquidatePositionService as InjectiveExchangeV1beta1MsgLiquidatePositionService, MsgEmergencySettleMarketService as InjectiveExchangeV1beta1MsgEmergencySettleMarketService, MsgIncreasePositionMarginService as InjectiveExchangeV1beta1MsgIncreasePositionMarginService, + MsgDecreasePositionMarginService as InjectiveExchangeV1beta1MsgDecreasePositionMarginService, MsgRewardsOptOutService as InjectiveExchangeV1beta1MsgRewardsOptOutService, MsgAdminUpdateBinaryOptionsMarketService as InjectiveExchangeV1beta1MsgAdminUpdateBinaryOptionsMarketService, - MsgReclaimLockedFundsService as InjectiveExchangeV1beta1MsgReclaimLockedFundsService, - MsgUpdateParamsService as InjectiveExchangeV1beta1MsgUpdateParamsService, + MsgUpdateSpotMarketService as InjectiveExchangeV1beta1MsgUpdateSpotMarketService, + MsgUpdateDerivativeMarketService as InjectiveExchangeV1beta1MsgUpdateDerivativeMarketService, + MsgAuthorizeStakeGrantsService as InjectiveExchangeV1beta1MsgAuthorizeStakeGrantsService, + MsgActivateStakeGrantService as InjectiveExchangeV1beta1MsgActivateStakeGrantService, + MsgBatchExchangeModificationService as InjectiveExchangeV1beta1MsgBatchExchangeModificationService, } from "./injective/exchange/v1beta1/tx_cosmes.js"; export { OrderSide as InjectiveExchangeV1beta1OrderSide, @@ -2090,10 +7104,32 @@ export { QueryTraderDerivativeConditionalOrdersRequest as InjectiveExchangeV1beta1QueryTraderDerivativeConditionalOrdersRequest, TrimmedDerivativeConditionalOrder as InjectiveExchangeV1beta1TrimmedDerivativeConditionalOrder, QueryTraderDerivativeConditionalOrdersResponse as InjectiveExchangeV1beta1QueryTraderDerivativeConditionalOrdersResponse, + QueryFullSpotOrderbookRequest as InjectiveExchangeV1beta1QueryFullSpotOrderbookRequest, + QueryFullSpotOrderbookResponse as InjectiveExchangeV1beta1QueryFullSpotOrderbookResponse, + QueryFullDerivativeOrderbookRequest as InjectiveExchangeV1beta1QueryFullDerivativeOrderbookRequest, + QueryFullDerivativeOrderbookResponse as InjectiveExchangeV1beta1QueryFullDerivativeOrderbookResponse, + TrimmedLimitOrder as InjectiveExchangeV1beta1TrimmedLimitOrder, QueryMarketAtomicExecutionFeeMultiplierRequest as InjectiveExchangeV1beta1QueryMarketAtomicExecutionFeeMultiplierRequest, QueryMarketAtomicExecutionFeeMultiplierResponse as InjectiveExchangeV1beta1QueryMarketAtomicExecutionFeeMultiplierResponse, + QueryActiveStakeGrantRequest as InjectiveExchangeV1beta1QueryActiveStakeGrantRequest, + QueryActiveStakeGrantResponse as InjectiveExchangeV1beta1QueryActiveStakeGrantResponse, + QueryGrantAuthorizationRequest as InjectiveExchangeV1beta1QueryGrantAuthorizationRequest, + QueryGrantAuthorizationResponse as InjectiveExchangeV1beta1QueryGrantAuthorizationResponse, + QueryGrantAuthorizationsRequest as InjectiveExchangeV1beta1QueryGrantAuthorizationsRequest, + QueryGrantAuthorizationsResponse as InjectiveExchangeV1beta1QueryGrantAuthorizationsResponse, + QueryMarketBalanceRequest as InjectiveExchangeV1beta1QueryMarketBalanceRequest, + QueryMarketBalanceResponse as InjectiveExchangeV1beta1QueryMarketBalanceResponse, + QueryMarketBalancesRequest as InjectiveExchangeV1beta1QueryMarketBalancesRequest, + QueryMarketBalancesResponse as InjectiveExchangeV1beta1QueryMarketBalancesResponse, + MarketBalance as InjectiveExchangeV1beta1MarketBalance, + QueryDenomMinNotionalRequest as InjectiveExchangeV1beta1QueryDenomMinNotionalRequest, + QueryDenomMinNotionalResponse as InjectiveExchangeV1beta1QueryDenomMinNotionalResponse, + QueryDenomMinNotionalsRequest as InjectiveExchangeV1beta1QueryDenomMinNotionalsRequest, + QueryDenomMinNotionalsResponse as InjectiveExchangeV1beta1QueryDenomMinNotionalsResponse, } from "./injective/exchange/v1beta1/query_pb.js"; export { + QueryL3DerivativeOrderBookService as InjectiveExchangeV1beta1QueryL3DerivativeOrderBookService, + QueryL3SpotOrderBookService as InjectiveExchangeV1beta1QueryL3SpotOrderBookService, QueryQueryExchangeParamsService as InjectiveExchangeV1beta1QueryQueryExchangeParamsService, QuerySubaccountDepositsService as InjectiveExchangeV1beta1QuerySubaccountDepositsService, QuerySubaccountDepositService as InjectiveExchangeV1beta1QuerySubaccountDepositService, @@ -2151,6 +7187,13 @@ export { QueryBinaryOptionsMarketsService as InjectiveExchangeV1beta1QueryBinaryOptionsMarketsService, QueryTraderDerivativeConditionalOrdersService as InjectiveExchangeV1beta1QueryTraderDerivativeConditionalOrdersService, QueryMarketAtomicExecutionFeeMultiplierService as InjectiveExchangeV1beta1QueryMarketAtomicExecutionFeeMultiplierService, + QueryActiveStakeGrantService as InjectiveExchangeV1beta1QueryActiveStakeGrantService, + QueryGrantAuthorizationService as InjectiveExchangeV1beta1QueryGrantAuthorizationService, + QueryGrantAuthorizationsService as InjectiveExchangeV1beta1QueryGrantAuthorizationsService, + QueryMarketBalanceService as InjectiveExchangeV1beta1QueryMarketBalanceService, + QueryMarketBalancesService as InjectiveExchangeV1beta1QueryMarketBalancesService, + QueryDenomMinNotionalService as InjectiveExchangeV1beta1QueryDenomMinNotionalService, + QueryDenomMinNotionalsService as InjectiveExchangeV1beta1QueryDenomMinNotionalsService, } from "./injective/exchange/v1beta1/query_cosmes.js"; export { ExchangeType as InjectiveExchangeV1beta1ExchangeType, @@ -2162,6 +7205,7 @@ export { BinaryOptionsMarketLaunchProposal as InjectiveExchangeV1beta1BinaryOptionsMarketLaunchProposal, ExpiryFuturesMarketLaunchProposal as InjectiveExchangeV1beta1ExpiryFuturesMarketLaunchProposal, DerivativeMarketParamUpdateProposal as InjectiveExchangeV1beta1DerivativeMarketParamUpdateProposal, + AdminInfo as InjectiveExchangeV1beta1AdminInfo, MarketForcedSettlementProposal as InjectiveExchangeV1beta1MarketForcedSettlementProposal, UpdateDenomDecimalsProposal as InjectiveExchangeV1beta1UpdateDenomDecimalsProposal, BinaryOptionsMarketParamUpdateProposal as InjectiveExchangeV1beta1BinaryOptionsMarketParamUpdateProposal, @@ -2174,6 +7218,7 @@ export { FeeDiscountProposal as InjectiveExchangeV1beta1FeeDiscountProposal, BatchCommunityPoolSpendProposal as InjectiveExchangeV1beta1BatchCommunityPoolSpendProposal, AtomicMarketOrderFeeMultiplierScheduleProposal as InjectiveExchangeV1beta1AtomicMarketOrderFeeMultiplierScheduleProposal, + DenomMinNotionalProposal as InjectiveExchangeV1beta1DenomMinNotionalProposal, } from "./injective/exchange/v1beta1/proposal_pb.js"; export { GenesisState as InjectiveExchangeV1beta1GenesisState, @@ -2191,6 +7236,8 @@ export { SubaccountNonce as InjectiveExchangeV1beta1SubaccountNonce, ExpiryFuturesMarketInfoState as InjectiveExchangeV1beta1ExpiryFuturesMarketInfoState, PerpetualMarketFundingState as InjectiveExchangeV1beta1PerpetualMarketFundingState, + FullGrantAuthorizations as InjectiveExchangeV1beta1FullGrantAuthorizations, + FullActiveGrant as InjectiveExchangeV1beta1FullActiveGrant, } from "./injective/exchange/v1beta1/genesis_pb.js"; export { AtomicMarketOrderAccessLevel as InjectiveExchangeV1beta1AtomicMarketOrderAccessLevel, @@ -2198,6 +7245,9 @@ export { OrderType as InjectiveExchangeV1beta1OrderType, ExecutionType as InjectiveExchangeV1beta1ExecutionType, OrderMask as InjectiveExchangeV1beta1OrderMask, + OpenNotionalCap as InjectiveExchangeV1beta1OpenNotionalCap, + OpenNotionalCapUncapped as InjectiveExchangeV1beta1OpenNotionalCapUncapped, + OpenNotionalCapCapped as InjectiveExchangeV1beta1OpenNotionalCapCapped, Params as InjectiveExchangeV1beta1Params, MarketFeeMultiplier as InjectiveExchangeV1beta1MarketFeeMultiplier, DerivativeMarket as InjectiveExchangeV1beta1DerivativeMarket, @@ -2246,6 +7296,10 @@ export { AggregateAccountVolumeRecord as InjectiveExchangeV1beta1AggregateAccountVolumeRecord, MarketVolume as InjectiveExchangeV1beta1MarketVolume, DenomDecimals as InjectiveExchangeV1beta1DenomDecimals, + GrantAuthorization as InjectiveExchangeV1beta1GrantAuthorization, + ActiveGrant as InjectiveExchangeV1beta1ActiveGrant, + EffectiveGrant as InjectiveExchangeV1beta1EffectiveGrant, + DenomMinNotional as InjectiveExchangeV1beta1DenomMinNotional, } from "./injective/exchange/v1beta1/exchange_pb.js"; export { EventBatchSpotExecution as InjectiveExchangeV1beta1EventBatchSpotExecution, @@ -2253,6 +7307,8 @@ export { EventLostFundsFromLiquidation as InjectiveExchangeV1beta1EventLostFundsFromLiquidation, EventBatchDerivativePosition as InjectiveExchangeV1beta1EventBatchDerivativePosition, EventDerivativeMarketPaused as InjectiveExchangeV1beta1EventDerivativeMarketPaused, + EventSettledMarketBalance as InjectiveExchangeV1beta1EventSettledMarketBalance, + EventNotSettledMarketBalance as InjectiveExchangeV1beta1EventNotSettledMarketBalance, EventMarketBeyondBankruptcy as InjectiveExchangeV1beta1EventMarketBeyondBankruptcy, EventAllPositionsHaircut as InjectiveExchangeV1beta1EventAllPositionsHaircut, EventBinaryOptionsMarketUpdate as InjectiveExchangeV1beta1EventBinaryOptionsMarketUpdate, @@ -2280,6 +7336,10 @@ export { EventOrderbookUpdate as InjectiveExchangeV1beta1EventOrderbookUpdate, OrderbookUpdate as InjectiveExchangeV1beta1OrderbookUpdate, Orderbook as InjectiveExchangeV1beta1Orderbook, + EventGrantAuthorizations as InjectiveExchangeV1beta1EventGrantAuthorizations, + EventGrantActivation as InjectiveExchangeV1beta1EventGrantActivation, + EventInvalidGrant as InjectiveExchangeV1beta1EventInvalidGrant, + EventOrderCancelFail as InjectiveExchangeV1beta1EventOrderCancelFail, } from "./injective/exchange/v1beta1/events_pb.js"; export { CreateSpotLimitOrderAuthz as InjectiveExchangeV1beta1CreateSpotLimitOrderAuthz, @@ -2293,7 +7353,157 @@ export { CancelDerivativeOrderAuthz as InjectiveExchangeV1beta1CancelDerivativeOrderAuthz, BatchCancelDerivativeOrdersAuthz as InjectiveExchangeV1beta1BatchCancelDerivativeOrdersAuthz, BatchUpdateOrdersAuthz as InjectiveExchangeV1beta1BatchUpdateOrdersAuthz, + GenericExchangeAuthorization as InjectiveExchangeV1beta1GenericExchangeAuthorization, } from "./injective/exchange/v1beta1/authz_pb.js"; +export { + TxResult as InjectiveEvmV1TxResult, +} from "./injective/evm/v1/tx_result_pb.js"; +export { + MsgEthereumTx as InjectiveEvmV1MsgEthereumTx, + LegacyTx as InjectiveEvmV1LegacyTx, + AccessListTx as InjectiveEvmV1AccessListTx, + DynamicFeeTx as InjectiveEvmV1DynamicFeeTx, + ExtensionOptionsEthereumTx as InjectiveEvmV1ExtensionOptionsEthereumTx, + MsgEthereumTxResponse as InjectiveEvmV1MsgEthereumTxResponse, + MsgUpdateParams as InjectiveEvmV1MsgUpdateParams, + MsgUpdateParamsResponse as InjectiveEvmV1MsgUpdateParamsResponse, +} from "./injective/evm/v1/tx_pb.js"; +export { + MsgEthereumTxService as InjectiveEvmV1MsgEthereumTxService, + MsgUpdateParamsService as InjectiveEvmV1MsgUpdateParamsService, +} from "./injective/evm/v1/tx_cosmes.js"; +export { + TransactionLogs as InjectiveEvmV1TransactionLogs, +} from "./injective/evm/v1/transaction_logs_pb.js"; +export { + TraceConfig as InjectiveEvmV1TraceConfig, +} from "./injective/evm/v1/trace_config_pb.js"; +export { + State as InjectiveEvmV1State, +} from "./injective/evm/v1/state_pb.js"; +export { + QueryAccountRequest as InjectiveEvmV1QueryAccountRequest, + QueryAccountResponse as InjectiveEvmV1QueryAccountResponse, + QueryCosmosAccountRequest as InjectiveEvmV1QueryCosmosAccountRequest, + QueryCosmosAccountResponse as InjectiveEvmV1QueryCosmosAccountResponse, + QueryValidatorAccountRequest as InjectiveEvmV1QueryValidatorAccountRequest, + QueryValidatorAccountResponse as InjectiveEvmV1QueryValidatorAccountResponse, + QueryBalanceRequest as InjectiveEvmV1QueryBalanceRequest, + QueryBalanceResponse as InjectiveEvmV1QueryBalanceResponse, + QueryStorageRequest as InjectiveEvmV1QueryStorageRequest, + QueryStorageResponse as InjectiveEvmV1QueryStorageResponse, + QueryCodeRequest as InjectiveEvmV1QueryCodeRequest, + QueryCodeResponse as InjectiveEvmV1QueryCodeResponse, + QueryTxLogsRequest as InjectiveEvmV1QueryTxLogsRequest, + QueryTxLogsResponse as InjectiveEvmV1QueryTxLogsResponse, + QueryParamsRequest as InjectiveEvmV1QueryParamsRequest, + QueryParamsResponse as InjectiveEvmV1QueryParamsResponse, + EthCallRequest as InjectiveEvmV1EthCallRequest, + EstimateGasResponse as InjectiveEvmV1EstimateGasResponse, + QueryTraceTxRequest as InjectiveEvmV1QueryTraceTxRequest, + QueryTraceTxResponse as InjectiveEvmV1QueryTraceTxResponse, + QueryTraceCallRequest as InjectiveEvmV1QueryTraceCallRequest, + QueryTraceCallResponse as InjectiveEvmV1QueryTraceCallResponse, + QueryTraceBlockRequest as InjectiveEvmV1QueryTraceBlockRequest, + QueryTraceBlockResponse as InjectiveEvmV1QueryTraceBlockResponse, + QueryBaseFeeRequest as InjectiveEvmV1QueryBaseFeeRequest, + QueryBaseFeeResponse as InjectiveEvmV1QueryBaseFeeResponse, +} from "./injective/evm/v1/query_pb.js"; +export { + QueryAccountService as InjectiveEvmV1QueryAccountService, + QueryCosmosAccountService as InjectiveEvmV1QueryCosmosAccountService, + QueryValidatorAccountService as InjectiveEvmV1QueryValidatorAccountService, + QueryBalanceService as InjectiveEvmV1QueryBalanceService, + QueryStorageService as InjectiveEvmV1QueryStorageService, + QueryCodeService as InjectiveEvmV1QueryCodeService, + QueryParamsService as InjectiveEvmV1QueryParamsService, + QueryEthCallService as InjectiveEvmV1QueryEthCallService, + QueryEstimateGasService as InjectiveEvmV1QueryEstimateGasService, + QueryTraceTxService as InjectiveEvmV1QueryTraceTxService, + QueryTraceBlockService as InjectiveEvmV1QueryTraceBlockService, + QueryTraceCallService as InjectiveEvmV1QueryTraceCallService, + QueryBaseFeeService as InjectiveEvmV1QueryBaseFeeService, +} from "./injective/evm/v1/query_cosmes.js"; +export { + Params as InjectiveEvmV1Params, +} from "./injective/evm/v1/params_pb.js"; +export { + Log as InjectiveEvmV1Log, +} from "./injective/evm/v1/log_pb.js"; +export { + GenesisState as InjectiveEvmV1GenesisState, + GenesisAccount as InjectiveEvmV1GenesisAccount, +} from "./injective/evm/v1/genesis_pb.js"; +export { + EventEthereumTx as InjectiveEvmV1EventEthereumTx, + EventTxLog as InjectiveEvmV1EventTxLog, + EventMessage as InjectiveEvmV1EventMessage, + EventBlockBloom as InjectiveEvmV1EventBlockBloom, +} from "./injective/evm/v1/events_pb.js"; +export { + ChainConfig as InjectiveEvmV1ChainConfig, + BlobScheduleConfig as InjectiveEvmV1BlobScheduleConfig, + BlobConfig as InjectiveEvmV1BlobConfig, +} from "./injective/evm/v1/chain_config_pb.js"; +export { + AccessTuple as InjectiveEvmV1AccessTuple, +} from "./injective/evm/v1/access_tuple_pb.js"; +export { + MsgUpdateParams as InjectiveErc20V1beta1MsgUpdateParams, + MsgUpdateParamsResponse as InjectiveErc20V1beta1MsgUpdateParamsResponse, + MsgCreateTokenPair as InjectiveErc20V1beta1MsgCreateTokenPair, + MsgCreateTokenPairResponse as InjectiveErc20V1beta1MsgCreateTokenPairResponse, + MsgDeleteTokenPair as InjectiveErc20V1beta1MsgDeleteTokenPair, + MsgDeleteTokenPairResponse as InjectiveErc20V1beta1MsgDeleteTokenPairResponse, +} from "./injective/erc20/v1beta1/tx_pb.js"; +export { + MsgUpdateParamsService as InjectiveErc20V1beta1MsgUpdateParamsService, + MsgCreateTokenPairService as InjectiveErc20V1beta1MsgCreateTokenPairService, + MsgDeleteTokenPairService as InjectiveErc20V1beta1MsgDeleteTokenPairService, +} from "./injective/erc20/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as InjectiveErc20V1beta1QueryParamsRequest, + QueryParamsResponse as InjectiveErc20V1beta1QueryParamsResponse, + QueryAllTokenPairsRequest as InjectiveErc20V1beta1QueryAllTokenPairsRequest, + QueryAllTokenPairsResponse as InjectiveErc20V1beta1QueryAllTokenPairsResponse, + QueryTokenPairByDenomRequest as InjectiveErc20V1beta1QueryTokenPairByDenomRequest, + QueryTokenPairByDenomResponse as InjectiveErc20V1beta1QueryTokenPairByDenomResponse, + QueryTokenPairByERC20AddressRequest as InjectiveErc20V1beta1QueryTokenPairByERC20AddressRequest, + QueryTokenPairByERC20AddressResponse as InjectiveErc20V1beta1QueryTokenPairByERC20AddressResponse, +} from "./injective/erc20/v1beta1/query_pb.js"; +export { + QueryParamsService as InjectiveErc20V1beta1QueryParamsService, + QueryAllTokenPairsService as InjectiveErc20V1beta1QueryAllTokenPairsService, + QueryTokenPairByDenomService as InjectiveErc20V1beta1QueryTokenPairByDenomService, + QueryTokenPairByERC20AddressService as InjectiveErc20V1beta1QueryTokenPairByERC20AddressService, +} from "./injective/erc20/v1beta1/query_cosmes.js"; +export { + Params as InjectiveErc20V1beta1Params, +} from "./injective/erc20/v1beta1/params_pb.js"; +export { + GenesisState as InjectiveErc20V1beta1GenesisState, +} from "./injective/erc20/v1beta1/genesis_pb.js"; +export { + EventCreateTokenPair as InjectiveErc20V1beta1EventCreateTokenPair, + EventDeleteTokenPair as InjectiveErc20V1beta1EventDeleteTokenPair, +} from "./injective/erc20/v1beta1/events_pb.js"; +export { + TokenPair as InjectiveErc20V1beta1TokenPair, +} from "./injective/erc20/v1beta1/erc20_pb.js"; +export { + RecoveredSinceDowntimeOfLengthRequest as InjectiveDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthRequest, + RecoveredSinceDowntimeOfLengthResponse as InjectiveDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthResponse, +} from "./injective/downtimedetector/v1beta1/query_pb.js"; +export { + QueryRecoveredSinceDowntimeOfLengthService as InjectiveDowntimedetectorV1beta1QueryRecoveredSinceDowntimeOfLengthService, +} from "./injective/downtimedetector/v1beta1/query_cosmes.js"; +export { + GenesisDowntimeEntry as InjectiveDowntimedetectorV1beta1GenesisDowntimeEntry, + GenesisState as InjectiveDowntimedetectorV1beta1GenesisState, +} from "./injective/downtimedetector/v1beta1/genesis_pb.js"; +export { + Downtime as InjectiveDowntimedetectorV1beta1Downtime, +} from "./injective/downtimedetector/v1beta1/downtime_duration_pb.js"; export { PubKey as InjectiveCryptoV1beta1Ethsecp256k1PubKey, PrivKey as InjectiveCryptoV1beta1Ethsecp256k1PrivKey, @@ -2315,11 +7525,14 @@ export { QueryCurrentAuctionBasketResponse as InjectiveAuctionV1beta1QueryCurrentAuctionBasketResponse, QueryModuleStateRequest as InjectiveAuctionV1beta1QueryModuleStateRequest, QueryModuleStateResponse as InjectiveAuctionV1beta1QueryModuleStateResponse, + QueryLastAuctionResultRequest as InjectiveAuctionV1beta1QueryLastAuctionResultRequest, + QueryLastAuctionResultResponse as InjectiveAuctionV1beta1QueryLastAuctionResultResponse, } from "./injective/auction/v1beta1/query_pb.js"; export { QueryAuctionParamsService as InjectiveAuctionV1beta1QueryAuctionParamsService, QueryCurrentAuctionBasketService as InjectiveAuctionV1beta1QueryCurrentAuctionBasketService, QueryAuctionModuleStateService as InjectiveAuctionV1beta1QueryAuctionModuleStateService, + QueryLastAuctionResultService as InjectiveAuctionV1beta1QueryLastAuctionResultService, } from "./injective/auction/v1beta1/query_cosmes.js"; export { GenesisState as InjectiveAuctionV1beta1GenesisState, @@ -2327,6 +7540,7 @@ export { export { Params as InjectiveAuctionV1beta1Params, Bid as InjectiveAuctionV1beta1Bid, + LastAuctionResult as InjectiveAuctionV1beta1LastAuctionResult, EventBid as InjectiveAuctionV1beta1EventBid, EventAuctionResult as InjectiveAuctionV1beta1EventAuctionResult, EventAuctionStart as InjectiveAuctionV1beta1EventAuctionStart, @@ -2738,9 +7952,12 @@ export { export { MsgUpdateParams as IbcApplicationsInterchainAccountsHostV1MsgUpdateParams, MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsResponse, + MsgModuleQuerySafe as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafe, + MsgModuleQuerySafeResponse as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeResponse, } from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; export { MsgUpdateParamsService as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsService, + MsgModuleQuerySafeService as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeService, } from "./ibc/applications/interchain_accounts/host/v1/tx_cosmes.js"; export { QueryParamsRequest as IbcApplicationsInterchainAccountsHostV1QueryParamsRequest, @@ -2751,6 +7968,7 @@ export { } from "./ibc/applications/interchain_accounts/host/v1/query_cosmes.js"; export { Params as IbcApplicationsInterchainAccountsHostV1Params, + QueryRequest as IbcApplicationsInterchainAccountsHostV1QueryRequest, } from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; export { GenesisState as IbcApplicationsInterchainAccountsGenesisV1GenesisState, @@ -2854,6 +8072,245 @@ export { export { IncentivizedAcknowledgement as IbcApplicationsFeeV1IncentivizedAcknowledgement, } from "./ibc/applications/fee/v1/ack_pb.js"; +export { + MsgUpdateParams as GaiaLiquidV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as GaiaLiquidV1beta1MsgUpdateParamsResponse, + MsgTokenizeShares as GaiaLiquidV1beta1MsgTokenizeShares, + MsgTokenizeSharesResponse as GaiaLiquidV1beta1MsgTokenizeSharesResponse, + MsgRedeemTokensForShares as GaiaLiquidV1beta1MsgRedeemTokensForShares, + MsgRedeemTokensForSharesResponse as GaiaLiquidV1beta1MsgRedeemTokensForSharesResponse, + MsgTransferTokenizeShareRecord as GaiaLiquidV1beta1MsgTransferTokenizeShareRecord, + MsgTransferTokenizeShareRecordResponse as GaiaLiquidV1beta1MsgTransferTokenizeShareRecordResponse, + MsgDisableTokenizeShares as GaiaLiquidV1beta1MsgDisableTokenizeShares, + MsgDisableTokenizeSharesResponse as GaiaLiquidV1beta1MsgDisableTokenizeSharesResponse, + MsgEnableTokenizeShares as GaiaLiquidV1beta1MsgEnableTokenizeShares, + MsgEnableTokenizeSharesResponse as GaiaLiquidV1beta1MsgEnableTokenizeSharesResponse, + MsgWithdrawTokenizeShareRecordReward as GaiaLiquidV1beta1MsgWithdrawTokenizeShareRecordReward, + MsgWithdrawTokenizeShareRecordRewardResponse as GaiaLiquidV1beta1MsgWithdrawTokenizeShareRecordRewardResponse, + MsgWithdrawAllTokenizeShareRecordReward as GaiaLiquidV1beta1MsgWithdrawAllTokenizeShareRecordReward, + MsgWithdrawAllTokenizeShareRecordRewardResponse as GaiaLiquidV1beta1MsgWithdrawAllTokenizeShareRecordRewardResponse, +} from "./gaia/liquid/v1beta1/tx_pb.js"; +export { + MsgUpdateParamsService as GaiaLiquidV1beta1MsgUpdateParamsService, + MsgTokenizeSharesService as GaiaLiquidV1beta1MsgTokenizeSharesService, + MsgRedeemTokensForSharesService as GaiaLiquidV1beta1MsgRedeemTokensForSharesService, + MsgTransferTokenizeShareRecordService as GaiaLiquidV1beta1MsgTransferTokenizeShareRecordService, + MsgDisableTokenizeSharesService as GaiaLiquidV1beta1MsgDisableTokenizeSharesService, + MsgEnableTokenizeSharesService as GaiaLiquidV1beta1MsgEnableTokenizeSharesService, + MsgWithdrawTokenizeShareRecordRewardService as GaiaLiquidV1beta1MsgWithdrawTokenizeShareRecordRewardService, + MsgWithdrawAllTokenizeShareRecordRewardService as GaiaLiquidV1beta1MsgWithdrawAllTokenizeShareRecordRewardService, +} from "./gaia/liquid/v1beta1/tx_cosmes.js"; +export { + QueryLiquidValidatorRequest as GaiaLiquidV1beta1QueryLiquidValidatorRequest, + QueryLiquidValidatorResponse as GaiaLiquidV1beta1QueryLiquidValidatorResponse, + QueryLiquidValidatorsRequest as GaiaLiquidV1beta1QueryLiquidValidatorsRequest, + QueryLiquidValidatorsResponse as GaiaLiquidV1beta1QueryLiquidValidatorsResponse, + QueryParamsRequest as GaiaLiquidV1beta1QueryParamsRequest, + QueryParamsResponse as GaiaLiquidV1beta1QueryParamsResponse, + QueryTokenizeShareRecordByIdRequest as GaiaLiquidV1beta1QueryTokenizeShareRecordByIdRequest, + QueryTokenizeShareRecordByIdResponse as GaiaLiquidV1beta1QueryTokenizeShareRecordByIdResponse, + QueryTokenizeShareRecordByDenomRequest as GaiaLiquidV1beta1QueryTokenizeShareRecordByDenomRequest, + QueryTokenizeShareRecordByDenomResponse as GaiaLiquidV1beta1QueryTokenizeShareRecordByDenomResponse, + QueryTokenizeShareRecordsOwnedRequest as GaiaLiquidV1beta1QueryTokenizeShareRecordsOwnedRequest, + QueryTokenizeShareRecordsOwnedResponse as GaiaLiquidV1beta1QueryTokenizeShareRecordsOwnedResponse, + QueryAllTokenizeShareRecordsRequest as GaiaLiquidV1beta1QueryAllTokenizeShareRecordsRequest, + QueryAllTokenizeShareRecordsResponse as GaiaLiquidV1beta1QueryAllTokenizeShareRecordsResponse, + QueryLastTokenizeShareRecordIdRequest as GaiaLiquidV1beta1QueryLastTokenizeShareRecordIdRequest, + QueryLastTokenizeShareRecordIdResponse as GaiaLiquidV1beta1QueryLastTokenizeShareRecordIdResponse, + QueryTotalTokenizeSharedAssetsRequest as GaiaLiquidV1beta1QueryTotalTokenizeSharedAssetsRequest, + QueryTotalTokenizeSharedAssetsResponse as GaiaLiquidV1beta1QueryTotalTokenizeSharedAssetsResponse, + QueryTotalLiquidStaked as GaiaLiquidV1beta1QueryTotalLiquidStaked, + QueryTotalLiquidStakedResponse as GaiaLiquidV1beta1QueryTotalLiquidStakedResponse, + QueryTokenizeShareLockInfo as GaiaLiquidV1beta1QueryTokenizeShareLockInfo, + QueryTokenizeShareLockInfoResponse as GaiaLiquidV1beta1QueryTokenizeShareLockInfoResponse, + QueryTokenizeShareRecordRewardRequest as GaiaLiquidV1beta1QueryTokenizeShareRecordRewardRequest, + QueryTokenizeShareRecordRewardResponse as GaiaLiquidV1beta1QueryTokenizeShareRecordRewardResponse, +} from "./gaia/liquid/v1beta1/query_pb.js"; +export { + QueryLiquidValidatorsService as GaiaLiquidV1beta1QueryLiquidValidatorsService, + QueryLiquidValidatorService as GaiaLiquidV1beta1QueryLiquidValidatorService, + QueryTokenizeShareRecordByIdService as GaiaLiquidV1beta1QueryTokenizeShareRecordByIdService, + QueryTokenizeShareRecordByDenomService as GaiaLiquidV1beta1QueryTokenizeShareRecordByDenomService, + QueryTokenizeShareRecordsOwnedService as GaiaLiquidV1beta1QueryTokenizeShareRecordsOwnedService, + QueryAllTokenizeShareRecordsService as GaiaLiquidV1beta1QueryAllTokenizeShareRecordsService, + QueryLastTokenizeShareRecordIdService as GaiaLiquidV1beta1QueryLastTokenizeShareRecordIdService, + QueryTotalTokenizeSharedAssetsService as GaiaLiquidV1beta1QueryTotalTokenizeSharedAssetsService, + QueryTotalLiquidStakedService as GaiaLiquidV1beta1QueryTotalLiquidStakedService, + QueryTokenizeShareLockInfoService as GaiaLiquidV1beta1QueryTokenizeShareLockInfoService, + QueryParamsService as GaiaLiquidV1beta1QueryParamsService, + QueryTokenizeShareRecordRewardService as GaiaLiquidV1beta1QueryTokenizeShareRecordRewardService, +} from "./gaia/liquid/v1beta1/query_cosmes.js"; +export { + TokenizeShareLockStatus as GaiaLiquidV1beta1TokenizeShareLockStatus, + Params as GaiaLiquidV1beta1Params, + TokenizeShareRecord as GaiaLiquidV1beta1TokenizeShareRecord, + PendingTokenizeShareAuthorizations as GaiaLiquidV1beta1PendingTokenizeShareAuthorizations, + TokenizeShareRecordReward as GaiaLiquidV1beta1TokenizeShareRecordReward, + LiquidValidator as GaiaLiquidV1beta1LiquidValidator, +} from "./gaia/liquid/v1beta1/liquid_pb.js"; +export { + GenesisState as GaiaLiquidV1beta1GenesisState, + TokenizeShareLock as GaiaLiquidV1beta1TokenizeShareLock, +} from "./gaia/liquid/v1beta1/genesis_pb.js"; +export { + MsgUpdateParams as GaiaGlobalfeeV1beta1MsgUpdateParams, + MsgUpdateParamsResponse as GaiaGlobalfeeV1beta1MsgUpdateParamsResponse, +} from "./gaia/globalfee/v1beta1/tx_pb.js"; +export { + MsgUpdateParamsService as GaiaGlobalfeeV1beta1MsgUpdateParamsService, +} from "./gaia/globalfee/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as GaiaGlobalfeeV1beta1QueryParamsRequest, + QueryParamsResponse as GaiaGlobalfeeV1beta1QueryParamsResponse, +} from "./gaia/globalfee/v1beta1/query_pb.js"; +export { + QueryParamsService as GaiaGlobalfeeV1beta1QueryParamsService, +} from "./gaia/globalfee/v1beta1/query_cosmes.js"; +export { + Params as GaiaGlobalfeeV1beta1Params, +} from "./gaia/globalfee/v1beta1/params_pb.js"; +export { + GenesisState as GaiaGlobalfeeV1beta1GenesisState, +} from "./gaia/globalfee/v1beta1/genesis_pb.js"; +export { + ClawbackVestingAccount as EvmosVestingV2ClawbackVestingAccount, + ClawbackProposal as EvmosVestingV2ClawbackProposal, +} from "./evmos/vesting/v2/vesting_pb.js"; +export { + MsgCreateClawbackVestingAccount as EvmosVestingV2MsgCreateClawbackVestingAccount, + MsgCreateClawbackVestingAccountResponse as EvmosVestingV2MsgCreateClawbackVestingAccountResponse, + MsgFundVestingAccount as EvmosVestingV2MsgFundVestingAccount, + MsgFundVestingAccountResponse as EvmosVestingV2MsgFundVestingAccountResponse, + MsgClawback as EvmosVestingV2MsgClawback, + MsgClawbackResponse as EvmosVestingV2MsgClawbackResponse, + MsgUpdateVestingFunder as EvmosVestingV2MsgUpdateVestingFunder, + MsgUpdateVestingFunderResponse as EvmosVestingV2MsgUpdateVestingFunderResponse, + MsgConvertVestingAccount as EvmosVestingV2MsgConvertVestingAccount, + MsgConvertVestingAccountResponse as EvmosVestingV2MsgConvertVestingAccountResponse, +} from "./evmos/vesting/v2/tx_pb.js"; +export { + MsgCreateClawbackVestingAccountService as EvmosVestingV2MsgCreateClawbackVestingAccountService, + MsgFundVestingAccountService as EvmosVestingV2MsgFundVestingAccountService, + MsgClawbackService as EvmosVestingV2MsgClawbackService, + MsgUpdateVestingFunderService as EvmosVestingV2MsgUpdateVestingFunderService, + MsgConvertVestingAccountService as EvmosVestingV2MsgConvertVestingAccountService, +} from "./evmos/vesting/v2/tx_cosmes.js"; +export { + QueryBalancesRequest as EvmosVestingV2QueryBalancesRequest, + QueryBalancesResponse as EvmosVestingV2QueryBalancesResponse, +} from "./evmos/vesting/v2/query_pb.js"; +export { + QueryBalancesService as EvmosVestingV2QueryBalancesService, +} from "./evmos/vesting/v2/query_cosmes.js"; +export { + EventCreateClawbackVestingAccount as EvmosVestingV2EventCreateClawbackVestingAccount, + EventFundVestingAccount as EvmosVestingV2EventFundVestingAccount, + EventClawback as EvmosVestingV2EventClawback, + EventUpdateVestingFunder as EvmosVestingV2EventUpdateVestingFunder, +} from "./evmos/vesting/v2/events_pb.js"; +export { + ClawbackVestingAccount as EvmosVestingV1ClawbackVestingAccount, +} from "./evmos/vesting/v1/vesting_pb.js"; +export { + MsgUpdateParams as EvmosInflationV1MsgUpdateParams, + MsgUpdateParamsResponse as EvmosInflationV1MsgUpdateParamsResponse, +} from "./evmos/inflation/v1/tx_pb.js"; +export { + MsgUpdateParamsService as EvmosInflationV1MsgUpdateParamsService, +} from "./evmos/inflation/v1/tx_cosmes.js"; +export { + QueryPeriodRequest as EvmosInflationV1QueryPeriodRequest, + QueryPeriodResponse as EvmosInflationV1QueryPeriodResponse, + QueryEpochMintProvisionRequest as EvmosInflationV1QueryEpochMintProvisionRequest, + QueryEpochMintProvisionResponse as EvmosInflationV1QueryEpochMintProvisionResponse, + QuerySkippedEpochsRequest as EvmosInflationV1QuerySkippedEpochsRequest, + QuerySkippedEpochsResponse as EvmosInflationV1QuerySkippedEpochsResponse, + QueryCirculatingSupplyRequest as EvmosInflationV1QueryCirculatingSupplyRequest, + QueryCirculatingSupplyResponse as EvmosInflationV1QueryCirculatingSupplyResponse, + QueryInflationRateRequest as EvmosInflationV1QueryInflationRateRequest, + QueryInflationRateResponse as EvmosInflationV1QueryInflationRateResponse, + QueryParamsRequest as EvmosInflationV1QueryParamsRequest, + QueryParamsResponse as EvmosInflationV1QueryParamsResponse, +} from "./evmos/inflation/v1/query_pb.js"; +export { + QueryPeriodService as EvmosInflationV1QueryPeriodService, + QueryEpochMintProvisionService as EvmosInflationV1QueryEpochMintProvisionService, + QuerySkippedEpochsService as EvmosInflationV1QuerySkippedEpochsService, + QueryCirculatingSupplyService as EvmosInflationV1QueryCirculatingSupplyService, + QueryInflationRateService as EvmosInflationV1QueryInflationRateService, + QueryParamsService as EvmosInflationV1QueryParamsService, +} from "./evmos/inflation/v1/query_cosmes.js"; +export { + InflationDistribution as EvmosInflationV1InflationDistribution, + ExponentialCalculation as EvmosInflationV1ExponentialCalculation, +} from "./evmos/inflation/v1/inflation_pb.js"; +export { + GenesisState as EvmosInflationV1GenesisState, + Params as EvmosInflationV1Params, +} from "./evmos/inflation/v1/genesis_pb.js"; +export { + MsgConvertERC20 as EvmosErc20V1MsgConvertERC20, + MsgConvertERC20Response as EvmosErc20V1MsgConvertERC20Response, + MsgConvertCoin as EvmosErc20V1MsgConvertCoin, + MsgConvertCoinResponse as EvmosErc20V1MsgConvertCoinResponse, + MsgUpdateParams as EvmosErc20V1MsgUpdateParams, + MsgUpdateParamsResponse as EvmosErc20V1MsgUpdateParamsResponse, + MsgRegisterERC20 as EvmosErc20V1MsgRegisterERC20, + MsgRegisterERC20Response as EvmosErc20V1MsgRegisterERC20Response, + MsgToggleConversion as EvmosErc20V1MsgToggleConversion, + MsgToggleConversionResponse as EvmosErc20V1MsgToggleConversionResponse, +} from "./evmos/erc20/v1/tx_pb.js"; +export { + MsgConvertERC20Service as EvmosErc20V1MsgConvertERC20Service, + MsgUpdateParamsService as EvmosErc20V1MsgUpdateParamsService, + MsgRegisterERC20Service as EvmosErc20V1MsgRegisterERC20Service, + MsgToggleConversionService as EvmosErc20V1MsgToggleConversionService, +} from "./evmos/erc20/v1/tx_cosmes.js"; +export { + QueryTokenPairsRequest as EvmosErc20V1QueryTokenPairsRequest, + QueryTokenPairsResponse as EvmosErc20V1QueryTokenPairsResponse, + QueryTokenPairRequest as EvmosErc20V1QueryTokenPairRequest, + QueryTokenPairResponse as EvmosErc20V1QueryTokenPairResponse, + QueryParamsRequest as EvmosErc20V1QueryParamsRequest, + QueryParamsResponse as EvmosErc20V1QueryParamsResponse, +} from "./evmos/erc20/v1/query_pb.js"; +export { + QueryTokenPairsService as EvmosErc20V1QueryTokenPairsService, + QueryTokenPairService as EvmosErc20V1QueryTokenPairService, + QueryParamsService as EvmosErc20V1QueryParamsService, +} from "./evmos/erc20/v1/query_cosmes.js"; +export { + GenesisState as EvmosErc20V1GenesisState, + Params as EvmosErc20V1Params, +} from "./evmos/erc20/v1/genesis_pb.js"; +export { + EventRegisterPair as EvmosErc20V1EventRegisterPair, + EventToggleTokenConversion as EvmosErc20V1EventToggleTokenConversion, + EventConvertCoin as EvmosErc20V1EventConvertCoin, + EventConvertERC20 as EvmosErc20V1EventConvertERC20, +} from "./evmos/erc20/v1/events_pb.js"; +export { + Owner as EvmosErc20V1Owner, + TokenPair as EvmosErc20V1TokenPair, + RegisterCoinProposal as EvmosErc20V1RegisterCoinProposal, + ProposalMetadata as EvmosErc20V1ProposalMetadata, + RegisterERC20Proposal as EvmosErc20V1RegisterERC20Proposal, + ToggleTokenConversionProposal as EvmosErc20V1ToggleTokenConversionProposal, +} from "./evmos/erc20/v1/erc20_pb.js"; +export { + QueryEpochsInfoRequest as EvmosEpochsV1QueryEpochsInfoRequest, + QueryEpochsInfoResponse as EvmosEpochsV1QueryEpochsInfoResponse, + QueryCurrentEpochRequest as EvmosEpochsV1QueryCurrentEpochRequest, + QueryCurrentEpochResponse as EvmosEpochsV1QueryCurrentEpochResponse, +} from "./evmos/epochs/v1/query_pb.js"; +export { + QueryEpochInfosService as EvmosEpochsV1QueryEpochInfosService, + QueryCurrentEpochService as EvmosEpochsV1QueryCurrentEpochService, +} from "./evmos/epochs/v1/query_cosmes.js"; +export { + EpochInfo as EvmosEpochsV1EpochInfo, + GenesisState as EvmosEpochsV1GenesisState, +} from "./evmos/epochs/v1/genesis_pb.js"; export { ExtensionOptionsWeb3Tx as EthermintTypesV1ExtensionOptionsWeb3Tx, } from "./ethermint/types/v1/web3_pb.js"; @@ -2935,6 +8392,10 @@ export { QueryTraceBlockResponse as EthermintEvmV1QueryTraceBlockResponse, QueryBaseFeeRequest as EthermintEvmV1QueryBaseFeeRequest, QueryBaseFeeResponse as EthermintEvmV1QueryBaseFeeResponse, + QueryGlobalMinGasPriceRequest as EthermintEvmV1QueryGlobalMinGasPriceRequest, + QueryGlobalMinGasPriceResponse as EthermintEvmV1QueryGlobalMinGasPriceResponse, + QueryConfigRequest as EthermintEvmV1QueryConfigRequest, + QueryConfigResponse as EthermintEvmV1QueryConfigResponse, } from "./ethermint/evm/v1/query_pb.js"; export { QueryAccountService as EthermintEvmV1QueryAccountService, @@ -2949,13 +8410,18 @@ export { QueryTraceTxService as EthermintEvmV1QueryTraceTxService, QueryTraceBlockService as EthermintEvmV1QueryTraceBlockService, QueryBaseFeeService as EthermintEvmV1QueryBaseFeeService, + QueryGlobalMinGasPriceService as EthermintEvmV1QueryGlobalMinGasPriceService, + QueryConfigService as EthermintEvmV1QueryConfigService, } from "./ethermint/evm/v1/query_cosmes.js"; export { GenesisState as EthermintEvmV1GenesisState, GenesisAccount as EthermintEvmV1GenesisAccount, } from "./ethermint/evm/v1/genesis_pb.js"; export { + AccessType as EthermintEvmV1AccessType, Params as EthermintEvmV1Params, + AccessControl as EthermintEvmV1AccessControl, + AccessControlType as EthermintEvmV1AccessControlType, ChainConfig as EthermintEvmV1ChainConfig, State as EthermintEvmV1State, TransactionLogs as EthermintEvmV1TransactionLogs, @@ -2975,296 +8441,1499 @@ export { PrivKey as EthermintCryptoV1Ethsecp256k1PrivKey, } from "./ethermint/crypto/v1/ethsecp256k1/keys_pb.js"; export { - QueryParamsRequest as DymensionTxfeesV1beta1QueryParamsRequest, - QueryParamsResponse as DymensionTxfeesV1beta1QueryParamsResponse, - QueryFeeTokensRequest as DymensionTxfeesV1beta1QueryFeeTokensRequest, - QueryFeeTokensResponse as DymensionTxfeesV1beta1QueryFeeTokensResponse, - QueryDenomSpotPriceRequest as DymensionTxfeesV1beta1QueryDenomSpotPriceRequest, - QueryDenomSpotPriceResponse as DymensionTxfeesV1beta1QueryDenomSpotPriceResponse, - QueryDenomPoolIdRequest as DymensionTxfeesV1beta1QueryDenomPoolIdRequest, - QueryDenomPoolIdResponse as DymensionTxfeesV1beta1QueryDenomPoolIdResponse, - QueryBaseDenomRequest as DymensionTxfeesV1beta1QueryBaseDenomRequest, - QueryBaseDenomResponse as DymensionTxfeesV1beta1QueryBaseDenomResponse, -} from "./dymension/txfees/v1beta1/query_pb.js"; -export { - QueryParamsService as DymensionTxfeesV1beta1QueryParamsService, - QueryFeeTokensService as DymensionTxfeesV1beta1QueryFeeTokensService, - QueryDenomSpotPriceService as DymensionTxfeesV1beta1QueryDenomSpotPriceService, - QueryDenomPoolIdService as DymensionTxfeesV1beta1QueryDenomPoolIdService, - QueryBaseDenomService as DymensionTxfeesV1beta1QueryBaseDenomService, -} from "./dymension/txfees/v1beta1/query_cosmes.js"; -export { - GenesisState as DymensionTxfeesV1beta1GenesisState, - Params as DymensionTxfeesV1beta1Params, -} from "./dymension/txfees/v1beta1/genesis_pb.js"; -export { - FeeToken as DymensionTxfeesV1beta1FeeToken, -} from "./dymension/txfees/v1beta1/feetoken_pb.js"; -export { - SwapAmountInRoute as DymensionPoolmanagerV1beta1SwapAmountInRoute, - SwapAmountOutRoute as DymensionPoolmanagerV1beta1SwapAmountOutRoute, -} from "./dymension/poolmanager/v1beta1/swap_route_pb.js"; -export { - PoolType as DymensionPoolmanagerV1beta1PoolType, - ModuleRoute as DymensionPoolmanagerV1beta1ModuleRoute, -} from "./dymension/poolmanager/v1beta1/module_route_pb.js"; -export { - GenesisState as DymensionPoolmanagerV1beta1GenesisState, -} from "./dymension/poolmanager/v1beta1/genesis_pb.js"; -export { - MsgLockTokens as DymensionLockupMsgLockTokens, - MsgLockTokensResponse as DymensionLockupMsgLockTokensResponse, - MsgBeginUnlockingAll as DymensionLockupMsgBeginUnlockingAll, - MsgBeginUnlockingAllResponse as DymensionLockupMsgBeginUnlockingAllResponse, - MsgBeginUnlocking as DymensionLockupMsgBeginUnlocking, - MsgBeginUnlockingResponse as DymensionLockupMsgBeginUnlockingResponse, - MsgExtendLockup as DymensionLockupMsgExtendLockup, - MsgExtendLockupResponse as DymensionLockupMsgExtendLockupResponse, - MsgForceUnlock as DymensionLockupMsgForceUnlock, - MsgForceUnlockResponse as DymensionLockupMsgForceUnlockResponse, -} from "./dymension/lockup/tx_pb.js"; -export { - MsgLockTokensService as DymensionLockupMsgLockTokensService, - MsgBeginUnlockingAllService as DymensionLockupMsgBeginUnlockingAllService, - MsgBeginUnlockingService as DymensionLockupMsgBeginUnlockingService, - MsgExtendLockupService as DymensionLockupMsgExtendLockupService, - MsgForceUnlockService as DymensionLockupMsgForceUnlockService, -} from "./dymension/lockup/tx_cosmes.js"; -export { - ModuleBalanceRequest as DymensionLockupModuleBalanceRequest, - ModuleBalanceResponse as DymensionLockupModuleBalanceResponse, - ModuleLockedAmountRequest as DymensionLockupModuleLockedAmountRequest, - ModuleLockedAmountResponse as DymensionLockupModuleLockedAmountResponse, - AccountUnlockableCoinsRequest as DymensionLockupAccountUnlockableCoinsRequest, - AccountUnlockableCoinsResponse as DymensionLockupAccountUnlockableCoinsResponse, - AccountUnlockingCoinsRequest as DymensionLockupAccountUnlockingCoinsRequest, - AccountUnlockingCoinsResponse as DymensionLockupAccountUnlockingCoinsResponse, - AccountLockedCoinsRequest as DymensionLockupAccountLockedCoinsRequest, - AccountLockedCoinsResponse as DymensionLockupAccountLockedCoinsResponse, - AccountLockedPastTimeRequest as DymensionLockupAccountLockedPastTimeRequest, - AccountLockedPastTimeResponse as DymensionLockupAccountLockedPastTimeResponse, - AccountLockedPastTimeNotUnlockingOnlyRequest as DymensionLockupAccountLockedPastTimeNotUnlockingOnlyRequest, - AccountLockedPastTimeNotUnlockingOnlyResponse as DymensionLockupAccountLockedPastTimeNotUnlockingOnlyResponse, - AccountUnlockedBeforeTimeRequest as DymensionLockupAccountUnlockedBeforeTimeRequest, - AccountUnlockedBeforeTimeResponse as DymensionLockupAccountUnlockedBeforeTimeResponse, - AccountLockedPastTimeDenomRequest as DymensionLockupAccountLockedPastTimeDenomRequest, - AccountLockedPastTimeDenomResponse as DymensionLockupAccountLockedPastTimeDenomResponse, - LockedDenomRequest as DymensionLockupLockedDenomRequest, - LockedDenomResponse as DymensionLockupLockedDenomResponse, - LockedRequest as DymensionLockupLockedRequest, - LockedResponse as DymensionLockupLockedResponse, - NextLockIDRequest as DymensionLockupNextLockIDRequest, - NextLockIDResponse as DymensionLockupNextLockIDResponse, - AccountLockedLongerDurationRequest as DymensionLockupAccountLockedLongerDurationRequest, - AccountLockedLongerDurationResponse as DymensionLockupAccountLockedLongerDurationResponse, - AccountLockedDurationRequest as DymensionLockupAccountLockedDurationRequest, - AccountLockedDurationResponse as DymensionLockupAccountLockedDurationResponse, - AccountLockedLongerDurationNotUnlockingOnlyRequest as DymensionLockupAccountLockedLongerDurationNotUnlockingOnlyRequest, - AccountLockedLongerDurationNotUnlockingOnlyResponse as DymensionLockupAccountLockedLongerDurationNotUnlockingOnlyResponse, - AccountLockedLongerDurationDenomRequest as DymensionLockupAccountLockedLongerDurationDenomRequest, - AccountLockedLongerDurationDenomResponse as DymensionLockupAccountLockedLongerDurationDenomResponse, - QueryParamsRequest as DymensionLockupQueryParamsRequest, - QueryParamsResponse as DymensionLockupQueryParamsResponse, -} from "./dymension/lockup/query_pb.js"; -export { - QueryModuleBalanceService as DymensionLockupQueryModuleBalanceService, - QueryModuleLockedAmountService as DymensionLockupQueryModuleLockedAmountService, - QueryAccountUnlockableCoinsService as DymensionLockupQueryAccountUnlockableCoinsService, - QueryAccountUnlockingCoinsService as DymensionLockupQueryAccountUnlockingCoinsService, - QueryAccountLockedCoinsService as DymensionLockupQueryAccountLockedCoinsService, - QueryAccountLockedPastTimeService as DymensionLockupQueryAccountLockedPastTimeService, - QueryAccountLockedPastTimeNotUnlockingOnlyService as DymensionLockupQueryAccountLockedPastTimeNotUnlockingOnlyService, - QueryAccountUnlockedBeforeTimeService as DymensionLockupQueryAccountUnlockedBeforeTimeService, - QueryAccountLockedPastTimeDenomService as DymensionLockupQueryAccountLockedPastTimeDenomService, - QueryLockedDenomService as DymensionLockupQueryLockedDenomService, - QueryLockedByIDService as DymensionLockupQueryLockedByIDService, - QueryNextLockIDService as DymensionLockupQueryNextLockIDService, - QueryAccountLockedLongerDurationService as DymensionLockupQueryAccountLockedLongerDurationService, - QueryAccountLockedDurationService as DymensionLockupQueryAccountLockedDurationService, - QueryAccountLockedLongerDurationNotUnlockingOnlyService as DymensionLockupQueryAccountLockedLongerDurationNotUnlockingOnlyService, - QueryAccountLockedLongerDurationDenomService as DymensionLockupQueryAccountLockedLongerDurationDenomService, - QueryParamsService as DymensionLockupQueryParamsService, -} from "./dymension/lockup/query_cosmes.js"; -export { - Params as DymensionLockupParams, -} from "./dymension/lockup/params_pb.js"; -export { - LockQueryType as DymensionLockupLockQueryType, - PeriodLock as DymensionLockupPeriodLock, - QueryCondition as DymensionLockupQueryCondition, -} from "./dymension/lockup/lock_pb.js"; -export { - GenesisState as DymensionLockupGenesisState, -} from "./dymension/lockup/genesis_pb.js"; -export { - MsgCreateGauge as DymensionIncentivesMsgCreateGauge, - MsgCreateGaugeResponse as DymensionIncentivesMsgCreateGaugeResponse, - MsgAddToGauge as DymensionIncentivesMsgAddToGauge, - MsgAddToGaugeResponse as DymensionIncentivesMsgAddToGaugeResponse, -} from "./dymension/incentives/tx_pb.js"; -export { - MsgCreateGaugeService as DymensionIncentivesMsgCreateGaugeService, - MsgAddToGaugeService as DymensionIncentivesMsgAddToGaugeService, -} from "./dymension/incentives/tx_cosmes.js"; -export { - ModuleToDistributeCoinsRequest as DymensionIncentivesModuleToDistributeCoinsRequest, - ModuleToDistributeCoinsResponse as DymensionIncentivesModuleToDistributeCoinsResponse, - GaugeByIDRequest as DymensionIncentivesGaugeByIDRequest, - GaugeByIDResponse as DymensionIncentivesGaugeByIDResponse, - GaugesRequest as DymensionIncentivesGaugesRequest, - GaugesResponse as DymensionIncentivesGaugesResponse, - ActiveGaugesRequest as DymensionIncentivesActiveGaugesRequest, - ActiveGaugesResponse as DymensionIncentivesActiveGaugesResponse, - ActiveGaugesPerDenomRequest as DymensionIncentivesActiveGaugesPerDenomRequest, - ActiveGaugesPerDenomResponse as DymensionIncentivesActiveGaugesPerDenomResponse, - UpcomingGaugesRequest as DymensionIncentivesUpcomingGaugesRequest, - UpcomingGaugesResponse as DymensionIncentivesUpcomingGaugesResponse, - UpcomingGaugesPerDenomRequest as DymensionIncentivesUpcomingGaugesPerDenomRequest, - UpcomingGaugesPerDenomResponse as DymensionIncentivesUpcomingGaugesPerDenomResponse, - RewardsEstRequest as DymensionIncentivesRewardsEstRequest, - RewardsEstResponse as DymensionIncentivesRewardsEstResponse, - QueryLockableDurationsRequest as DymensionIncentivesQueryLockableDurationsRequest, - QueryLockableDurationsResponse as DymensionIncentivesQueryLockableDurationsResponse, -} from "./dymension/incentives/query_pb.js"; -export { - QueryModuleToDistributeCoinsService as DymensionIncentivesQueryModuleToDistributeCoinsService, - QueryGaugeByIDService as DymensionIncentivesQueryGaugeByIDService, - QueryGaugesService as DymensionIncentivesQueryGaugesService, - QueryActiveGaugesService as DymensionIncentivesQueryActiveGaugesService, - QueryActiveGaugesPerDenomService as DymensionIncentivesQueryActiveGaugesPerDenomService, - QueryUpcomingGaugesService as DymensionIncentivesQueryUpcomingGaugesService, - QueryUpcomingGaugesPerDenomService as DymensionIncentivesQueryUpcomingGaugesPerDenomService, - QueryRewardsEstService as DymensionIncentivesQueryRewardsEstService, - QueryLockableDurationsService as DymensionIncentivesQueryLockableDurationsService, -} from "./dymension/incentives/query_cosmes.js"; -export { - Params as DymensionIncentivesParams, -} from "./dymension/incentives/params_pb.js"; -export { - GenesisState as DymensionIncentivesGenesisState, -} from "./dymension/incentives/genesis_pb.js"; -export { - Gauge as DymensionIncentivesGauge, - LockableDurationsInfo as DymensionIncentivesLockableDurationsInfo, -} from "./dymension/incentives/gauge_pb.js"; -export { - QuerySpotPriceRequest as DymensionGammV2QuerySpotPriceRequest, - QuerySpotPriceResponse as DymensionGammV2QuerySpotPriceResponse, -} from "./dymension/gamm/v2/query_pb.js"; -export { - QuerySpotPriceService as DymensionGammV2QuerySpotPriceService, -} from "./dymension/gamm/v2/query_cosmes.js"; -export { - MsgSwapExactAmountIn as DymensionGammV1beta1MsgSwapExactAmountIn, - MsgSwapExactAmountInResponse as DymensionGammV1beta1MsgSwapExactAmountInResponse, - MsgSwapExactAmountOut as DymensionGammV1beta1MsgSwapExactAmountOut, - MsgSwapExactAmountOutResponse as DymensionGammV1beta1MsgSwapExactAmountOutResponse, -} from "./dymension/gamm/v1beta1/tx_swap_pb.js"; -export { - MsgJoinPool as DymensionGammV1beta1MsgJoinPool, - MsgJoinPoolResponse as DymensionGammV1beta1MsgJoinPoolResponse, - MsgExitPool as DymensionGammV1beta1MsgExitPool, - MsgExitPoolResponse as DymensionGammV1beta1MsgExitPoolResponse, - MsgJoinSwapExternAmountIn as DymensionGammV1beta1MsgJoinSwapExternAmountIn, - MsgJoinSwapExternAmountInResponse as DymensionGammV1beta1MsgJoinSwapExternAmountInResponse, - MsgJoinSwapShareAmountOut as DymensionGammV1beta1MsgJoinSwapShareAmountOut, - MsgJoinSwapShareAmountOutResponse as DymensionGammV1beta1MsgJoinSwapShareAmountOutResponse, - MsgExitSwapShareAmountIn as DymensionGammV1beta1MsgExitSwapShareAmountIn, - MsgExitSwapShareAmountInResponse as DymensionGammV1beta1MsgExitSwapShareAmountInResponse, - MsgExitSwapExternAmountOut as DymensionGammV1beta1MsgExitSwapExternAmountOut, - MsgExitSwapExternAmountOutResponse as DymensionGammV1beta1MsgExitSwapExternAmountOutResponse, -} from "./dymension/gamm/v1beta1/tx_liquidity_pb.js"; -export { - MsgJoinPoolService as DymensionGammV1beta1MsgJoinPoolService, - MsgJoinSwapExternAmountInService as DymensionGammV1beta1MsgJoinSwapExternAmountInService, - MsgJoinSwapShareAmountOutService as DymensionGammV1beta1MsgJoinSwapShareAmountOutService, - MsgExitPoolService as DymensionGammV1beta1MsgExitPoolService, - MsgExitSwapExternAmountOutService as DymensionGammV1beta1MsgExitSwapExternAmountOutService, - MsgExitSwapShareAmountInService as DymensionGammV1beta1MsgExitSwapShareAmountInService, - MsgSwapExactAmountInService as DymensionGammV1beta1MsgSwapExactAmountInService, - MsgSwapExactAmountOutService as DymensionGammV1beta1MsgSwapExactAmountOutService, -} from "./dymension/gamm/v1beta1/tx_cosmes.js"; -export { - QueryParamsRequest as DymensionGammV1beta1QueryParamsRequest, - QueryParamsResponse as DymensionGammV1beta1QueryParamsResponse, - QueryPoolRequest as DymensionGammV1beta1QueryPoolRequest, - QueryPoolResponse as DymensionGammV1beta1QueryPoolResponse, - QueryPoolsRequest as DymensionGammV1beta1QueryPoolsRequest, - QueryPoolsResponse as DymensionGammV1beta1QueryPoolsResponse, - QueryNumPoolsRequest as DymensionGammV1beta1QueryNumPoolsRequest, - QueryNumPoolsResponse as DymensionGammV1beta1QueryNumPoolsResponse, - QueryCalcJoinPoolSharesRequest as DymensionGammV1beta1QueryCalcJoinPoolSharesRequest, - QueryCalcJoinPoolSharesResponse as DymensionGammV1beta1QueryCalcJoinPoolSharesResponse, - QueryCalcExitPoolCoinsFromSharesRequest as DymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesRequest, - QueryCalcExitPoolCoinsFromSharesResponse as DymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesResponse, - QueryPoolParamsRequest as DymensionGammV1beta1QueryPoolParamsRequest, - QueryPoolParamsResponse as DymensionGammV1beta1QueryPoolParamsResponse, - QueryTotalPoolLiquidityRequest as DymensionGammV1beta1QueryTotalPoolLiquidityRequest, - QueryTotalPoolLiquidityResponse as DymensionGammV1beta1QueryTotalPoolLiquidityResponse, - QueryTotalSharesRequest as DymensionGammV1beta1QueryTotalSharesRequest, - QueryTotalSharesResponse as DymensionGammV1beta1QueryTotalSharesResponse, - QueryCalcJoinPoolNoSwapSharesRequest as DymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesRequest, - QueryCalcJoinPoolNoSwapSharesResponse as DymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesResponse, - QuerySpotPriceRequest as DymensionGammV1beta1QuerySpotPriceRequest, - QueryPoolsWithFilterRequest as DymensionGammV1beta1QueryPoolsWithFilterRequest, - QueryPoolsWithFilterResponse as DymensionGammV1beta1QueryPoolsWithFilterResponse, - QuerySpotPriceResponse as DymensionGammV1beta1QuerySpotPriceResponse, - QuerySwapExactAmountInRequest as DymensionGammV1beta1QuerySwapExactAmountInRequest, - QuerySwapExactAmountInResponse as DymensionGammV1beta1QuerySwapExactAmountInResponse, - QuerySwapExactAmountOutRequest as DymensionGammV1beta1QuerySwapExactAmountOutRequest, - QuerySwapExactAmountOutResponse as DymensionGammV1beta1QuerySwapExactAmountOutResponse, - QueryTotalLiquidityRequest as DymensionGammV1beta1QueryTotalLiquidityRequest, - QueryTotalLiquidityResponse as DymensionGammV1beta1QueryTotalLiquidityResponse, -} from "./dymension/gamm/v1beta1/query_pb.js"; -export { - QueryParamsService as DymensionGammV1beta1QueryParamsService, - QueryPoolsService as DymensionGammV1beta1QueryPoolsService, - QueryNumPoolsService as DymensionGammV1beta1QueryNumPoolsService, - QueryTotalLiquidityService as DymensionGammV1beta1QueryTotalLiquidityService, - QueryPoolsWithFilterService as DymensionGammV1beta1QueryPoolsWithFilterService, - QueryPoolService as DymensionGammV1beta1QueryPoolService, - QueryCalcJoinPoolNoSwapSharesService as DymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesService, - QueryCalcJoinPoolSharesService as DymensionGammV1beta1QueryCalcJoinPoolSharesService, - QueryCalcExitPoolCoinsFromSharesService as DymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesService, - QueryPoolParamsService as DymensionGammV1beta1QueryPoolParamsService, - QueryTotalPoolLiquidityService as DymensionGammV1beta1QueryTotalPoolLiquidityService, - QueryTotalSharesService as DymensionGammV1beta1QueryTotalSharesService, - QuerySpotPriceService as DymensionGammV1beta1QuerySpotPriceService, - QueryEstimateSwapExactAmountInService as DymensionGammV1beta1QueryEstimateSwapExactAmountInService, - QueryEstimateSwapExactAmountOutService as DymensionGammV1beta1QueryEstimateSwapExactAmountOutService, -} from "./dymension/gamm/v1beta1/query_cosmes.js"; -export { - GenesisState as DymensionGammV1beta1GenesisState, - Params as DymensionGammV1beta1Params, - GlobalFees as DymensionGammV1beta1GlobalFees, -} from "./dymension/gamm/v1beta1/genesis_pb.js"; -export { - MsgCreateBalancerPool as DymensionGammPoolModelsBalancerMsgCreateBalancerPool, - MsgCreateBalancerPoolResponse as DymensionGammPoolModelsBalancerMsgCreateBalancerPoolResponse, -} from "./dymension/gamm/pool-models/balancer/tx_pb.js"; -export { - MsgCreateBalancerPoolService as DymensionGammPoolModelsBalancerMsgCreateBalancerPoolService, -} from "./dymension/gamm/pool-models/balancer/tx_cosmes.js"; -export { - SmoothWeightChangeParams as DymensionGammPoolModelsBalancerSmoothWeightChangeParams, - PoolParams as DymensionGammPoolModelsBalancerPoolParams, - PoolAsset as DymensionGammPoolModelsBalancerPoolAsset, - Pool as DymensionGammPoolModelsBalancerPool, -} from "./dymension/gamm/pool-models/balancer/balancerPool_pb.js"; -export { - QueryEpochsInfoRequest as DymensionEpochsQueryEpochsInfoRequest, - QueryEpochsInfoResponse as DymensionEpochsQueryEpochsInfoResponse, - QueryCurrentEpochRequest as DymensionEpochsQueryCurrentEpochRequest, - QueryCurrentEpochResponse as DymensionEpochsQueryCurrentEpochResponse, -} from "./dymension/epochs/query_pb.js"; -export { - QueryEpochInfosService as DymensionEpochsQueryEpochInfosService, - QueryCurrentEpochService as DymensionEpochsQueryCurrentEpochService, -} from "./dymension/epochs/query_cosmes.js"; -export { - EpochInfo as DymensionEpochsEpochInfo, - GenesisState as DymensionEpochsGenesisState, -} from "./dymension/epochs/genesis_pb.js"; + TxResult as EthTypesV1TxResult, +} from "./eth/types/v1/indexer_pb.js"; +export { + EthAccount as EthTypesV1EthAccount, +} from "./eth/types/v1/account_pb.js"; +export { + MsgEthereumTx as EthEvmV1MsgEthereumTx, + LegacyTx as EthEvmV1LegacyTx, + AccessListTx as EthEvmV1AccessListTx, + DynamicFeeTx as EthEvmV1DynamicFeeTx, + ExtensionOptionsEthereumTx as EthEvmV1ExtensionOptionsEthereumTx, + MsgEthereumTxResponse as EthEvmV1MsgEthereumTxResponse, + MsgUpdateParams as EthEvmV1MsgUpdateParams, + MsgUpdateParamsResponse as EthEvmV1MsgUpdateParamsResponse, + MsgCreateFunToken as EthEvmV1MsgCreateFunToken, + MsgCreateFunTokenResponse as EthEvmV1MsgCreateFunTokenResponse, + MsgConvertCoinToEvm as EthEvmV1MsgConvertCoinToEvm, + MsgConvertCoinToEvmResponse as EthEvmV1MsgConvertCoinToEvmResponse, + MsgConvertEvmToCoin as EthEvmV1MsgConvertEvmToCoin, + MsgConvertEvmToCoinResponse as EthEvmV1MsgConvertEvmToCoinResponse, +} from "./eth/evm/v1/tx_pb.js"; +export { + MsgEthereumTxService as EthEvmV1MsgEthereumTxService, + MsgUpdateParamsService as EthEvmV1MsgUpdateParamsService, + MsgCreateFunTokenService as EthEvmV1MsgCreateFunTokenService, + MsgConvertCoinToEvmService as EthEvmV1MsgConvertCoinToEvmService, + MsgConvertEvmToCoinService as EthEvmV1MsgConvertEvmToCoinService, +} from "./eth/evm/v1/tx_cosmes.js"; +export { + QueryEthAccountRequest as EthEvmV1QueryEthAccountRequest, + QueryEthAccountResponse as EthEvmV1QueryEthAccountResponse, + QueryValidatorAccountRequest as EthEvmV1QueryValidatorAccountRequest, + QueryValidatorAccountResponse as EthEvmV1QueryValidatorAccountResponse, + QueryBalanceRequest as EthEvmV1QueryBalanceRequest, + QueryBalanceResponse as EthEvmV1QueryBalanceResponse, + QueryStorageRequest as EthEvmV1QueryStorageRequest, + QueryStorageResponse as EthEvmV1QueryStorageResponse, + QueryCodeRequest as EthEvmV1QueryCodeRequest, + QueryCodeResponse as EthEvmV1QueryCodeResponse, + QueryTxLogsRequest as EthEvmV1QueryTxLogsRequest, + QueryTxLogsResponse as EthEvmV1QueryTxLogsResponse, + QueryParamsRequest as EthEvmV1QueryParamsRequest, + QueryParamsResponse as EthEvmV1QueryParamsResponse, + EthCallRequest as EthEvmV1EthCallRequest, + EstimateGasResponse as EthEvmV1EstimateGasResponse, + QueryTraceTxRequest as EthEvmV1QueryTraceTxRequest, + QueryTraceTxResponse as EthEvmV1QueryTraceTxResponse, + QueryTraceBlockRequest as EthEvmV1QueryTraceBlockRequest, + QueryTraceBlockResponse as EthEvmV1QueryTraceBlockResponse, + QueryBaseFeeRequest as EthEvmV1QueryBaseFeeRequest, + QueryBaseFeeResponse as EthEvmV1QueryBaseFeeResponse, + QueryFunTokenMappingRequest as EthEvmV1QueryFunTokenMappingRequest, + QueryFunTokenMappingResponse as EthEvmV1QueryFunTokenMappingResponse, +} from "./eth/evm/v1/query_pb.js"; +export { + QueryEthAccountService as EthEvmV1QueryEthAccountService, + QueryValidatorAccountService as EthEvmV1QueryValidatorAccountService, + QueryBalanceService as EthEvmV1QueryBalanceService, + QueryStorageService as EthEvmV1QueryStorageService, + QueryCodeService as EthEvmV1QueryCodeService, + QueryParamsService as EthEvmV1QueryParamsService, + QueryEthCallService as EthEvmV1QueryEthCallService, + QueryEstimateGasService as EthEvmV1QueryEstimateGasService, + QueryTraceTxService as EthEvmV1QueryTraceTxService, + QueryTraceBlockService as EthEvmV1QueryTraceBlockService, + QueryTraceCallService as EthEvmV1QueryTraceCallService, + QueryBaseFeeService as EthEvmV1QueryBaseFeeService, + QueryFunTokenMappingService as EthEvmV1QueryFunTokenMappingService, +} from "./eth/evm/v1/query_cosmes.js"; +export { + GenesisState as EthEvmV1GenesisState, + GenesisAccount as EthEvmV1GenesisAccount, +} from "./eth/evm/v1/genesis_pb.js"; +export { + FunToken as EthEvmV1FunToken, + Params as EthEvmV1Params, + State as EthEvmV1State, + Log as EthEvmV1Log, + LogLite as EthEvmV1LogLite, + AccessTuple as EthEvmV1AccessTuple, + TracerConfig as EthEvmV1TracerConfig, + TraceConfig as EthEvmV1TraceConfig, +} from "./eth/evm/v1/evm_pb.js"; +export { + EventEthereumTx as EthEvmV1EventEthereumTx, + EventTxLog as EthEvmV1EventTxLog, + EventBlockBloom as EthEvmV1EventBlockBloom, + EventFunTokenCreated as EthEvmV1EventFunTokenCreated, + EventConvertCoinToEvm as EthEvmV1EventConvertCoinToEvm, + EventTransfer as EthEvmV1EventTransfer, + EventContractDeployed as EthEvmV1EventContractDeployed, + EventContractExecuted as EthEvmV1EventContractExecuted, + EventConvertEvmToCoin as EthEvmV1EventConvertEvmToCoin, + EventWeiBlockDelta as EthEvmV1EventWeiBlockDelta, +} from "./eth/evm/v1/events_pb.js"; +export { + Module as EthEvmModuleModule, + ModuleAccountPermission as EthEvmModuleModuleAccountPermission, +} from "./eth/evm/module/module_pb.js"; +export { + Vault as ElysVaultsVault, + UserData as ElysVaultsUserData, + VaultPnL as ElysVaultsVaultPnL, +} from "./elys/vaults/vault_pb.js"; +export { + MsgUpdateParams as ElysVaultsMsgUpdateParams, + MsgUpdateParamsResponse as ElysVaultsMsgUpdateParamsResponse, + MsgDeposit as ElysVaultsMsgDeposit, + MsgDepositResponse as ElysVaultsMsgDepositResponse, + MsgWithdraw as ElysVaultsMsgWithdraw, + MsgWithdrawResponse as ElysVaultsMsgWithdrawResponse, + MsgAddVault as ElysVaultsMsgAddVault, + MsgAddVaultResponse as ElysVaultsMsgAddVaultResponse, + MsgPerformActionResponse as ElysVaultsMsgPerformActionResponse, + MsgPerformActionJoinPool as ElysVaultsMsgPerformActionJoinPool, + MsgPerformActionJoinPoolResponse as ElysVaultsMsgPerformActionJoinPoolResponse, + MsgPerformActionExitPool as ElysVaultsMsgPerformActionExitPool, + MsgPerformActionExitPoolResponse as ElysVaultsMsgPerformActionExitPoolResponse, + MsgPerformActionSwapByDenom as ElysVaultsMsgPerformActionSwapByDenom, + MsgPerformActionSwapByDenomResponse as ElysVaultsMsgPerformActionSwapByDenomResponse, + MsgUpdateVaultCoins as ElysVaultsMsgUpdateVaultCoins, + MsgUpdateVaultCoinsResponse as ElysVaultsMsgUpdateVaultCoinsResponse, + MsgUpdateVaultFees as ElysVaultsMsgUpdateVaultFees, + MsgUpdateVaultFeesResponse as ElysVaultsMsgUpdateVaultFeesResponse, + MsgUpdateVaultLockupPeriod as ElysVaultsMsgUpdateVaultLockupPeriod, + MsgUpdateVaultLockupPeriodResponse as ElysVaultsMsgUpdateVaultLockupPeriodResponse, + MsgUpdateVaultMaxAmountUsd as ElysVaultsMsgUpdateVaultMaxAmountUsd, + MsgUpdateVaultMaxAmountUsdResponse as ElysVaultsMsgUpdateVaultMaxAmountUsdResponse, + MsgClaimRewards as ElysVaultsMsgClaimRewards, + MsgClaimRewardsResponse as ElysVaultsMsgClaimRewardsResponse, + MsgUpdateVaultAllowedActions as ElysVaultsMsgUpdateVaultAllowedActions, + MsgUpdateVaultAllowedActionsResponse as ElysVaultsMsgUpdateVaultAllowedActionsResponse, +} from "./elys/vaults/tx_pb.js"; +export { + MsgUpdateParamsService as ElysVaultsMsgUpdateParamsService, + MsgDepositService as ElysVaultsMsgDepositService, + MsgWithdrawService as ElysVaultsMsgWithdrawService, + MsgAddVaultService as ElysVaultsMsgAddVaultService, + MsgPerformActionJoinPoolService as ElysVaultsMsgPerformActionJoinPoolService, + MsgPerformActionExitPoolService as ElysVaultsMsgPerformActionExitPoolService, + MsgPerformActionSwapByDenomService as ElysVaultsMsgPerformActionSwapByDenomService, + MsgUpdateVaultCoinsService as ElysVaultsMsgUpdateVaultCoinsService, + MsgUpdateVaultFeesService as ElysVaultsMsgUpdateVaultFeesService, + MsgUpdateVaultLockupPeriodService as ElysVaultsMsgUpdateVaultLockupPeriodService, + MsgUpdateVaultMaxAmountUsdService as ElysVaultsMsgUpdateVaultMaxAmountUsdService, + MsgClaimRewardsService as ElysVaultsMsgClaimRewardsService, + MsgUpdateVaultAllowedActionsService as ElysVaultsMsgUpdateVaultAllowedActionsService, +} from "./elys/vaults/tx_cosmes.js"; +export { + VaultAndData as ElysVaultsVaultAndData, + QueryParamsRequest as ElysVaultsQueryParamsRequest, + QueryParamsResponse as ElysVaultsQueryParamsResponse, + QueryVaultRequest as ElysVaultsQueryVaultRequest, + QueryVaultResponse as ElysVaultsQueryVaultResponse, + QueryVaultsRequest as ElysVaultsQueryVaultsRequest, + QueryVaultsResponse as ElysVaultsQueryVaultsResponse, + QueryVaultValue as ElysVaultsQueryVaultValue, + QueryVaultValueResponse as ElysVaultsQueryVaultValueResponse, + PositionToken as ElysVaultsPositionToken, + QueryVaultPositionsRequest as ElysVaultsQueryVaultPositionsRequest, + QueryVaultPositionsResponse as ElysVaultsQueryVaultPositionsResponse, + QueryDepositEstimationRequest as ElysVaultsQueryDepositEstimationRequest, + QueryDepositEstimationResponse as ElysVaultsQueryDepositEstimationResponse, + QueryWithdrawEstimationRequest as ElysVaultsQueryWithdrawEstimationRequest, + QueryWithdrawEstimationResponse as ElysVaultsQueryWithdrawEstimationResponse, +} from "./elys/vaults/query_pb.js"; +export { + QueryParamsService as ElysVaultsQueryParamsService, + QueryVaultService as ElysVaultsQueryVaultService, + QueryVaultsService as ElysVaultsQueryVaultsService, + QueryVaultValueService as ElysVaultsQueryVaultValueService, + QueryVaultPositionsService as ElysVaultsQueryVaultPositionsService, + QueryDepositEstimationService as ElysVaultsQueryDepositEstimationService, + QueryWithdrawEstimationService as ElysVaultsQueryWithdrawEstimationService, +} from "./elys/vaults/query_cosmes.js"; +export { + PoolInfo as ElysVaultsPoolInfo, + PoolRewardInfo as ElysVaultsPoolRewardInfo, + UserRewardInfo as ElysVaultsUserRewardInfo, + PoolRewardsAccum as ElysVaultsPoolRewardsAccum, +} from "./elys/vaults/pool_pb.js"; +export { + Params as ElysVaultsParams, +} from "./elys/vaults/params_pb.js"; +export { + GenesisState as ElysVaultsGenesisState, +} from "./elys/vaults/genesis_pb.js"; +export { + Status as ElysTradeshieldStatus, + PerpetualOrderType as ElysTradeshieldPerpetualOrderType, + Date as ElysTradeshieldDate, + SpotOrder as ElysTradeshieldSpotOrder, + PerpetualOrder as ElysTradeshieldPerpetualOrder, + PerpetualOrderExtraInfo as ElysTradeshieldPerpetualOrderExtraInfo, + LegacyPerpetualOrder as ElysTradeshieldLegacyPerpetualOrder, +} from "./elys/tradeshield/types_pb.js"; +export { + MsgCreateSpotOrder as ElysTradeshieldMsgCreateSpotOrder, + MsgCreateSpotOrderResponse as ElysTradeshieldMsgCreateSpotOrderResponse, + MsgUpdateSpotOrder as ElysTradeshieldMsgUpdateSpotOrder, + MsgUpdateSpotOrderResponse as ElysTradeshieldMsgUpdateSpotOrderResponse, + MsgCancelSpotOrder as ElysTradeshieldMsgCancelSpotOrder, + MsgCancelSpotOrderResponse as ElysTradeshieldMsgCancelSpotOrderResponse, + MsgCancelSpotOrders as ElysTradeshieldMsgCancelSpotOrders, + MsgCancelSpotOrdersResponse as ElysTradeshieldMsgCancelSpotOrdersResponse, + MsgCancelAllSpotOrders as ElysTradeshieldMsgCancelAllSpotOrders, + MsgCancelAllSpotOrdersResponse as ElysTradeshieldMsgCancelAllSpotOrdersResponse, + MsgCreatePerpetualOpenOrder as ElysTradeshieldMsgCreatePerpetualOpenOrder, + MsgCreatePerpetualOpenOrderResponse as ElysTradeshieldMsgCreatePerpetualOpenOrderResponse, + MsgCreatePerpetualCloseOrder as ElysTradeshieldMsgCreatePerpetualCloseOrder, + MsgCreatePerpetualCloseOrderResponse as ElysTradeshieldMsgCreatePerpetualCloseOrderResponse, + MsgUpdatePerpetualOrder as ElysTradeshieldMsgUpdatePerpetualOrder, + MsgUpdatePerpetualOrderResponse as ElysTradeshieldMsgUpdatePerpetualOrderResponse, + MsgCancelPerpetualOrder as ElysTradeshieldMsgCancelPerpetualOrder, + MsgCancelPerpetualOrderResponse as ElysTradeshieldMsgCancelPerpetualOrderResponse, + MsgCancelPerpetualOrders as ElysTradeshieldMsgCancelPerpetualOrders, + MsgCancelPerpetualOrdersResponse as ElysTradeshieldMsgCancelPerpetualOrdersResponse, + MsgCancelAllPerpetualOrders as ElysTradeshieldMsgCancelAllPerpetualOrders, + MsgCancelAllPerpetualOrdersResponse as ElysTradeshieldMsgCancelAllPerpetualOrdersResponse, + MsgUpdateParams as ElysTradeshieldMsgUpdateParams, + MsgUpdateParamsResponse as ElysTradeshieldMsgUpdateParamsResponse, + MsgExecuteOrders as ElysTradeshieldMsgExecuteOrders, + MsgExecuteOrdersResponse as ElysTradeshieldMsgExecuteOrdersResponse, + PerpetualOrderKey as ElysTradeshieldPerpetualOrderKey, + PerpetualOrderPoolKey as ElysTradeshieldPerpetualOrderPoolKey, +} from "./elys/tradeshield/tx_pb.js"; +export { + MsgCreateSpotOrderService as ElysTradeshieldMsgCreateSpotOrderService, + MsgUpdateSpotOrderService as ElysTradeshieldMsgUpdateSpotOrderService, + MsgCancelSpotOrderService as ElysTradeshieldMsgCancelSpotOrderService, + MsgCancelSpotOrdersService as ElysTradeshieldMsgCancelSpotOrdersService, + MsgCancelAllSpotOrdersService as ElysTradeshieldMsgCancelAllSpotOrdersService, + MsgCreatePerpetualOpenOrderService as ElysTradeshieldMsgCreatePerpetualOpenOrderService, + MsgCreatePerpetualCloseOrderService as ElysTradeshieldMsgCreatePerpetualCloseOrderService, + MsgUpdatePerpetualOrderService as ElysTradeshieldMsgUpdatePerpetualOrderService, + MsgCancelPerpetualOrderService as ElysTradeshieldMsgCancelPerpetualOrderService, + MsgCancelPerpetualOrdersService as ElysTradeshieldMsgCancelPerpetualOrdersService, + MsgCancelAllPerpetualOrdersService as ElysTradeshieldMsgCancelAllPerpetualOrdersService, + MsgUpdateParamsService as ElysTradeshieldMsgUpdateParamsService, + MsgExecuteOrdersService as ElysTradeshieldMsgExecuteOrdersService, +} from "./elys/tradeshield/tx_cosmes.js"; +export { + QueryParamsRequest as ElysTradeshieldQueryParamsRequest, + QueryParamsResponse as ElysTradeshieldQueryParamsResponse, + QueryGetPendingSpotOrderRequest as ElysTradeshieldQueryGetPendingSpotOrderRequest, + QueryGetPendingSpotOrderResponse as ElysTradeshieldQueryGetPendingSpotOrderResponse, + QueryAllPendingSpotOrderRequest as ElysTradeshieldQueryAllPendingSpotOrderRequest, + QueryAllPendingSpotOrderResponse as ElysTradeshieldQueryAllPendingSpotOrderResponse, + QueryGetPendingPerpetualOrderRequest as ElysTradeshieldQueryGetPendingPerpetualOrderRequest, + QueryGetPendingPerpetualOrderResponse as ElysTradeshieldQueryGetPendingPerpetualOrderResponse, + QueryAllPendingPerpetualOrderRequest as ElysTradeshieldQueryAllPendingPerpetualOrderRequest, + QueryAllPendingPerpetualOrderResponse as ElysTradeshieldQueryAllPendingPerpetualOrderResponse, + QueryPendingPerpetualOrderForAddressRequest as ElysTradeshieldQueryPendingPerpetualOrderForAddressRequest, + QueryPendingPerpetualOrderForAddressResponse as ElysTradeshieldQueryPendingPerpetualOrderForAddressResponse, + QueryPendingSpotOrderForAddressRequest as ElysTradeshieldQueryPendingSpotOrderForAddressRequest, + QueryPendingSpotOrderForAddressResponse as ElysTradeshieldQueryPendingSpotOrderForAddressResponse, +} from "./elys/tradeshield/query_pb.js"; +export { + QueryParamsService as ElysTradeshieldQueryParamsService, + QueryPendingSpotOrderService as ElysTradeshieldQueryPendingSpotOrderService, + QueryPendingSpotOrderAllService as ElysTradeshieldQueryPendingSpotOrderAllService, + QueryPendingPerpetualOrderService as ElysTradeshieldQueryPendingPerpetualOrderService, + QueryPendingPerpetualOrderAllService as ElysTradeshieldQueryPendingPerpetualOrderAllService, + QueryPendingPerpetualOrderForAddressService as ElysTradeshieldQueryPendingPerpetualOrderForAddressService, + QueryPendingSpotOrderForAddressService as ElysTradeshieldQueryPendingSpotOrderForAddressService, +} from "./elys/tradeshield/query_cosmes.js"; +export { + Params as ElysTradeshieldParams, +} from "./elys/tradeshield/params_pb.js"; +export { + SpotOrderType as ElysTradeshieldSpotOrderType, + PerpetualPosition as ElysTradeshieldPerpetualPosition, + LegacyOrderPriceV1 as ElysTradeshieldLegacyOrderPriceV1, + LegacyTriggerPriceV1 as ElysTradeshieldLegacyTriggerPriceV1, +} from "./elys/tradeshield/order_pb.js"; +export { + GenesisState as ElysTradeshieldGenesisState, +} from "./elys/tradeshield/genesis_pb.js"; +export { + MsgCreateAirdrop as ElysTokenomicsMsgCreateAirdrop, + MsgCreateAirdropResponse as ElysTokenomicsMsgCreateAirdropResponse, + MsgUpdateAirdrop as ElysTokenomicsMsgUpdateAirdrop, + MsgUpdateAirdropResponse as ElysTokenomicsMsgUpdateAirdropResponse, + MsgDeleteAirdrop as ElysTokenomicsMsgDeleteAirdrop, + MsgDeleteAirdropResponse as ElysTokenomicsMsgDeleteAirdropResponse, + MsgClaimAirdrop as ElysTokenomicsMsgClaimAirdrop, + MsgClaimAirdropResponse as ElysTokenomicsMsgClaimAirdropResponse, + MsgUpdateGenesisInflation as ElysTokenomicsMsgUpdateGenesisInflation, + MsgUpdateGenesisInflationResponse as ElysTokenomicsMsgUpdateGenesisInflationResponse, + MsgCreateTimeBasedInflation as ElysTokenomicsMsgCreateTimeBasedInflation, + MsgCreateTimeBasedInflationResponse as ElysTokenomicsMsgCreateTimeBasedInflationResponse, + MsgUpdateTimeBasedInflation as ElysTokenomicsMsgUpdateTimeBasedInflation, + MsgUpdateTimeBasedInflationResponse as ElysTokenomicsMsgUpdateTimeBasedInflationResponse, + MsgDeleteTimeBasedInflation as ElysTokenomicsMsgDeleteTimeBasedInflation, + MsgDeleteTimeBasedInflationResponse as ElysTokenomicsMsgDeleteTimeBasedInflationResponse, +} from "./elys/tokenomics/tx_pb.js"; +export { + MsgCreateAirdropService as ElysTokenomicsMsgCreateAirdropService, + MsgUpdateAirdropService as ElysTokenomicsMsgUpdateAirdropService, + MsgDeleteAirdropService as ElysTokenomicsMsgDeleteAirdropService, + MsgClaimAirdropService as ElysTokenomicsMsgClaimAirdropService, + MsgUpdateGenesisInflationService as ElysTokenomicsMsgUpdateGenesisInflationService, + MsgCreateTimeBasedInflationService as ElysTokenomicsMsgCreateTimeBasedInflationService, + MsgUpdateTimeBasedInflationService as ElysTokenomicsMsgUpdateTimeBasedInflationService, + MsgDeleteTimeBasedInflationService as ElysTokenomicsMsgDeleteTimeBasedInflationService, +} from "./elys/tokenomics/tx_cosmes.js"; +export { + TimeBasedInflation as ElysTokenomicsTimeBasedInflation, +} from "./elys/tokenomics/time_based_inflation_pb.js"; +export { + QueryParamsRequest as ElysTokenomicsQueryParamsRequest, + QueryParamsResponse as ElysTokenomicsQueryParamsResponse, + QueryGetAirdropRequest as ElysTokenomicsQueryGetAirdropRequest, + QueryGetAirdropResponse as ElysTokenomicsQueryGetAirdropResponse, + QueryAllAirdropRequest as ElysTokenomicsQueryAllAirdropRequest, + QueryAllAirdropResponse as ElysTokenomicsQueryAllAirdropResponse, + QueryGetGenesisInflationRequest as ElysTokenomicsQueryGetGenesisInflationRequest, + QueryGetGenesisInflationResponse as ElysTokenomicsQueryGetGenesisInflationResponse, + QueryGetTimeBasedInflationRequest as ElysTokenomicsQueryGetTimeBasedInflationRequest, + QueryGetTimeBasedInflationResponse as ElysTokenomicsQueryGetTimeBasedInflationResponse, + QueryAllTimeBasedInflationRequest as ElysTokenomicsQueryAllTimeBasedInflationRequest, + QueryAllTimeBasedInflationResponse as ElysTokenomicsQueryAllTimeBasedInflationResponse, +} from "./elys/tokenomics/query_pb.js"; +export { + QueryParamsService as ElysTokenomicsQueryParamsService, + QueryAirdropService as ElysTokenomicsQueryAirdropService, + QueryAirdropAllService as ElysTokenomicsQueryAirdropAllService, + QueryGenesisInflationService as ElysTokenomicsQueryGenesisInflationService, + QueryTimeBasedInflationService as ElysTokenomicsQueryTimeBasedInflationService, + QueryTimeBasedInflationAllService as ElysTokenomicsQueryTimeBasedInflationAllService, +} from "./elys/tokenomics/query_cosmes.js"; +export { + Params as ElysTokenomicsParams, +} from "./elys/tokenomics/params_pb.js"; +export { + InflationEntry as ElysTokenomicsInflationEntry, +} from "./elys/tokenomics/inflation_entry_pb.js"; +export { + GenesisState as ElysTokenomicsGenesisState, +} from "./elys/tokenomics/genesis_pb.js"; +export { + GenesisInflation as ElysTokenomicsGenesisInflation, +} from "./elys/tokenomics/genesis_inflation_pb.js"; +export { + Airdrop as ElysTokenomicsAirdrop, +} from "./elys/tokenomics/airdrop_pb.js"; +export { + MembershipTierType as ElysTierMembershipTierType, + UserData as ElysTierUserData, + Pool as ElysTierPool, + MembershipTier as ElysTierMembershipTier, +} from "./elys/tier/userdata_pb.js"; +export { + MsgSetPortfolio as ElysTierMsgSetPortfolio, + MsgSetPortfolioResponse as ElysTierMsgSetPortfolioResponse, +} from "./elys/tier/tx_pb.js"; +export { + MsgSetPortfolioService as ElysTierMsgSetPortfolioService, +} from "./elys/tier/tx_cosmes.js"; +export { + QueryParamsRequest as ElysTierQueryParamsRequest, + QueryParamsResponse as ElysTierQueryParamsResponse, + QueryGetPortfolioRequest as ElysTierQueryGetPortfolioRequest, + QueryGetPortfolioResponse as ElysTierQueryGetPortfolioResponse, + QueryAllPortfolioRequest as ElysTierQueryAllPortfolioRequest, + QueryAllPortfolioResponse as ElysTierQueryAllPortfolioResponse, + QueryCalculateDiscountRequest as ElysTierQueryCalculateDiscountRequest, + QueryCalculateDiscountResponse as ElysTierQueryCalculateDiscountResponse, + QueryLeverageLpTotalRequest as ElysTierQueryLeverageLpTotalRequest, + QueryLeverageLpTotalResponse as ElysTierQueryLeverageLpTotalResponse, + QueryRewardsTotalRequest as ElysTierQueryRewardsTotalRequest, + QueryRewardsTotalResponse as ElysTierQueryRewardsTotalResponse, + QueryStakedPoolRequest as ElysTierQueryStakedPoolRequest, + QueryStakedPoolResponse as ElysTierQueryStakedPoolResponse, + QueryPerpetualRequest as ElysTierQueryPerpetualRequest, + QueryPerpetualResponse as ElysTierQueryPerpetualResponse, + QueryLiquidTotalRequest as ElysTierQueryLiquidTotalRequest, + QueryLiquidTotalResponse as ElysTierQueryLiquidTotalResponse, + QueryLockedOrderRequest as ElysTierQueryLockedOrderRequest, + QueryLockedOrderResponse as ElysTierQueryLockedOrderResponse, + QueryGetAmmPriceRequest as ElysTierQueryGetAmmPriceRequest, + GetAmmPriceResponseResult as ElysTierGetAmmPriceResponseResult, + QueryGetAmmPriceResponse as ElysTierQueryGetAmmPriceResponse, + QueryGetConsolidatedPriceRequest as ElysTierQueryGetConsolidatedPriceRequest, + QueryGetConsolidatedPriceResponse as ElysTierQueryGetConsolidatedPriceResponse, + QueryStakedRequest as ElysTierQueryStakedRequest, + QueryStakedResponse as ElysTierQueryStakedResponse, + QueryGetUsersPoolDataRequest as ElysTierQueryGetUsersPoolDataRequest, + QueryGetUsersPoolDataResponse as ElysTierQueryGetUsersPoolDataResponse, + Price as ElysTierPrice, + QueryGetAllPricesRequest as ElysTierQueryGetAllPricesRequest, + QueryGetAllPricesResponse as ElysTierQueryGetAllPricesResponse, + OraclePrice as ElysTierOraclePrice, + QueryGetOraclePricesRequest as ElysTierQueryGetOraclePricesRequest, + QueryGetOraclePricesResponse as ElysTierQueryGetOraclePricesResponse, +} from "./elys/tier/query_pb.js"; +export { + QueryParamsService as ElysTierQueryParamsService, + QueryPortfolioService as ElysTierQueryPortfolioService, + QueryPortfolioAllService as ElysTierQueryPortfolioAllService, + QueryCalculateDiscountService as ElysTierQueryCalculateDiscountService, + QueryLeverageLpTotalService as ElysTierQueryLeverageLpTotalService, + QueryRewardsTotalService as ElysTierQueryRewardsTotalService, + QueryStakedPoolService as ElysTierQueryStakedPoolService, + QueryPerpetualService as ElysTierQueryPerpetualService, + QueryLiquidTotalService as ElysTierQueryLiquidTotalService, + QueryLockedOrderService as ElysTierQueryLockedOrderService, + QueryGetAmmPriceService as ElysTierQueryGetAmmPriceService, + QueryGetConsolidatedPriceService as ElysTierQueryGetConsolidatedPriceService, + QueryStakedService as ElysTierQueryStakedService, + QueryGetUsersPoolDataService as ElysTierQueryGetUsersPoolDataService, + QueryGetAllPricesService as ElysTierQueryGetAllPricesService, + QueryGetOraclePricesService as ElysTierQueryGetOraclePricesService, +} from "./elys/tier/query_cosmes.js"; +export { + LegacyPortfolio as ElysTierLegacyPortfolio, + Portfolio as ElysTierPortfolio, +} from "./elys/tier/portfolio_pb.js"; +export { + Params as ElysTierParams, +} from "./elys/tier/params_pb.js"; +export { + GenesisState as ElysTierGenesisState, +} from "./elys/tier/genesis_pb.js"; +export { + BalanceBorrowed as ElysStablestakeBalanceBorrowed, + InterestBlock as ElysStablestakeInterestBlock, +} from "./elys/stablestake/types_pb.js"; +export { + MsgBond as ElysStablestakeMsgBond, + MsgBondResponse as ElysStablestakeMsgBondResponse, + MsgUnbond as ElysStablestakeMsgUnbond, + MsgUnbondResponse as ElysStablestakeMsgUnbondResponse, + MsgUpdateParams as ElysStablestakeMsgUpdateParams, + MsgUpdateParamsResponse as ElysStablestakeMsgUpdateParamsResponse, + MsgAddPool as ElysStablestakeMsgAddPool, + MsgAddPoolResponse as ElysStablestakeMsgAddPoolResponse, + MsgUpdatePool as ElysStablestakeMsgUpdatePool, + MsgUpdatePoolResponse as ElysStablestakeMsgUpdatePoolResponse, +} from "./elys/stablestake/tx_pb.js"; +export { + MsgBondService as ElysStablestakeMsgBondService, + MsgUnbondService as ElysStablestakeMsgUnbondService, + MsgUpdateParamsService as ElysStablestakeMsgUpdateParamsService, + MsgAddPoolService as ElysStablestakeMsgAddPoolService, + MsgUpdatePoolService as ElysStablestakeMsgUpdatePoolService, +} from "./elys/stablestake/tx_cosmes.js"; +export { + QueryParamsRequest as ElysStablestakeQueryParamsRequest, + QueryParamsResponse as ElysStablestakeQueryParamsResponse, + QueryAmmPoolRequest as ElysStablestakeQueryAmmPoolRequest, + QueryAmmPoolResponse as ElysStablestakeQueryAmmPoolResponse, + QueryAllAmmPoolsRequest as ElysStablestakeQueryAllAmmPoolsRequest, + QueryAllAmmPoolsResponse as ElysStablestakeQueryAllAmmPoolsResponse, + QueryBorrowRatioRequest as ElysStablestakeQueryBorrowRatioRequest, + QueryBorrowRatioResponse as ElysStablestakeQueryBorrowRatioResponse, + QueryGetPoolRequest as ElysStablestakeQueryGetPoolRequest, + QueryGetPoolResponse as ElysStablestakeQueryGetPoolResponse, + QueryAllPoolRequest as ElysStablestakeQueryAllPoolRequest, + QueryAllPoolResponse as ElysStablestakeQueryAllPoolResponse, + PoolResponse as ElysStablestakePoolResponse, + QueryDebtRequest as ElysStablestakeQueryDebtRequest, + QueryDebtResponse as ElysStablestakeQueryDebtResponse, + QueryGetInterestRequest as ElysStablestakeQueryGetInterestRequest, + QueryGetInterestResponse as ElysStablestakeQueryGetInterestResponse, + MaxBondableAmountRequest as ElysStablestakeMaxBondableAmountRequest, + MaxBondableAmountResponse as ElysStablestakeMaxBondableAmountResponse, +} from "./elys/stablestake/query_pb.js"; +export { + QueryParamsService as ElysStablestakeQueryParamsService, + QueryBorrowRatioService as ElysStablestakeQueryBorrowRatioService, + QueryPoolService as ElysStablestakeQueryPoolService, + QueryPoolsService as ElysStablestakeQueryPoolsService, + QueryAmmPoolService as ElysStablestakeQueryAmmPoolService, + QueryAllAmmPoolsService as ElysStablestakeQueryAllAmmPoolsService, + QueryDebtService as ElysStablestakeQueryDebtService, + QueryGetInterestService as ElysStablestakeQueryGetInterestService, + QueryMaxBondableAmountService as ElysStablestakeQueryMaxBondableAmountService, +} from "./elys/stablestake/query_cosmes.js"; +export { + Pool as ElysStablestakePool, + AmmPool as ElysStablestakeAmmPool, +} from "./elys/stablestake/pool_pb.js"; +export { + LegacyParams as ElysStablestakeLegacyParams, + Params as ElysStablestakeParams, +} from "./elys/stablestake/params_pb.js"; +export { + GenesisState as ElysStablestakeGenesisState, +} from "./elys/stablestake/genesis_pb.js"; +export { + Debt as ElysStablestakeDebt, +} from "./elys/stablestake/debt_pb.js"; +export { + Position as ElysPerpetualPosition, + MTP as ElysPerpetualMTP, + InterestBlock as ElysPerpetualInterestBlock, + FundingRateBlock as ElysPerpetualFundingRateBlock, + WhiteList as ElysPerpetualWhiteList, + PositionRequest as ElysPerpetualPositionRequest, +} from "./elys/perpetual/types_pb.js"; +export { + MsgOpen as ElysPerpetualMsgOpen, + MsgOpenResponse as ElysPerpetualMsgOpenResponse, + MsgClose as ElysPerpetualMsgClose, + MsgCloseResponse as ElysPerpetualMsgCloseResponse, + MsgUpdateParams as ElysPerpetualMsgUpdateParams, + MsgUpdateParamsResponse as ElysPerpetualMsgUpdateParamsResponse, + MsgWhitelist as ElysPerpetualMsgWhitelist, + MsgWhitelistResponse as ElysPerpetualMsgWhitelistResponse, + MsgDewhitelist as ElysPerpetualMsgDewhitelist, + MsgDewhitelistResponse as ElysPerpetualMsgDewhitelistResponse, + MsgClosePositions as ElysPerpetualMsgClosePositions, + MsgClosePositionsResponse as ElysPerpetualMsgClosePositionsResponse, + MsgUpdateStopLoss as ElysPerpetualMsgUpdateStopLoss, + MsgUpdateStopLossResponse as ElysPerpetualMsgUpdateStopLossResponse, + MsgUpdateTakeProfitPrice as ElysPerpetualMsgUpdateTakeProfitPrice, + MsgUpdateTakeProfitPriceResponse as ElysPerpetualMsgUpdateTakeProfitPriceResponse, + MsgUpdateMaxLeverageForPool as ElysPerpetualMsgUpdateMaxLeverageForPool, + MsgUpdateMaxLeverageForPoolResponse as ElysPerpetualMsgUpdateMaxLeverageForPoolResponse, + PoolParams as ElysPerpetualPoolParams, + MsgUpdateEnabledPools as ElysPerpetualMsgUpdateEnabledPools, + MsgUpdateEnabledPoolsResponse as ElysPerpetualMsgUpdateEnabledPoolsResponse, + MsgAddCollateral as ElysPerpetualMsgAddCollateral, + MsgAddCollateralResponse as ElysPerpetualMsgAddCollateralResponse, +} from "./elys/perpetual/tx_pb.js"; +export { + MsgOpenService as ElysPerpetualMsgOpenService, + MsgAddCollateralService as ElysPerpetualMsgAddCollateralService, + MsgCloseService as ElysPerpetualMsgCloseService, + MsgUpdateParamsService as ElysPerpetualMsgUpdateParamsService, + MsgWhitelistService as ElysPerpetualMsgWhitelistService, + MsgDewhitelistService as ElysPerpetualMsgDewhitelistService, + MsgUpdateStopLossService as ElysPerpetualMsgUpdateStopLossService, + MsgClosePositionsService as ElysPerpetualMsgClosePositionsService, + MsgUpdateTakeProfitPriceService as ElysPerpetualMsgUpdateTakeProfitPriceService, + MsgUpdateMaxLeverageForPoolService as ElysPerpetualMsgUpdateMaxLeverageForPoolService, + MsgUpdateEnabledPoolsService as ElysPerpetualMsgUpdateEnabledPoolsService, +} from "./elys/perpetual/tx_cosmes.js"; +export { + Fees as ElysPerpetualFees, + MtpAndPrice as ElysPerpetualMtpAndPrice, + ParamsRequest as ElysPerpetualParamsRequest, + ParamsResponse as ElysPerpetualParamsResponse, + PositionsRequest as ElysPerpetualPositionsRequest, + PositionsResponse as ElysPerpetualPositionsResponse, + PositionsByPoolRequest as ElysPerpetualPositionsByPoolRequest, + PositionsByPoolResponse as ElysPerpetualPositionsByPoolResponse, + PerpetualCounterRequest as ElysPerpetualPerpetualCounterRequest, + PerpetualCounterResponse as ElysPerpetualPerpetualCounterResponse, + PositionsForAddressRequest as ElysPerpetualPositionsForAddressRequest, + PositionsForAddressResponse as ElysPerpetualPositionsForAddressResponse, + WhitelistRequest as ElysPerpetualWhitelistRequest, + WhitelistResponse as ElysPerpetualWhitelistResponse, + IsWhitelistedRequest as ElysPerpetualIsWhitelistedRequest, + IsWhitelistedResponse as ElysPerpetualIsWhitelistedResponse, + QueryGetPoolRequest as ElysPerpetualQueryGetPoolRequest, + QueryGetPoolResponse as ElysPerpetualQueryGetPoolResponse, + QueryAllPoolRequest as ElysPerpetualQueryAllPoolRequest, + QueryAllPoolResponse as ElysPerpetualQueryAllPoolResponse, + MTPRequest as ElysPerpetualMTPRequest, + MTPResponse as ElysPerpetualMTPResponse, + QueryOpenEstimationRequest as ElysPerpetualQueryOpenEstimationRequest, + QueryOpenEstimationResponse as ElysPerpetualQueryOpenEstimationResponse, + PoolResponse as ElysPerpetualPoolResponse, + QueryCloseEstimationRequest as ElysPerpetualQueryCloseEstimationRequest, + QueryCloseEstimationResponse as ElysPerpetualQueryCloseEstimationResponse, + QueryOpenEstimationByFinalRequest as ElysPerpetualQueryOpenEstimationByFinalRequest, + QueryOpenEstimationByFinalResponse as ElysPerpetualQueryOpenEstimationByFinalResponse, +} from "./elys/perpetual/query_pb.js"; +export { + QueryParamsService as ElysPerpetualQueryParamsService, + QueryGetPositionsService as ElysPerpetualQueryGetPositionsService, + QueryGetPositionsByPoolService as ElysPerpetualQueryGetPositionsByPoolService, + QueryPerpetualCounterService as ElysPerpetualQueryPerpetualCounterService, + QueryGetPositionsForAddressService as ElysPerpetualQueryGetPositionsForAddressService, + QueryGetWhitelistService as ElysPerpetualQueryGetWhitelistService, + QueryIsWhitelistedService as ElysPerpetualQueryIsWhitelistedService, + QueryPoolService as ElysPerpetualQueryPoolService, + QueryPoolsService as ElysPerpetualQueryPoolsService, + QueryMTPService as ElysPerpetualQueryMTPService, + QueryOpenEstimationService as ElysPerpetualQueryOpenEstimationService, + QueryCloseEstimationService as ElysPerpetualQueryCloseEstimationService, + QueryOpenEstimationByFinalService as ElysPerpetualQueryOpenEstimationByFinalService, +} from "./elys/perpetual/query_cosmes.js"; +export { + PoolAsset as ElysPerpetualPoolAsset, + Pool as ElysPerpetualPool, + PerpetualCounter as ElysPerpetualPerpetualCounter, +} from "./elys/perpetual/pool_pb.js"; +export { + Params as ElysPerpetualParams, +} from "./elys/perpetual/params_pb.js"; +export { + GenesisState as ElysPerpetualGenesisState, +} from "./elys/perpetual/genesis_pb.js"; +export { + MsgUpdateMinCommission as ElysParameterMsgUpdateMinCommission, + MsgUpdateMinCommissionResponse as ElysParameterMsgUpdateMinCommissionResponse, + MsgUpdateMaxVotingPower as ElysParameterMsgUpdateMaxVotingPower, + MsgUpdateMaxVotingPowerResponse as ElysParameterMsgUpdateMaxVotingPowerResponse, + MsgUpdateMinSelfDelegation as ElysParameterMsgUpdateMinSelfDelegation, + MsgUpdateMinSelfDelegationResponse as ElysParameterMsgUpdateMinSelfDelegationResponse, + MsgUpdateTotalBlocksPerYear as ElysParameterMsgUpdateTotalBlocksPerYear, + MsgUpdateTotalBlocksPerYearResponse as ElysParameterMsgUpdateTotalBlocksPerYearResponse, + MsgUpdateRewardsDataLifetime as ElysParameterMsgUpdateRewardsDataLifetime, + MsgUpdateRewardsDataLifetimeResponse as ElysParameterMsgUpdateRewardsDataLifetimeResponse, + MsgUpdateTakerFees as ElysParameterMsgUpdateTakerFees, + MsgUpdateTakerFeesResponse as ElysParameterMsgUpdateTakerFeesResponse, +} from "./elys/parameter/tx_pb.js"; +export { + MsgUpdateMinCommissionService as ElysParameterMsgUpdateMinCommissionService, + MsgUpdateMaxVotingPowerService as ElysParameterMsgUpdateMaxVotingPowerService, + MsgUpdateMinSelfDelegationService as ElysParameterMsgUpdateMinSelfDelegationService, + MsgUpdateTotalBlocksPerYearService as ElysParameterMsgUpdateTotalBlocksPerYearService, + MsgUpdateRewardsDataLifetimeService as ElysParameterMsgUpdateRewardsDataLifetimeService, + MsgUpdateTakerFeesService as ElysParameterMsgUpdateTakerFeesService, +} from "./elys/parameter/tx_cosmes.js"; +export { + QueryParamsRequest as ElysParameterQueryParamsRequest, + QueryParamsResponse as ElysParameterQueryParamsResponse, +} from "./elys/parameter/query_pb.js"; +export { + QueryParamsService as ElysParameterQueryParamsService, +} from "./elys/parameter/query_cosmes.js"; +export { + LegacyParams as ElysParameterLegacyParams, + Params as ElysParameterParams, +} from "./elys/parameter/params_pb.js"; +export { + GenesisState as ElysParameterGenesisState, +} from "./elys/parameter/genesis_pb.js"; +export { + FeedPrice as ElysOracleFeedPrice, + MsgFeedPrice as ElysOracleMsgFeedPrice, + MsgFeedPriceResponse as ElysOracleMsgFeedPriceResponse, + MsgSetPriceFeeder as ElysOracleMsgSetPriceFeeder, + MsgSetPriceFeederResponse as ElysOracleMsgSetPriceFeederResponse, + MsgDeletePriceFeeder as ElysOracleMsgDeletePriceFeeder, + MsgDeletePriceFeederResponse as ElysOracleMsgDeletePriceFeederResponse, + MsgFeedMultiplePrices as ElysOracleMsgFeedMultiplePrices, + MsgFeedMultiplePricesResponse as ElysOracleMsgFeedMultiplePricesResponse, + MsgRemoveAssetInfo as ElysOracleMsgRemoveAssetInfo, + MsgRemoveAssetInfoResponse as ElysOracleMsgRemoveAssetInfoResponse, + MsgAddPriceFeeders as ElysOracleMsgAddPriceFeeders, + MsgAddPriceFeedersResponse as ElysOracleMsgAddPriceFeedersResponse, + MsgRemovePriceFeeders as ElysOracleMsgRemovePriceFeeders, + MsgRemovePriceFeedersResponse as ElysOracleMsgRemovePriceFeedersResponse, + MsgUpdateParams as ElysOracleMsgUpdateParams, + MsgUpdateParamsResponse as ElysOracleMsgUpdateParamsResponse, + MsgCreateAssetInfo as ElysOracleMsgCreateAssetInfo, + MsgCreateAssetInfoResponse as ElysOracleMsgCreateAssetInfoResponse, +} from "./elys/oracle/tx_pb.js"; +export { + MsgFeedPriceService as ElysOracleMsgFeedPriceService, + MsgFeedMultiplePricesService as ElysOracleMsgFeedMultiplePricesService, + MsgSetPriceFeederService as ElysOracleMsgSetPriceFeederService, + MsgDeletePriceFeederService as ElysOracleMsgDeletePriceFeederService, + MsgRemoveAssetInfoService as ElysOracleMsgRemoveAssetInfoService, + MsgAddPriceFeedersService as ElysOracleMsgAddPriceFeedersService, + MsgRemovePriceFeedersService as ElysOracleMsgRemovePriceFeedersService, + MsgUpdateParamsService as ElysOracleMsgUpdateParamsService, + MsgCreateAssetInfoService as ElysOracleMsgCreateAssetInfoService, +} from "./elys/oracle/tx_cosmes.js"; +export { + QueryParamsRequest as ElysOracleQueryParamsRequest, + QueryParamsResponse as ElysOracleQueryParamsResponse, + QueryGetAssetInfoRequest as ElysOracleQueryGetAssetInfoRequest, + QueryGetAssetInfoResponse as ElysOracleQueryGetAssetInfoResponse, + QueryAllAssetInfoRequest as ElysOracleQueryAllAssetInfoRequest, + QueryAllAssetInfoResponse as ElysOracleQueryAllAssetInfoResponse, + QueryGetPriceRequest as ElysOracleQueryGetPriceRequest, + QueryGetPriceResponse as ElysOracleQueryGetPriceResponse, + QueryAllPriceRequest as ElysOracleQueryAllPriceRequest, + QueryAllPriceResponse as ElysOracleQueryAllPriceResponse, + QueryGetPriceFeederRequest as ElysOracleQueryGetPriceFeederRequest, + QueryGetPriceFeederResponse as ElysOracleQueryGetPriceFeederResponse, + QueryAllPriceFeederRequest as ElysOracleQueryAllPriceFeederRequest, + QueryAllPriceFeederResponse as ElysOracleQueryAllPriceFeederResponse, +} from "./elys/oracle/query_pb.js"; +export { + QueryParamsService as ElysOracleQueryParamsService, + QueryAssetInfoService as ElysOracleQueryAssetInfoService, + QueryAssetInfoAllService as ElysOracleQueryAssetInfoAllService, + QueryPriceService as ElysOracleQueryPriceService, + QueryPriceAllService as ElysOracleQueryPriceAllService, + QueryPriceFeederService as ElysOracleQueryPriceFeederService, + QueryPriceFeederAllService as ElysOracleQueryPriceFeederAllService, +} from "./elys/oracle/query_cosmes.js"; +export { + Price as ElysOraclePrice, + LegacyPrice as ElysOracleLegacyPrice, +} from "./elys/oracle/price_pb.js"; +export { + PriceFeeder as ElysOraclePriceFeeder, +} from "./elys/oracle/price_feeder_pb.js"; +export { + Params as ElysOracleParams, +} from "./elys/oracle/params_pb.js"; +export { + GenesisState as ElysOracleGenesisState, +} from "./elys/oracle/genesis_pb.js"; +export { + BandPriceCallData as ElysOracleBandPriceCallData, + BandPriceResult as ElysOracleBandPriceResult, +} from "./elys/oracle/band_price_pb.js"; +export { + AssetInfo as ElysOracleAssetInfo, +} from "./elys/oracle/asset_info_pb.js"; +export { + FeeInfo as ElysMasterchefFeeInfo, +} from "./elys/masterchef/types_pb.js"; +export { + MsgAddExternalRewardDenom as ElysMasterchefMsgAddExternalRewardDenom, + MsgAddExternalRewardDenomResponse as ElysMasterchefMsgAddExternalRewardDenomResponse, + MsgAddExternalIncentive as ElysMasterchefMsgAddExternalIncentive, + MsgAddExternalIncentiveResponse as ElysMasterchefMsgAddExternalIncentiveResponse, + MsgUpdateParams as ElysMasterchefMsgUpdateParams, + MsgUpdateParamsResponse as ElysMasterchefMsgUpdateParamsResponse, + PoolMultiplier as ElysMasterchefPoolMultiplier, + MsgUpdatePoolMultipliers as ElysMasterchefMsgUpdatePoolMultipliers, + MsgUpdatePoolMultipliersResponse as ElysMasterchefMsgUpdatePoolMultipliersResponse, + MsgClaimRewards as ElysMasterchefMsgClaimRewards, + MsgClaimRewardsResponse as ElysMasterchefMsgClaimRewardsResponse, + MsgTogglePoolEdenRewards as ElysMasterchefMsgTogglePoolEdenRewards, + MsgTogglePoolEdenRewardsResponse as ElysMasterchefMsgTogglePoolEdenRewardsResponse, + MsgToggleTakerFeeSwapAndBurn as ElysMasterchefMsgToggleTakerFeeSwapAndBurn, + MsgToggleTakerFeeSwapAndBurnResponse as ElysMasterchefMsgToggleTakerFeeSwapAndBurnResponse, +} from "./elys/masterchef/tx_pb.js"; +export { + MsgAddExternalRewardDenomService as ElysMasterchefMsgAddExternalRewardDenomService, + MsgAddExternalIncentiveService as ElysMasterchefMsgAddExternalIncentiveService, + MsgUpdateParamsService as ElysMasterchefMsgUpdateParamsService, + MsgUpdatePoolMultipliersService as ElysMasterchefMsgUpdatePoolMultipliersService, + MsgClaimRewardsService as ElysMasterchefMsgClaimRewardsService, + MsgTogglePoolEdenRewardsService as ElysMasterchefMsgTogglePoolEdenRewardsService, + MsgToggleTakerFeeSwapAndBurnService as ElysMasterchefMsgToggleTakerFeeSwapAndBurnService, +} from "./elys/masterchef/tx_cosmes.js"; +export { + QueryAllLiquidityPoolTVLRequest as ElysMasterchefQueryAllLiquidityPoolTVLRequest, + QueryAllLiquidityPoolTVLResponse as ElysMasterchefQueryAllLiquidityPoolTVLResponse, + QueryChainTVLRequest as ElysMasterchefQueryChainTVLRequest, + QueryChainTVLResponse as ElysMasterchefQueryChainTVLResponse, + QueryParamsRequest as ElysMasterchefQueryParamsRequest, + QueryParamsResponse as ElysMasterchefQueryParamsResponse, + QueryExternalIncentiveRequest as ElysMasterchefQueryExternalIncentiveRequest, + QueryExternalIncentiveResponse as ElysMasterchefQueryExternalIncentiveResponse, + QueryPoolInfoRequest as ElysMasterchefQueryPoolInfoRequest, + QueryPoolInfoResponse as ElysMasterchefQueryPoolInfoResponse, + QueryListPoolInfosRequest as ElysMasterchefQueryListPoolInfosRequest, + QueryListPoolInfosResponse as ElysMasterchefQueryListPoolInfosResponse, + QueryPoolRewardInfoRequest as ElysMasterchefQueryPoolRewardInfoRequest, + QueryPoolRewardInfoResponse as ElysMasterchefQueryPoolRewardInfoResponse, + QueryUserRewardInfoRequest as ElysMasterchefQueryUserRewardInfoRequest, + QueryUserRewardInfoResponse as ElysMasterchefQueryUserRewardInfoResponse, + QueryUserPendingRewardRequest as ElysMasterchefQueryUserPendingRewardRequest, + RewardInfo as ElysMasterchefRewardInfo, + QueryUserPendingRewardResponse as ElysMasterchefQueryUserPendingRewardResponse, + QueryStableStakeAprRequest as ElysMasterchefQueryStableStakeAprRequest, + QueryStableStakeAprResponse as ElysMasterchefQueryStableStakeAprResponse, + QueryPoolAprsRequest as ElysMasterchefQueryPoolAprsRequest, + QueryPoolAprsResponse as ElysMasterchefQueryPoolAprsResponse, + PoolApr as ElysMasterchefPoolApr, + QueryShowFeeInfoRequest as ElysMasterchefQueryShowFeeInfoRequest, + QueryShowFeeInfoResponse as ElysMasterchefQueryShowFeeInfoResponse, + QueryListFeeInfoRequest as ElysMasterchefQueryListFeeInfoRequest, + QueryListFeeInfoResponse as ElysMasterchefQueryListFeeInfoResponse, + QueryAprRequest as ElysMasterchefQueryAprRequest, + QueryAprResponse as ElysMasterchefQueryAprResponse, + QueryAprsRequest as ElysMasterchefQueryAprsRequest, + QueryAprsResponse as ElysMasterchefQueryAprsResponse, + QueryPoolRewardsRequest as ElysMasterchefQueryPoolRewardsRequest, + PoolRewards as ElysMasterchefPoolRewards, + QueryPoolRewardsResponse as ElysMasterchefQueryPoolRewardsResponse, + QueryTotalPendingRewardsRequest as ElysMasterchefQueryTotalPendingRewardsRequest, + QueryTotalPendingRewardsResponse as ElysMasterchefQueryTotalPendingRewardsResponse, + QueryPendingRewardsRequest as ElysMasterchefQueryPendingRewardsRequest, + QueryPendingRewardsResponse as ElysMasterchefQueryPendingRewardsResponse, +} from "./elys/masterchef/query_pb.js"; +export { + QueryParamsService as ElysMasterchefQueryParamsService, + QueryExternalIncentiveService as ElysMasterchefQueryExternalIncentiveService, + QueryPoolInfoService as ElysMasterchefQueryPoolInfoService, + QueryListPoolInfosService as ElysMasterchefQueryListPoolInfosService, + QueryPoolRewardInfoService as ElysMasterchefQueryPoolRewardInfoService, + QueryUserRewardInfoService as ElysMasterchefQueryUserRewardInfoService, + QueryUserPendingRewardService as ElysMasterchefQueryUserPendingRewardService, + QueryStableStakeAprService as ElysMasterchefQueryStableStakeAprService, + QueryPoolAprsService as ElysMasterchefQueryPoolAprsService, + QueryShowFeeInfoService as ElysMasterchefQueryShowFeeInfoService, + QueryListFeeInfoService as ElysMasterchefQueryListFeeInfoService, + QueryAprService as ElysMasterchefQueryAprService, + QueryAprsService as ElysMasterchefQueryAprsService, + QueryPoolRewardsService as ElysMasterchefQueryPoolRewardsService, + QueryAllLiquidityPoolTVLService as ElysMasterchefQueryAllLiquidityPoolTVLService, + QueryChainTVLService as ElysMasterchefQueryChainTVLService, + QueryTotalPendingRewardsService as ElysMasterchefQueryTotalPendingRewardsService, + QueryPendingRewardsService as ElysMasterchefQueryPendingRewardsService, +} from "./elys/masterchef/query_cosmes.js"; +export { + PoolInfo as ElysMasterchefPoolInfo, + LegacyPoolInfo as ElysMasterchefLegacyPoolInfo, + PoolRewardInfo as ElysMasterchefPoolRewardInfo, + UserRewardInfo as ElysMasterchefUserRewardInfo, + PoolRewardsAccum as ElysMasterchefPoolRewardsAccum, +} from "./elys/masterchef/pool_pb.js"; +export { + LegacyParams as ElysMasterchefLegacyParams, + Params as ElysMasterchefParams, + SupportedRewardDenom as ElysMasterchefSupportedRewardDenom, +} from "./elys/masterchef/params_pb.js"; +export { + LegacyIncentiveInfo as ElysMasterchefLegacyIncentiveInfo, + IncentiveInfo as ElysMasterchefIncentiveInfo, +} from "./elys/masterchef/incentive_pb.js"; +export { + GenesisState as ElysMasterchefGenesisState, +} from "./elys/masterchef/genesis_pb.js"; +export { + ExternalIncentive as ElysMasterchefExternalIncentive, +} from "./elys/masterchef/external_incentive_pb.js"; +export { + PositionRequest as ElysLeveragelpPositionRequest, + Position as ElysLeveragelpPosition, + QueryPosition as ElysLeveragelpQueryPosition, + PositionAndInterest as ElysLeveragelpPositionAndInterest, + PositionCounter as ElysLeveragelpPositionCounter, + ADLCounter as ElysLeveragelpADLCounter, + FallbackCounter as ElysLeveragelpFallbackCounter, +} from "./elys/leveragelp/types_pb.js"; +export { + MsgOpen as ElysLeveragelpMsgOpen, + MsgOpenResponse as ElysLeveragelpMsgOpenResponse, + MsgClose as ElysLeveragelpMsgClose, + MsgCloseResponse as ElysLeveragelpMsgCloseResponse, + MsgClaimRewards as ElysLeveragelpMsgClaimRewards, + MsgClaimRewardsResponse as ElysLeveragelpMsgClaimRewardsResponse, + MsgUpdateParams as ElysLeveragelpMsgUpdateParams, + MsgUpdateParamsResponse as ElysLeveragelpMsgUpdateParamsResponse, + MsgWhitelist as ElysLeveragelpMsgWhitelist, + MsgWhitelistResponse as ElysLeveragelpMsgWhitelistResponse, + MsgDewhitelist as ElysLeveragelpMsgDewhitelist, + MsgDewhitelistResponse as ElysLeveragelpMsgDewhitelistResponse, + MsgUpdateStopLoss as ElysLeveragelpMsgUpdateStopLoss, + MsgUpdateStopLossResponse as ElysLeveragelpMsgUpdateStopLossResponse, + AddPool as ElysLeveragelpAddPool, + MsgAddPool as ElysLeveragelpMsgAddPool, + MsgAddPoolResponse as ElysLeveragelpMsgAddPoolResponse, + MsgRemovePool as ElysLeveragelpMsgRemovePool, + MsgRemovePoolResponse as ElysLeveragelpMsgRemovePoolResponse, + MsgClosePositions as ElysLeveragelpMsgClosePositions, + MsgClosePositionsResponse as ElysLeveragelpMsgClosePositionsResponse, + MsgUpdatePool as ElysLeveragelpMsgUpdatePool, + MsgUpdatePoolResponse as ElysLeveragelpMsgUpdatePoolResponse, + MsgUpdateEnabledPools as ElysLeveragelpMsgUpdateEnabledPools, + MsgUpdateEnabledPoolsResponse as ElysLeveragelpMsgUpdateEnabledPoolsResponse, + MsgClaimAllUserRewards as ElysLeveragelpMsgClaimAllUserRewards, + MsgClaimAllUserRewardsResponse as ElysLeveragelpMsgClaimAllUserRewardsResponse, +} from "./elys/leveragelp/tx_pb.js"; +export { + MsgOpenService as ElysLeveragelpMsgOpenService, + MsgCloseService as ElysLeveragelpMsgCloseService, + MsgClaimRewardsService as ElysLeveragelpMsgClaimRewardsService, + MsgUpdateParamsService as ElysLeveragelpMsgUpdateParamsService, + MsgAddPoolService as ElysLeveragelpMsgAddPoolService, + MsgRemovePoolService as ElysLeveragelpMsgRemovePoolService, + MsgWhitelistService as ElysLeveragelpMsgWhitelistService, + MsgDewhitelistService as ElysLeveragelpMsgDewhitelistService, + MsgUpdateStopLossService as ElysLeveragelpMsgUpdateStopLossService, + MsgClosePositionsService as ElysLeveragelpMsgClosePositionsService, + MsgUpdatePoolService as ElysLeveragelpMsgUpdatePoolService, + MsgUpdateEnabledPoolsService as ElysLeveragelpMsgUpdateEnabledPoolsService, + MsgClaimAllUserRewardsService as ElysLeveragelpMsgClaimAllUserRewardsService, +} from "./elys/leveragelp/tx_cosmes.js"; +export { + ParamsRequest as ElysLeveragelpParamsRequest, + ParamsResponse as ElysLeveragelpParamsResponse, + PositionsRequest as ElysLeveragelpPositionsRequest, + PositionsResponse as ElysLeveragelpPositionsResponse, + PositionsByPoolRequest as ElysLeveragelpPositionsByPoolRequest, + PositionsByPoolResponse as ElysLeveragelpPositionsByPoolResponse, + PositionCounterRequest as ElysLeveragelpPositionCounterRequest, + PositionCounterResponse as ElysLeveragelpPositionCounterResponse, + PositionsForAddressRequest as ElysLeveragelpPositionsForAddressRequest, + PositionsForAddressResponse as ElysLeveragelpPositionsForAddressResponse, + WhitelistRequest as ElysLeveragelpWhitelistRequest, + WhitelistResponse as ElysLeveragelpWhitelistResponse, + IsWhitelistedRequest as ElysLeveragelpIsWhitelistedRequest, + IsWhitelistedResponse as ElysLeveragelpIsWhitelistedResponse, + QueryGetPoolRequest as ElysLeveragelpQueryGetPoolRequest, + QueryGetPoolResponse as ElysLeveragelpQueryGetPoolResponse, + QueryAllPoolRequest as ElysLeveragelpQueryAllPoolRequest, + QueryAllPoolResponse as ElysLeveragelpQueryAllPoolResponse, + PositionResponse as ElysLeveragelpPositionResponse, + QueryLiquidationPriceRequest as ElysLeveragelpQueryLiquidationPriceRequest, + QueryLiquidationPriceResponse as ElysLeveragelpQueryLiquidationPriceResponse, + QueryOpenEstRequest as ElysLeveragelpQueryOpenEstRequest, + QueryOpenEstResponse as ElysLeveragelpQueryOpenEstResponse, + QueryCloseEstRequest as ElysLeveragelpQueryCloseEstRequest, + QueryRewardsRequest as ElysLeveragelpQueryRewardsRequest, + RewardInfo as ElysLeveragelpRewardInfo, + QueryRewardsResponse as ElysLeveragelpQueryRewardsResponse, + QueryCloseEstResponse as ElysLeveragelpQueryCloseEstResponse, + QueryCommittedTokensLockedRequest as ElysLeveragelpQueryCommittedTokensLockedRequest, + PositionCommitedToken as ElysLeveragelpPositionCommitedToken, + QueryCommittedTokensLockedResponse as ElysLeveragelpQueryCommittedTokensLockedResponse, +} from "./elys/leveragelp/query_pb.js"; +export { + QueryParamsService as ElysLeveragelpQueryParamsService, + QueryQueryPositionsService as ElysLeveragelpQueryQueryPositionsService, + QueryQueryPositionsByPoolService as ElysLeveragelpQueryQueryPositionsByPoolService, + QueryQueryPositionCounterService as ElysLeveragelpQueryQueryPositionCounterService, + QueryQueryPositionsForAddressService as ElysLeveragelpQueryQueryPositionsForAddressService, + QueryGetWhitelistService as ElysLeveragelpQueryGetWhitelistService, + QueryIsWhitelistedService as ElysLeveragelpQueryIsWhitelistedService, + QueryPoolService as ElysLeveragelpQueryPoolService, + QueryPoolsService as ElysLeveragelpQueryPoolsService, + QueryPositionService as ElysLeveragelpQueryPositionService, + QueryLiquidationPriceService as ElysLeveragelpQueryLiquidationPriceService, + QueryOpenEstService as ElysLeveragelpQueryOpenEstService, + QueryCloseEstService as ElysLeveragelpQueryCloseEstService, + QueryRewardsService as ElysLeveragelpQueryRewardsService, + QueryCommittedTokensLockedService as ElysLeveragelpQueryCommittedTokensLockedService, +} from "./elys/leveragelp/query_cosmes.js"; +export { + Pool as ElysLeveragelpPool, + LegacyPool as ElysLeveragelpLegacyPool, + AssetLeverageAmount as ElysLeveragelpAssetLeverageAmount, +} from "./elys/leveragelp/pool_pb.js"; +export { + LegacyParams as ElysLeveragelpLegacyParams, + Params as ElysLeveragelpParams, +} from "./elys/leveragelp/params_pb.js"; +export { + GenesisState as ElysLeveragelpGenesisState, +} from "./elys/leveragelp/genesis_pb.js"; +export { + MsgUpdateParams as ElysEstakingMsgUpdateParams, + MsgUpdateParamsResponse as ElysEstakingMsgUpdateParamsResponse, + MsgWithdrawReward as ElysEstakingMsgWithdrawReward, + MsgWithdrawRewardResponse as ElysEstakingMsgWithdrawRewardResponse, + MsgWithdrawElysStakingRewards as ElysEstakingMsgWithdrawElysStakingRewards, + MsgWithdrawElysStakingRewardsResponse as ElysEstakingMsgWithdrawElysStakingRewardsResponse, + MsgWithdrawAllRewards as ElysEstakingMsgWithdrawAllRewards, + MsgWithdrawAllRewardsResponse as ElysEstakingMsgWithdrawAllRewardsResponse, + MsgUnjailGovernor as ElysEstakingMsgUnjailGovernor, + MsgUnjailGovernorResponse as ElysEstakingMsgUnjailGovernorResponse, +} from "./elys/estaking/tx_pb.js"; +export { + MsgUpdateParamsService as ElysEstakingMsgUpdateParamsService, + MsgWithdrawRewardService as ElysEstakingMsgWithdrawRewardService, + MsgWithdrawElysStakingRewardsService as ElysEstakingMsgWithdrawElysStakingRewardsService, + MsgWithdrawAllRewardsService as ElysEstakingMsgWithdrawAllRewardsService, + MsgUnjailGovernorService as ElysEstakingMsgUnjailGovernorService, +} from "./elys/estaking/tx_cosmes.js"; +export { + TokenType as ElysEstakingTokenType, + QueryParamsRequest as ElysEstakingQueryParamsRequest, + QueryParamsResponse as ElysEstakingQueryParamsResponse, + QueryRewardsRequest as ElysEstakingQueryRewardsRequest, + DelegationDelegatorReward as ElysEstakingDelegationDelegatorReward, + QueryRewardsResponse as ElysEstakingQueryRewardsResponse, + QueryInvariantRequest as ElysEstakingQueryInvariantRequest, + QueryInvariantResponse as ElysEstakingQueryInvariantResponse, + QueryEdenBBurnAmountRequest as ElysEstakingQueryEdenBBurnAmountRequest, + QueryEdenBBurnAmountResponse as ElysEstakingQueryEdenBBurnAmountResponse, +} from "./elys/estaking/query_pb.js"; +export { + QueryParamsService as ElysEstakingQueryParamsService, + QueryRewardsService as ElysEstakingQueryRewardsService, + QueryInvariantService as ElysEstakingQueryInvariantService, + QueryEdenBBurnAmountService as ElysEstakingQueryEdenBBurnAmountService, +} from "./elys/estaking/query_cosmes.js"; +export { + LegacyParams as ElysEstakingLegacyParams, + Params as ElysEstakingParams, +} from "./elys/estaking/params_pb.js"; +export { + IncentiveInfo as ElysEstakingIncentiveInfo, +} from "./elys/estaking/incentive_pb.js"; +export { + GenesisState as ElysEstakingGenesisState, +} from "./elys/estaking/genesis_pb.js"; +export { + ElysStaked as ElysEstakingElysStaked, +} from "./elys/estaking/elys_staked_pb.js"; +export { + DexRewardsTracker as ElysEstakingDexRewardsTracker, +} from "./elys/estaking/dex_rewards_tracker_pb.js"; +export { + QueryEpochsInfoRequest as ElysEpochsV1QueryEpochsInfoRequest, + QueryEpochsInfoResponse as ElysEpochsV1QueryEpochsInfoResponse, + QueryCurrentEpochRequest as ElysEpochsV1QueryCurrentEpochRequest, + QueryCurrentEpochResponse as ElysEpochsV1QueryCurrentEpochResponse, +} from "./elys/epochs/v1/query_pb.js"; +export { + QueryEpochInfosService as ElysEpochsV1QueryEpochInfosService, + QueryCurrentEpochService as ElysEpochsV1QueryCurrentEpochService, +} from "./elys/epochs/v1/query_cosmes.js"; +export { + EpochInfo as ElysEpochsV1EpochInfo, + GenesisState as ElysEpochsV1GenesisState, +} from "./elys/epochs/v1/genesis_pb.js"; +export { + MsgCommitClaimedRewards as ElysCommitmentMsgCommitClaimedRewards, + MsgCommitClaimedRewardsResponse as ElysCommitmentMsgCommitClaimedRewardsResponse, + MsgUncommitTokens as ElysCommitmentMsgUncommitTokens, + MsgUncommitTokensResponse as ElysCommitmentMsgUncommitTokensResponse, + MsgVest as ElysCommitmentMsgVest, + MsgVestResponse as ElysCommitmentMsgVestResponse, + MsgCancelVest as ElysCommitmentMsgCancelVest, + MsgCancelVestResponse as ElysCommitmentMsgCancelVestResponse, + MsgClaimVesting as ElysCommitmentMsgClaimVesting, + MsgClaimVestingResponse as ElysCommitmentMsgClaimVestingResponse, + MsgVestNow as ElysCommitmentMsgVestNow, + MsgVestNowResponse as ElysCommitmentMsgVestNowResponse, + MsgUpdateVestingInfo as ElysCommitmentMsgUpdateVestingInfo, + MsgUpdateVestingInfoResponse as ElysCommitmentMsgUpdateVestingInfoResponse, + MsgUpdateEnableVestNow as ElysCommitmentMsgUpdateEnableVestNow, + MsgUpdateEnableVestNowResponse as ElysCommitmentMsgUpdateEnableVestNowResponse, + MsgVestLiquid as ElysCommitmentMsgVestLiquid, + MsgVestLiquidResponse as ElysCommitmentMsgVestLiquidResponse, + MsgStake as ElysCommitmentMsgStake, + MsgStakeResponse as ElysCommitmentMsgStakeResponse, + MsgUnstake as ElysCommitmentMsgUnstake, + MsgUnstakeResponse as ElysCommitmentMsgUnstakeResponse, + MsgClaimAirdrop as ElysCommitmentMsgClaimAirdrop, + MsgClaimAirdropResponse as ElysCommitmentMsgClaimAirdropResponse, + MsgClaimKol as ElysCommitmentMsgClaimKol, + MsgClaimKolResponse as ElysCommitmentMsgClaimKolResponse, + MsgUpdateAirdropParams as ElysCommitmentMsgUpdateAirdropParams, + MsgUpdateAirdropParamsResponse as ElysCommitmentMsgUpdateAirdropParamsResponse, + MsgClaimRewardProgram as ElysCommitmentMsgClaimRewardProgram, + MsgClaimRewardProgramResponse as ElysCommitmentMsgClaimRewardProgramResponse, +} from "./elys/commitment/tx_pb.js"; +export { + MsgCommitClaimedRewardsService as ElysCommitmentMsgCommitClaimedRewardsService, + MsgUncommitTokensService as ElysCommitmentMsgUncommitTokensService, + MsgVestService as ElysCommitmentMsgVestService, + MsgVestNowService as ElysCommitmentMsgVestNowService, + MsgVestLiquidService as ElysCommitmentMsgVestLiquidService, + MsgCancelVestService as ElysCommitmentMsgCancelVestService, + MsgClaimVestingService as ElysCommitmentMsgClaimVestingService, + MsgUpdateVestingInfoService as ElysCommitmentMsgUpdateVestingInfoService, + MsgUpdateEnableVestNowService as ElysCommitmentMsgUpdateEnableVestNowService, + MsgUpdateAirdropParamsService as ElysCommitmentMsgUpdateAirdropParamsService, + MsgStakeService as ElysCommitmentMsgStakeService, + MsgUnstakeService as ElysCommitmentMsgUnstakeService, + MsgClaimAirdropService as ElysCommitmentMsgClaimAirdropService, + MsgClaimKolService as ElysCommitmentMsgClaimKolService, + MsgClaimRewardProgramService as ElysCommitmentMsgClaimRewardProgramService, +} from "./elys/commitment/tx_cosmes.js"; +export { + QueryParamsRequest as ElysCommitmentQueryParamsRequest, + QueryParamsResponse as ElysCommitmentQueryParamsResponse, + QueryShowCommitmentsRequest as ElysCommitmentQueryShowCommitmentsRequest, + QueryShowCommitmentsResponse as ElysCommitmentQueryShowCommitmentsResponse, + QueryNumberOfCommitmentsRequest as ElysCommitmentQueryNumberOfCommitmentsRequest, + QueryNumberOfCommitmentsResponse as ElysCommitmentQueryNumberOfCommitmentsResponse, + QueryCommittedTokensLockedRequest as ElysCommitmentQueryCommittedTokensLockedRequest, + QueryCommittedTokensLockedResponse as ElysCommitmentQueryCommittedTokensLockedResponse, + QueryCommitmentVestingInfoRequest as ElysCommitmentQueryCommitmentVestingInfoRequest, + QueryCommitmentVestingInfoResponse as ElysCommitmentQueryCommitmentVestingInfoResponse, + VestingDetails as ElysCommitmentVestingDetails, + QueryAirDropRequest as ElysCommitmentQueryAirDropRequest, + QueryAirDropResponse as ElysCommitmentQueryAirDropResponse, + QueryTotalAirDropClaimedRequest as ElysCommitmentQueryTotalAirDropClaimedRequest, + QueryTotalAirDropClaimedResponse as ElysCommitmentQueryTotalAirDropClaimedResponse, + QueryKolRequest as ElysCommitmentQueryKolRequest, + QueryKolResponse as ElysCommitmentQueryKolResponse, + QueryTotalSupplyRequest as ElysCommitmentQueryTotalSupplyRequest, + QueryTotalSupplyResponse as ElysCommitmentQueryTotalSupplyResponse, + QueryRewardProgramRequest as ElysCommitmentQueryRewardProgramRequest, + QueryRewardProgramResponse as ElysCommitmentQueryRewardProgramResponse, + QueryTotalRewardProgramClaimedRequest as ElysCommitmentQueryTotalRewardProgramClaimedRequest, + QueryTotalRewardProgramClaimedResponse as ElysCommitmentQueryTotalRewardProgramClaimedResponse, +} from "./elys/commitment/query_pb.js"; +export { + QueryParamsService as ElysCommitmentQueryParamsService, + QueryShowCommitmentsService as ElysCommitmentQueryShowCommitmentsService, + QueryCommittedTokensLockedService as ElysCommitmentQueryCommittedTokensLockedService, + QueryNumberOfCommitmentsService as ElysCommitmentQueryNumberOfCommitmentsService, + QueryCommitmentVestingInfoService as ElysCommitmentQueryCommitmentVestingInfoService, + QueryAirDropService as ElysCommitmentQueryAirDropService, + QueryTotalAirdropClaimedService as ElysCommitmentQueryTotalAirdropClaimedService, + QueryKolService as ElysCommitmentQueryKolService, + QueryTotalSupplyService as ElysCommitmentQueryTotalSupplyService, + QueryRewardProgramService as ElysCommitmentQueryRewardProgramService, + QueryTotalRewardProgramClaimedService as ElysCommitmentQueryTotalRewardProgramClaimedService, +} from "./elys/commitment/query_cosmes.js"; +export { + EarnType as ElysCommitmentEarnType, + LegacyParams as ElysCommitmentLegacyParams, + Params as ElysCommitmentParams, + VestingInfo as ElysCommitmentVestingInfo, +} from "./elys/commitment/params_pb.js"; +export { + GenesisState as ElysCommitmentGenesisState, +} from "./elys/commitment/genesis_pb.js"; +export { + Commitments as ElysCommitmentCommitments, + Lockup as ElysCommitmentLockup, + CommittedTokens as ElysCommitmentCommittedTokens, + VestingTokens as ElysCommitmentVestingTokens, + TotalSupply as ElysCommitmentTotalSupply, +} from "./elys/commitment/commitments_pb.js"; +export { + AtomStaker as ElysCommitmentAtomStaker, + NftHolder as ElysCommitmentNftHolder, + Cadet as ElysCommitmentCadet, + Governor as ElysCommitmentGovernor, + AirdropClaimed as ElysCommitmentAirdropClaimed, + TotalClaimed as ElysCommitmentTotalClaimed, + KolList as ElysCommitmentKolList, + RewardProgram as ElysCommitmentRewardProgram, +} from "./elys/commitment/airdrop_pb.js"; +export { + MsgUpdateParams as ElysBurnerMsgUpdateParams, + MsgUpdateParamsResponse as ElysBurnerMsgUpdateParamsResponse, +} from "./elys/burner/tx_pb.js"; +export { + MsgUpdateParamsService as ElysBurnerMsgUpdateParamsService, +} from "./elys/burner/tx_cosmes.js"; +export { + QueryParamsRequest as ElysBurnerQueryParamsRequest, + QueryParamsResponse as ElysBurnerQueryParamsResponse, + QueryGetHistoryRequest as ElysBurnerQueryGetHistoryRequest, + QueryGetHistoryResponse as ElysBurnerQueryGetHistoryResponse, + QueryAllHistoryRequest as ElysBurnerQueryAllHistoryRequest, + QueryAllHistoryResponse as ElysBurnerQueryAllHistoryResponse, +} from "./elys/burner/query_pb.js"; +export { + QueryParamsService as ElysBurnerQueryParamsService, + QueryHistoryService as ElysBurnerQueryHistoryService, + QueryHistoryAllService as ElysBurnerQueryHistoryAllService, +} from "./elys/burner/query_cosmes.js"; +export { + Params as ElysBurnerParams, +} from "./elys/burner/params_pb.js"; +export { + History as ElysBurnerHistory, +} from "./elys/burner/history_pb.js"; +export { + GenesisState as ElysBurnerGenesisState, +} from "./elys/burner/genesis_pb.js"; +export { + MsgUpdateEntry as ElysAssetprofileMsgUpdateEntry, + MsgUpdateEntryResponse as ElysAssetprofileMsgUpdateEntryResponse, + MsgDeleteEntry as ElysAssetprofileMsgDeleteEntry, + MsgDeleteEntryResponse as ElysAssetprofileMsgDeleteEntryResponse, + MsgAddEntry as ElysAssetprofileMsgAddEntry, + MsgAddEntryResponse as ElysAssetprofileMsgAddEntryResponse, +} from "./elys/assetprofile/tx_pb.js"; +export { + MsgUpdateEntryService as ElysAssetprofileMsgUpdateEntryService, + MsgDeleteEntryService as ElysAssetprofileMsgDeleteEntryService, + MsgAddEntryService as ElysAssetprofileMsgAddEntryService, +} from "./elys/assetprofile/tx_cosmes.js"; +export { + QueryParamsRequest as ElysAssetprofileQueryParamsRequest, + QueryParamsResponse as ElysAssetprofileQueryParamsResponse, + QueryEntryRequest as ElysAssetprofileQueryEntryRequest, + QueryEntryByDenomRequest as ElysAssetprofileQueryEntryByDenomRequest, + QueryEntryResponse as ElysAssetprofileQueryEntryResponse, + QueryEntryByDenomResponse as ElysAssetprofileQueryEntryByDenomResponse, + QueryAllEntryRequest as ElysAssetprofileQueryAllEntryRequest, + QueryAllEntryResponse as ElysAssetprofileQueryAllEntryResponse, +} from "./elys/assetprofile/query_pb.js"; +export { + QueryParamsService as ElysAssetprofileQueryParamsService, + QueryEntryService as ElysAssetprofileQueryEntryService, + QueryEntryByDenomService as ElysAssetprofileQueryEntryByDenomService, + QueryEntryAllService as ElysAssetprofileQueryEntryAllService, +} from "./elys/assetprofile/query_cosmes.js"; +export { + Params as ElysAssetprofileParams, +} from "./elys/assetprofile/params_pb.js"; +export { + GenesisState as ElysAssetprofileGenesisState, +} from "./elys/assetprofile/genesis_pb.js"; +export { + Entry as ElysAssetprofileEntry, +} from "./elys/assetprofile/entry_pb.js"; +export { + FilterType as ElysAmmFilterType, + QueryEarnPoolRequest as ElysAmmQueryEarnPoolRequest, + EarnPool as ElysAmmEarnPool, + QueryEarnPoolResponse as ElysAmmQueryEarnPoolResponse, +} from "./elys/amm/types_pb.js"; +export { + MsgCreatePool as ElysAmmMsgCreatePool, + MsgCreatePoolResponse as ElysAmmMsgCreatePoolResponse, + MsgJoinPool as ElysAmmMsgJoinPool, + MsgJoinPoolResponse as ElysAmmMsgJoinPoolResponse, + MsgExitPool as ElysAmmMsgExitPool, + MsgExitPoolResponse as ElysAmmMsgExitPoolResponse, + MsgUpFrontSwapExactAmountIn as ElysAmmMsgUpFrontSwapExactAmountIn, + MsgUpFrontSwapExactAmountInResponse as ElysAmmMsgUpFrontSwapExactAmountInResponse, + MsgSwapExactAmountIn as ElysAmmMsgSwapExactAmountIn, + MsgSwapExactAmountInResponse as ElysAmmMsgSwapExactAmountInResponse, + MsgSwapExactAmountOut as ElysAmmMsgSwapExactAmountOut, + MsgSwapExactAmountOutResponse as ElysAmmMsgSwapExactAmountOutResponse, + MsgFeedMultipleExternalLiquidity as ElysAmmMsgFeedMultipleExternalLiquidity, + MsgFeedMultipleExternalLiquidityResponse as ElysAmmMsgFeedMultipleExternalLiquidityResponse, + AssetAmountDepth as ElysAmmAssetAmountDepth, + ExternalLiquidity as ElysAmmExternalLiquidity, + MsgSwapByDenom as ElysAmmMsgSwapByDenom, + MsgSwapByDenomResponse as ElysAmmMsgSwapByDenomResponse, + MsgUpdatePoolParams as ElysAmmMsgUpdatePoolParams, + MsgUpdatePoolParamsResponse as ElysAmmMsgUpdatePoolParamsResponse, + MsgUpdateParams as ElysAmmMsgUpdateParams, + MsgUpdateParamsResponse as ElysAmmMsgUpdateParamsResponse, +} from "./elys/amm/tx_pb.js"; +export { + MsgCreatePoolService as ElysAmmMsgCreatePoolService, + MsgJoinPoolService as ElysAmmMsgJoinPoolService, + MsgExitPoolService as ElysAmmMsgExitPoolService, + MsgUpFrontSwapExactAmountInService as ElysAmmMsgUpFrontSwapExactAmountInService, + MsgSwapExactAmountInService as ElysAmmMsgSwapExactAmountInService, + MsgSwapExactAmountOutService as ElysAmmMsgSwapExactAmountOutService, + MsgSwapByDenomService as ElysAmmMsgSwapByDenomService, + MsgFeedMultipleExternalLiquidityService as ElysAmmMsgFeedMultipleExternalLiquidityService, + MsgUpdatePoolParamsService as ElysAmmMsgUpdatePoolParamsService, + MsgUpdateParamsService as ElysAmmMsgUpdateParamsService, +} from "./elys/amm/tx_cosmes.js"; +export { + SwapAmountInRoute as ElysAmmSwapAmountInRoute, + SwapAmountOutRoute as ElysAmmSwapAmountOutRoute, +} from "./elys/amm/swap_route_pb.js"; +export { + QueryParamsRequest as ElysAmmQueryParamsRequest, + QueryParamsResponse as ElysAmmQueryParamsResponse, + QueryGetPoolRequest as ElysAmmQueryGetPoolRequest, + QueryGetPoolResponse as ElysAmmQueryGetPoolResponse, + QueryAllPoolRequest as ElysAmmQueryAllPoolRequest, + QueryAllPoolResponse as ElysAmmQueryAllPoolResponse, + QueryGetDenomLiquidityRequest as ElysAmmQueryGetDenomLiquidityRequest, + QueryGetDenomLiquidityResponse as ElysAmmQueryGetDenomLiquidityResponse, + QueryAllDenomLiquidityRequest as ElysAmmQueryAllDenomLiquidityRequest, + QueryAllDenomLiquidityResponse as ElysAmmQueryAllDenomLiquidityResponse, + QuerySwapEstimationRequest as ElysAmmQuerySwapEstimationRequest, + QuerySwapEstimationExactAmountOutRequest as ElysAmmQuerySwapEstimationExactAmountOutRequest, + QueryJoinPoolEstimationRequest as ElysAmmQueryJoinPoolEstimationRequest, + QueryJoinPoolEstimationResponse as ElysAmmQueryJoinPoolEstimationResponse, + QueryExitPoolEstimationRequest as ElysAmmQueryExitPoolEstimationRequest, + QueryExitPoolEstimationResponse as ElysAmmQueryExitPoolEstimationResponse, + QuerySwapEstimationResponse as ElysAmmQuerySwapEstimationResponse, + QuerySwapEstimationExactAmountOutResponse as ElysAmmQuerySwapEstimationExactAmountOutResponse, + QuerySlippageTrackRequest as ElysAmmQuerySlippageTrackRequest, + QuerySlippageTrackResponse as ElysAmmQuerySlippageTrackResponse, + QuerySlippageTrackAllRequest as ElysAmmQuerySlippageTrackAllRequest, + QuerySlippageTrackAllResponse as ElysAmmQuerySlippageTrackAllResponse, + QueryBalanceRequest as ElysAmmQueryBalanceRequest, + QueryBalanceResponse as ElysAmmQueryBalanceResponse, + QueryInRouteByDenomRequest as ElysAmmQueryInRouteByDenomRequest, + QueryInRouteByDenomResponse as ElysAmmQueryInRouteByDenomResponse, + QueryOutRouteByDenomRequest as ElysAmmQueryOutRouteByDenomRequest, + QueryOutRouteByDenomResponse as ElysAmmQueryOutRouteByDenomResponse, + QuerySwapEstimationByDenomRequest as ElysAmmQuerySwapEstimationByDenomRequest, + QuerySwapEstimationByDenomResponse as ElysAmmQuerySwapEstimationByDenomResponse, + QueryAMMPriceRequest as ElysAmmQueryAMMPriceRequest, + QueryWeightAndSlippageFeeRequest as ElysAmmQueryWeightAndSlippageFeeRequest, + QueryWeightAndSlippageFeeResponse as ElysAmmQueryWeightAndSlippageFeeResponse, +} from "./elys/amm/query_pb.js"; +export { + QueryParamsService as ElysAmmQueryParamsService, + QueryPoolService as ElysAmmQueryPoolService, + QueryPoolAllService as ElysAmmQueryPoolAllService, + QueryDenomLiquidityService as ElysAmmQueryDenomLiquidityService, + QueryDenomLiquidityAllService as ElysAmmQueryDenomLiquidityAllService, + QuerySwapEstimationService as ElysAmmQuerySwapEstimationService, + QuerySwapEstimationExactAmountOutService as ElysAmmQuerySwapEstimationExactAmountOutService, + QueryJoinPoolEstimationService as ElysAmmQueryJoinPoolEstimationService, + QueryExitPoolEstimationService as ElysAmmQueryExitPoolEstimationService, + QuerySlippageTrackService as ElysAmmQuerySlippageTrackService, + QuerySlippageTrackAllService as ElysAmmQuerySlippageTrackAllService, + QueryBalanceService as ElysAmmQueryBalanceService, + QueryInRouteByDenomService as ElysAmmQueryInRouteByDenomService, + QueryOutRouteByDenomService as ElysAmmQueryOutRouteByDenomService, + QuerySwapEstimationByDenomService as ElysAmmQuerySwapEstimationByDenomService, + QueryWeightAndSlippageFeeService as ElysAmmQueryWeightAndSlippageFeeService, +} from "./elys/amm/query_cosmes.js"; +export { + ProposalCreateBalancerPool as ElysAmmProposalCreateBalancerPool, + ProposalUpdatePoolParams as ElysAmmProposalUpdatePoolParams, +} from "./elys/amm/proposal_pb.js"; +export { + LegacyPool as ElysAmmLegacyPool, + Pool as ElysAmmPool, + PoolExtraInfo as ElysAmmPoolExtraInfo, + OraclePoolSlippageTrack as ElysAmmOraclePoolSlippageTrack, + WeightBreakingSlippage as ElysAmmWeightBreakingSlippage, +} from "./elys/amm/pool_pb.js"; +export { + LegacyPoolParams as ElysAmmLegacyPoolParams, + PoolParams as ElysAmmPoolParams, +} from "./elys/amm/pool_params_pb.js"; +export { + LegacyPoolAsset as ElysAmmLegacyPoolAsset, + PoolAsset as ElysAmmPoolAsset, +} from "./elys/amm/pool_asset_pb.js"; +export { + Params as ElysAmmParams, +} from "./elys/amm/params_pb.js"; +export { + GenesisState as ElysAmmGenesisState, +} from "./elys/amm/genesis_pb.js"; +export { + DenomLiquidity as ElysAmmDenomLiquidity, +} from "./elys/amm/denom_liquidity_pb.js"; +export { +} from "./elys/accountedpool/tx_cosmes.js"; +export { + QueryGetAccountedPoolRequest as ElysAccountedpoolQueryGetAccountedPoolRequest, + QueryGetAccountedPoolResponse as ElysAccountedpoolQueryGetAccountedPoolResponse, + QueryAllAccountedPoolRequest as ElysAccountedpoolQueryAllAccountedPoolRequest, + QueryAllAccountedPoolResponse as ElysAccountedpoolQueryAllAccountedPoolResponse, +} from "./elys/accountedpool/query_pb.js"; +export { + QueryAccountedPoolService as ElysAccountedpoolQueryAccountedPoolService, + QueryAccountedPoolAllService as ElysAccountedpoolQueryAccountedPoolAllService, +} from "./elys/accountedpool/query_cosmes.js"; +export { + GenesisState as ElysAccountedpoolGenesisState, +} from "./elys/accountedpool/genesis_pb.js"; +export { + LegacyAccountedPool as ElysAccountedpoolLegacyAccountedPool, + AccountedPool as ElysAccountedpoolAccountedPool, +} from "./elys/accountedpool/accounted_pool_pb.js"; +export { + QueryParamsRequest as DymensionxyzDymensionTxfeesV1beta1QueryParamsRequest, + QueryParamsResponse as DymensionxyzDymensionTxfeesV1beta1QueryParamsResponse, + QueryFeeTokenRequest as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokenRequest, + QueryFeeTokenResponse as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokenResponse, + QueryFeeTokensRequest as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokensRequest, + QueryFeeTokensResponse as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokensResponse, + QueryDenomRouteRequest as DymensionxyzDymensionTxfeesV1beta1QueryDenomRouteRequest, + QueryDenomRouteResponse as DymensionxyzDymensionTxfeesV1beta1QueryDenomRouteResponse, + QueryDenomPoolIdRequest as DymensionxyzDymensionTxfeesV1beta1QueryDenomPoolIdRequest, + QueryDenomPoolIdResponse as DymensionxyzDymensionTxfeesV1beta1QueryDenomPoolIdResponse, + QueryBaseDenomRequest as DymensionxyzDymensionTxfeesV1beta1QueryBaseDenomRequest, + QueryBaseDenomResponse as DymensionxyzDymensionTxfeesV1beta1QueryBaseDenomResponse, +} from "./dymensionxyz/dymension/txfees/v1beta1/query_pb.js"; +export { + QueryParamsService as DymensionxyzDymensionTxfeesV1beta1QueryParamsService, + QueryFeeTokenService as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokenService, + QueryFeeTokensService as DymensionxyzDymensionTxfeesV1beta1QueryFeeTokensService, + QueryDenomRouteService as DymensionxyzDymensionTxfeesV1beta1QueryDenomRouteService, + QueryBaseDenomService as DymensionxyzDymensionTxfeesV1beta1QueryBaseDenomService, +} from "./dymensionxyz/dymension/txfees/v1beta1/query_cosmes.js"; +export { + Params as DymensionxyzDymensionTxfeesV1beta1Params, +} from "./dymensionxyz/dymension/txfees/v1beta1/params_pb.js"; +export { + GenesisState as DymensionxyzDymensionTxfeesV1beta1GenesisState, +} from "./dymensionxyz/dymension/txfees/v1beta1/genesis_pb.js"; +export { + FeeToken as DymensionxyzDymensionTxfeesV1beta1FeeToken, +} from "./dymensionxyz/dymension/txfees/v1beta1/feetoken_pb.js"; +export { + EventChargeFee as DymensionxyzDymensionTxfeesV1beta1EventChargeFee, +} from "./dymensionxyz/dymension/txfees/v1beta1/events_pb.js"; +export { + SwapAmountInRoute as DymensionxyzDymensionPoolmanagerV1beta1SwapAmountInRoute, + SwapAmountOutRoute as DymensionxyzDymensionPoolmanagerV1beta1SwapAmountOutRoute, +} from "./dymensionxyz/dymension/poolmanager/v1beta1/swap_route_pb.js"; +export { + PoolType as DymensionxyzDymensionPoolmanagerV1beta1PoolType, + ModuleRoute as DymensionxyzDymensionPoolmanagerV1beta1ModuleRoute, +} from "./dymensionxyz/dymension/poolmanager/v1beta1/module_route_pb.js"; +export { + GenesisState as DymensionxyzDymensionPoolmanagerV1beta1GenesisState, +} from "./dymensionxyz/dymension/poolmanager/v1beta1/genesis_pb.js"; +export { + QuerySpotPriceRequest as DymensionxyzDymensionGammV2QuerySpotPriceRequest, + QuerySpotPriceResponse as DymensionxyzDymensionGammV2QuerySpotPriceResponse, +} from "./dymensionxyz/dymension/gamm/v2/query_pb.js"; +export { + QuerySpotPriceService as DymensionxyzDymensionGammV2QuerySpotPriceService, +} from "./dymensionxyz/dymension/gamm/v2/query_cosmes.js"; +export { + MsgSwapExactAmountIn as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountIn, + MsgSwapExactAmountInResponse as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountInResponse, + MsgSwapExactAmountOut as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountOut, + MsgSwapExactAmountOutResponse as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountOutResponse, +} from "./dymensionxyz/dymension/gamm/v1beta1/tx_swap_pb.js"; +export { + MsgJoinPool as DymensionxyzDymensionGammV1beta1MsgJoinPool, + MsgJoinPoolResponse as DymensionxyzDymensionGammV1beta1MsgJoinPoolResponse, + MsgExitPool as DymensionxyzDymensionGammV1beta1MsgExitPool, + MsgExitPoolResponse as DymensionxyzDymensionGammV1beta1MsgExitPoolResponse, + MsgJoinSwapExternAmountIn as DymensionxyzDymensionGammV1beta1MsgJoinSwapExternAmountIn, + MsgJoinSwapExternAmountInResponse as DymensionxyzDymensionGammV1beta1MsgJoinSwapExternAmountInResponse, + MsgJoinSwapShareAmountOut as DymensionxyzDymensionGammV1beta1MsgJoinSwapShareAmountOut, + MsgJoinSwapShareAmountOutResponse as DymensionxyzDymensionGammV1beta1MsgJoinSwapShareAmountOutResponse, + MsgExitSwapShareAmountIn as DymensionxyzDymensionGammV1beta1MsgExitSwapShareAmountIn, + MsgExitSwapShareAmountInResponse as DymensionxyzDymensionGammV1beta1MsgExitSwapShareAmountInResponse, + MsgExitSwapExternAmountOut as DymensionxyzDymensionGammV1beta1MsgExitSwapExternAmountOut, + MsgExitSwapExternAmountOutResponse as DymensionxyzDymensionGammV1beta1MsgExitSwapExternAmountOutResponse, +} from "./dymensionxyz/dymension/gamm/v1beta1/tx_liquidity_pb.js"; +export { + MsgJoinPoolService as DymensionxyzDymensionGammV1beta1MsgJoinPoolService, + MsgJoinSwapExternAmountInService as DymensionxyzDymensionGammV1beta1MsgJoinSwapExternAmountInService, + MsgJoinSwapShareAmountOutService as DymensionxyzDymensionGammV1beta1MsgJoinSwapShareAmountOutService, + MsgExitPoolService as DymensionxyzDymensionGammV1beta1MsgExitPoolService, + MsgExitSwapExternAmountOutService as DymensionxyzDymensionGammV1beta1MsgExitSwapExternAmountOutService, + MsgExitSwapShareAmountInService as DymensionxyzDymensionGammV1beta1MsgExitSwapShareAmountInService, + MsgSwapExactAmountInService as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountInService, + MsgSwapExactAmountOutService as DymensionxyzDymensionGammV1beta1MsgSwapExactAmountOutService, +} from "./dymensionxyz/dymension/gamm/v1beta1/tx_cosmes.js"; +export { + QueryParamsRequest as DymensionxyzDymensionGammV1beta1QueryParamsRequest, + QueryParamsResponse as DymensionxyzDymensionGammV1beta1QueryParamsResponse, + QueryPoolRequest as DymensionxyzDymensionGammV1beta1QueryPoolRequest, + QueryPoolResponse as DymensionxyzDymensionGammV1beta1QueryPoolResponse, + QueryPoolsRequest as DymensionxyzDymensionGammV1beta1QueryPoolsRequest, + QueryPoolsResponse as DymensionxyzDymensionGammV1beta1QueryPoolsResponse, + QueryNumPoolsRequest as DymensionxyzDymensionGammV1beta1QueryNumPoolsRequest, + QueryNumPoolsResponse as DymensionxyzDymensionGammV1beta1QueryNumPoolsResponse, + QueryCalcJoinPoolSharesRequest as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolSharesRequest, + QueryCalcJoinPoolSharesResponse as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolSharesResponse, + QueryCalcExitPoolCoinsFromSharesRequest as DymensionxyzDymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesRequest, + QueryCalcExitPoolCoinsFromSharesResponse as DymensionxyzDymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesResponse, + QueryPoolParamsRequest as DymensionxyzDymensionGammV1beta1QueryPoolParamsRequest, + QueryPoolParamsResponse as DymensionxyzDymensionGammV1beta1QueryPoolParamsResponse, + QueryTotalPoolLiquidityRequest as DymensionxyzDymensionGammV1beta1QueryTotalPoolLiquidityRequest, + QueryTotalPoolLiquidityResponse as DymensionxyzDymensionGammV1beta1QueryTotalPoolLiquidityResponse, + QueryTotalSharesRequest as DymensionxyzDymensionGammV1beta1QueryTotalSharesRequest, + QueryTotalSharesResponse as DymensionxyzDymensionGammV1beta1QueryTotalSharesResponse, + QueryCalcJoinPoolNoSwapSharesRequest as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesRequest, + QueryCalcJoinPoolNoSwapSharesResponse as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesResponse, + QuerySpotPriceRequest as DymensionxyzDymensionGammV1beta1QuerySpotPriceRequest, + QueryPoolsWithFilterRequest as DymensionxyzDymensionGammV1beta1QueryPoolsWithFilterRequest, + QueryPoolsWithFilterResponse as DymensionxyzDymensionGammV1beta1QueryPoolsWithFilterResponse, + QuerySpotPriceResponse as DymensionxyzDymensionGammV1beta1QuerySpotPriceResponse, + QuerySwapExactAmountInRequest as DymensionxyzDymensionGammV1beta1QuerySwapExactAmountInRequest, + QuerySwapExactAmountInResponse as DymensionxyzDymensionGammV1beta1QuerySwapExactAmountInResponse, + QuerySwapExactAmountOutRequest as DymensionxyzDymensionGammV1beta1QuerySwapExactAmountOutRequest, + QuerySwapExactAmountOutResponse as DymensionxyzDymensionGammV1beta1QuerySwapExactAmountOutResponse, + QueryTotalLiquidityRequest as DymensionxyzDymensionGammV1beta1QueryTotalLiquidityRequest, + QueryTotalLiquidityResponse as DymensionxyzDymensionGammV1beta1QueryTotalLiquidityResponse, +} from "./dymensionxyz/dymension/gamm/v1beta1/query_pb.js"; +export { + QueryParamsService as DymensionxyzDymensionGammV1beta1QueryParamsService, + QueryPoolsService as DymensionxyzDymensionGammV1beta1QueryPoolsService, + QueryNumPoolsService as DymensionxyzDymensionGammV1beta1QueryNumPoolsService, + QueryTotalLiquidityService as DymensionxyzDymensionGammV1beta1QueryTotalLiquidityService, + QueryPoolsWithFilterService as DymensionxyzDymensionGammV1beta1QueryPoolsWithFilterService, + QueryPoolService as DymensionxyzDymensionGammV1beta1QueryPoolService, + QueryCalcJoinPoolNoSwapSharesService as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolNoSwapSharesService, + QueryCalcJoinPoolSharesService as DymensionxyzDymensionGammV1beta1QueryCalcJoinPoolSharesService, + QueryCalcExitPoolCoinsFromSharesService as DymensionxyzDymensionGammV1beta1QueryCalcExitPoolCoinsFromSharesService, + QueryPoolParamsService as DymensionxyzDymensionGammV1beta1QueryPoolParamsService, + QueryTotalPoolLiquidityService as DymensionxyzDymensionGammV1beta1QueryTotalPoolLiquidityService, + QueryTotalSharesService as DymensionxyzDymensionGammV1beta1QueryTotalSharesService, + QuerySpotPriceService as DymensionxyzDymensionGammV1beta1QuerySpotPriceService, + QueryEstimateSwapExactAmountInService as DymensionxyzDymensionGammV1beta1QueryEstimateSwapExactAmountInService, + QueryEstimateSwapExactAmountOutService as DymensionxyzDymensionGammV1beta1QueryEstimateSwapExactAmountOutService, +} from "./dymensionxyz/dymension/gamm/v1beta1/query_cosmes.js"; +export { + Params as DymensionxyzDymensionGammV1beta1Params, + GlobalFees as DymensionxyzDymensionGammV1beta1GlobalFees, +} from "./dymensionxyz/dymension/gamm/v1beta1/params_pb.js"; +export { + GenesisState as DymensionxyzDymensionGammV1beta1GenesisState, +} from "./dymensionxyz/dymension/gamm/v1beta1/genesis_pb.js"; +export { + SmoothWeightChangeParams as DymensionxyzDymensionGammV1beta1SmoothWeightChangeParams, + PoolParams as DymensionxyzDymensionGammV1beta1PoolParams, + PoolAsset as DymensionxyzDymensionGammV1beta1PoolAsset, + Pool as DymensionxyzDymensionGammV1beta1Pool, +} from "./dymensionxyz/dymension/gamm/v1beta1/balancerPool_pb.js"; +export { + MsgCreateBalancerPool as DymensionxyzDymensionGammPoolmodelsBalancerV1beta1MsgCreateBalancerPool, + MsgCreateBalancerPoolResponse as DymensionxyzDymensionGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolResponse, +} from "./dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_pb.js"; +export { + MsgCreateBalancerPoolService as DymensionxyzDymensionGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolService, +} from "./dymensionxyz/dymension/gamm/poolmodels/balancer/v1beta1/tx_cosmes.js"; +export { + QueryEpochsInfoRequest as DymensionxyzDymensionEpochsV1beta1QueryEpochsInfoRequest, + QueryEpochsInfoResponse as DymensionxyzDymensionEpochsV1beta1QueryEpochsInfoResponse, + QueryCurrentEpochRequest as DymensionxyzDymensionEpochsV1beta1QueryCurrentEpochRequest, + QueryCurrentEpochResponse as DymensionxyzDymensionEpochsV1beta1QueryCurrentEpochResponse, +} from "./dymensionxyz/dymension/epochs/v1beta1/query_pb.js"; +export { + QueryEpochInfosService as DymensionxyzDymensionEpochsV1beta1QueryEpochInfosService, + QueryCurrentEpochService as DymensionxyzDymensionEpochsV1beta1QueryCurrentEpochService, +} from "./dymensionxyz/dymension/epochs/v1beta1/query_cosmes.js"; +export { + EpochInfo as DymensionxyzDymensionEpochsV1beta1EpochInfo, + GenesisState as DymensionxyzDymensionEpochsV1beta1GenesisState, +} from "./dymensionxyz/dymension/epochs/v1beta1/genesis_pb.js"; export { AccessType as CosmwasmWasmV1AccessType, ContractCodeHistoryOperationType as CosmwasmWasmV1ContractCodeHistoryOperationType, @@ -3346,6 +10015,8 @@ export { QuerySmartContractStateRequest as CosmwasmWasmV1QuerySmartContractStateRequest, QuerySmartContractStateResponse as CosmwasmWasmV1QuerySmartContractStateResponse, QueryCodeRequest as CosmwasmWasmV1QueryCodeRequest, + QueryCodeInfoRequest as CosmwasmWasmV1QueryCodeInfoRequest, + QueryCodeInfoResponse as CosmwasmWasmV1QueryCodeInfoResponse, CodeInfoResponse as CosmwasmWasmV1CodeInfoResponse, QueryCodeResponse as CosmwasmWasmV1QueryCodeResponse, QueryCodesRequest as CosmwasmWasmV1QueryCodesRequest, @@ -3356,6 +10027,8 @@ export { QueryParamsResponse as CosmwasmWasmV1QueryParamsResponse, QueryContractsByCreatorRequest as CosmwasmWasmV1QueryContractsByCreatorRequest, QueryContractsByCreatorResponse as CosmwasmWasmV1QueryContractsByCreatorResponse, + QueryWasmLimitsConfigRequest as CosmwasmWasmV1QueryWasmLimitsConfigRequest, + QueryWasmLimitsConfigResponse as CosmwasmWasmV1QueryWasmLimitsConfigResponse, QueryBuildAddressRequest as CosmwasmWasmV1QueryBuildAddressRequest, QueryBuildAddressResponse as CosmwasmWasmV1QueryBuildAddressResponse, } from "./cosmwasm/wasm/v1/query_pb.js"; @@ -3368,9 +10041,11 @@ export { QuerySmartContractStateService as CosmwasmWasmV1QuerySmartContractStateService, QueryCodeService as CosmwasmWasmV1QueryCodeService, QueryCodesService as CosmwasmWasmV1QueryCodesService, + QueryCodeInfoService as CosmwasmWasmV1QueryCodeInfoService, QueryPinnedCodesService as CosmwasmWasmV1QueryPinnedCodesService, QueryParamsService as CosmwasmWasmV1QueryParamsService, QueryContractsByCreatorService as CosmwasmWasmV1QueryContractsByCreatorService, + QueryWasmLimitsConfigService as CosmwasmWasmV1QueryWasmLimitsConfigService, QueryBuildAddressService as CosmwasmWasmV1QueryBuildAddressService, } from "./cosmwasm/wasm/v1/query_cosmes.js"; export { @@ -3391,6 +10066,7 @@ export { export { MsgIBCSend as CosmwasmWasmV1MsgIBCSend, MsgIBCSendResponse as CosmwasmWasmV1MsgIBCSendResponse, + MsgIBCWriteAcknowledgementResponse as CosmwasmWasmV1MsgIBCWriteAcknowledgementResponse, MsgIBCCloseChannel as CosmwasmWasmV1MsgIBCCloseChannel, } from "./cosmwasm/wasm/v1/ibc_pb.js"; export { @@ -3533,6 +10209,38 @@ export { export { Config as CosmosTxConfigV1Config, } from "./cosmos/tx/config/v1/config_pb.js"; +export { + StoreKVPair as CosmosStoreV1beta1StoreKVPair, + BlockMetadata as CosmosStoreV1beta1BlockMetadata, +} from "./cosmos/store/v1beta1/listening_pb.js"; +export { + CommitInfo as CosmosStoreV1beta1CommitInfo, + StoreInfo as CosmosStoreV1beta1StoreInfo, + CommitID as CosmosStoreV1beta1CommitID, +} from "./cosmos/store/v1beta1/commit_info_pb.js"; +export { + ListenFinalizeBlockRequest as CosmosStoreStreamingAbciListenFinalizeBlockRequest, + ListenFinalizeBlockResponse as CosmosStoreStreamingAbciListenFinalizeBlockResponse, + ListenCommitRequest as CosmosStoreStreamingAbciListenCommitRequest, + ListenCommitResponse as CosmosStoreStreamingAbciListenCommitResponse, +} from "./cosmos/store/streaming/abci/grpc_pb.js"; +export { + ABCIListenerServiceListenFinalizeBlockService as CosmosStoreStreamingAbciABCIListenerServiceListenFinalizeBlockService, + ABCIListenerServiceListenCommitService as CosmosStoreStreamingAbciABCIListenerServiceListenCommitService, +} from "./cosmos/store/streaming/abci/grpc_cosmes.js"; +export { + Snapshot as CosmosStoreSnapshotsV1Snapshot, + Metadata as CosmosStoreSnapshotsV1Metadata, + SnapshotItem as CosmosStoreSnapshotsV1SnapshotItem, + SnapshotStoreItem as CosmosStoreSnapshotsV1SnapshotStoreItem, + SnapshotIAVLItem as CosmosStoreSnapshotsV1SnapshotIAVLItem, + SnapshotExtensionMeta as CosmosStoreSnapshotsV1SnapshotExtensionMeta, + SnapshotExtensionPayload as CosmosStoreSnapshotsV1SnapshotExtensionPayload, +} from "./cosmos/store/snapshots/v1/snapshot_pb.js"; +export { + Pairs as CosmosStoreInternalKvV1beta1Pairs, + Pair as CosmosStoreInternalKvV1beta1Pair, +} from "./cosmos/store/internal/kv/v1beta1/kv_pb.js"; export { MsgCreateValidator as CosmosStakingV1beta1MsgCreateValidator, MsgCreateValidatorResponse as CosmosStakingV1beta1MsgCreateValidatorResponse, @@ -4024,6 +10732,8 @@ export { MsgDepositResponse as CosmosGovV1MsgDepositResponse, MsgUpdateParams as CosmosGovV1MsgUpdateParams, MsgUpdateParamsResponse as CosmosGovV1MsgUpdateParamsResponse, + MsgCancelProposal as CosmosGovV1MsgCancelProposal, + MsgCancelProposalResponse as CosmosGovV1MsgCancelProposalResponse, } from "./cosmos/gov/v1/tx_pb.js"; export { MsgSubmitProposalService as CosmosGovV1MsgSubmitProposalService, @@ -4032,8 +10742,11 @@ export { MsgVoteWeightedService as CosmosGovV1MsgVoteWeightedService, MsgDepositService as CosmosGovV1MsgDepositService, MsgUpdateParamsService as CosmosGovV1MsgUpdateParamsService, + MsgCancelProposalService as CosmosGovV1MsgCancelProposalService, } from "./cosmos/gov/v1/tx_cosmes.js"; export { + QueryConstitutionRequest as CosmosGovV1QueryConstitutionRequest, + QueryConstitutionResponse as CosmosGovV1QueryConstitutionResponse, QueryProposalRequest as CosmosGovV1QueryProposalRequest, QueryProposalResponse as CosmosGovV1QueryProposalResponse, QueryProposalsRequest as CosmosGovV1QueryProposalsRequest, @@ -4052,6 +10765,7 @@ export { QueryTallyResultResponse as CosmosGovV1QueryTallyResultResponse, } from "./cosmos/gov/v1/query_pb.js"; export { + QueryConstitutionService as CosmosGovV1QueryConstitutionService, QueryProposalService as CosmosGovV1QueryProposalService, QueryProposalsService as CosmosGovV1QueryProposalsService, QueryVoteService as CosmosGovV1QueryVoteService, @@ -4091,10 +10805,13 @@ export { MsgGrantAllowanceResponse as CosmosFeegrantV1beta1MsgGrantAllowanceResponse, MsgRevokeAllowance as CosmosFeegrantV1beta1MsgRevokeAllowance, MsgRevokeAllowanceResponse as CosmosFeegrantV1beta1MsgRevokeAllowanceResponse, + MsgPruneAllowances as CosmosFeegrantV1beta1MsgPruneAllowances, + MsgPruneAllowancesResponse as CosmosFeegrantV1beta1MsgPruneAllowancesResponse, } from "./cosmos/feegrant/v1beta1/tx_pb.js"; export { MsgGrantAllowanceService as CosmosFeegrantV1beta1MsgGrantAllowanceService, MsgRevokeAllowanceService as CosmosFeegrantV1beta1MsgRevokeAllowanceService, + MsgPruneAllowancesService as CosmosFeegrantV1beta1MsgPruneAllowancesService, } from "./cosmos/feegrant/v1beta1/tx_cosmes.js"; export { QueryAllowanceRequest as CosmosFeegrantV1beta1QueryAllowanceRequest, @@ -4160,6 +10877,8 @@ export { MsgUpdateParamsResponse as CosmosDistributionV1beta1MsgUpdateParamsResponse, MsgCommunityPoolSpend as CosmosDistributionV1beta1MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse as CosmosDistributionV1beta1MsgCommunityPoolSpendResponse, + MsgDepositValidatorRewardsPool as CosmosDistributionV1beta1MsgDepositValidatorRewardsPool, + MsgDepositValidatorRewardsPoolResponse as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolResponse, } from "./cosmos/distribution/v1beta1/tx_pb.js"; export { MsgSetWithdrawAddressService as CosmosDistributionV1beta1MsgSetWithdrawAddressService, @@ -4168,6 +10887,7 @@ export { MsgFundCommunityPoolService as CosmosDistributionV1beta1MsgFundCommunityPoolService, MsgUpdateParamsService as CosmosDistributionV1beta1MsgUpdateParamsService, MsgCommunityPoolSpendService as CosmosDistributionV1beta1MsgCommunityPoolSpendService, + MsgDepositValidatorRewardsPoolService as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolService, } from "./cosmos/distribution/v1beta1/tx_cosmes.js"; export { QueryParamsRequest as CosmosDistributionV1beta1QueryParamsRequest, @@ -4293,17 +11013,40 @@ export { Module as CosmosConsensusModuleV1Module, } from "./cosmos/consensus/module/v1/module_pb.js"; export { - GenesisOwners as CosmosCapabilityV1beta1GenesisOwners, - GenesisState as CosmosCapabilityV1beta1GenesisState, -} from "./cosmos/capability/v1beta1/genesis_pb.js"; -export { - Capability as CosmosCapabilityV1beta1Capability, - Owner as CosmosCapabilityV1beta1Owner, - CapabilityOwners as CosmosCapabilityV1beta1CapabilityOwners, -} from "./cosmos/capability/v1beta1/capability_pb.js"; -export { - Module as CosmosCapabilityModuleV1Module, -} from "./cosmos/capability/module/v1/module_pb.js"; + Permissions as CosmosCircuitV1Permissions, + Permissions_Level as CosmosCircuitV1Permissions_Level, + GenesisAccountPermissions as CosmosCircuitV1GenesisAccountPermissions, + GenesisState as CosmosCircuitV1GenesisState, +} from "./cosmos/circuit/v1/types_pb.js"; +export { + MsgAuthorizeCircuitBreaker as CosmosCircuitV1MsgAuthorizeCircuitBreaker, + MsgAuthorizeCircuitBreakerResponse as CosmosCircuitV1MsgAuthorizeCircuitBreakerResponse, + MsgTripCircuitBreaker as CosmosCircuitV1MsgTripCircuitBreaker, + MsgTripCircuitBreakerResponse as CosmosCircuitV1MsgTripCircuitBreakerResponse, + MsgResetCircuitBreaker as CosmosCircuitV1MsgResetCircuitBreaker, + MsgResetCircuitBreakerResponse as CosmosCircuitV1MsgResetCircuitBreakerResponse, +} from "./cosmos/circuit/v1/tx_pb.js"; +export { + MsgAuthorizeCircuitBreakerService as CosmosCircuitV1MsgAuthorizeCircuitBreakerService, + MsgTripCircuitBreakerService as CosmosCircuitV1MsgTripCircuitBreakerService, + MsgResetCircuitBreakerService as CosmosCircuitV1MsgResetCircuitBreakerService, +} from "./cosmos/circuit/v1/tx_cosmes.js"; +export { + QueryAccountRequest as CosmosCircuitV1QueryAccountRequest, + AccountResponse as CosmosCircuitV1AccountResponse, + QueryAccountsRequest as CosmosCircuitV1QueryAccountsRequest, + AccountsResponse as CosmosCircuitV1AccountsResponse, + QueryDisabledListRequest as CosmosCircuitV1QueryDisabledListRequest, + DisabledListResponse as CosmosCircuitV1DisabledListResponse, +} from "./cosmos/circuit/v1/query_pb.js"; +export { + QueryAccountService as CosmosCircuitV1QueryAccountService, + QueryAccountsService as CosmosCircuitV1QueryAccountsService, + QueryDisabledListService as CosmosCircuitV1QueryDisabledListService, +} from "./cosmos/circuit/v1/query_cosmes.js"; +export { + Module as CosmosCircuitModuleV1Module, +} from "./cosmos/circuit/module/v1/module_pb.js"; export { Coin as CosmosBaseV1beta1Coin, DecCoin as CosmosBaseV1beta1DecCoin, @@ -4344,27 +11087,6 @@ export { ServiceGetValidatorSetByHeightService as CosmosBaseTendermintV1beta1ServiceGetValidatorSetByHeightService, ServiceABCIQueryService as CosmosBaseTendermintV1beta1ServiceABCIQueryService, } from "./cosmos/base/tendermint/v1beta1/query_cosmes.js"; -export { - StoreKVPair as CosmosBaseStoreV1beta1StoreKVPair, - BlockMetadata as CosmosBaseStoreV1beta1BlockMetadata, - BlockMetadata_DeliverTx as CosmosBaseStoreV1beta1BlockMetadata_DeliverTx, -} from "./cosmos/base/store/v1beta1/listening_pb.js"; -export { - CommitInfo as CosmosBaseStoreV1beta1CommitInfo, - StoreInfo as CosmosBaseStoreV1beta1StoreInfo, - CommitID as CosmosBaseStoreV1beta1CommitID, -} from "./cosmos/base/store/v1beta1/commit_info_pb.js"; -export { - Snapshot as CosmosBaseSnapshotsV1beta1Snapshot, - Metadata as CosmosBaseSnapshotsV1beta1Metadata, - SnapshotItem as CosmosBaseSnapshotsV1beta1SnapshotItem, - SnapshotStoreItem as CosmosBaseSnapshotsV1beta1SnapshotStoreItem, - SnapshotIAVLItem as CosmosBaseSnapshotsV1beta1SnapshotIAVLItem, - SnapshotExtensionMeta as CosmosBaseSnapshotsV1beta1SnapshotExtensionMeta, - SnapshotExtensionPayload as CosmosBaseSnapshotsV1beta1SnapshotExtensionPayload, - SnapshotKVItem as CosmosBaseSnapshotsV1beta1SnapshotKVItem, - SnapshotSchema as CosmosBaseSnapshotsV1beta1SnapshotSchema, -} from "./cosmos/base/snapshots/v1beta1/snapshot_pb.js"; export { AppDescriptor as CosmosBaseReflectionV2alpha1AppDescriptor, TxDescriptor as CosmosBaseReflectionV2alpha1TxDescriptor, @@ -4418,14 +11140,13 @@ export { export { ConfigRequest as CosmosBaseNodeV1beta1ConfigRequest, ConfigResponse as CosmosBaseNodeV1beta1ConfigResponse, + StatusRequest as CosmosBaseNodeV1beta1StatusRequest, + StatusResponse as CosmosBaseNodeV1beta1StatusResponse, } from "./cosmos/base/node/v1beta1/query_pb.js"; export { ServiceConfigService as CosmosBaseNodeV1beta1ServiceConfigService, + ServiceStatusService as CosmosBaseNodeV1beta1ServiceStatusService, } from "./cosmos/base/node/v1beta1/query_cosmes.js"; -export { - Pairs as CosmosBaseKvV1beta1Pairs, - Pair as CosmosBaseKvV1beta1Pair, -} from "./cosmos/base/kv/v1beta1/kv_pb.js"; export { TxResponse as CosmosBaseAbciV1beta1TxResponse, ABCIMessageLog as CosmosBaseAbciV1beta1ABCIMessageLog, @@ -4437,6 +11158,7 @@ export { MsgData as CosmosBaseAbciV1beta1MsgData, TxMsgData as CosmosBaseAbciV1beta1TxMsgData, SearchTxsResult as CosmosBaseAbciV1beta1SearchTxsResult, + SearchBlocksResult as CosmosBaseAbciV1beta1SearchBlocksResult, } from "./cosmos/base/abci/v1beta1/abci_pb.js"; export { MsgSend as CosmosBankV1beta1MsgSend, @@ -4473,9 +11195,13 @@ export { QueryDenomsMetadataResponse as CosmosBankV1beta1QueryDenomsMetadataResponse, QueryDenomMetadataRequest as CosmosBankV1beta1QueryDenomMetadataRequest, QueryDenomMetadataResponse as CosmosBankV1beta1QueryDenomMetadataResponse, + QueryDenomMetadataByQueryStringRequest as CosmosBankV1beta1QueryDenomMetadataByQueryStringRequest, + QueryDenomMetadataByQueryStringResponse as CosmosBankV1beta1QueryDenomMetadataByQueryStringResponse, QueryDenomOwnersRequest as CosmosBankV1beta1QueryDenomOwnersRequest, DenomOwner as CosmosBankV1beta1DenomOwner, QueryDenomOwnersResponse as CosmosBankV1beta1QueryDenomOwnersResponse, + QueryDenomOwnersByQueryRequest as CosmosBankV1beta1QueryDenomOwnersByQueryRequest, + QueryDenomOwnersByQueryResponse as CosmosBankV1beta1QueryDenomOwnersByQueryResponse, QuerySendEnabledRequest as CosmosBankV1beta1QuerySendEnabledRequest, QuerySendEnabledResponse as CosmosBankV1beta1QuerySendEnabledResponse, } from "./cosmos/bank/v1beta1/query_pb.js"; @@ -4488,8 +11214,10 @@ export { QuerySupplyOfService as CosmosBankV1beta1QuerySupplyOfService, QueryParamsService as CosmosBankV1beta1QueryParamsService, QueryDenomMetadataService as CosmosBankV1beta1QueryDenomMetadataService, + QueryDenomMetadataByQueryStringService as CosmosBankV1beta1QueryDenomMetadataByQueryStringService, QueryDenomsMetadataService as CosmosBankV1beta1QueryDenomsMetadataService, QueryDenomOwnersService as CosmosBankV1beta1QueryDenomOwnersService, + QueryDenomOwnersByQueryService as CosmosBankV1beta1QueryDenomOwnersByQueryService, QuerySendEnabledService as CosmosBankV1beta1QuerySendEnabledService, } from "./cosmos/bank/v1beta1/query_cosmes.js"; export { @@ -4527,9 +11255,9 @@ export { } from "./cosmos/autocli/v1/options_pb.js"; export { MsgGrant as CosmosAuthzV1beta1MsgGrant, - MsgExecResponse as CosmosAuthzV1beta1MsgExecResponse, - MsgExec as CosmosAuthzV1beta1MsgExec, MsgGrantResponse as CosmosAuthzV1beta1MsgGrantResponse, + MsgExec as CosmosAuthzV1beta1MsgExec, + MsgExecResponse as CosmosAuthzV1beta1MsgExecResponse, MsgRevoke as CosmosAuthzV1beta1MsgRevoke, MsgRevokeResponse as CosmosAuthzV1beta1MsgRevokeResponse, } from "./cosmos/authz/v1beta1/tx_pb.js"; @@ -4642,6 +11370,337 @@ export { Module as CosmosAppRuntimeV1alpha1Module, StoreKeyConfig as CosmosAppRuntimeV1alpha1StoreKeyConfig, } from "./cosmos/app/runtime/v1alpha1/module_pb.js"; +export { + MsgUpdateParams as CoreumFeemodelV1MsgUpdateParams, + EmptyResponse as CoreumFeemodelV1EmptyResponse, +} from "./coreum/feemodel/v1/tx_pb.js"; +export { + MsgUpdateParamsService as CoreumFeemodelV1MsgUpdateParamsService, +} from "./coreum/feemodel/v1/tx_cosmes.js"; +export { + QueryMinGasPriceRequest as CoreumFeemodelV1QueryMinGasPriceRequest, + QueryMinGasPriceResponse as CoreumFeemodelV1QueryMinGasPriceResponse, + QueryRecommendedGasPriceRequest as CoreumFeemodelV1QueryRecommendedGasPriceRequest, + QueryRecommendedGasPriceResponse as CoreumFeemodelV1QueryRecommendedGasPriceResponse, + QueryParamsRequest as CoreumFeemodelV1QueryParamsRequest, + QueryParamsResponse as CoreumFeemodelV1QueryParamsResponse, +} from "./coreum/feemodel/v1/query_pb.js"; +export { + QueryMinGasPriceService as CoreumFeemodelV1QueryMinGasPriceService, + QueryRecommendedGasPriceService as CoreumFeemodelV1QueryRecommendedGasPriceService, + QueryParamsService as CoreumFeemodelV1QueryParamsService, +} from "./coreum/feemodel/v1/query_cosmes.js"; +export { + ModelParams as CoreumFeemodelV1ModelParams, + Params as CoreumFeemodelV1Params, +} from "./coreum/feemodel/v1/params_pb.js"; +export { + GenesisState as CoreumFeemodelV1GenesisState, +} from "./coreum/feemodel/v1/genesis_pb.js"; +export { + MsgUpdateParams as CoreumDexV1MsgUpdateParams, + MsgPlaceOrder as CoreumDexV1MsgPlaceOrder, + MsgCancelOrder as CoreumDexV1MsgCancelOrder, + MsgCancelOrdersByDenom as CoreumDexV1MsgCancelOrdersByDenom, + EmptyResponse as CoreumDexV1EmptyResponse, +} from "./coreum/dex/v1/tx_pb.js"; +export { + MsgUpdateParamsService as CoreumDexV1MsgUpdateParamsService, + MsgPlaceOrderService as CoreumDexV1MsgPlaceOrderService, + MsgCancelOrderService as CoreumDexV1MsgCancelOrderService, + MsgCancelOrdersByDenomService as CoreumDexV1MsgCancelOrdersByDenomService, +} from "./coreum/dex/v1/tx_cosmes.js"; +export { + QueryParamsRequest as CoreumDexV1QueryParamsRequest, + QueryParamsResponse as CoreumDexV1QueryParamsResponse, + QueryOrderRequest as CoreumDexV1QueryOrderRequest, + QueryOrderResponse as CoreumDexV1QueryOrderResponse, + QueryOrdersRequest as CoreumDexV1QueryOrdersRequest, + QueryOrdersResponse as CoreumDexV1QueryOrdersResponse, + QueryOrderBooksRequest as CoreumDexV1QueryOrderBooksRequest, + QueryOrderBooksResponse as CoreumDexV1QueryOrderBooksResponse, + QueryOrderBookParamsRequest as CoreumDexV1QueryOrderBookParamsRequest, + QueryOrderBookParamsResponse as CoreumDexV1QueryOrderBookParamsResponse, + QueryOrderBookOrdersRequest as CoreumDexV1QueryOrderBookOrdersRequest, + QueryOrderBookOrdersResponse as CoreumDexV1QueryOrderBookOrdersResponse, + QueryAccountDenomOrdersCountRequest as CoreumDexV1QueryAccountDenomOrdersCountRequest, + QueryAccountDenomOrdersCountResponse as CoreumDexV1QueryAccountDenomOrdersCountResponse, +} from "./coreum/dex/v1/query_pb.js"; +export { + QueryParamsService as CoreumDexV1QueryParamsService, + QueryOrderService as CoreumDexV1QueryOrderService, + QueryOrdersService as CoreumDexV1QueryOrdersService, + QueryOrderBooksService as CoreumDexV1QueryOrderBooksService, + QueryOrderBookParamsService as CoreumDexV1QueryOrderBookParamsService, + QueryOrderBookOrdersService as CoreumDexV1QueryOrderBookOrdersService, + QueryAccountDenomOrdersCountService as CoreumDexV1QueryAccountDenomOrdersCountService, +} from "./coreum/dex/v1/query_cosmes.js"; +export { + Params as CoreumDexV1Params, +} from "./coreum/dex/v1/params_pb.js"; +export { + Side as CoreumDexV1Side, + OrderType as CoreumDexV1OrderType, + TimeInForce as CoreumDexV1TimeInForce, + GoodTil as CoreumDexV1GoodTil, + CancelGoodTil as CoreumDexV1CancelGoodTil, + Order as CoreumDexV1Order, + OrderData as CoreumDexV1OrderData, + OrderBookData as CoreumDexV1OrderBookData, + OrderBookRecordData as CoreumDexV1OrderBookRecordData, +} from "./coreum/dex/v1/order_pb.js"; +export { + GenesisState as CoreumDexV1GenesisState, + OrderBookDataWithID as CoreumDexV1OrderBookDataWithID, + AccountDenomOrdersCount as CoreumDexV1AccountDenomOrdersCount, +} from "./coreum/dex/v1/genesis_pb.js"; +export { + EventOrderPlaced as CoreumDexV1EventOrderPlaced, + EventOrderReduced as CoreumDexV1EventOrderReduced, + EventOrderCreated as CoreumDexV1EventOrderCreated, + EventOrderClosed as CoreumDexV1EventOrderClosed, +} from "./coreum/dex/v1/event_pb.js"; +export { + EventGas as CoreumDeterministicgasV1EventGas, +} from "./coreum/deterministicgas/v1/event_pb.js"; +export { + GenesisState as CoreumDelayV1GenesisState, + DelayedItem as CoreumDelayV1DelayedItem, + BlockItem as CoreumDelayV1BlockItem, +} from "./coreum/delay/v1/genesis_pb.js"; +export { + MsgUpdateStakingParams as CoreumCustomparamsV1MsgUpdateStakingParams, + EmptyResponse as CoreumCustomparamsV1EmptyResponse, +} from "./coreum/customparams/v1/tx_pb.js"; +export { + MsgUpdateStakingParamsService as CoreumCustomparamsV1MsgUpdateStakingParamsService, +} from "./coreum/customparams/v1/tx_cosmes.js"; +export { + QueryStakingParamsRequest as CoreumCustomparamsV1QueryStakingParamsRequest, + QueryStakingParamsResponse as CoreumCustomparamsV1QueryStakingParamsResponse, +} from "./coreum/customparams/v1/query_pb.js"; +export { + QueryStakingParamsService as CoreumCustomparamsV1QueryStakingParamsService, +} from "./coreum/customparams/v1/query_cosmes.js"; +export { + StakingParams as CoreumCustomparamsV1StakingParams, +} from "./coreum/customparams/v1/params_pb.js"; +export { + GenesisState as CoreumCustomparamsV1GenesisState, +} from "./coreum/customparams/v1/genesis_pb.js"; +export { + DataEditor as CoreumAssetNftV1DataEditor, + DataBytes as CoreumAssetNftV1DataBytes, + DataDynamicItem as CoreumAssetNftV1DataDynamicItem, + DataDynamicIndexedItem as CoreumAssetNftV1DataDynamicIndexedItem, + DataDynamic as CoreumAssetNftV1DataDynamic, +} from "./coreum/asset/nft/v1/types_pb.js"; +export { + MsgIssueClass as CoreumAssetNftV1MsgIssueClass, + MsgMint as CoreumAssetNftV1MsgMint, + MsgUpdateData as CoreumAssetNftV1MsgUpdateData, + MsgBurn as CoreumAssetNftV1MsgBurn, + MsgFreeze as CoreumAssetNftV1MsgFreeze, + MsgUnfreeze as CoreumAssetNftV1MsgUnfreeze, + MsgClassFreeze as CoreumAssetNftV1MsgClassFreeze, + MsgClassUnfreeze as CoreumAssetNftV1MsgClassUnfreeze, + MsgAddToWhitelist as CoreumAssetNftV1MsgAddToWhitelist, + MsgRemoveFromWhitelist as CoreumAssetNftV1MsgRemoveFromWhitelist, + MsgAddToClassWhitelist as CoreumAssetNftV1MsgAddToClassWhitelist, + MsgRemoveFromClassWhitelist as CoreumAssetNftV1MsgRemoveFromClassWhitelist, + MsgUpdateParams as CoreumAssetNftV1MsgUpdateParams, + EmptyResponse as CoreumAssetNftV1EmptyResponse, +} from "./coreum/asset/nft/v1/tx_pb.js"; +export { + MsgIssueClassService as CoreumAssetNftV1MsgIssueClassService, + MsgMintService as CoreumAssetNftV1MsgMintService, + MsgUpdateDataService as CoreumAssetNftV1MsgUpdateDataService, + MsgBurnService as CoreumAssetNftV1MsgBurnService, + MsgFreezeService as CoreumAssetNftV1MsgFreezeService, + MsgUnfreezeService as CoreumAssetNftV1MsgUnfreezeService, + MsgAddToWhitelistService as CoreumAssetNftV1MsgAddToWhitelistService, + MsgRemoveFromWhitelistService as CoreumAssetNftV1MsgRemoveFromWhitelistService, + MsgAddToClassWhitelistService as CoreumAssetNftV1MsgAddToClassWhitelistService, + MsgRemoveFromClassWhitelistService as CoreumAssetNftV1MsgRemoveFromClassWhitelistService, + MsgClassFreezeService as CoreumAssetNftV1MsgClassFreezeService, + MsgClassUnfreezeService as CoreumAssetNftV1MsgClassUnfreezeService, + MsgUpdateParamsService as CoreumAssetNftV1MsgUpdateParamsService, +} from "./coreum/asset/nft/v1/tx_cosmes.js"; +export { + QueryParamsRequest as CoreumAssetNftV1QueryParamsRequest, + QueryParamsResponse as CoreumAssetNftV1QueryParamsResponse, + QueryClassRequest as CoreumAssetNftV1QueryClassRequest, + QueryClassResponse as CoreumAssetNftV1QueryClassResponse, + QueryClassesRequest as CoreumAssetNftV1QueryClassesRequest, + QueryClassesResponse as CoreumAssetNftV1QueryClassesResponse, + QueryFrozenRequest as CoreumAssetNftV1QueryFrozenRequest, + QueryFrozenResponse as CoreumAssetNftV1QueryFrozenResponse, + QueryClassFrozenRequest as CoreumAssetNftV1QueryClassFrozenRequest, + QueryClassFrozenResponse as CoreumAssetNftV1QueryClassFrozenResponse, + QueryWhitelistedRequest as CoreumAssetNftV1QueryWhitelistedRequest, + QueryWhitelistedResponse as CoreumAssetNftV1QueryWhitelistedResponse, + QueryWhitelistedAccountsForNFTRequest as CoreumAssetNftV1QueryWhitelistedAccountsForNFTRequest, + QueryWhitelistedAccountsForNFTResponse as CoreumAssetNftV1QueryWhitelistedAccountsForNFTResponse, + QueryClassWhitelistedAccountsRequest as CoreumAssetNftV1QueryClassWhitelistedAccountsRequest, + QueryClassWhitelistedAccountsResponse as CoreumAssetNftV1QueryClassWhitelistedAccountsResponse, + QueryClassFrozenAccountsRequest as CoreumAssetNftV1QueryClassFrozenAccountsRequest, + QueryClassFrozenAccountsResponse as CoreumAssetNftV1QueryClassFrozenAccountsResponse, + QueryBurntNFTRequest as CoreumAssetNftV1QueryBurntNFTRequest, + QueryBurntNFTResponse as CoreumAssetNftV1QueryBurntNFTResponse, + QueryBurntNFTsInClassRequest as CoreumAssetNftV1QueryBurntNFTsInClassRequest, + QueryBurntNFTsInClassResponse as CoreumAssetNftV1QueryBurntNFTsInClassResponse, +} from "./coreum/asset/nft/v1/query_pb.js"; +export { + QueryParamsService as CoreumAssetNftV1QueryParamsService, + QueryClassService as CoreumAssetNftV1QueryClassService, + QueryClassesService as CoreumAssetNftV1QueryClassesService, + QueryFrozenService as CoreumAssetNftV1QueryFrozenService, + QueryClassFrozenService as CoreumAssetNftV1QueryClassFrozenService, + QueryClassFrozenAccountsService as CoreumAssetNftV1QueryClassFrozenAccountsService, + QueryWhitelistedService as CoreumAssetNftV1QueryWhitelistedService, + QueryWhitelistedAccountsForNFTService as CoreumAssetNftV1QueryWhitelistedAccountsForNFTService, + QueryClassWhitelistedAccountsService as CoreumAssetNftV1QueryClassWhitelistedAccountsService, + QueryBurntNFTService as CoreumAssetNftV1QueryBurntNFTService, + QueryBurntNFTsInClassService as CoreumAssetNftV1QueryBurntNFTsInClassService, +} from "./coreum/asset/nft/v1/query_cosmes.js"; +export { + Params as CoreumAssetNftV1Params, +} from "./coreum/asset/nft/v1/params_pb.js"; +export { + ClassFeature as CoreumAssetNftV1ClassFeature, + ClassDefinition as CoreumAssetNftV1ClassDefinition, + Class as CoreumAssetNftV1Class, +} from "./coreum/asset/nft/v1/nft_pb.js"; +export { + GenesisState as CoreumAssetNftV1GenesisState, + FrozenNFT as CoreumAssetNftV1FrozenNFT, + WhitelistedNFTAccounts as CoreumAssetNftV1WhitelistedNFTAccounts, + ClassWhitelistedAccounts as CoreumAssetNftV1ClassWhitelistedAccounts, + ClassFrozenAccounts as CoreumAssetNftV1ClassFrozenAccounts, + BurntNFT as CoreumAssetNftV1BurntNFT, +} from "./coreum/asset/nft/v1/genesis_pb.js"; +export { + EventClassIssued as CoreumAssetNftV1EventClassIssued, + EventFrozen as CoreumAssetNftV1EventFrozen, + EventUnfrozen as CoreumAssetNftV1EventUnfrozen, + EventClassFrozen as CoreumAssetNftV1EventClassFrozen, + EventClassUnfrozen as CoreumAssetNftV1EventClassUnfrozen, + EventAddedToWhitelist as CoreumAssetNftV1EventAddedToWhitelist, + EventRemovedFromWhitelist as CoreumAssetNftV1EventRemovedFromWhitelist, + EventAddedToClassWhitelist as CoreumAssetNftV1EventAddedToClassWhitelist, + EventRemovedFromClassWhitelist as CoreumAssetNftV1EventRemovedFromClassWhitelist, +} from "./coreum/asset/nft/v1/event_pb.js"; +export { + SendAuthorization as CoreumAssetNftV1SendAuthorization, + NFTIdentifier as CoreumAssetNftV1NFTIdentifier, +} from "./coreum/asset/nft/v1/authz_pb.js"; +export { + MsgIssue as CoreumAssetFtV1MsgIssue, + ExtensionIssueSettings as CoreumAssetFtV1ExtensionIssueSettings, + MsgMint as CoreumAssetFtV1MsgMint, + MsgBurn as CoreumAssetFtV1MsgBurn, + MsgFreeze as CoreumAssetFtV1MsgFreeze, + MsgUnfreeze as CoreumAssetFtV1MsgUnfreeze, + MsgSetFrozen as CoreumAssetFtV1MsgSetFrozen, + MsgGloballyFreeze as CoreumAssetFtV1MsgGloballyFreeze, + MsgGloballyUnfreeze as CoreumAssetFtV1MsgGloballyUnfreeze, + MsgClawback as CoreumAssetFtV1MsgClawback, + MsgSetWhitelistedLimit as CoreumAssetFtV1MsgSetWhitelistedLimit, + MsgTransferAdmin as CoreumAssetFtV1MsgTransferAdmin, + MsgClearAdmin as CoreumAssetFtV1MsgClearAdmin, + MsgUpdateParams as CoreumAssetFtV1MsgUpdateParams, + MsgUpdateDEXUnifiedRefAmount as CoreumAssetFtV1MsgUpdateDEXUnifiedRefAmount, + MsgUpdateDEXWhitelistedDenoms as CoreumAssetFtV1MsgUpdateDEXWhitelistedDenoms, + EmptyResponse as CoreumAssetFtV1EmptyResponse, +} from "./coreum/asset/ft/v1/tx_pb.js"; +export { + MsgIssueService as CoreumAssetFtV1MsgIssueService, + MsgMintService as CoreumAssetFtV1MsgMintService, + MsgBurnService as CoreumAssetFtV1MsgBurnService, + MsgFreezeService as CoreumAssetFtV1MsgFreezeService, + MsgUnfreezeService as CoreumAssetFtV1MsgUnfreezeService, + MsgSetFrozenService as CoreumAssetFtV1MsgSetFrozenService, + MsgGloballyFreezeService as CoreumAssetFtV1MsgGloballyFreezeService, + MsgGloballyUnfreezeService as CoreumAssetFtV1MsgGloballyUnfreezeService, + MsgClawbackService as CoreumAssetFtV1MsgClawbackService, + MsgSetWhitelistedLimitService as CoreumAssetFtV1MsgSetWhitelistedLimitService, + MsgTransferAdminService as CoreumAssetFtV1MsgTransferAdminService, + MsgClearAdminService as CoreumAssetFtV1MsgClearAdminService, + MsgUpdateParamsService as CoreumAssetFtV1MsgUpdateParamsService, + MsgUpdateDEXUnifiedRefAmountService as CoreumAssetFtV1MsgUpdateDEXUnifiedRefAmountService, + MsgUpdateDEXWhitelistedDenomsService as CoreumAssetFtV1MsgUpdateDEXWhitelistedDenomsService, +} from "./coreum/asset/ft/v1/tx_cosmes.js"; +export { + Feature as CoreumAssetFtV1Feature, + Definition as CoreumAssetFtV1Definition, + Token as CoreumAssetFtV1Token, + DelayedTokenUpgradeV1 as CoreumAssetFtV1DelayedTokenUpgradeV1, + TokenUpgradeV1Status as CoreumAssetFtV1TokenUpgradeV1Status, + TokenUpgradeStatuses as CoreumAssetFtV1TokenUpgradeStatuses, + DEXSettings as CoreumAssetFtV1DEXSettings, +} from "./coreum/asset/ft/v1/token_pb.js"; +export { + QueryParamsRequest as CoreumAssetFtV1QueryParamsRequest, + QueryParamsResponse as CoreumAssetFtV1QueryParamsResponse, + QueryTokenRequest as CoreumAssetFtV1QueryTokenRequest, + QueryTokenResponse as CoreumAssetFtV1QueryTokenResponse, + QueryTokenUpgradeStatusesRequest as CoreumAssetFtV1QueryTokenUpgradeStatusesRequest, + QueryTokenUpgradeStatusesResponse as CoreumAssetFtV1QueryTokenUpgradeStatusesResponse, + QueryTokensRequest as CoreumAssetFtV1QueryTokensRequest, + QueryTokensResponse as CoreumAssetFtV1QueryTokensResponse, + QueryBalanceRequest as CoreumAssetFtV1QueryBalanceRequest, + QueryBalanceResponse as CoreumAssetFtV1QueryBalanceResponse, + QueryFrozenBalancesRequest as CoreumAssetFtV1QueryFrozenBalancesRequest, + QueryFrozenBalancesResponse as CoreumAssetFtV1QueryFrozenBalancesResponse, + QueryFrozenBalanceRequest as CoreumAssetFtV1QueryFrozenBalanceRequest, + QueryFrozenBalanceResponse as CoreumAssetFtV1QueryFrozenBalanceResponse, + QueryWhitelistedBalancesRequest as CoreumAssetFtV1QueryWhitelistedBalancesRequest, + QueryWhitelistedBalancesResponse as CoreumAssetFtV1QueryWhitelistedBalancesResponse, + QueryWhitelistedBalanceRequest as CoreumAssetFtV1QueryWhitelistedBalanceRequest, + QueryWhitelistedBalanceResponse as CoreumAssetFtV1QueryWhitelistedBalanceResponse, + QueryDEXSettingsRequest as CoreumAssetFtV1QueryDEXSettingsRequest, + QueryDEXSettingsResponse as CoreumAssetFtV1QueryDEXSettingsResponse, +} from "./coreum/asset/ft/v1/query_pb.js"; +export { + QueryParamsService as CoreumAssetFtV1QueryParamsService, + QueryTokensService as CoreumAssetFtV1QueryTokensService, + QueryTokenService as CoreumAssetFtV1QueryTokenService, + QueryTokenUpgradeStatusesService as CoreumAssetFtV1QueryTokenUpgradeStatusesService, + QueryBalanceService as CoreumAssetFtV1QueryBalanceService, + QueryFrozenBalancesService as CoreumAssetFtV1QueryFrozenBalancesService, + QueryFrozenBalanceService as CoreumAssetFtV1QueryFrozenBalanceService, + QueryWhitelistedBalancesService as CoreumAssetFtV1QueryWhitelistedBalancesService, + QueryWhitelistedBalanceService as CoreumAssetFtV1QueryWhitelistedBalanceService, + QueryDEXSettingsService as CoreumAssetFtV1QueryDEXSettingsService, +} from "./coreum/asset/ft/v1/query_cosmes.js"; +export { + Params as CoreumAssetFtV1Params, +} from "./coreum/asset/ft/v1/params_pb.js"; +export { + GenesisState as CoreumAssetFtV1GenesisState, + Balance as CoreumAssetFtV1Balance, + PendingTokenUpgrade as CoreumAssetFtV1PendingTokenUpgrade, + DEXSettingsWithDenom as CoreumAssetFtV1DEXSettingsWithDenom, +} from "./coreum/asset/ft/v1/genesis_pb.js"; +export { + EventIssued as CoreumAssetFtV1EventIssued, + EventFrozenAmountChanged as CoreumAssetFtV1EventFrozenAmountChanged, + EventAmountClawedBack as CoreumAssetFtV1EventAmountClawedBack, + EventWhitelistedAmountChanged as CoreumAssetFtV1EventWhitelistedAmountChanged, + EventDEXLockedAmountChanged as CoreumAssetFtV1EventDEXLockedAmountChanged, + EventDEXExpectedToReceiveAmountChanged as CoreumAssetFtV1EventDEXExpectedToReceiveAmountChanged, + EventAdminTransferred as CoreumAssetFtV1EventAdminTransferred, + EventAdminCleared as CoreumAssetFtV1EventAdminCleared, + EventDEXSettingsChanged as CoreumAssetFtV1EventDEXSettingsChanged, +} from "./coreum/asset/ft/v1/event_pb.js"; +export { + MintAuthorization as CoreumAssetFtV1MintAuthorization, + BurnAuthorization as CoreumAssetFtV1BurnAuthorization, +} from "./coreum/asset/ft/v1/authz_pb.js"; +export { + CaptchaVersion as CaptchaCaptchaVersion, + CaptchaRequest as CaptchaCaptchaRequest, +} from "./captcha/request_pb.js"; export { GenesisOwners as CapabilityV1GenesisOwners, GenesisState as CapabilityV1GenesisState, @@ -4651,3 +11710,252 @@ export { Owner as CapabilityV1Owner, CapabilityOwners as CapabilityV1CapabilityOwners, } from "./capability/v1/capability_pb.js"; +export { + MsgMintPhoton as AtomonePhotonV1MsgMintPhoton, + MsgMintPhotonResponse as AtomonePhotonV1MsgMintPhotonResponse, + MsgUpdateParams as AtomonePhotonV1MsgUpdateParams, + MsgUpdateParamsResponse as AtomonePhotonV1MsgUpdateParamsResponse, +} from "./atomone/photon/v1/tx_pb.js"; +export { + MsgMintPhotonService as AtomonePhotonV1MsgMintPhotonService, + MsgUpdateParamsService as AtomonePhotonV1MsgUpdateParamsService, +} from "./atomone/photon/v1/tx_cosmes.js"; +export { + QueryParamsRequest as AtomonePhotonV1QueryParamsRequest, + QueryParamsResponse as AtomonePhotonV1QueryParamsResponse, + QueryConversionRateRequest as AtomonePhotonV1QueryConversionRateRequest, + QueryConversionRateResponse as AtomonePhotonV1QueryConversionRateResponse, +} from "./atomone/photon/v1/query_pb.js"; +export { + QueryParamsService as AtomonePhotonV1QueryParamsService, + QueryConversionRateService as AtomonePhotonV1QueryConversionRateService, +} from "./atomone/photon/v1/query_cosmes.js"; +export { + Params as AtomonePhotonV1Params, +} from "./atomone/photon/v1/photon_pb.js"; +export { + GenesisState as AtomonePhotonV1GenesisState, +} from "./atomone/photon/v1/genesis_pb.js"; +export { + MsgSubmitProposal as AtomoneGovV1beta1MsgSubmitProposal, + MsgSubmitProposalResponse as AtomoneGovV1beta1MsgSubmitProposalResponse, + MsgVote as AtomoneGovV1beta1MsgVote, + MsgVoteResponse as AtomoneGovV1beta1MsgVoteResponse, + MsgVoteWeighted as AtomoneGovV1beta1MsgVoteWeighted, + MsgVoteWeightedResponse as AtomoneGovV1beta1MsgVoteWeightedResponse, + MsgDeposit as AtomoneGovV1beta1MsgDeposit, + MsgDepositResponse as AtomoneGovV1beta1MsgDepositResponse, +} from "./atomone/gov/v1beta1/tx_pb.js"; +export { + MsgSubmitProposalService as AtomoneGovV1beta1MsgSubmitProposalService, + MsgVoteService as AtomoneGovV1beta1MsgVoteService, + MsgVoteWeightedService as AtomoneGovV1beta1MsgVoteWeightedService, + MsgDepositService as AtomoneGovV1beta1MsgDepositService, +} from "./atomone/gov/v1beta1/tx_cosmes.js"; +export { + QueryProposalRequest as AtomoneGovV1beta1QueryProposalRequest, + QueryProposalResponse as AtomoneGovV1beta1QueryProposalResponse, + QueryProposalsRequest as AtomoneGovV1beta1QueryProposalsRequest, + QueryProposalsResponse as AtomoneGovV1beta1QueryProposalsResponse, + QueryVoteRequest as AtomoneGovV1beta1QueryVoteRequest, + QueryVoteResponse as AtomoneGovV1beta1QueryVoteResponse, + QueryVotesRequest as AtomoneGovV1beta1QueryVotesRequest, + QueryVotesResponse as AtomoneGovV1beta1QueryVotesResponse, + QueryParamsRequest as AtomoneGovV1beta1QueryParamsRequest, + QueryParamsResponse as AtomoneGovV1beta1QueryParamsResponse, + QueryDepositRequest as AtomoneGovV1beta1QueryDepositRequest, + QueryDepositResponse as AtomoneGovV1beta1QueryDepositResponse, + QueryDepositsRequest as AtomoneGovV1beta1QueryDepositsRequest, + QueryDepositsResponse as AtomoneGovV1beta1QueryDepositsResponse, + QueryTallyResultRequest as AtomoneGovV1beta1QueryTallyResultRequest, + QueryTallyResultResponse as AtomoneGovV1beta1QueryTallyResultResponse, +} from "./atomone/gov/v1beta1/query_pb.js"; +export { + QueryProposalService as AtomoneGovV1beta1QueryProposalService, + QueryProposalsService as AtomoneGovV1beta1QueryProposalsService, + QueryVoteService as AtomoneGovV1beta1QueryVoteService, + QueryVotesService as AtomoneGovV1beta1QueryVotesService, + QueryParamsService as AtomoneGovV1beta1QueryParamsService, + QueryDepositService as AtomoneGovV1beta1QueryDepositService, + QueryDepositsService as AtomoneGovV1beta1QueryDepositsService, + QueryTallyResultService as AtomoneGovV1beta1QueryTallyResultService, +} from "./atomone/gov/v1beta1/query_cosmes.js"; +export { + VoteOption as AtomoneGovV1beta1VoteOption, + ProposalStatus as AtomoneGovV1beta1ProposalStatus, + WeightedVoteOption as AtomoneGovV1beta1WeightedVoteOption, + TextProposal as AtomoneGovV1beta1TextProposal, + Deposit as AtomoneGovV1beta1Deposit, + Proposal as AtomoneGovV1beta1Proposal, + TallyResult as AtomoneGovV1beta1TallyResult, + Vote as AtomoneGovV1beta1Vote, + DepositParams as AtomoneGovV1beta1DepositParams, + VotingParams as AtomoneGovV1beta1VotingParams, + TallyParams as AtomoneGovV1beta1TallyParams, +} from "./atomone/gov/v1beta1/gov_pb.js"; +export { + GenesisState as AtomoneGovV1beta1GenesisState, +} from "./atomone/gov/v1beta1/genesis_pb.js"; +export { + MsgSubmitProposal as AtomoneGovV1MsgSubmitProposal, + MsgSubmitProposalResponse as AtomoneGovV1MsgSubmitProposalResponse, + MsgExecLegacyContent as AtomoneGovV1MsgExecLegacyContent, + MsgExecLegacyContentResponse as AtomoneGovV1MsgExecLegacyContentResponse, + MsgVote as AtomoneGovV1MsgVote, + MsgVoteResponse as AtomoneGovV1MsgVoteResponse, + MsgVoteWeighted as AtomoneGovV1MsgVoteWeighted, + MsgVoteWeightedResponse as AtomoneGovV1MsgVoteWeightedResponse, + MsgDeposit as AtomoneGovV1MsgDeposit, + MsgDepositResponse as AtomoneGovV1MsgDepositResponse, + MsgUpdateParams as AtomoneGovV1MsgUpdateParams, + MsgUpdateParamsResponse as AtomoneGovV1MsgUpdateParamsResponse, + MsgProposeLaw as AtomoneGovV1MsgProposeLaw, + MsgProposeLawResponse as AtomoneGovV1MsgProposeLawResponse, + MsgProposeConstitutionAmendment as AtomoneGovV1MsgProposeConstitutionAmendment, + MsgProposeConstitutionAmendmentResponse as AtomoneGovV1MsgProposeConstitutionAmendmentResponse, +} from "./atomone/gov/v1/tx_pb.js"; +export { + MsgSubmitProposalService as AtomoneGovV1MsgSubmitProposalService, + MsgExecLegacyContentService as AtomoneGovV1MsgExecLegacyContentService, + MsgVoteService as AtomoneGovV1MsgVoteService, + MsgVoteWeightedService as AtomoneGovV1MsgVoteWeightedService, + MsgDepositService as AtomoneGovV1MsgDepositService, + MsgUpdateParamsService as AtomoneGovV1MsgUpdateParamsService, + MsgProposeLawService as AtomoneGovV1MsgProposeLawService, + MsgProposeConstitutionAmendmentService as AtomoneGovV1MsgProposeConstitutionAmendmentService, +} from "./atomone/gov/v1/tx_cosmes.js"; +export { + QueryConstitutionRequest as AtomoneGovV1QueryConstitutionRequest, + QueryConstitutionResponse as AtomoneGovV1QueryConstitutionResponse, + QueryProposalRequest as AtomoneGovV1QueryProposalRequest, + QueryProposalResponse as AtomoneGovV1QueryProposalResponse, + QueryProposalsRequest as AtomoneGovV1QueryProposalsRequest, + QueryProposalsResponse as AtomoneGovV1QueryProposalsResponse, + QueryVoteRequest as AtomoneGovV1QueryVoteRequest, + QueryVoteResponse as AtomoneGovV1QueryVoteResponse, + QueryVotesRequest as AtomoneGovV1QueryVotesRequest, + QueryVotesResponse as AtomoneGovV1QueryVotesResponse, + QueryParamsRequest as AtomoneGovV1QueryParamsRequest, + QueryParamsResponse as AtomoneGovV1QueryParamsResponse, + QueryDepositRequest as AtomoneGovV1QueryDepositRequest, + QueryDepositResponse as AtomoneGovV1QueryDepositResponse, + QueryDepositsRequest as AtomoneGovV1QueryDepositsRequest, + QueryDepositsResponse as AtomoneGovV1QueryDepositsResponse, + QueryTallyResultRequest as AtomoneGovV1QueryTallyResultRequest, + QueryTallyResultResponse as AtomoneGovV1QueryTallyResultResponse, + QueryMinDepositRequest as AtomoneGovV1QueryMinDepositRequest, + QueryMinDepositResponse as AtomoneGovV1QueryMinDepositResponse, + QueryMinInitialDepositRequest as AtomoneGovV1QueryMinInitialDepositRequest, + QueryMinInitialDepositResponse as AtomoneGovV1QueryMinInitialDepositResponse, + QueryQuorumsRequest as AtomoneGovV1QueryQuorumsRequest, + QueryQuorumsResponse as AtomoneGovV1QueryQuorumsResponse, + QueryParticipationEMAsRequest as AtomoneGovV1QueryParticipationEMAsRequest, + QueryParticipationEMAsResponse as AtomoneGovV1QueryParticipationEMAsResponse, +} from "./atomone/gov/v1/query_pb.js"; +export { + QueryConstitutionService as AtomoneGovV1QueryConstitutionService, + QueryProposalService as AtomoneGovV1QueryProposalService, + QueryProposalsService as AtomoneGovV1QueryProposalsService, + QueryVoteService as AtomoneGovV1QueryVoteService, + QueryVotesService as AtomoneGovV1QueryVotesService, + QueryParamsService as AtomoneGovV1QueryParamsService, + QueryDepositService as AtomoneGovV1QueryDepositService, + QueryDepositsService as AtomoneGovV1QueryDepositsService, + QueryTallyResultService as AtomoneGovV1QueryTallyResultService, + QueryMinDepositService as AtomoneGovV1QueryMinDepositService, + QueryMinInitialDepositService as AtomoneGovV1QueryMinInitialDepositService, + QueryQuorumsService as AtomoneGovV1QueryQuorumsService, + QueryParticipationEMAsService as AtomoneGovV1QueryParticipationEMAsService, +} from "./atomone/gov/v1/query_cosmes.js"; +export { + VoteOption as AtomoneGovV1VoteOption, + ProposalStatus as AtomoneGovV1ProposalStatus, + WeightedVoteOption as AtomoneGovV1WeightedVoteOption, + Deposit as AtomoneGovV1Deposit, + LastMinDeposit as AtomoneGovV1LastMinDeposit, + Proposal as AtomoneGovV1Proposal, + TallyResult as AtomoneGovV1TallyResult, + Vote as AtomoneGovV1Vote, + QuorumCheckQueueEntry as AtomoneGovV1QuorumCheckQueueEntry, + DepositParams as AtomoneGovV1DepositParams, + VotingParams as AtomoneGovV1VotingParams, + TallyParams as AtomoneGovV1TallyParams, + MinDepositThrottler as AtomoneGovV1MinDepositThrottler, + MinInitialDepositThrottler as AtomoneGovV1MinInitialDepositThrottler, + Params as AtomoneGovV1Params, + QuorumRange as AtomoneGovV1QuorumRange, +} from "./atomone/gov/v1/gov_pb.js"; +export { + GenesisState as AtomoneGovV1GenesisState, +} from "./atomone/gov/v1/genesis_pb.js"; +export { + Module as AtomoneGovModuleV1Module, +} from "./atomone/gov/module/v1/module_pb.js"; +export { + MsgUpdateParams as AtomoneDynamicfeeV1MsgUpdateParams, + MsgUpdateParamsResponse as AtomoneDynamicfeeV1MsgUpdateParamsResponse, +} from "./atomone/dynamicfee/v1/tx_pb.js"; +export { + MsgUpdateParamsService as AtomoneDynamicfeeV1MsgUpdateParamsService, +} from "./atomone/dynamicfee/v1/tx_cosmes.js"; +export { + ParamsRequest as AtomoneDynamicfeeV1ParamsRequest, + ParamsResponse as AtomoneDynamicfeeV1ParamsResponse, + StateRequest as AtomoneDynamicfeeV1StateRequest, + StateResponse as AtomoneDynamicfeeV1StateResponse, + GasPriceRequest as AtomoneDynamicfeeV1GasPriceRequest, + GasPriceResponse as AtomoneDynamicfeeV1GasPriceResponse, + GasPricesRequest as AtomoneDynamicfeeV1GasPricesRequest, + GasPricesResponse as AtomoneDynamicfeeV1GasPricesResponse, +} from "./atomone/dynamicfee/v1/query_pb.js"; +export { + QueryParamsService as AtomoneDynamicfeeV1QueryParamsService, + QueryStateService as AtomoneDynamicfeeV1QueryStateService, + QueryGasPriceService as AtomoneDynamicfeeV1QueryGasPriceService, + QueryGasPricesService as AtomoneDynamicfeeV1QueryGasPricesService, +} from "./atomone/dynamicfee/v1/query_cosmes.js"; +export { + Params as AtomoneDynamicfeeV1Params, +} from "./atomone/dynamicfee/v1/params_pb.js"; +export { + GenesisState as AtomoneDynamicfeeV1GenesisState, + State as AtomoneDynamicfeeV1State, +} from "./atomone/dynamicfee/v1/genesis_pb.js"; +export { + Module as AtomoneDynamicfeeModuleV1Module, +} from "./atomone/dynamicfee/module/v1/module_pb.js"; +export { + MsgAnnotateProposal as AtomoneCoredaosV1MsgAnnotateProposal, + MsgAnnotateProposalResponse as AtomoneCoredaosV1MsgAnnotateProposalResponse, + MsgEndorseProposal as AtomoneCoredaosV1MsgEndorseProposal, + MsgEndorseProposalResponse as AtomoneCoredaosV1MsgEndorseProposalResponse, + MsgExtendVotingPeriod as AtomoneCoredaosV1MsgExtendVotingPeriod, + MsgExtendVotingPeriodResponse as AtomoneCoredaosV1MsgExtendVotingPeriodResponse, + MsgVetoProposal as AtomoneCoredaosV1MsgVetoProposal, + MsgVetoProposalResponse as AtomoneCoredaosV1MsgVetoProposalResponse, + MsgUpdateParams as AtomoneCoredaosV1MsgUpdateParams, + MsgUpdateParamsResponse as AtomoneCoredaosV1MsgUpdateParamsResponse, +} from "./atomone/coredaos/v1/tx_pb.js"; +export { + MsgAnnotateProposalService as AtomoneCoredaosV1MsgAnnotateProposalService, + MsgEndorseProposalService as AtomoneCoredaosV1MsgEndorseProposalService, + MsgExtendVotingPeriodService as AtomoneCoredaosV1MsgExtendVotingPeriodService, + MsgVetoProposalService as AtomoneCoredaosV1MsgVetoProposalService, + MsgUpdateParamsService as AtomoneCoredaosV1MsgUpdateParamsService, +} from "./atomone/coredaos/v1/tx_cosmes.js"; +export { + QueryParamsRequest as AtomoneCoredaosV1QueryParamsRequest, + QueryParamsResponse as AtomoneCoredaosV1QueryParamsResponse, +} from "./atomone/coredaos/v1/query_pb.js"; +export { + QueryParamsService as AtomoneCoredaosV1QueryParamsService, +} from "./atomone/coredaos/v1/query_cosmes.js"; +export { + GenesisState as AtomoneCoredaosV1GenesisState, +} from "./atomone/coredaos/v1/genesis_pb.js"; +export { + Params as AtomoneCoredaosV1Params, +} from "./atomone/coredaos/v1/coredaos_pb.js"; +export { + Module as AtomoneCoredaosModuleV1Module, +} from "./atomone/coredaos/module/v1/module_pb.js"; diff --git a/src/protobufs/injective/auction/v1beta1/auction_pb.ts b/src/protobufs/injective/auction/v1beta1/auction_pb.ts index f605c127..457f8366 100644 --- a/src/protobufs/injective/auction/v1beta1/auction_pb.ts +++ b/src/protobufs/injective/auction/v1beta1/auction_pb.ts @@ -25,6 +25,23 @@ export class Params extends Message { */ minNextBidIncrementRate = ""; + /** + * inj_basket_max_cap defines the maximum cap for INJ contained in an auction + * basket + * + * @generated from field: string inj_basket_max_cap = 3; + */ + injBasketMaxCap = ""; + + /** + * bidders_whitelist defines the list of addresses that are allowed to bid + * if empty, any address can bid; if populated, only whitelisted addresses can + * bid + * + * @generated from field: repeated string bidders_whitelist = 4; + */ + biddersWhitelist: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -35,6 +52,8 @@ export class Params extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "auction_period", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "min_next_bid_increment_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "inj_basket_max_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bidders_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { @@ -64,9 +83,9 @@ export class Bid extends Message { bidder = ""; /** - * @generated from field: string amount = 2; + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ - amount = ""; + amount?: Coin; constructor(data?: PartialMessage) { super(); @@ -77,7 +96,7 @@ export class Bid extends Message { static readonly typeName = "injective.auction.v1beta1.Bid"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Bid { @@ -97,6 +116,61 @@ export class Bid extends Message { } } +/** + * @generated from message injective.auction.v1beta1.LastAuctionResult + */ +export class LastAuctionResult extends Message { + /** + * winner describes the address of the winner + * + * @generated from field: string winner = 1; + */ + winner = ""; + + /** + * amount describes the amount the winner get from the auction + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * round defines the round number of auction + * + * @generated from field: uint64 round = 3; + */ + round = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.auction.v1beta1.LastAuctionResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "winner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LastAuctionResult { + return new LastAuctionResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LastAuctionResult { + return new LastAuctionResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LastAuctionResult { + return new LastAuctionResult().fromJsonString(jsonString, options); + } + + static equals(a: LastAuctionResult | PlainMessage | undefined, b: LastAuctionResult | PlainMessage | undefined): boolean { + return proto3.util.equals(LastAuctionResult, a, b); + } +} + /** * @generated from message injective.auction.v1beta1.EventBid */ @@ -111,9 +185,9 @@ export class EventBid extends Message { /** * amount describes the amount the bidder put on the auction * - * @generated from field: string amount = 2; + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ - amount = ""; + amount?: Coin; /** * round defines the round number of auction @@ -131,7 +205,7 @@ export class EventBid extends Message { static readonly typeName = "injective.auction.v1beta1.EventBid"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, { no: 3, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); @@ -166,9 +240,9 @@ export class EventAuctionResult extends Message { /** * amount describes the amount the winner get from the auction * - * @generated from field: string amount = 2; + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ - amount = ""; + amount?: Coin; /** * round defines the round number of auction @@ -186,7 +260,7 @@ export class EventAuctionResult extends Message { static readonly typeName = "injective.auction.v1beta1.EventAuctionResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "winner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, { no: 3, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); diff --git a/src/protobufs/injective/auction/v1beta1/genesis_pb.ts b/src/protobufs/injective/auction/v1beta1/genesis_pb.ts index 5130738c..3510eeca 100644 --- a/src/protobufs/injective/auction/v1beta1/genesis_pb.ts +++ b/src/protobufs/injective/auction/v1beta1/genesis_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Bid, Params } from "./auction_pb.js"; +import { Bid, LastAuctionResult, Params } from "./auction_pb.js"; /** * GenesisState defines the auction module's genesis state. @@ -41,6 +41,13 @@ export class GenesisState extends Message { */ auctionEndingTimestamp = protoInt64.zero; + /** + * last auction result + * + * @generated from field: injective.auction.v1beta1.LastAuctionResult last_auction_result = 5; + */ + lastAuctionResult?: LastAuctionResult; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -53,6 +60,7 @@ export class GenesisState extends Message { { no: 2, name: "auction_round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "highest_bid", kind: "message", T: Bid }, { no: 4, name: "auction_ending_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "last_auction_result", kind: "message", T: LastAuctionResult }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/injective/auction/v1beta1/query_cosmes.ts b/src/protobufs/injective/auction/v1beta1/query_cosmes.ts index ac8120e4..747899c8 100644 --- a/src/protobufs/injective/auction/v1beta1/query_cosmes.ts +++ b/src/protobufs/injective/auction/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryAuctionParamsRequest, QueryAuctionParamsResponse, QueryCurrentAuctionBasketRequest, QueryCurrentAuctionBasketResponse, QueryModuleStateRequest, QueryModuleStateResponse } from "./query_pb.js"; +import { QueryAuctionParamsRequest, QueryAuctionParamsResponse, QueryCurrentAuctionBasketRequest, QueryCurrentAuctionBasketResponse, QueryLastAuctionResultRequest, QueryLastAuctionResultResponse, QueryModuleStateRequest, QueryModuleStateResponse } from "./query_pb.js"; const TYPE_NAME = "injective.auction.v1beta1.Query"; @@ -43,3 +43,13 @@ export const QueryAuctionModuleStateService = { Response: QueryModuleStateResponse, } as const; +/** + * @generated from rpc injective.auction.v1beta1.Query.LastAuctionResult + */ +export const QueryLastAuctionResultService = { + typeName: TYPE_NAME, + method: "LastAuctionResult", + Request: QueryLastAuctionResultRequest, + Response: QueryLastAuctionResultResponse, +} as const; + diff --git a/src/protobufs/injective/auction/v1beta1/query_pb.ts b/src/protobufs/injective/auction/v1beta1/query_pb.ts index 73d017fa..8c34db46 100644 --- a/src/protobufs/injective/auction/v1beta1/query_pb.ts +++ b/src/protobufs/injective/auction/v1beta1/query_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./auction_pb.js"; +import { LastAuctionResult, Params } from "./auction_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { GenesisState } from "./genesis_pb.js"; @@ -141,7 +141,7 @@ export class QueryCurrentAuctionBasketResponse extends Message [ { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, { no: 2, name: "auctionRound", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "auctionClosingTime", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "auctionClosingTime", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "highestBidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "highestBidAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); @@ -265,3 +265,71 @@ export class QueryModuleStateResponse extends Message } } +/** + * @generated from message injective.auction.v1beta1.QueryLastAuctionResultRequest + */ +export class QueryLastAuctionResultRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.auction.v1beta1.QueryLastAuctionResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastAuctionResultRequest { + return new QueryLastAuctionResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastAuctionResultRequest { + return new QueryLastAuctionResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastAuctionResultRequest { + return new QueryLastAuctionResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastAuctionResultRequest | PlainMessage | undefined, b: QueryLastAuctionResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastAuctionResultRequest, a, b); + } +} + +/** + * @generated from message injective.auction.v1beta1.QueryLastAuctionResultResponse + */ +export class QueryLastAuctionResultResponse extends Message { + /** + * @generated from field: injective.auction.v1beta1.LastAuctionResult last_auction_result = 1; + */ + lastAuctionResult?: LastAuctionResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.auction.v1beta1.QueryLastAuctionResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "last_auction_result", kind: "message", T: LastAuctionResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastAuctionResultResponse { + return new QueryLastAuctionResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastAuctionResultResponse { + return new QueryLastAuctionResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastAuctionResultResponse { + return new QueryLastAuctionResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastAuctionResultResponse | PlainMessage | undefined, b: QueryLastAuctionResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastAuctionResultResponse, a, b); + } +} + diff --git a/src/protobufs/injective/auction/v1beta1/tx_pb.ts b/src/protobufs/injective/auction/v1beta1/tx_pb.ts index c791f869..3951f3fa 100644 --- a/src/protobufs/injective/auction/v1beta1/tx_pb.ts +++ b/src/protobufs/injective/auction/v1beta1/tx_pb.ts @@ -15,6 +15,8 @@ import { Params } from "./auction_pb.js"; */ export class MsgBid extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; diff --git a/src/protobufs/injective/downtimedetector/v1beta1/downtime_duration_pb.ts b/src/protobufs/injective/downtimedetector/v1beta1/downtime_duration_pb.ts new file mode 100644 index 00000000..b7e1f6a6 --- /dev/null +++ b/src/protobufs/injective/downtimedetector/v1beta1/downtime_duration_pb.ts @@ -0,0 +1,165 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/downtimedetector/v1beta1/downtime_duration.proto (package injective.downtimedetector.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum injective.downtimedetector.v1beta1.Downtime + */ +export enum Downtime { + /** + * @generated from enum value: DURATION_30S = 0; + */ + DURATION_30S = 0, + + /** + * @generated from enum value: DURATION_1M = 1; + */ + DURATION_1M = 1, + + /** + * @generated from enum value: DURATION_2M = 2; + */ + DURATION_2M = 2, + + /** + * @generated from enum value: DURATION_3M = 3; + */ + DURATION_3M = 3, + + /** + * @generated from enum value: DURATION_4M = 4; + */ + DURATION_4M = 4, + + /** + * @generated from enum value: DURATION_5M = 5; + */ + DURATION_5M = 5, + + /** + * @generated from enum value: DURATION_10M = 6; + */ + DURATION_10M = 6, + + /** + * @generated from enum value: DURATION_20M = 7; + */ + DURATION_20M = 7, + + /** + * @generated from enum value: DURATION_30M = 8; + */ + DURATION_30M = 8, + + /** + * @generated from enum value: DURATION_40M = 9; + */ + DURATION_40M = 9, + + /** + * @generated from enum value: DURATION_50M = 10; + */ + DURATION_50M = 10, + + /** + * @generated from enum value: DURATION_1H = 11; + */ + DURATION_1H = 11, + + /** + * @generated from enum value: DURATION_1_5H = 12; + */ + DURATION_1_5H = 12, + + /** + * @generated from enum value: DURATION_2H = 13; + */ + DURATION_2H = 13, + + /** + * @generated from enum value: DURATION_2_5H = 14; + */ + DURATION_2_5H = 14, + + /** + * @generated from enum value: DURATION_3H = 15; + */ + DURATION_3H = 15, + + /** + * @generated from enum value: DURATION_4H = 16; + */ + DURATION_4H = 16, + + /** + * @generated from enum value: DURATION_5H = 17; + */ + DURATION_5H = 17, + + /** + * @generated from enum value: DURATION_6H = 18; + */ + DURATION_6H = 18, + + /** + * @generated from enum value: DURATION_9H = 19; + */ + DURATION_9H = 19, + + /** + * @generated from enum value: DURATION_12H = 20; + */ + DURATION_12H = 20, + + /** + * @generated from enum value: DURATION_18H = 21; + */ + DURATION_18H = 21, + + /** + * @generated from enum value: DURATION_24H = 22; + */ + DURATION_24H = 22, + + /** + * @generated from enum value: DURATION_36H = 23; + */ + DURATION_36H = 23, + + /** + * @generated from enum value: DURATION_48H = 24; + */ + DURATION_48H = 24, +} +// Retrieve enum metadata with: proto3.getEnumType(Downtime) +proto3.util.setEnumType(Downtime, "injective.downtimedetector.v1beta1.Downtime", [ + { no: 0, name: "DURATION_30S" }, + { no: 1, name: "DURATION_1M" }, + { no: 2, name: "DURATION_2M" }, + { no: 3, name: "DURATION_3M" }, + { no: 4, name: "DURATION_4M" }, + { no: 5, name: "DURATION_5M" }, + { no: 6, name: "DURATION_10M" }, + { no: 7, name: "DURATION_20M" }, + { no: 8, name: "DURATION_30M" }, + { no: 9, name: "DURATION_40M" }, + { no: 10, name: "DURATION_50M" }, + { no: 11, name: "DURATION_1H" }, + { no: 12, name: "DURATION_1_5H" }, + { no: 13, name: "DURATION_2H" }, + { no: 14, name: "DURATION_2_5H" }, + { no: 15, name: "DURATION_3H" }, + { no: 16, name: "DURATION_4H" }, + { no: 17, name: "DURATION_5H" }, + { no: 18, name: "DURATION_6H" }, + { no: 19, name: "DURATION_9H" }, + { no: 20, name: "DURATION_12H" }, + { no: 21, name: "DURATION_18H" }, + { no: 22, name: "DURATION_24H" }, + { no: 23, name: "DURATION_36H" }, + { no: 24, name: "DURATION_48H" }, +]); + diff --git a/src/protobufs/injective/downtimedetector/v1beta1/genesis_pb.ts b/src/protobufs/injective/downtimedetector/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..f4c68635 --- /dev/null +++ b/src/protobufs/injective/downtimedetector/v1beta1/genesis_pb.ts @@ -0,0 +1,97 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/downtimedetector/v1beta1/genesis.proto (package injective.downtimedetector.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Downtime } from "./downtime_duration_pb.js"; + +/** + * @generated from message injective.downtimedetector.v1beta1.GenesisDowntimeEntry + */ +export class GenesisDowntimeEntry extends Message { + /** + * @generated from field: injective.downtimedetector.v1beta1.Downtime duration = 1; + */ + duration = Downtime.DURATION_30S; + + /** + * @generated from field: google.protobuf.Timestamp last_downtime = 2; + */ + lastDowntime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.downtimedetector.v1beta1.GenesisDowntimeEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "duration", kind: "enum", T: proto3.getEnumType(Downtime) }, + { no: 2, name: "last_downtime", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDowntimeEntry { + return new GenesisDowntimeEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDowntimeEntry { + return new GenesisDowntimeEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisDowntimeEntry { + return new GenesisDowntimeEntry().fromJsonString(jsonString, options); + } + + static equals(a: GenesisDowntimeEntry | PlainMessage | undefined, b: GenesisDowntimeEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisDowntimeEntry, a, b); + } +} + +/** + * GenesisState defines the twap module's genesis state. + * + * @generated from message injective.downtimedetector.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated injective.downtimedetector.v1beta1.GenesisDowntimeEntry downtimes = 1; + */ + downtimes: GenesisDowntimeEntry[] = []; + + /** + * @generated from field: google.protobuf.Timestamp last_block_time = 2; + */ + lastBlockTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.downtimedetector.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "downtimes", kind: "message", T: GenesisDowntimeEntry, repeated: true }, + { no: 2, name: "last_block_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/injective/downtimedetector/v1beta1/query_cosmes.ts b/src/protobufs/injective/downtimedetector/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..00cea35b --- /dev/null +++ b/src/protobufs/injective/downtimedetector/v1beta1/query_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/downtimedetector/v1beta1/query.proto (package injective.downtimedetector.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponse } from "./query_pb.js"; + +const TYPE_NAME = "injective.downtimedetector.v1beta1.Query"; + +/** + * @generated from rpc injective.downtimedetector.v1beta1.Query.RecoveredSinceDowntimeOfLength + */ +export const QueryRecoveredSinceDowntimeOfLengthService = { + typeName: TYPE_NAME, + method: "RecoveredSinceDowntimeOfLength", + Request: RecoveredSinceDowntimeOfLengthRequest, + Response: RecoveredSinceDowntimeOfLengthResponse, +} as const; + diff --git a/src/protobufs/injective/downtimedetector/v1beta1/query_pb.ts b/src/protobufs/injective/downtimedetector/v1beta1/query_pb.ts new file mode 100644 index 00000000..8cfbb571 --- /dev/null +++ b/src/protobufs/injective/downtimedetector/v1beta1/query_pb.ts @@ -0,0 +1,92 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/downtimedetector/v1beta1/query.proto (package injective.downtimedetector.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; +import { Downtime } from "./downtime_duration_pb.js"; + +/** + * Query for has it been at least $RECOVERY_DURATION units of time, + * since the chain has been down for $DOWNTIME_DURATION. + * + * @generated from message injective.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest + */ +export class RecoveredSinceDowntimeOfLengthRequest extends Message { + /** + * @generated from field: injective.downtimedetector.v1beta1.Downtime downtime = 1; + */ + downtime = Downtime.DURATION_30S; + + /** + * @generated from field: google.protobuf.Duration recovery = 2; + */ + recovery?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "downtime", kind: "enum", T: proto3.getEnumType(Downtime) }, + { no: 2, name: "recovery", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { + return new RecoveredSinceDowntimeOfLengthRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { + return new RecoveredSinceDowntimeOfLengthRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { + return new RecoveredSinceDowntimeOfLengthRequest().fromJsonString(jsonString, options); + } + + static equals(a: RecoveredSinceDowntimeOfLengthRequest | PlainMessage | undefined, b: RecoveredSinceDowntimeOfLengthRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RecoveredSinceDowntimeOfLengthRequest, a, b); + } +} + +/** + * @generated from message injective.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse + */ +export class RecoveredSinceDowntimeOfLengthResponse extends Message { + /** + * @generated from field: bool successfully_recovered = 1; + */ + successfullyRecovered = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "successfully_recovered", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { + return new RecoveredSinceDowntimeOfLengthResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { + return new RecoveredSinceDowntimeOfLengthResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { + return new RecoveredSinceDowntimeOfLengthResponse().fromJsonString(jsonString, options); + } + + static equals(a: RecoveredSinceDowntimeOfLengthResponse | PlainMessage | undefined, b: RecoveredSinceDowntimeOfLengthResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RecoveredSinceDowntimeOfLengthResponse, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/erc20_pb.ts b/src/protobufs/injective/erc20/v1beta1/erc20_pb.ts new file mode 100644 index 00000000..73765b93 --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/erc20_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/erc20.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * TokenPair defines an association of bank denom <-> EVM token (erc20 contract + * address) + * + * @generated from message injective.erc20.v1beta1.TokenPair + */ +export class TokenPair extends Message { + /** + * bank denom + * + * @generated from field: string bank_denom = 1; + */ + bankDenom = ""; + + /** + * address of erc20 smart contract that is backed by + * + * @generated from field: string erc20_address = 2; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.TokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenPair { + return new TokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenPair { + return new TokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenPair { + return new TokenPair().fromJsonString(jsonString, options); + } + + static equals(a: TokenPair | PlainMessage | undefined, b: TokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenPair, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/events_pb.ts b/src/protobufs/injective/erc20/v1beta1/events_pb.ts new file mode 100644 index 00000000..2e9e28f5 --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/events_pb.ts @@ -0,0 +1,88 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/events.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message injective.erc20.v1beta1.EventCreateTokenPair + */ +export class EventCreateTokenPair extends Message { + /** + * @generated from field: string bank_denom = 1; + */ + bankDenom = ""; + + /** + * @generated from field: string erc20_address = 2; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.EventCreateTokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateTokenPair { + return new EventCreateTokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateTokenPair { + return new EventCreateTokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreateTokenPair { + return new EventCreateTokenPair().fromJsonString(jsonString, options); + } + + static equals(a: EventCreateTokenPair | PlainMessage | undefined, b: EventCreateTokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreateTokenPair, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.EventDeleteTokenPair + */ +export class EventDeleteTokenPair extends Message { + /** + * @generated from field: string bank_denom = 1; + */ + bankDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.EventDeleteTokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeleteTokenPair { + return new EventDeleteTokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeleteTokenPair { + return new EventDeleteTokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeleteTokenPair { + return new EventDeleteTokenPair().fromJsonString(jsonString, options); + } + + static equals(a: EventDeleteTokenPair | PlainMessage | undefined, b: EventDeleteTokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeleteTokenPair, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/genesis_pb.ts b/src/protobufs/injective/erc20/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..0a9fc423 --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/genesis.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { TokenPair } from "./erc20_pb.js"; + +/** + * GenesisState defines the erc20 module's genesis state. + * + * @generated from message injective.erc20.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: injective.erc20.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated injective.erc20.v1beta1.TokenPair token_pairs = 2; + */ + tokenPairs: TokenPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "token_pairs", kind: "message", T: TokenPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/params_pb.ts b/src/protobufs/injective/erc20/v1beta1/params_pb.ts new file mode 100644 index 00000000..2db3e42f --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/params_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/params.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the erc20 module. + * + * @generated from message injective.erc20.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin denom_creation_fee = 1; + */ + denomCreationFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/query_cosmes.ts b/src/protobufs/injective/erc20/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..3c645c5f --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/query_cosmes.ts @@ -0,0 +1,61 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/query.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllTokenPairsRequest, QueryAllTokenPairsResponse, QueryParamsRequest, QueryParamsResponse, QueryTokenPairByDenomRequest, QueryTokenPairByDenomResponse, QueryTokenPairByERC20AddressRequest, QueryTokenPairByERC20AddressResponse } from "./query_pb.js"; + +const TYPE_NAME = "injective.erc20.v1beta1.Query"; + +/** + * Params defines a gRPC query method that returns the erc20 module's + * parameters. + * + * @generated from rpc injective.erc20.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * AllTokenPairs defines a gRPC query method that returns the erc20 + * module's created token pairs. + * + * @generated from rpc injective.erc20.v1beta1.Query.AllTokenPairs + */ +export const QueryAllTokenPairsService = { + typeName: TYPE_NAME, + method: "AllTokenPairs", + Request: QueryAllTokenPairsRequest, + Response: QueryAllTokenPairsResponse, +} as const; + +/** + * TokenPairByDenom defines a gRPC query method that returns the erc20 + * module's token pair associated with the provided bank denom. + * + * @generated from rpc injective.erc20.v1beta1.Query.TokenPairByDenom + */ +export const QueryTokenPairByDenomService = { + typeName: TYPE_NAME, + method: "TokenPairByDenom", + Request: QueryTokenPairByDenomRequest, + Response: QueryTokenPairByDenomResponse, +} as const; + +/** + * TokenPairByERC20Address defines a gRPC query method that returns the erc20 + * module's token pair associated with the provided erc20 contract address. + * + * @generated from rpc injective.erc20.v1beta1.Query.TokenPairByERC20Address + */ +export const QueryTokenPairByERC20AddressService = { + typeName: TYPE_NAME, + method: "TokenPairByERC20Address", + Request: QueryTokenPairByERC20AddressRequest, + Response: QueryTokenPairByERC20AddressResponse, +} as const; + diff --git a/src/protobufs/injective/erc20/v1beta1/query_pb.ts b/src/protobufs/injective/erc20/v1beta1/query_pb.ts new file mode 100644 index 00000000..ce9d2888 --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/query_pb.ts @@ -0,0 +1,329 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/query.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { TokenPair } from "./erc20_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message injective.erc20.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message injective.erc20.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: injective.erc20.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryAllTokenPairsRequest is the request type for the Query/AllTokenPairs RPC + * method. + * + * @generated from message injective.erc20.v1beta1.QueryAllTokenPairsRequest + */ +export class QueryAllTokenPairsRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryAllTokenPairsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTokenPairsRequest { + return new QueryAllTokenPairsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTokenPairsRequest { + return new QueryAllTokenPairsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTokenPairsRequest { + return new QueryAllTokenPairsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTokenPairsRequest | PlainMessage | undefined, b: QueryAllTokenPairsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTokenPairsRequest, a, b); + } +} + +/** + * QueryAllTokenPairsResponse is the response type for the Query/AllTokenPairs + * RPC method. + * + * @generated from message injective.erc20.v1beta1.QueryAllTokenPairsResponse + */ +export class QueryAllTokenPairsResponse extends Message { + /** + * @generated from field: repeated injective.erc20.v1beta1.TokenPair token_pairs = 1; + */ + tokenPairs: TokenPair[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryAllTokenPairsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pairs", kind: "message", T: TokenPair, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTokenPairsResponse { + return new QueryAllTokenPairsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTokenPairsResponse { + return new QueryAllTokenPairsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTokenPairsResponse { + return new QueryAllTokenPairsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTokenPairsResponse | PlainMessage | undefined, b: QueryAllTokenPairsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTokenPairsResponse, a, b); + } +} + +/** + * QueryTokenPairByDenomRequest is the request type for the + * Query/TokenPairByDenom RPC method. + * + * @generated from message injective.erc20.v1beta1.QueryTokenPairByDenomRequest + */ +export class QueryTokenPairByDenomRequest extends Message { + /** + * @generated from field: string bank_denom = 1; + */ + bankDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryTokenPairByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairByDenomRequest { + return new QueryTokenPairByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairByDenomRequest { + return new QueryTokenPairByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairByDenomRequest { + return new QueryTokenPairByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairByDenomRequest | PlainMessage | undefined, b: QueryTokenPairByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairByDenomRequest, a, b); + } +} + +/** + * QueryTokenPairByDenomResponse is the response type for the + * Query/TokenPairByDenom RPC method. + * + * @generated from message injective.erc20.v1beta1.QueryTokenPairByDenomResponse + */ +export class QueryTokenPairByDenomResponse extends Message { + /** + * @generated from field: injective.erc20.v1beta1.TokenPair token_pair = 1; + */ + tokenPair?: TokenPair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryTokenPairByDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pair", kind: "message", T: TokenPair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairByDenomResponse { + return new QueryTokenPairByDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairByDenomResponse { + return new QueryTokenPairByDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairByDenomResponse { + return new QueryTokenPairByDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairByDenomResponse | PlainMessage | undefined, b: QueryTokenPairByDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairByDenomResponse, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.QueryTokenPairByERC20AddressRequest + */ +export class QueryTokenPairByERC20AddressRequest extends Message { + /** + * @generated from field: string erc20_address = 1; + */ + erc20Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryTokenPairByERC20AddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairByERC20AddressRequest { + return new QueryTokenPairByERC20AddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairByERC20AddressRequest { + return new QueryTokenPairByERC20AddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairByERC20AddressRequest { + return new QueryTokenPairByERC20AddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairByERC20AddressRequest | PlainMessage | undefined, b: QueryTokenPairByERC20AddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairByERC20AddressRequest, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.QueryTokenPairByERC20AddressResponse + */ +export class QueryTokenPairByERC20AddressResponse extends Message { + /** + * @generated from field: injective.erc20.v1beta1.TokenPair token_pair = 1; + */ + tokenPair?: TokenPair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.QueryTokenPairByERC20AddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pair", kind: "message", T: TokenPair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairByERC20AddressResponse { + return new QueryTokenPairByERC20AddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairByERC20AddressResponse { + return new QueryTokenPairByERC20AddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairByERC20AddressResponse { + return new QueryTokenPairByERC20AddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTokenPairByERC20AddressResponse | PlainMessage | undefined, b: QueryTokenPairByERC20AddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTokenPairByERC20AddressResponse, a, b); + } +} + diff --git a/src/protobufs/injective/erc20/v1beta1/tx_cosmes.ts b/src/protobufs/injective/erc20/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..fdd6aa9c --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/tx_cosmes.ts @@ -0,0 +1,39 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/tx.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCreateTokenPair, MsgCreateTokenPairResponse, MsgDeleteTokenPair, MsgDeleteTokenPairResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "injective.erc20.v1beta1.Msg"; + +/** + * @generated from rpc injective.erc20.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc injective.erc20.v1beta1.Msg.CreateTokenPair + */ +export const MsgCreateTokenPairService = { + typeName: TYPE_NAME, + method: "CreateTokenPair", + Request: MsgCreateTokenPair, + Response: MsgCreateTokenPairResponse, +} as const; + +/** + * @generated from rpc injective.erc20.v1beta1.Msg.DeleteTokenPair + */ +export const MsgDeleteTokenPairService = { + typeName: TYPE_NAME, + method: "DeleteTokenPair", + Request: MsgDeleteTokenPair, + Response: MsgDeleteTokenPairResponse, +} as const; + diff --git a/src/protobufs/injective/erc20/v1beta1/tx_pb.ts b/src/protobufs/injective/erc20/v1beta1/tx_pb.ts new file mode 100644 index 00000000..e44e8d99 --- /dev/null +++ b/src/protobufs/injective/erc20/v1beta1/tx_pb.ts @@ -0,0 +1,246 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/erc20/v1beta1/tx.proto (package injective.erc20.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { TokenPair } from "./erc20_pb.js"; + +/** + * @generated from message injective.erc20.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the erc20 parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: injective.erc20.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.MsgCreateTokenPair + */ +export class MsgCreateTokenPair extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.erc20.v1beta1.TokenPair token_pair = 2; + */ + tokenPair?: TokenPair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgCreateTokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_pair", kind: "message", T: TokenPair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTokenPair { + return new MsgCreateTokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTokenPair { + return new MsgCreateTokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTokenPair { + return new MsgCreateTokenPair().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateTokenPair | PlainMessage | undefined, b: MsgCreateTokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateTokenPair, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.MsgCreateTokenPairResponse + */ +export class MsgCreateTokenPairResponse extends Message { + /** + * @generated from field: injective.erc20.v1beta1.TokenPair token_pair = 1; + */ + tokenPair?: TokenPair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgCreateTokenPairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_pair", kind: "message", T: TokenPair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTokenPairResponse { + return new MsgCreateTokenPairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTokenPairResponse { + return new MsgCreateTokenPairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTokenPairResponse { + return new MsgCreateTokenPairResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateTokenPairResponse | PlainMessage | undefined, b: MsgCreateTokenPairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateTokenPairResponse, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.MsgDeleteTokenPair + */ +export class MsgDeleteTokenPair extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * bank denom of the pair to be deleted + * + * @generated from field: string bank_denom = 2; + */ + bankDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgDeleteTokenPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bank_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteTokenPair { + return new MsgDeleteTokenPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteTokenPair { + return new MsgDeleteTokenPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteTokenPair { + return new MsgDeleteTokenPair().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteTokenPair | PlainMessage | undefined, b: MsgDeleteTokenPair | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteTokenPair, a, b); + } +} + +/** + * @generated from message injective.erc20.v1beta1.MsgDeleteTokenPairResponse + */ +export class MsgDeleteTokenPairResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.erc20.v1beta1.MsgDeleteTokenPairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteTokenPairResponse { + return new MsgDeleteTokenPairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteTokenPairResponse { + return new MsgDeleteTokenPairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteTokenPairResponse { + return new MsgDeleteTokenPairResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteTokenPairResponse | PlainMessage | undefined, b: MsgDeleteTokenPairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteTokenPairResponse, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/access_tuple_pb.ts b/src/protobufs/injective/evm/v1/access_tuple_pb.ts new file mode 100644 index 00000000..c76dc833 --- /dev/null +++ b/src/protobufs/injective/evm/v1/access_tuple_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/access_tuple.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * AccessTuple is the element type of an access list. + * + * @generated from message injective.evm.v1.AccessTuple + */ +export class AccessTuple extends Message { + /** + * address is a hex formatted ethereum address + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * storage_keys are hex formatted hashes of the storage keys + * + * @generated from field: repeated string storage_keys = 2; + */ + storageKeys: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.AccessTuple"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "storage_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessTuple { + return new AccessTuple().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessTuple { + return new AccessTuple().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessTuple { + return new AccessTuple().fromJsonString(jsonString, options); + } + + static equals(a: AccessTuple | PlainMessage | undefined, b: AccessTuple | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessTuple, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/chain_config_pb.ts b/src/protobufs/injective/evm/v1/chain_config_pb.ts new file mode 100644 index 00000000..4a096e05 --- /dev/null +++ b/src/protobufs/injective/evm/v1/chain_config_pb.ts @@ -0,0 +1,333 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/chain_config.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * ChainConfig defines the Ethereum ChainConfig parameters using *sdkmath.Int + * values instead of *big.Int. + * + * @generated from message injective.evm.v1.ChainConfig + */ +export class ChainConfig extends Message { + /** + * homestead_block switch (nil no fork, 0 = already homestead) + * + * @generated from field: string homestead_block = 1; + */ + homesteadBlock = ""; + + /** + * dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) + * + * @generated from field: string dao_fork_block = 2; + */ + daoForkBlock = ""; + + /** + * dao_fork_support defines whether the nodes supports or opposes the DAO + * hard-fork + * + * @generated from field: bool dao_fork_support = 3; + */ + daoForkSupport = false; + + /** + * eip150_block: EIP150 implements the Gas price changes + * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork) + * + * @generated from field: string eip150_block = 4; + */ + eip150Block = ""; + + /** + * eip150_hash: EIP150 HF hash (needed for header only clients as only gas + * pricing changed) + * + * @generated from field: string eip150_hash = 5; + */ + eip150Hash = ""; + + /** + * eip155_block: EIP155Block HF block + * + * @generated from field: string eip155_block = 6; + */ + eip155Block = ""; + + /** + * eip158_block: EIP158 HF block + * + * @generated from field: string eip158_block = 7; + */ + eip158Block = ""; + + /** + * byzantium_block: Byzantium switch block (nil no fork, 0 = already on + * byzantium) + * + * @generated from field: string byzantium_block = 8; + */ + byzantiumBlock = ""; + + /** + * constantinople_block: Constantinople switch block (nil no fork, 0 = already + * activated) + * + * @generated from field: string constantinople_block = 9; + */ + constantinopleBlock = ""; + + /** + * petersburg_block: Petersburg switch block (nil same as Constantinople) + * + * @generated from field: string petersburg_block = 10; + */ + petersburgBlock = ""; + + /** + * istanbul_block: Istanbul switch block (nil no fork, 0 = already on + * istanbul) + * + * @generated from field: string istanbul_block = 11; + */ + istanbulBlock = ""; + + /** + * muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = + * already activated) + * + * @generated from field: string muir_glacier_block = 12; + */ + muirGlacierBlock = ""; + + /** + * berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) + * + * @generated from field: string berlin_block = 13; + */ + berlinBlock = ""; + + /** + * london_block: London switch block (nil = no fork, 0 = already on london) + * + * @generated from field: string london_block = 17; + */ + londonBlock = ""; + + /** + * arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = + * already activated) + * + * @generated from field: string arrow_glacier_block = 18; + */ + arrowGlacierBlock = ""; + + /** + * gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = + * already activated) + * + * @generated from field: string gray_glacier_block = 20; + */ + grayGlacierBlock = ""; + + /** + * merge_netsplit_block: Virtual fork after The Merge to use as a network + * splitter + * + * @generated from field: string merge_netsplit_block = 21; + */ + mergeNetsplitBlock = ""; + + /** + * shanghai switch time (nil = no fork, 0 = already on shanghai) + * + * @generated from field: string shanghai_time = 22; + */ + shanghaiTime = ""; + + /** + * cancun switch time (nil = no fork, 0 = already on cancun) + * + * @generated from field: string cancun_time = 23; + */ + cancunTime = ""; + + /** + * prague switch time (nil = no fork, 0 = already on prague) + * + * @generated from field: string prague_time = 24; + */ + pragueTime = ""; + + /** + * eip155_chain_id: identifies the chain and is used for replay protection + * + * @generated from field: string eip155_chain_id = 25; + */ + eip155ChainId = ""; + + /** + * eip7840: per-fork schedule of max and target blob counts in client + * configuration files + * + * @generated from field: injective.evm.v1.BlobScheduleConfig blob_schedule_config = 26; + */ + blobScheduleConfig?: BlobScheduleConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.ChainConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "homestead_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dao_fork_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "dao_fork_support", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "eip150_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "eip150_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "eip155_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "eip158_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "byzantium_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "constantinople_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "petersburg_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "istanbul_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "muir_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "berlin_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "london_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "arrow_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "gray_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "merge_netsplit_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "shanghai_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 23, name: "cancun_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 24, name: "prague_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 25, name: "eip155_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 26, name: "blob_schedule_config", kind: "message", T: BlobScheduleConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChainConfig { + return new ChainConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChainConfig { + return new ChainConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChainConfig { + return new ChainConfig().fromJsonString(jsonString, options); + } + + static equals(a: ChainConfig | PlainMessage | undefined, b: ChainConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(ChainConfig, a, b); + } +} + +/** + * @generated from message injective.evm.v1.BlobScheduleConfig + */ +export class BlobScheduleConfig extends Message { + /** + * @generated from field: injective.evm.v1.BlobConfig cancun = 1; + */ + cancun?: BlobConfig; + + /** + * @generated from field: injective.evm.v1.BlobConfig prague = 2; + */ + prague?: BlobConfig; + + /** + * @generated from field: injective.evm.v1.BlobConfig osaka = 3; + */ + osaka?: BlobConfig; + + /** + * @generated from field: injective.evm.v1.BlobConfig verkle = 4; + */ + verkle?: BlobConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.BlobScheduleConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cancun", kind: "message", T: BlobConfig }, + { no: 2, name: "prague", kind: "message", T: BlobConfig }, + { no: 3, name: "osaka", kind: "message", T: BlobConfig }, + { no: 4, name: "verkle", kind: "message", T: BlobConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlobScheduleConfig { + return new BlobScheduleConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlobScheduleConfig { + return new BlobScheduleConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlobScheduleConfig { + return new BlobScheduleConfig().fromJsonString(jsonString, options); + } + + static equals(a: BlobScheduleConfig | PlainMessage | undefined, b: BlobScheduleConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(BlobScheduleConfig, a, b); + } +} + +/** + * @generated from message injective.evm.v1.BlobConfig + */ +export class BlobConfig extends Message { + /** + * @generated from field: uint64 target = 1; + */ + target = protoInt64.zero; + + /** + * @generated from field: uint64 max = 2; + */ + max = protoInt64.zero; + + /** + * @generated from field: uint64 base_fee_update_fraction = 3; + */ + baseFeeUpdateFraction = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.BlobConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "target", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "base_fee_update_fraction", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlobConfig { + return new BlobConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlobConfig { + return new BlobConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlobConfig { + return new BlobConfig().fromJsonString(jsonString, options); + } + + static equals(a: BlobConfig | PlainMessage | undefined, b: BlobConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(BlobConfig, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/events_pb.ts b/src/protobufs/injective/evm/v1/events_pb.ts new file mode 100644 index 00000000..3ec107ee --- /dev/null +++ b/src/protobufs/injective/evm/v1/events_pb.ts @@ -0,0 +1,236 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/events.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * EventEthereumTx defines the event for an Ethereum transaction + * + * @generated from message injective.evm.v1.EventEthereumTx + */ +export class EventEthereumTx extends Message { + /** + * amount + * + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * eth_hash is the Ethereum hash of the transaction + * + * @generated from field: string eth_hash = 2; + */ + ethHash = ""; + + /** + * index of the transaction in the block + * + * @generated from field: string index = 3; + */ + index = ""; + + /** + * gas_used is the amount of gas used by the transaction + * + * @generated from field: string gas_used = 4; + */ + gasUsed = ""; + + /** + * hash is the Tendermint hash of the transaction + * + * @generated from field: string hash = 5; + */ + hash = ""; + + /** + * recipient of the transaction + * + * @generated from field: string recipient = 6; + */ + recipient = ""; + + /** + * eth_tx_failed contains a VM error should it occur + * + * @generated from field: string eth_tx_failed = 7; + */ + ethTxFailed = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EventEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "eth_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "eth_tx_failed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventEthereumTx { + return new EventEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: EventEthereumTx | PlainMessage | undefined, b: EventEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(EventEthereumTx, a, b); + } +} + +/** + * EventTxLog defines the event for an Ethereum transaction log + * + * @generated from message injective.evm.v1.EventTxLog + */ +export class EventTxLog extends Message { + /** + * tx_logs is an array of transaction logs + * + * @generated from field: repeated string tx_logs = 1; + */ + txLogs: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EventTxLog"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_logs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTxLog { + return new EventTxLog().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTxLog { + return new EventTxLog().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTxLog { + return new EventTxLog().fromJsonString(jsonString, options); + } + + static equals(a: EventTxLog | PlainMessage | undefined, b: EventTxLog | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTxLog, a, b); + } +} + +/** + * EventMessage + * + * @generated from message injective.evm.v1.EventMessage + */ +export class EventMessage extends Message { + /** + * module which emits the event + * + * @generated from field: string module = 1; + */ + module = ""; + + /** + * sender of the message + * + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * tx_type is the type of the message + * + * @generated from field: string tx_type = 3; + */ + txType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EventMessage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "tx_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventMessage { + return new EventMessage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventMessage { + return new EventMessage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventMessage { + return new EventMessage().fromJsonString(jsonString, options); + } + + static equals(a: EventMessage | PlainMessage | undefined, b: EventMessage | PlainMessage | undefined): boolean { + return proto3.util.equals(EventMessage, a, b); + } +} + +/** + * EventBlockBloom defines an Ethereum block bloom filter event + * + * @generated from message injective.evm.v1.EventBlockBloom + */ +export class EventBlockBloom extends Message { + /** + * bloom is the bloom filter of the block + * + * @generated from field: string bloom = 1; + */ + bloom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EventBlockBloom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBlockBloom { + return new EventBlockBloom().fromJsonString(jsonString, options); + } + + static equals(a: EventBlockBloom | PlainMessage | undefined, b: EventBlockBloom | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBlockBloom, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/genesis_pb.ts b/src/protobufs/injective/evm/v1/genesis_pb.ts new file mode 100644 index 00000000..2b45df11 --- /dev/null +++ b/src/protobufs/injective/evm/v1/genesis_pb.ts @@ -0,0 +1,118 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/genesis.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { State } from "./state_pb.js"; + +/** + * GenesisState defines the evm module's genesis state. + * + * @generated from message injective.evm.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * accounts is an array containing the ethereum genesis accounts. + * + * @generated from field: repeated injective.evm.v1.GenesisAccount accounts = 1; + */ + accounts: GenesisAccount[] = []; + + /** + * params defines all the parameters of the module. + * + * @generated from field: injective.evm.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: GenesisAccount, repeated: true }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisAccount defines an account to be initialized in the genesis state. + * Its main difference between with Geth's GenesisAccount is that it uses a + * custom storage type and that it doesn't contain the private key field. + * + * @generated from message injective.evm.v1.GenesisAccount + */ +export class GenesisAccount extends Message { + /** + * address defines an ethereum hex formated address of an account + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * code defines the hex bytes of the account code. + * + * @generated from field: string code = 2; + */ + code = ""; + + /** + * storage defines the set of state key values for the account. + * + * @generated from field: repeated injective.evm.v1.State storage = 3; + */ + storage: State[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.GenesisAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "storage", kind: "message", T: State, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccount { + return new GenesisAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccount { + return new GenesisAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccount { + return new GenesisAccount().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccount | PlainMessage | undefined, b: GenesisAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccount, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/log_pb.ts b/src/protobufs/injective/evm/v1/log_pb.ts new file mode 100644 index 00000000..ffcd28fe --- /dev/null +++ b/src/protobufs/injective/evm/v1/log_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/log.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Log represents an protobuf compatible Ethereum Log that defines a contract + * log event. These events are generated by the LOG opcode and stored/indexed by + * the node. + * + * NOTE: address, topics and data are consensus fields. The rest of the fields + * are derived, i.e. filled in by the nodes, but not secured by consensus. + * + * @generated from message injective.evm.v1.Log + */ +export class Log extends Message { + /** + * address of the contract that generated the event + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * topics is a list of topics provided by the contract. + * + * @generated from field: repeated string topics = 2; + */ + topics: string[] = []; + + /** + * data which is supplied by the contract, usually ABI-encoded + * + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + /** + * block_number of the block in which the transaction was included + * + * @generated from field: uint64 block_number = 4; + */ + blockNumber = protoInt64.zero; + + /** + * tx_hash is the transaction hash + * + * @generated from field: string tx_hash = 5; + */ + txHash = ""; + + /** + * tx_index of the transaction in the block + * + * @generated from field: uint64 tx_index = 6; + */ + txIndex = protoInt64.zero; + + /** + * block_hash of the block in which the transaction was included + * + * @generated from field: string block_hash = 7; + */ + blockHash = ""; + + /** + * index of the log in the block + * + * @generated from field: uint64 index = 8; + */ + index = protoInt64.zero; + + /** + * removed is true if this log was reverted due to a chain + * reorganisation. You must pay attention to this field if you receive logs + * through a filter query. + * + * @generated from field: bool removed = 9; + */ + removed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.Log"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Log { + return new Log().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Log { + return new Log().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Log { + return new Log().fromJsonString(jsonString, options); + } + + static equals(a: Log | PlainMessage | undefined, b: Log | PlainMessage | undefined): boolean { + return proto3.util.equals(Log, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/params_pb.ts b/src/protobufs/injective/evm/v1/params_pb.ts new file mode 100644 index 00000000..0b7e7b69 --- /dev/null +++ b/src/protobufs/injective/evm/v1/params_pb.ts @@ -0,0 +1,110 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/params.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ChainConfig } from "./chain_config_pb.js"; + +/** + * Params defines the EVM module parameters + * + * @generated from message injective.evm.v1.Params + */ +export class Params extends Message { + /** + * evm_denom represents the token denomination used to run the EVM state + * transitions. + * + * @generated from field: string evm_denom = 1; + */ + evmDenom = ""; + + /** + * enable_create toggles state transitions that use the vm.Create function + * + * @generated from field: bool enable_create = 2; + */ + enableCreate = false; + + /** + * enable_call toggles state transitions that use the vm.Call function + * + * @generated from field: bool enable_call = 3; + */ + enableCall = false; + + /** + * extra_eips defines the additional EIPs for the vm.Config + * + * @generated from field: repeated int64 extra_eips = 4; + */ + extraEips: bigint[] = []; + + /** + * chain_config defines the EVM chain configuration parameters + * + * @generated from field: injective.evm.v1.ChainConfig chain_config = 5; + */ + chainConfig?: ChainConfig; + + /** + * allow_unprotected_txs defines if replay-protected (i.e non EIP155 + * signed) transactions can be executed on the state machine. + * + * @generated from field: bool allow_unprotected_txs = 6; + */ + allowUnprotectedTxs = false; + + /** + * list of ETH addresses that are allowed to deploy contracts. Only relevant + * if permissioned is true. + * + * @generated from field: repeated string authorized_deployers = 7; + */ + authorizedDeployers: string[] = []; + + /** + * make contract deployment permissioned, such that only accounts listed in + * authorized_deployers are allowed to deploy contracts. + * + * @generated from field: bool permissioned = 8; + */ + permissioned = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "evm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enable_create", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "enable_call", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "extra_eips", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 5, name: "chain_config", kind: "message", T: ChainConfig }, + { no: 6, name: "allow_unprotected_txs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "authorized_deployers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/query_cosmes.ts b/src/protobufs/injective/evm/v1/query_cosmes.ts new file mode 100644 index 00000000..ca7feb61 --- /dev/null +++ b/src/protobufs/injective/evm/v1/query_cosmes.ts @@ -0,0 +1,171 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/evm/v1/query.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { EstimateGasResponse, EthCallRequest, QueryAccountRequest, QueryAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceCallRequest, QueryTraceCallResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js"; +import { MsgEthereumTxResponse } from "./tx_pb.js"; + +const TYPE_NAME = "injective.evm.v1.Query"; + +/** + * Account queries an Ethereum account. + * + * @generated from rpc injective.evm.v1.Query.Account + */ +export const QueryAccountService = { + typeName: TYPE_NAME, + method: "Account", + Request: QueryAccountRequest, + Response: QueryAccountResponse, +} as const; + +/** + * CosmosAccount queries an Ethereum account's Cosmos Address. + * + * @generated from rpc injective.evm.v1.Query.CosmosAccount + */ +export const QueryCosmosAccountService = { + typeName: TYPE_NAME, + method: "CosmosAccount", + Request: QueryCosmosAccountRequest, + Response: QueryCosmosAccountResponse, +} as const; + +/** + * ValidatorAccount queries an Ethereum account's from a validator consensus + * Address. + * + * @generated from rpc injective.evm.v1.Query.ValidatorAccount + */ +export const QueryValidatorAccountService = { + typeName: TYPE_NAME, + method: "ValidatorAccount", + Request: QueryValidatorAccountRequest, + Response: QueryValidatorAccountResponse, +} as const; + +/** + * Balance queries the balance of a the EVM denomination for a single + * EthAccount. + * + * @generated from rpc injective.evm.v1.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + +/** + * Storage queries the balance of all coins for a single account. + * + * @generated from rpc injective.evm.v1.Query.Storage + */ +export const QueryStorageService = { + typeName: TYPE_NAME, + method: "Storage", + Request: QueryStorageRequest, + Response: QueryStorageResponse, +} as const; + +/** + * Code queries the code of a single account. + * + * @generated from rpc injective.evm.v1.Query.Code + */ +export const QueryCodeService = { + typeName: TYPE_NAME, + method: "Code", + Request: QueryCodeRequest, + Response: QueryCodeResponse, +} as const; + +/** + * Params queries the parameters of x/evm module. + * + * @generated from rpc injective.evm.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * EthCall implements the `eth_call` rpc api + * + * @generated from rpc injective.evm.v1.Query.EthCall + */ +export const QueryEthCallService = { + typeName: TYPE_NAME, + method: "EthCall", + Request: EthCallRequest, + Response: MsgEthereumTxResponse, +} as const; + +/** + * EstimateGas implements the `eth_estimateGas` rpc api + * + * @generated from rpc injective.evm.v1.Query.EstimateGas + */ +export const QueryEstimateGasService = { + typeName: TYPE_NAME, + method: "EstimateGas", + Request: EthCallRequest, + Response: EstimateGasResponse, +} as const; + +/** + * TraceTx implements the `debug_traceTransaction` rpc api + * + * @generated from rpc injective.evm.v1.Query.TraceTx + */ +export const QueryTraceTxService = { + typeName: TYPE_NAME, + method: "TraceTx", + Request: QueryTraceTxRequest, + Response: QueryTraceTxResponse, +} as const; + +/** + * TraceBlock implements the `debug_traceBlockByNumber` and + * `debug_traceBlockByHash` rpc api + * + * @generated from rpc injective.evm.v1.Query.TraceBlock + */ +export const QueryTraceBlockService = { + typeName: TYPE_NAME, + method: "TraceBlock", + Request: QueryTraceBlockRequest, + Response: QueryTraceBlockResponse, +} as const; + +/** + * TraceCall implements the `debug_traceCall` rpc api + * + * @generated from rpc injective.evm.v1.Query.TraceCall + */ +export const QueryTraceCallService = { + typeName: TYPE_NAME, + method: "TraceCall", + Request: QueryTraceCallRequest, + Response: QueryTraceCallResponse, +} as const; + +/** + * BaseFee queries the base fee of the parent block of the current block, + * it's similar to feemarket module's method, but also checks london hardfork + * status. + * + * @generated from rpc injective.evm.v1.Query.BaseFee + */ +export const QueryBaseFeeService = { + typeName: TYPE_NAME, + method: "BaseFee", + Request: QueryBaseFeeRequest, + Response: QueryBaseFeeResponse, +} as const; + diff --git a/src/protobufs/injective/evm/v1/query_pb.ts b/src/protobufs/injective/evm/v1/query_pb.ts new file mode 100644 index 00000000..2f56ce58 --- /dev/null +++ b/src/protobufs/injective/evm/v1/query_pb.ts @@ -0,0 +1,1352 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/query.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Log } from "./log_pb.js"; +import { Params } from "./params_pb.js"; +import { MsgEthereumTx } from "./tx_pb.js"; +import { TraceConfig } from "./trace_config_pb.js"; + +/** + * QueryAccountRequest is the request type for the Query/Account RPC method. + * + * @generated from message injective.evm.v1.QueryAccountRequest + */ +export class QueryAccountRequest extends Message { + /** + * address is the ethereum hex address to query the account for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountRequest, a, b); + } +} + +/** + * QueryAccountResponse is the response type for the Query/Account RPC method. + * + * @generated from message injective.evm.v1.QueryAccountResponse + */ +export class QueryAccountResponse extends Message { + /** + * balance is the balance of the EVM denomination. + * + * @generated from field: string balance = 1; + */ + balance = ""; + + /** + * code_hash is the hex-formatted code bytes from the EOA. + * + * @generated from field: string code_hash = 2; + */ + codeHash = ""; + + /** + * nonce is the account's sequence number. + * + * @generated from field: uint64 nonce = 3; + */ + nonce = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountResponse | PlainMessage | undefined, b: QueryAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountResponse, a, b); + } +} + +/** + * QueryCosmosAccountRequest is the request type for the Query/CosmosAccount RPC + * method. + * + * @generated from message injective.evm.v1.QueryCosmosAccountRequest + */ +export class QueryCosmosAccountRequest extends Message { + /** + * address is the ethereum hex address to query the account for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryCosmosAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCosmosAccountRequest { + return new QueryCosmosAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCosmosAccountRequest { + return new QueryCosmosAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCosmosAccountRequest { + return new QueryCosmosAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCosmosAccountRequest | PlainMessage | undefined, b: QueryCosmosAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCosmosAccountRequest, a, b); + } +} + +/** + * QueryCosmosAccountResponse is the response type for the Query/CosmosAccount + * RPC method. + * + * @generated from message injective.evm.v1.QueryCosmosAccountResponse + */ +export class QueryCosmosAccountResponse extends Message { + /** + * cosmos_address is the cosmos address of the account. + * + * @generated from field: string cosmos_address = 1; + */ + cosmosAddress = ""; + + /** + * sequence is the account's sequence number. + * + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * account_number is the account number + * + * @generated from field: uint64 account_number = 3; + */ + accountNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryCosmosAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cosmos_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCosmosAccountResponse { + return new QueryCosmosAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCosmosAccountResponse { + return new QueryCosmosAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCosmosAccountResponse { + return new QueryCosmosAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCosmosAccountResponse | PlainMessage | undefined, b: QueryCosmosAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCosmosAccountResponse, a, b); + } +} + +/** + * QueryValidatorAccountRequest is the request type for the + * Query/ValidatorAccount RPC method. + * + * @generated from message injective.evm.v1.QueryValidatorAccountRequest + */ +export class QueryValidatorAccountRequest extends Message { + /** + * cons_address is the validator cons address to query the account for. + * + * @generated from field: string cons_address = 1; + */ + consAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryValidatorAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cons_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountRequest { + return new QueryValidatorAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorAccountRequest | PlainMessage | undefined, b: QueryValidatorAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorAccountRequest, a, b); + } +} + +/** + * QueryValidatorAccountResponse is the response type for the + * Query/ValidatorAccount RPC method. + * + * @generated from message injective.evm.v1.QueryValidatorAccountResponse + */ +export class QueryValidatorAccountResponse extends Message { + /** + * account_address is the cosmos address of the account in bech32 format. + * + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * sequence is the account's sequence number. + * + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * account_number is the account number + * + * @generated from field: uint64 account_number = 3; + */ + accountNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryValidatorAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountResponse { + return new QueryValidatorAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorAccountResponse | PlainMessage | undefined, b: QueryValidatorAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorAccountResponse, a, b); + } +} + +/** + * QueryBalanceRequest is the request type for the Query/Balance RPC method. + * + * @generated from message injective.evm.v1.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + /** + * address is the ethereum hex address to query the balance for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * QueryBalanceResponse is the response type for the Query/Balance RPC method. + * + * @generated from message injective.evm.v1.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * balance is the balance of the EVM denomination. + * + * @generated from field: string balance = 1; + */ + balance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + +/** + * QueryStorageRequest is the request type for the Query/Storage RPC method. + * + * @generated from message injective.evm.v1.QueryStorageRequest + */ +export class QueryStorageRequest extends Message { + /** + * address is the ethereum hex address to query the storage state for. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * key defines the key of the storage state + * + * @generated from field: string key = 2; + */ + key = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryStorageRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorageRequest { + return new QueryStorageRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorageRequest | PlainMessage | undefined, b: QueryStorageRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorageRequest, a, b); + } +} + +/** + * QueryStorageResponse is the response type for the Query/Storage RPC + * method. + * + * @generated from message injective.evm.v1.QueryStorageResponse + */ +export class QueryStorageResponse extends Message { + /** + * value defines the storage state value hash associated with the given key. + * + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryStorageResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorageResponse { + return new QueryStorageResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorageResponse | PlainMessage | undefined, b: QueryStorageResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorageResponse, a, b); + } +} + +/** + * QueryCodeRequest is the request type for the Query/Code RPC method. + * + * @generated from message injective.evm.v1.QueryCodeRequest + */ +export class QueryCodeRequest extends Message { + /** + * address is the ethereum hex address to query the code for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryCodeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { + return new QueryCodeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeRequest, a, b); + } +} + +/** + * QueryCodeResponse is the response type for the Query/Code RPC + * method. + * + * @generated from message injective.evm.v1.QueryCodeResponse + */ +export class QueryCodeResponse extends Message { + /** + * code represents the code bytes from an ethereum address. + * + * @generated from field: bytes code = 1; + */ + code = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryCodeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { + return new QueryCodeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCodeResponse, a, b); + } +} + +/** + * QueryTxLogsRequest is the request type for the Query/TxLogs RPC method. + * + * @generated from message injective.evm.v1.QueryTxLogsRequest + */ +export class QueryTxLogsRequest extends Message { + /** + * hash is the ethereum transaction hex hash to query the logs for. + * + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTxLogsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsRequest { + return new QueryTxLogsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTxLogsRequest | PlainMessage | undefined, b: QueryTxLogsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTxLogsRequest, a, b); + } +} + +/** + * QueryTxLogsResponse is the response type for the Query/TxLogs RPC method. + * + * @generated from message injective.evm.v1.QueryTxLogsResponse + */ +export class QueryTxLogsResponse extends Message { + /** + * logs represents the ethereum logs generated from the given transaction. + * + * @generated from field: repeated injective.evm.v1.Log logs = 1; + */ + logs: Log[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTxLogsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "logs", kind: "message", T: Log, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsResponse { + return new QueryTxLogsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTxLogsResponse | PlainMessage | undefined, b: QueryTxLogsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTxLogsResponse, a, b); + } +} + +/** + * QueryParamsRequest defines the request type for querying x/evm parameters. + * + * @generated from message injective.evm.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/evm parameters. + * + * @generated from message injective.evm.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params define the evm module parameters. + * + * @generated from field: injective.evm.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * EthCallRequest defines EthCall request + * + * @generated from message injective.evm.v1.EthCallRequest + */ +export class EthCallRequest extends Message { + /** + * args uses the same json format as the json rpc api. + * + * @generated from field: bytes args = 1; + */ + args = new Uint8Array(0); + + /** + * gas_cap defines the default gas cap to be used + * + * @generated from field: uint64 gas_cap = 2; + */ + gasCap = protoInt64.zero; + + /** + * proposer_address of the requested block in hex format + * + * @generated from field: bytes proposer_address = 3; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 4; + */ + chainId = protoInt64.zero; + + /** + * state overrides encoded as json + * + * @generated from field: bytes overrides = 5; + */ + overrides = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EthCallRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "gas_cap", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "overrides", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EthCallRequest { + return new EthCallRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EthCallRequest { + return new EthCallRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EthCallRequest { + return new EthCallRequest().fromJsonString(jsonString, options); + } + + static equals(a: EthCallRequest | PlainMessage | undefined, b: EthCallRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EthCallRequest, a, b); + } +} + +/** + * EstimateGasResponse defines EstimateGas response + * + * @generated from message injective.evm.v1.EstimateGasResponse + */ +export class EstimateGasResponse extends Message { + /** + * gas returns the estimated gas + * + * @generated from field: uint64 gas = 1; + */ + gas = protoInt64.zero; + + /** + * ret is the returned data from evm function (result or data supplied with + * revert opcode) + * + * @generated from field: bytes ret = 2; + */ + ret = new Uint8Array(0); + + /** + * vm_error is the error returned by vm execution + * + * @generated from field: string vm_error = 3; + */ + vmError = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.EstimateGasResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJsonString(jsonString, options); + } + + static equals(a: EstimateGasResponse | PlainMessage | undefined, b: EstimateGasResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateGasResponse, a, b); + } +} + +/** + * QueryTraceTxRequest defines TraceTx request + * + * @generated from message injective.evm.v1.QueryTraceTxRequest + */ +export class QueryTraceTxRequest extends Message { + /** + * msg is the MsgEthereumTx for the requested transaction + * + * @generated from field: injective.evm.v1.MsgEthereumTx msg = 1; + */ + msg?: MsgEthereumTx; + + /** + * trace_config holds extra parameters to trace functions. + * + * @generated from field: injective.evm.v1.TraceConfig trace_config = 3; + */ + traceConfig?: TraceConfig; + + /** + * predecessors is an array of transactions included in the same block + * need to be replayed first to get correct context for tracing. + * + * @generated from field: repeated injective.evm.v1.MsgEthereumTx predecessors = 4; + */ + predecessors: MsgEthereumTx[] = []; + + /** + * block_number of requested transaction + * + * @generated from field: int64 block_number = 5; + */ + blockNumber = protoInt64.zero; + + /** + * block_hash of requested transaction + * + * @generated from field: string block_hash = 6; + */ + blockHash = ""; + + /** + * block_time of requested transaction + * + * @generated from field: google.protobuf.Timestamp block_time = 7; + */ + blockTime?: Timestamp; + + /** + * proposer_address is the proposer of the requested block + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 9; + */ + chainId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceTxRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgEthereumTx }, + { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, + { no: 4, name: "predecessors", kind: "message", T: MsgEthereumTx, repeated: true }, + { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "block_time", kind: "message", T: Timestamp }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxRequest { + return new QueryTraceTxRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceTxRequest | PlainMessage | undefined, b: QueryTraceTxRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceTxRequest, a, b); + } +} + +/** + * QueryTraceTxResponse defines TraceTx response + * + * @generated from message injective.evm.v1.QueryTraceTxResponse + */ +export class QueryTraceTxResponse extends Message { + /** + * data is the response serialized in bytes + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxResponse { + return new QueryTraceTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceTxResponse | PlainMessage | undefined, b: QueryTraceTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceTxResponse, a, b); + } +} + +/** + * QueryTraceCallRequest defines TraceCall request + * + * @generated from message injective.evm.v1.QueryTraceCallRequest + */ +export class QueryTraceCallRequest extends Message { + /** + * args uses the same json format as the json rpc api. + * + * @generated from field: bytes args = 1; + */ + args = new Uint8Array(0); + + /** + * gas_cap defines the default gas cap to be used + * + * @generated from field: uint64 gas_cap = 2; + */ + gasCap = protoInt64.zero; + + /** + * proposer_address of the requested block in hex format + * + * @generated from field: bytes proposer_address = 3; + */ + proposerAddress = new Uint8Array(0); + + /** + * trace_config holds extra parameters to trace functions. + * + * @generated from field: injective.evm.v1.TraceConfig trace_config = 4; + */ + traceConfig?: TraceConfig; + + /** + * block_number of requested transaction + * + * @generated from field: int64 block_number = 5; + */ + blockNumber = protoInt64.zero; + + /** + * block_hash of requested transaction + * + * @generated from field: string block_hash = 6; + */ + blockHash = ""; + + /** + * block_time of requested transaction + * + * @generated from field: google.protobuf.Timestamp block_time = 7; + */ + blockTime?: Timestamp; + + /** + * chain_id is the the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 8; + */ + chainId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceCallRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "gas_cap", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "trace_config", kind: "message", T: TraceConfig }, + { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "block_time", kind: "message", T: Timestamp }, + { no: 8, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceCallRequest { + return new QueryTraceCallRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceCallRequest { + return new QueryTraceCallRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceCallRequest { + return new QueryTraceCallRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceCallRequest | PlainMessage | undefined, b: QueryTraceCallRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceCallRequest, a, b); + } +} + +/** + * QueryTraceCallResponse defines TraceCallResponse + * + * @generated from message injective.evm.v1.QueryTraceCallResponse + */ +export class QueryTraceCallResponse extends Message { + /** + * data is the response serialized in bytes + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceCallResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceCallResponse { + return new QueryTraceCallResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceCallResponse { + return new QueryTraceCallResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceCallResponse { + return new QueryTraceCallResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceCallResponse | PlainMessage | undefined, b: QueryTraceCallResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceCallResponse, a, b); + } +} + +/** + * QueryTraceBlockRequest defines TraceTx request + * + * @generated from message injective.evm.v1.QueryTraceBlockRequest + */ +export class QueryTraceBlockRequest extends Message { + /** + * txs is an array of messages in the block + * + * @generated from field: repeated injective.evm.v1.MsgEthereumTx txs = 1; + */ + txs: MsgEthereumTx[] = []; + + /** + * trace_config holds extra parameters to trace functions. + * + * @generated from field: injective.evm.v1.TraceConfig trace_config = 3; + */ + traceConfig?: TraceConfig; + + /** + * block_number of the traced block + * + * @generated from field: int64 block_number = 5; + */ + blockNumber = protoInt64.zero; + + /** + * block_hash (hex) of the traced block + * + * @generated from field: string block_hash = 6; + */ + blockHash = ""; + + /** + * block_time of the traced block + * + * @generated from field: google.protobuf.Timestamp block_time = 7; + */ + blockTime?: Timestamp; + + /** + * proposer_address is the address of the requested block + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + /** + * chain_id is the eip155 chain id parsed from the requested block header + * + * @generated from field: int64 chain_id = 9; + */ + chainId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "txs", kind: "message", T: MsgEthereumTx, repeated: true }, + { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, + { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "block_time", kind: "message", T: Timestamp }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockRequest { + return new QueryTraceBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceBlockRequest | PlainMessage | undefined, b: QueryTraceBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceBlockRequest, a, b); + } +} + +/** + * QueryTraceBlockResponse defines TraceBlock response + * + * @generated from message injective.evm.v1.QueryTraceBlockResponse + */ +export class QueryTraceBlockResponse extends Message { + /** + * data is the response serialized in bytes + * + * @generated from field: bytes data = 1; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryTraceBlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockResponse { + return new QueryTraceBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraceBlockResponse | PlainMessage | undefined, b: QueryTraceBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraceBlockResponse, a, b); + } +} + +/** + * QueryBaseFeeRequest defines the request type for querying the EIP1559 base + * fee. + * + * @generated from message injective.evm.v1.QueryBaseFeeRequest + */ +export class QueryBaseFeeRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryBaseFeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeRequest { + return new QueryBaseFeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBaseFeeRequest | PlainMessage | undefined, b: QueryBaseFeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBaseFeeRequest, a, b); + } +} + +/** + * QueryBaseFeeResponse returns the EIP1559 base fee. + * + * @generated from message injective.evm.v1.QueryBaseFeeResponse + */ +export class QueryBaseFeeResponse extends Message { + /** + * base_fee is the EIP1559 base fee + * + * @generated from field: string base_fee = 1; + */ + baseFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.QueryBaseFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeResponse { + return new QueryBaseFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBaseFeeResponse | PlainMessage | undefined, b: QueryBaseFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBaseFeeResponse, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/state_pb.ts b/src/protobufs/injective/evm/v1/state_pb.ts new file mode 100644 index 00000000..20bf8ec3 --- /dev/null +++ b/src/protobufs/injective/evm/v1/state_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/state.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * State represents a single Storage key value pair item. + * + * @generated from message injective.evm.v1.State + */ +export class State extends Message { + /** + * key is the stored key + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * value is the stored value for the given key + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.State"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): State { + return new State().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): State { + return new State().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): State { + return new State().fromJsonString(jsonString, options); + } + + static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean { + return proto3.util.equals(State, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/trace_config_pb.ts b/src/protobufs/injective/evm/v1/trace_config_pb.ts new file mode 100644 index 00000000..d3b9f609 --- /dev/null +++ b/src/protobufs/injective/evm/v1/trace_config_pb.ts @@ -0,0 +1,148 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/trace_config.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ChainConfig } from "./chain_config_pb.js"; + +/** + * TraceConfig holds extra parameters to trace functions. + * + * @generated from message injective.evm.v1.TraceConfig + */ +export class TraceConfig extends Message { + /** + * tracer is a custom javascript tracer + * + * @generated from field: string tracer = 1; + */ + tracer = ""; + + /** + * timeout overrides the default timeout of 5 seconds for JavaScript-based + * tracing calls + * + * @generated from field: string timeout = 2; + */ + timeout = ""; + + /** + * reexec defines the number of blocks the tracer is willing to go back + * + * @generated from field: uint64 reexec = 3; + */ + reexec = protoInt64.zero; + + /** + * disable_stack switches stack capture + * + * @generated from field: bool disable_stack = 5; + */ + disableStack = false; + + /** + * disable_storage switches storage capture + * + * @generated from field: bool disable_storage = 6; + */ + disableStorage = false; + + /** + * debug can be used to print output during capture end + * + * @generated from field: bool debug = 8; + */ + debug = false; + + /** + * limit defines the maximum length of output, but zero means unlimited + * + * @generated from field: int32 limit = 9; + */ + limit = 0; + + /** + * overrides can be used to execute a trace using future fork rules + * + * @generated from field: injective.evm.v1.ChainConfig overrides = 10; + */ + overrides?: ChainConfig; + + /** + * enable_memory switches memory capture + * + * @generated from field: bool enable_memory = 11; + */ + enableMemory = false; + + /** + * enable_return_data switches the capture of return data + * + * @generated from field: bool enable_return_data = 12; + */ + enableReturnData = false; + + /** + * tracer_json_config configures the tracer using a JSON string + * + * @generated from field: string tracer_json_config = 13; + */ + tracerJsonConfig = ""; + + /** + * temporary state modifications to Geth in order to simulate the effects of + * eth_call + * + * @generated from field: bytes state_overrides = 14; + */ + stateOverrides = new Uint8Array(0); + + /** + * block overrides block context fields encoded as json + * + * @generated from field: bytes block_overrides = 15; + */ + blockOverrides = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.TraceConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tracer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reexec", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "disable_stack", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "disable_storage", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "debug", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 10, name: "overrides", kind: "message", T: ChainConfig }, + { no: 11, name: "enable_memory", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "enable_return_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "tracer_json_config", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "state_overrides", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 15, name: "block_overrides", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TraceConfig { + return new TraceConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TraceConfig { + return new TraceConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TraceConfig { + return new TraceConfig().fromJsonString(jsonString, options); + } + + static equals(a: TraceConfig | PlainMessage | undefined, b: TraceConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(TraceConfig, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/transaction_logs_pb.ts b/src/protobufs/injective/evm/v1/transaction_logs_pb.ts new file mode 100644 index 00000000..3d777620 --- /dev/null +++ b/src/protobufs/injective/evm/v1/transaction_logs_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/transaction_logs.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Log } from "./log_pb.js"; + +/** + * TransactionLogs define the logs generated from a transaction execution + * with a given hash. It it used for import/export data as transactions are not + * persisted on blockchain state after an upgrade. + * + * @generated from message injective.evm.v1.TransactionLogs + */ +export class TransactionLogs extends Message { + /** + * hash of the transaction + * + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * logs is an array of Logs for the given transaction hash + * + * @generated from field: repeated injective.evm.v1.Log logs = 2; + */ + logs: Log[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.TransactionLogs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "logs", kind: "message", T: Log, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransactionLogs { + return new TransactionLogs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransactionLogs { + return new TransactionLogs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransactionLogs { + return new TransactionLogs().fromJsonString(jsonString, options); + } + + static equals(a: TransactionLogs | PlainMessage | undefined, b: TransactionLogs | PlainMessage | undefined): boolean { + return proto3.util.equals(TransactionLogs, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/tx_cosmes.ts b/src/protobufs/injective/evm/v1/tx_cosmes.ts new file mode 100644 index 00000000..8a90faa1 --- /dev/null +++ b/src/protobufs/injective/evm/v1/tx_cosmes.ts @@ -0,0 +1,35 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/evm/v1/tx.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgEthereumTx, MsgEthereumTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "injective.evm.v1.Msg"; + +/** + * EthereumTx defines a method submitting Ethereum transactions. + * + * @generated from rpc injective.evm.v1.Msg.EthereumTx + */ +export const MsgEthereumTxService = { + typeName: TYPE_NAME, + method: "EthereumTx", + Request: MsgEthereumTx, + Response: MsgEthereumTxResponse, +} as const; + +/** + * UpdateParams defined a governance operation for updating the x/evm module + * parameters. The authority is hard-coded to the Cosmos SDK x/gov module + * account + * + * @generated from rpc injective.evm.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/injective/evm/v1/tx_pb.ts b/src/protobufs/injective/evm/v1/tx_pb.ts new file mode 100644 index 00000000..54585583 --- /dev/null +++ b/src/protobufs/injective/evm/v1/tx_pb.ts @@ -0,0 +1,652 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/tx.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccessTuple } from "./access_tuple_pb.js"; +import { Log } from "./log_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. + * + * @generated from message injective.evm.v1.MsgEthereumTx + */ +export class MsgEthereumTx extends Message { + /** + * data is inner transaction data of the Ethereum transaction + * + * @generated from field: google.protobuf.Any data = 1; + */ + data?: Any; + + /** + * size is the encoded storage size of the transaction (DEPRECATED) + * + * @generated from field: double size = 2; + */ + size = 0; + + /** + * hash of the transaction in hex format + * + * @generated from field: string deprecated_hash = 3; + */ + deprecatedHash = ""; + + /** + * @generated from field: string deprecated_from = 4 [deprecated = true]; + * @deprecated + */ + deprecatedFrom = ""; + + /** + * from is the bytes of ethereum signer address. This address value is checked + * against the address derived from the signature (V, R, S) using the + * secp256k1 elliptic curve + * + * @generated from field: bytes from = 5; + */ + from = new Uint8Array(0); + + /** + * raw is the raw bytes of the ethereum transaction + * + * @generated from field: bytes raw = 6; + */ + raw = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.MsgEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: Any }, + { no: 2, name: "size", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "deprecated_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "deprecated_from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "from", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "raw", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTx { + return new MsgEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: MsgEthereumTx | PlainMessage | undefined, b: MsgEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEthereumTx, a, b); + } +} + +/** + * LegacyTx is the transaction data of regular Ethereum transactions. + * NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the + * AllowUnprotectedTxs parameter is disabled. + * + * @generated from message injective.evm.v1.LegacyTx + */ +export class LegacyTx extends Message { + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 1; + */ + nonce = protoInt64.zero; + + /** + * gas_price defines the value for each gas unit + * + * @generated from field: string gas_price = 2; + */ + gasPrice = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 3; + */ + gas = protoInt64.zero; + + /** + * to is the hex formatted address of the recipient + * + * @generated from field: string to = 4; + */ + to = ""; + + /** + * value defines the unsigned integer value of the transaction amount. + * + * @generated from field: string value = 5; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 6; + */ + data = new Uint8Array(0); + + /** + * v defines the signature value + * + * @generated from field: bytes v = 7; + */ + v = new Uint8Array(0); + + /** + * r defines the signature value + * + * @generated from field: bytes r = 8; + */ + r = new Uint8Array(0); + + /** + * s define the signature value + * + * @generated from field: bytes s = 9; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.LegacyTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyTx { + return new LegacyTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyTx { + return new LegacyTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LegacyTx { + return new LegacyTx().fromJsonString(jsonString, options); + } + + static equals(a: LegacyTx | PlainMessage | undefined, b: LegacyTx | PlainMessage | undefined): boolean { + return proto3.util.equals(LegacyTx, a, b); + } +} + +/** + * AccessListTx is the data of EIP-2930 access list transactions. + * + * @generated from message injective.evm.v1.AccessListTx + */ +export class AccessListTx extends Message { + /** + * chain_id of the destination EVM chain + * + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 2; + */ + nonce = protoInt64.zero; + + /** + * gas_price defines the value for each gas unit + * + * @generated from field: string gas_price = 3; + */ + gasPrice = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 4; + */ + gas = protoInt64.zero; + + /** + * to is the recipient address in hex format + * + * @generated from field: string to = 5; + */ + to = ""; + + /** + * value defines the unsigned integer value of the transaction amount. + * + * @generated from field: string value = 6; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 7; + */ + data = new Uint8Array(0); + + /** + * accesses is an array of access tuples + * + * @generated from field: repeated injective.evm.v1.AccessTuple accesses = 8; + */ + accesses: AccessTuple[] = []; + + /** + * v defines the signature value + * + * @generated from field: bytes v = 9; + */ + v = new Uint8Array(0); + + /** + * r defines the signature value + * + * @generated from field: bytes r = 10; + */ + r = new Uint8Array(0); + + /** + * s define the signature value + * + * @generated from field: bytes s = 11; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.AccessListTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, + { no: 9, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 11, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccessListTx { + return new AccessListTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccessListTx { + return new AccessListTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccessListTx { + return new AccessListTx().fromJsonString(jsonString, options); + } + + static equals(a: AccessListTx | PlainMessage | undefined, b: AccessListTx | PlainMessage | undefined): boolean { + return proto3.util.equals(AccessListTx, a, b); + } +} + +/** + * DynamicFeeTx is the data of EIP-1559 dinamic fee transactions. + * + * @generated from message injective.evm.v1.DynamicFeeTx + */ +export class DynamicFeeTx extends Message { + /** + * chain_id of the destination EVM chain + * + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * nonce corresponds to the account nonce (transaction sequence). + * + * @generated from field: uint64 nonce = 2; + */ + nonce = protoInt64.zero; + + /** + * gas_tip_cap defines the max value for the gas tip + * + * @generated from field: string gas_tip_cap = 3; + */ + gasTipCap = ""; + + /** + * gas_fee_cap defines the max value for the gas fee + * + * @generated from field: string gas_fee_cap = 4; + */ + gasFeeCap = ""; + + /** + * gas defines the gas limit defined for the transaction. + * + * @generated from field: uint64 gas = 5; + */ + gas = protoInt64.zero; + + /** + * to is the hex formatted address of the recipient + * + * @generated from field: string to = 6; + */ + to = ""; + + /** + * value defines the the transaction amount. + * + * @generated from field: string value = 7; + */ + value = ""; + + /** + * data is the data payload bytes of the transaction. + * + * @generated from field: bytes data = 8; + */ + data = new Uint8Array(0); + + /** + * accesses is an array of access tuples + * + * @generated from field: repeated injective.evm.v1.AccessTuple accesses = 9; + */ + accesses: AccessTuple[] = []; + + /** + * v defines the signature value + * + * @generated from field: bytes v = 10; + */ + v = new Uint8Array(0); + + /** + * r defines the signature value + * + * @generated from field: bytes r = 11; + */ + r = new Uint8Array(0); + + /** + * s define the signature value + * + * @generated from field: bytes s = 12; + */ + s = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.DynamicFeeTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "gas_tip_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas_fee_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, + { no: 10, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 11, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 12, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicFeeTx { + return new DynamicFeeTx().fromJsonString(jsonString, options); + } + + static equals(a: DynamicFeeTx | PlainMessage | undefined, b: DynamicFeeTx | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicFeeTx, a, b); + } +} + +/** + * ExtensionOptionsEthereumTx is an extension option for ethereum transactions + * + * @generated from message injective.evm.v1.ExtensionOptionsEthereumTx + */ +export class ExtensionOptionsEthereumTx extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.ExtensionOptionsEthereumTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtensionOptionsEthereumTx { + return new ExtensionOptionsEthereumTx().fromJsonString(jsonString, options); + } + + static equals(a: ExtensionOptionsEthereumTx | PlainMessage | undefined, b: ExtensionOptionsEthereumTx | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtensionOptionsEthereumTx, a, b); + } +} + +/** + * MsgEthereumTxResponse defines the Msg/EthereumTx response type. + * + * @generated from message injective.evm.v1.MsgEthereumTxResponse + */ +export class MsgEthereumTxResponse extends Message { + /** + * hash of the ethereum transaction in hex format. This hash differs from the + * Tendermint sha256 hash of the transaction bytes. See + * https://github.com/tendermint/tendermint/issues/6539 for reference + * + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * logs contains the transaction hash and the proto-compatible ethereum + * logs. + * + * @generated from field: repeated injective.evm.v1.Log logs = 2; + */ + logs: Log[] = []; + + /** + * ret is the returned data from evm function (result or data supplied with + * revert opcode) + * + * @generated from field: bytes ret = 3; + */ + ret = new Uint8Array(0); + + /** + * vm_error is the error returned by vm execution + * + * @generated from field: string vm_error = 4; + */ + vmError = ""; + + /** + * gas_used specifies how much gas was consumed by the transaction + * + * @generated from field: uint64 gas_used = 5; + */ + gasUsed = protoInt64.zero; + + /** + * include the block hash for json-rpc to use + * + * @generated from field: bytes block_hash = 6; + */ + blockHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.MsgEthereumTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "logs", kind: "message", T: Log, repeated: true }, + { no: 3, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTxResponse { + return new MsgEthereumTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEthereumTxResponse | PlainMessage | undefined, b: MsgEthereumTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEthereumTxResponse, a, b); + } +} + +/** + * MsgUpdateParams defines a Msg for updating the x/evm module parameters. + * + * @generated from message injective.evm.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/evm parameters to update. + * NOTE: All parameters must be supplied. + * + * @generated from field: injective.evm.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message injective.evm.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/injective/evm/v1/tx_result_pb.ts b/src/protobufs/injective/evm/v1/tx_result_pb.ts new file mode 100644 index 00000000..002f7adf --- /dev/null +++ b/src/protobufs/injective/evm/v1/tx_result_pb.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/evm/v1/tx_result.proto (package injective.evm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { TransactionLogs } from "./transaction_logs_pb.js"; + +/** + * TxResult stores results of Tx execution. + * + * @generated from message injective.evm.v1.TxResult + */ +export class TxResult extends Message { + /** + * contract_address contains the ethereum address of the created contract (if + * any). If the state transition is an evm.Call, the contract address will be + * empty. + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * bloom represents the bloom filter bytes + * + * @generated from field: bytes bloom = 2; + */ + bloom = new Uint8Array(0); + + /** + * tx_logs contains the transaction hash and the proto-compatible ethereum + * logs. + * + * @generated from field: injective.evm.v1.TransactionLogs tx_logs = 3; + */ + txLogs?: TransactionLogs; + + /** + * ret defines the bytes from the execution. + * + * @generated from field: bytes ret = 4; + */ + ret = new Uint8Array(0); + + /** + * reverted flag is set to true when the call has been reverted + * + * @generated from field: bool reverted = 5; + */ + reverted = false; + + /** + * gas_used notes the amount of gas consumed while execution + * + * @generated from field: uint64 gas_used = 6; + */ + gasUsed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.evm.v1.TxResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bloom", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "tx_logs", kind: "message", T: TransactionLogs }, + { no: 4, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { + return new TxResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { + return new TxResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxResult { + return new TxResult().fromJsonString(jsonString, options); + } + + static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { + return proto3.util.equals(TxResult, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/authz_pb.ts b/src/protobufs/injective/exchange/v1beta1/authz_pb.ts index a90fb5f1..c060324e 100644 --- a/src/protobufs/injective/exchange/v1beta1/authz_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/authz_pb.ts @@ -5,6 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * spot authz messages @@ -13,11 +14,15 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class CreateSpotLimitOrderAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -56,11 +61,15 @@ export class CreateSpotLimitOrderAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -99,11 +108,15 @@ export class CreateSpotMarketOrderAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -142,11 +155,15 @@ export class BatchCreateSpotLimitOrdersAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -185,11 +202,15 @@ export class CancelSpotOrderAuthz extends Message { */ export class BatchCancelSpotOrdersAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -230,11 +251,15 @@ export class BatchCancelSpotOrdersAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -273,11 +298,15 @@ export class CreateDerivativeLimitOrderAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -316,11 +345,15 @@ export class CreateDerivativeMarketOrderAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market IDs + * * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; @@ -447,16 +480,22 @@ export class BatchCancelDerivativeOrdersAuthz extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the spot market IDs + * * @generated from field: repeated string spot_markets = 2; */ spotMarkets: string[] = []; /** + * the derivative market IDs + * * @generated from field: repeated string derivative_markets = 3; */ derivativeMarkets: string[] = []; @@ -491,3 +530,54 @@ export class BatchUpdateOrdersAuthz extends Message { } } +/** + * GenericExchangeAuthorization gives the grantee permissions to execute + * the provided Exchange method on behalf of the granter's account. + * + * @generated from message injective.exchange.v1beta1.GenericExchangeAuthorization + */ +export class GenericExchangeAuthorization extends Message { + /** + * Msg, identified by it's type URL, to grant permissions to the grantee + * + * @generated from field: string msg = 1; + */ + msg = ""; + + /** + * SpendLimit is the maximum amount of tokens that the grantee can spend on + * behalf of the granter. If not set, there is no spend limit. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 2; + */ + spendLimit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.GenericExchangeAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "spend_limit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: GenericExchangeAuthorization | PlainMessage | undefined, b: GenericExchangeAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(GenericExchangeAuthorization, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/events_pb.ts b/src/protobufs/injective/exchange/v1beta1/events_pb.ts index 275a4a67..f2c2e716 100644 --- a/src/protobufs/injective/exchange/v1beta1/events_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/events_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccountRewards, BinaryOptionsMarket, CampaignRewardPool, DepositUpdate, DerivativeLimitOrder, DerivativeMarket, DerivativeMarketOrder, DerivativeOrder, DerivativeTradeLog, ExecutionType, ExpiryFuturesMarketInfo, FeeDiscountSchedule, Level, MarketFeeMultiplier, PerpetualMarketFunding, PerpetualMarketInfo, SpotLimitOrder, SpotMarket, SubaccountPosition, TradeLog, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { AccountRewards, BinaryOptionsMarket, CampaignRewardPool, DepositUpdate, DerivativeLimitOrder, DerivativeMarket, DerivativeMarketOrder, DerivativeOrder, DerivativeTradeLog, ExecutionType, ExpiryFuturesMarketInfo, FeeDiscountSchedule, GrantAuthorization, Level, MarketFeeMultiplier, PerpetualMarketFunding, PerpetualMarketInfo, SpotLimitOrder, SpotMarket, SubaccountPosition, TradeLog, TradingRewardCampaignInfo } from "./exchange_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** @@ -285,6 +285,92 @@ export class EventDerivativeMarketPaused extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventSettledMarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: EventSettledMarketBalance | PlainMessage | undefined, b: EventSettledMarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSettledMarketBalance, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.EventNotSettledMarketBalance + */ +export class EventNotSettledMarketBalance extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventNotSettledMarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: EventNotSettledMarketBalance | PlainMessage | undefined, b: EventNotSettledMarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(EventNotSettledMarketBalance, a, b); + } +} + /** * @generated from message injective.exchange.v1beta1.EventMarketBeyondBankruptcy */ @@ -1284,6 +1370,11 @@ export class EventConditionalDerivativeOrderTrigger extends Message) { super(); proto3.util.initPartial(data, this); @@ -1296,6 +1387,7 @@ export class EventConditionalDerivativeOrderTrigger extends Message): EventConditionalDerivativeOrderTrigger { @@ -1334,6 +1426,11 @@ export class EventOrderFail extends Message { */ flags: number[] = []; + /** + * @generated from field: repeated string cids = 4; + */ + cids: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1345,6 +1442,7 @@ export class EventOrderFail extends Message { { no: 1, name: "account", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, { no: 3, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 4, name: "cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderFail { @@ -1536,3 +1634,199 @@ export class Orderbook extends Message { } } +/** + * @generated from message injective.exchange.v1beta1.EventGrantAuthorizations + */ +export class EventGrantAuthorizations extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventGrantAuthorizations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromJsonString(jsonString, options); + } + + static equals(a: EventGrantAuthorizations | PlainMessage | undefined, b: EventGrantAuthorizations | PlainMessage | undefined): boolean { + return proto3.util.equals(EventGrantAuthorizations, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.EventGrantActivation + */ +export class EventGrantActivation extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: string granter = 2; + */ + granter = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventGrantActivation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromJsonString(jsonString, options); + } + + static equals(a: EventGrantActivation | PlainMessage | undefined, b: EventGrantActivation | PlainMessage | undefined): boolean { + return proto3.util.equals(EventGrantActivation, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.EventInvalidGrant + */ +export class EventInvalidGrant extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: string granter = 2; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventInvalidGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromJsonString(jsonString, options); + } + + static equals(a: EventInvalidGrant | PlainMessage | undefined, b: EventInvalidGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(EventInvalidGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.EventOrderCancelFail + */ +export class EventOrderCancelFail extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * @generated from field: string order_hash = 3; + */ + orderHash = ""; + + /** + * @generated from field: string cid = 4; + */ + cid = ""; + + /** + * @generated from field: string description = 5; + */ + description = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EventOrderCancelFail"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderCancelFail | PlainMessage | undefined, b: EventOrderCancelFail | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderCancelFail, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/exchange_pb.ts b/src/protobufs/injective/exchange/v1beta1/exchange_pb.ts index c6146f09..938cc424 100644 --- a/src/protobufs/injective/exchange/v1beta1/exchange_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/exchange_pb.ts @@ -264,6 +264,124 @@ proto3.util.setEnumType(OrderMask, "injective.exchange.v1beta1.OrderMask", [ { no: 64, name: "TYPE_LIMIT" }, ]); +/** + * @generated from message injective.exchange.v1beta1.OpenNotionalCap + */ +export class OpenNotionalCap extends Message { + /** + * @generated from oneof injective.exchange.v1beta1.OpenNotionalCap.cap + */ + cap: { + /** + * @generated from field: injective.exchange.v1beta1.OpenNotionalCapUncapped uncapped = 1; + */ + value: OpenNotionalCapUncapped; + case: "uncapped"; + } | { + /** + * @generated from field: injective.exchange.v1beta1.OpenNotionalCapCapped capped = 2; + */ + value: OpenNotionalCapCapped; + case: "capped"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.OpenNotionalCap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uncapped", kind: "message", T: OpenNotionalCapUncapped, oneof: "cap" }, + { no: 2, name: "capped", kind: "message", T: OpenNotionalCapCapped, oneof: "cap" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCap | PlainMessage | undefined, b: OpenNotionalCap | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCap, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.OpenNotionalCapUncapped + */ +export class OpenNotionalCapUncapped extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.OpenNotionalCapUncapped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCapUncapped | PlainMessage | undefined, b: OpenNotionalCapUncapped | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCapUncapped, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.OpenNotionalCapCapped + */ +export class OpenNotionalCapCapped extends Message { + /** + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.OpenNotionalCapCapped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCapCapped | PlainMessage | undefined, b: OpenNotionalCapCapped | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCapCapped, a, b); + } +} + /** * @generated from message injective.exchange.v1beta1.Params */ @@ -463,6 +581,36 @@ export class Params extends Message { */ postOnlyModeHeightThreshold = protoInt64.zero; + /** + * Maximum time in seconds since the last mark price update to allow a + * decrease in margin + * + * @generated from field: int64 margin_decrease_price_timestamp_threshold_seconds = 26; + */ + marginDecreasePriceTimestampThresholdSeconds = protoInt64.zero; + + /** + * List of addresses that are allowed to perform exchange admin operations + * + * @generated from field: repeated string exchange_admins = 27; + */ + exchangeAdmins: string[] = []; + + /** + * inj_auction_max_cap defines the maximum cap for INJ sent to auction + * + * @generated from field: string inj_auction_max_cap = 28; + */ + injAuctionMaxCap = ""; + + /** + * fixed_gas_enabled indicates if msg server will consume fixed gas amount for + * certain msg types + * + * @generated from field: bool fixed_gas_enabled = 29; + */ + fixedGasEnabled = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -496,6 +644,10 @@ export class Params extends Message { { no: 23, name: "minimal_protocol_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 24, name: "is_instant_derivative_market_launch_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 25, name: "post_only_mode_height_threshold", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 26, name: "margin_decrease_price_timestamp_threshold_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 27, name: "exchange_admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 28, name: "inj_auction_max_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 29, name: "fixed_gas_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { @@ -668,7 +820,7 @@ export class DerivativeMarket extends Message { /** * min_price_tick_size defines the minimum tick size that the price and margin - * required for orders in the market + * required for orders in the market (in chain format) * * @generated from field: string min_price_tick_size = 15; */ @@ -676,12 +828,55 @@ export class DerivativeMarket extends Message { /** * min_quantity_tick_size defines the minimum tick size of the quantity - * required for orders in the market + * required for orders in the market (in chain format) * * @generated from field: string min_quantity_tick_size = 16; */ minQuantityTickSize = ""; + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in chain format) + * + * @generated from field: string min_notional = 17; + */ + minNotional = ""; + + /** + * current market admin + * + * @generated from field: string admin = 18; + */ + admin = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 19; + */ + adminPermissions = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 20; + */ + quoteDecimals = 0; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 21; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v1beta1.OpenNotionalCap open_notional_cap = 22; + */ + openNotionalCap?: OpenNotionalCap; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -706,6 +901,12 @@ export class DerivativeMarket extends Message { { no: 14, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, { no: 15, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 20, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 21, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarket { @@ -851,6 +1052,28 @@ export class BinaryOptionsMarket extends Message { */ settlementPrice = ""; + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 18; + */ + minNotional = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 19; + */ + adminPermissions = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 20; + */ + quoteDecimals = 0; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -876,6 +1099,9 @@ export class BinaryOptionsMarket extends Message { { no: 15, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 17, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 20, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BinaryOptionsMarket { @@ -924,7 +1150,7 @@ export class ExpiryFuturesMarketInfo extends Message { /** * expiration_twap_start_price_cumulative defines the cumulative price for the - * start of the TWAP window + * start of the TWAP window (in chain format) * * @generated from field: string expiration_twap_start_price_cumulative = 4; */ @@ -932,7 +1158,7 @@ export class ExpiryFuturesMarketInfo extends Message { /** * settlement_price defines the settlement price for a time expiry futures - * market. + * market (in chain format) * * @generated from field: string settlement_price = 5; */ @@ -1056,14 +1282,17 @@ export class PerpetualMarketFunding extends Message { cumulativeFunding = ""; /** - * cumulative_price defines the cumulative price for the current hour up to - * the last timestamp + * cumulative_price defines the running time-integral of the perp premium + * ((VWAP - mark_price) / mark_price) i.e., sum(premium * seconds) + * used to compute the interval’s average premium for funding * * @generated from field: string cumulative_price = 2; */ cumulativePrice = ""; /** + * the last timestamp in seconds + * * @generated from field: int64 last_timestamp = 3; */ lastTimestamp = protoInt64.zero; @@ -1187,21 +1416,21 @@ export class NextFundingTimestamp extends Message { */ export class MidPriceAndTOB extends Message { /** - * mid price of the market + * mid price of the market (in chain format) * * @generated from field: string mid_price = 1; */ midPrice = ""; /** - * best buy price of the market + * best buy price of the market (in chain format) * * @generated from field: string best_buy_price = 2; */ bestBuyPrice = ""; /** - * best sell price of the market + * best sell price of the market (in chain format) * * @generated from field: string best_sell_price = 3; */ @@ -1303,7 +1532,7 @@ export class SpotMarket extends Message { /** * min_price_tick_size defines the minimum tick size that the price required - * for orders in the market + * for orders in the market (in chain format) * * @generated from field: string min_price_tick_size = 9; */ @@ -1311,12 +1540,48 @@ export class SpotMarket extends Message { /** * min_quantity_tick_size defines the minimum tick size of the quantity - * required for orders in the market + * required for orders in the market (in chain format) * * @generated from field: string min_quantity_tick_size = 10; */ minQuantityTickSize = ""; + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in chain format) + * + * @generated from field: string min_notional = 11; + */ + minNotional = ""; + + /** + * current market admin + * + * @generated from field: string admin = 12; + */ + admin = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 13; + */ + adminPermissions = 0; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 14; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 15; + */ + quoteDecimals = 0; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1335,6 +1600,11 @@ export class SpotMarket extends Message { { no: 8, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, { no: 9, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 14, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarket { @@ -1784,37 +2054,45 @@ export class DerivativeOrder extends Message { */ export class SubaccountOrderbookMetadata extends Message { /** + * The number of vanilla limit orders + * * @generated from field: uint32 vanilla_limit_order_count = 1; */ vanillaLimitOrderCount = 0; /** + * The number of reduce-only limit orders + * * @generated from field: uint32 reduce_only_limit_order_count = 2; */ reduceOnlyLimitOrderCount = 0; /** - * AggregateReduceOnlyQuantity is the aggregate fillable quantity of the - * subaccount's reduce-only limit orders in the given direction. + * The aggregate quantity of the subaccount's reduce-only limit orders (in + * chain format) * * @generated from field: string aggregate_reduce_only_quantity = 3; */ aggregateReduceOnlyQuantity = ""; /** - * AggregateVanillaQuantity is the aggregate fillable quantity of the - * subaccount's vanilla limit orders in the given direction. + * The aggregate quantity of the subaccount's vanilla limit orders (in chain + * format) * * @generated from field: string aggregate_vanilla_quantity = 4; */ aggregateVanillaQuantity = ""; /** + * The number of vanilla conditional orders + * * @generated from field: uint32 vanilla_conditional_order_count = 5; */ vanillaConditionalOrderCount = 0; /** + * The number of reduce-only conditional orders + * * @generated from field: uint32 reduce_only_conditional_order_count = 6; */ reduceOnlyConditionalOrderCount = 0; @@ -1875,6 +2153,11 @@ export class SubaccountOrder extends Message { */ isReduceOnly = false; + /** + * @generated from field: string cid = 4; + */ + cid = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1886,6 +2169,7 @@ export class SubaccountOrder extends Message { { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "isReduceOnly", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountOrder { @@ -2107,26 +2391,36 @@ export class DerivativeMarketOrder extends Message { */ export class Position extends Message { /** + * True if the position is long. False if the position is short. + * * @generated from field: bool isLong = 1; */ isLong = false; /** + * The quantity of the position (in chain format) + * * @generated from field: string quantity = 2; */ quantity = ""; /** + * The entry price of the position (in chain format) + * * @generated from field: string entry_price = 3; */ entryPrice = ""; /** + * The margin of the position (in chain format) + * * @generated from field: string margin = 4; */ margin = ""; /** + * The cumulative funding + * * @generated from field: string cumulative_funding_entry = 5; */ cumulativeFundingEntry = ""; @@ -2377,6 +2671,11 @@ export class DerivativeTradeLog extends Message { */ cid = ""; + /** + * @generated from field: string pnl = 8; + */ + pnl = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -2392,6 +2691,7 @@ export class DerivativeTradeLog extends Message { { no: 5, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "fee_recipient_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 7, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pnl", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeTradeLog { @@ -2752,21 +3052,29 @@ export class TradingRewardCampaignInfo extends Message { /** + * the maker discount rate + * * @generated from field: string maker_discount_rate = 1; */ makerDiscountRate = ""; /** + * the taker discount rate + * * @generated from field: string taker_discount_rate = 2; */ takerDiscountRate = ""; /** + * the staked amount required to qualify for the discount (in chain format) + * * @generated from field: string staked_amount = 3; */ stakedAmount = ""; /** + * the volume required to qualify for the discount (in chain format) + * * @generated from field: string volume = 4; */ volume = ""; @@ -3085,16 +3393,22 @@ export class SubaccountIDs extends Message { */ export class TradeRecord extends Message { /** + * the timestamp of the trade + * * @generated from field: int64 timestamp = 1; */ timestamp = protoInt64.zero; /** + * the price of the trade (in chain format) + * * @generated from field: string price = 2; */ price = ""; /** + * the quantity of the trade (in chain format) + * * @generated from field: string quantity = 3; */ quantity = ""; @@ -3134,14 +3448,14 @@ export class TradeRecord extends Message { */ export class Level extends Message { /** - * price + * price (in chain format) * * @generated from field: string p = 1; */ p = ""; /** - * quantity + * quantity (in chain format) * * @generated from field: string q = 2; */ @@ -3181,11 +3495,15 @@ export class Level extends Message { */ export class AggregateSubaccountVolumeRecord extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the subaccount volumes for each market + * * @generated from field: repeated injective.exchange.v1beta1.MarketVolume market_volumes = 2; */ marketVolumes: MarketVolume[] = []; @@ -3348,3 +3666,185 @@ export class DenomDecimals extends Message { } } +/** + * @generated from message injective.exchange.v1beta1.GrantAuthorization + */ +export class GrantAuthorization extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.GrantAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: GrantAuthorization | PlainMessage | undefined, b: GrantAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(GrantAuthorization, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.ActiveGrant + */ +export class ActiveGrant extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.ActiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGrant { + return new ActiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGrant { + return new ActiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActiveGrant { + return new ActiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: ActiveGrant | PlainMessage | undefined, b: ActiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(ActiveGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.EffectiveGrant + */ +export class EffectiveGrant extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string net_granted_stake = 2; + */ + netGrantedStake = ""; + + /** + * @generated from field: bool is_valid = 3; + */ + isValid = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.EffectiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "net_granted_stake", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "is_valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: EffectiveGrant | PlainMessage | undefined, b: EffectiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(EffectiveGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.DenomMinNotional + */ +export class DenomMinNotional extends Message { + /** + * the denom of the token + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * the minimum notional value for the token (in chain format) + * + * @generated from field: string min_notional = 2; + */ + minNotional = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.DenomMinNotional"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromJsonString(jsonString, options); + } + + static equals(a: DenomMinNotional | PlainMessage | undefined, b: DenomMinNotional | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomMinNotional, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/genesis_pb.ts b/src/protobufs/injective/exchange/v1beta1/genesis_pb.ts index 7ec5d890..db51fcd7 100644 --- a/src/protobufs/injective/exchange/v1beta1/genesis_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/genesis_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AggregateSubaccountVolumeRecord, BinaryOptionsMarket, CampaignRewardPool, DenomDecimals, Deposit, DerivativeLimitOrder, DerivativeMarket, DerivativeMarketOrder, DerivativeMarketSettlementInfo, ExpiryFuturesMarketInfo, FeeDiscountSchedule, FeeDiscountTierTTL, MarketFeeMultiplier, MarketVolume, Params, PerpetualMarketFunding, PerpetualMarketInfo, Position, SpotLimitOrder, SpotMarket, SubaccountTradeNonce, TradeRecords, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { ActiveGrant, AggregateSubaccountVolumeRecord, BinaryOptionsMarket, CampaignRewardPool, DenomDecimals, DenomMinNotional, Deposit, DerivativeLimitOrder, DerivativeMarket, DerivativeMarketOrder, DerivativeMarketSettlementInfo, ExpiryFuturesMarketInfo, FeeDiscountSchedule, FeeDiscountTierTTL, GrantAuthorization, MarketFeeMultiplier, MarketVolume, Params, PerpetualMarketFunding, PerpetualMarketInfo, Position, SpotLimitOrder, SpotMarket, SubaccountTradeNonce, TradeRecords, TradingRewardCampaignInfo } from "./exchange_pb.js"; /** * GenesisState defines the exchange module's genesis state. @@ -254,6 +254,21 @@ export class GenesisState extends Message { */ marketVolumes: MarketVolume[] = []; + /** + * @generated from field: repeated injective.exchange.v1beta1.FullGrantAuthorizations grant_authorizations = 35; + */ + grantAuthorizations: FullGrantAuthorizations[] = []; + + /** + * @generated from field: repeated injective.exchange.v1beta1.FullActiveGrant active_grants = 36; + */ + activeGrants: FullActiveGrant[] = []; + + /** + * @generated from field: repeated injective.exchange.v1beta1.DenomMinNotional denom_min_notionals = 37; + */ + denomMinNotionals: DenomMinNotional[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -296,6 +311,9 @@ export class GenesisState extends Message { { no: 32, name: "orderbook_sequences", kind: "message", T: OrderbookSequence, repeated: true }, { no: 33, name: "subaccount_volumes", kind: "message", T: AggregateSubaccountVolumeRecord, repeated: true }, { no: 34, name: "market_volumes", kind: "message", T: MarketVolume, repeated: true }, + { no: 35, name: "grant_authorizations", kind: "message", T: FullGrantAuthorizations, repeated: true }, + { no: 36, name: "active_grants", kind: "message", T: FullActiveGrant, repeated: true }, + { no: 37, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { @@ -743,16 +761,22 @@ export class ConditionalDerivativeOrderBook extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the denom of the balance + * * @generated from field: string denom = 2; */ denom = ""; /** + * the token deposits details + * * @generated from field: injective.exchange.v1beta1.Deposit deposits = 3; */ deposits?: Deposit; @@ -792,16 +816,22 @@ export class Balance extends Message { */ export class DerivativePosition extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; /** + * the position details + * * @generated from field: injective.exchange.v1beta1.Position position = 3; */ position?: Position; @@ -841,11 +871,15 @@ export class DerivativePosition extends Message { */ export class SubaccountNonce extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the subaccount trade nonce + * * @generated from field: injective.exchange.v1beta1.SubaccountTradeNonce subaccount_trade_nonce = 2; */ subaccountTradeNonce?: SubaccountTradeNonce; @@ -965,3 +999,101 @@ export class PerpetualMarketFundingState extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string total_grant_amount = 2; + */ + totalGrantAmount = ""; + + /** + * @generated from field: int64 last_delegations_checked_time = 3; + */ + lastDelegationsCheckedTime = protoInt64.zero; + + /** + * @generated from field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 4; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.FullGrantAuthorizations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_grant_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "last_delegations_checked_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromJsonString(jsonString, options); + } + + static equals(a: FullGrantAuthorizations | PlainMessage | undefined, b: FullGrantAuthorizations | PlainMessage | undefined): boolean { + return proto3.util.equals(FullGrantAuthorizations, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.FullActiveGrant + */ +export class FullActiveGrant extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: injective.exchange.v1beta1.ActiveGrant active_grant = 2; + */ + activeGrant?: ActiveGrant; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.FullActiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "active_grant", kind: "message", T: ActiveGrant }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: FullActiveGrant | PlainMessage | undefined, b: FullActiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(FullActiveGrant, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/proposal_pb.ts b/src/protobufs/injective/exchange/v1beta1/proposal_pb.ts index 4a2fc6be..00f14d2c 100644 --- a/src/protobufs/injective/exchange/v1beta1/proposal_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/proposal_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { CampaignRewardPool, DenomDecimals, FeeDiscountSchedule, MarketFeeMultiplier, MarketStatus, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { CampaignRewardPool, DenomDecimals, DenomMinNotional, FeeDiscountSchedule, MarketFeeMultiplier, MarketStatus, TradingRewardCampaignInfo } from "./exchange_pb.js"; import { OracleType } from "../../oracle/v1beta1/oracle_pb.js"; import { CommunityPoolSpendProposal } from "../../../cosmos/distribution/v1beta1/distribution_pb.js"; @@ -97,6 +97,38 @@ export class SpotMarketParamUpdateProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -114,6 +146,11 @@ export class SpotMarketParamUpdateProposal extends Message): SpotMarketParamUpdateProposal { @@ -251,6 +288,11 @@ export class BatchExchangeModificationProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -272,6 +314,7 @@ export class BatchExchangeModificationProposal extends Message): BatchExchangeModificationProposal { @@ -358,6 +401,32 @@ export class SpotMarketLaunchProposal extends Message */ takerFeeRate = ""; + /** + * min_notional defines the minimum notional for orders in the market + * + * @generated from field: string min_notional = 10; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v1beta1.AdminInfo admin_info = 11; + */ + adminInfo?: AdminInfo; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 14; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 15; + */ + quoteDecimals = 0; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -375,6 +444,10 @@ export class SpotMarketLaunchProposal extends Message { no: 7, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 14, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarketLaunchProposal { @@ -501,6 +574,19 @@ export class PerpetualMarketLaunchProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -523,6 +609,8 @@ export class PerpetualMarketLaunchProposal extends Message): PerpetualMarketLaunchProposal { @@ -649,6 +737,19 @@ export class BinaryOptionsMarketLaunchProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -672,6 +773,8 @@ export class BinaryOptionsMarketLaunchProposal extends Message): BinaryOptionsMarketLaunchProposal { @@ -805,6 +908,19 @@ export class ExpiryFuturesMarketLaunchProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -828,6 +944,8 @@ export class ExpiryFuturesMarketLaunchProposal extends Message): ExpiryFuturesMarketLaunchProposal { @@ -947,6 +1065,24 @@ export class DerivativeMarketParamUpdateProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -969,6 +1105,9 @@ export class DerivativeMarketParamUpdateProposal extends Message): DerivativeMarketParamUpdateProposal { @@ -988,6 +1127,49 @@ export class DerivativeMarketParamUpdateProposal extends Message { + /** + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * @generated from field: uint32 admin_permissions = 2; + */ + adminPermissions = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.AdminInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AdminInfo { + return new AdminInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AdminInfo { + return new AdminInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AdminInfo { + return new AdminInfo().fromJsonString(jsonString, options); + } + + static equals(a: AdminInfo | PlainMessage | undefined, b: AdminInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(AdminInfo, a, b); + } +} + /** * @generated from message injective.exchange.v1beta1.MarketForcedSettlementProposal */ @@ -1189,6 +1371,19 @@ export class BinaryOptionsMarketParamUpdateProposal extends Message) { super(); proto3.util.initPartial(data, this); @@ -1211,6 +1406,8 @@ export class BinaryOptionsMarketParamUpdateProposal extends Message): BinaryOptionsMarketParamUpdateProposal { @@ -1722,3 +1919,52 @@ export class AtomicMarketOrderFeeMultiplierScheduleProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated injective.exchange.v1beta1.DenomMinNotional denom_min_notionals = 3; + */ + denomMinNotionals: DenomMinNotional[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.DenomMinNotionalProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromJsonString(jsonString, options); + } + + static equals(a: DenomMinNotionalProposal | PlainMessage | undefined, b: DenomMinNotionalProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomMinNotionalProposal, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/query_cosmes.ts b/src/protobufs/injective/exchange/v1beta1/query_cosmes.ts index e410f3bb..28d06de6 100644 --- a/src/protobufs/injective/exchange/v1beta1/query_cosmes.ts +++ b/src/protobufs/injective/exchange/v1beta1/query_cosmes.ts @@ -3,10 +3,30 @@ /* eslint-disable */ // @ts-nocheck -import { MitoVaultInfosRequest, MitoVaultInfosResponse, QueryAccountAddressDerivativeOrdersRequest, QueryAccountAddressDerivativeOrdersResponse, QueryAccountAddressSpotOrdersRequest, QueryAccountAddressSpotOrdersResponse, QueryAggregateMarketVolumeRequest, QueryAggregateMarketVolumeResponse, QueryAggregateMarketVolumesRequest, QueryAggregateMarketVolumesResponse, QueryAggregateVolumeRequest, QueryAggregateVolumeResponse, QueryAggregateVolumesRequest, QueryAggregateVolumesResponse, QueryBalanceMismatchesRequest, QueryBalanceMismatchesResponse, QueryBalanceWithBalanceHoldsRequest, QueryBalanceWithBalanceHoldsResponse, QueryBinaryMarketsRequest, QueryBinaryMarketsResponse, QueryDenomDecimalRequest, QueryDenomDecimalResponse, QueryDenomDecimalsRequest, QueryDenomDecimalsResponse, QueryDerivativeMarketAddressRequest, QueryDerivativeMarketAddressResponse, QueryDerivativeMarketRequest, QueryDerivativeMarketResponse, QueryDerivativeMarketsRequest, QueryDerivativeMarketsResponse, QueryDerivativeMidPriceAndTOBRequest, QueryDerivativeMidPriceAndTOBResponse, QueryDerivativeOrderbookRequest, QueryDerivativeOrderbookResponse, QueryDerivativeOrdersByHashesRequest, QueryDerivativeOrdersByHashesResponse, QueryExchangeBalancesRequest, QueryExchangeBalancesResponse, QueryExchangeParamsRequest, QueryExchangeParamsResponse, QueryExpiryFuturesMarketInfoRequest, QueryExpiryFuturesMarketInfoResponse, QueryFeeDiscountAccountInfoRequest, QueryFeeDiscountAccountInfoResponse, QueryFeeDiscountScheduleRequest, QueryFeeDiscountScheduleResponse, QueryFeeDiscountTierStatisticsRequest, QueryFeeDiscountTierStatisticsResponse, QueryFullSpotMarketRequest, QueryFullSpotMarketResponse, QueryFullSpotMarketsRequest, QueryFullSpotMarketsResponse, QueryHistoricalTradeRecordsRequest, QueryHistoricalTradeRecordsResponse, QueryIsOptedOutOfRewardsRequest, QueryIsOptedOutOfRewardsResponse, QueryMarketAtomicExecutionFeeMultiplierRequest, QueryMarketAtomicExecutionFeeMultiplierResponse, QueryMarketIDFromVaultRequest, QueryMarketIDFromVaultResponse, QueryMarketVolatilityRequest, QueryMarketVolatilityResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryOptedOutOfRewardsAccountsRequest, QueryOptedOutOfRewardsAccountsResponse, QueryPerpetualMarketFundingRequest, QueryPerpetualMarketFundingResponse, QueryPerpetualMarketInfoRequest, QueryPerpetualMarketInfoResponse, QueryPositionsRequest, QueryPositionsResponse, QuerySpotMarketRequest, QuerySpotMarketResponse, QuerySpotMarketsRequest, QuerySpotMarketsResponse, QuerySpotMidPriceAndTOBRequest, QuerySpotMidPriceAndTOBResponse, QuerySpotOrderbookRequest, QuerySpotOrderbookResponse, QuerySpotOrdersByHashesRequest, QuerySpotOrdersByHashesResponse, QuerySubaccountDepositRequest, QuerySubaccountDepositResponse, QuerySubaccountDepositsRequest, QuerySubaccountDepositsResponse, QuerySubaccountEffectivePositionInMarketRequest, QuerySubaccountEffectivePositionInMarketResponse, QuerySubaccountOrderMetadataRequest, QuerySubaccountOrderMetadataResponse, QuerySubaccountOrdersRequest, QuerySubaccountOrdersResponse, QuerySubaccountPositionInMarketRequest, QuerySubaccountPositionInMarketResponse, QuerySubaccountPositionsRequest, QuerySubaccountPositionsResponse, QuerySubaccountTradeNonceRequest, QuerySubaccountTradeNonceResponse, QueryTraderDerivativeConditionalOrdersRequest, QueryTraderDerivativeConditionalOrdersResponse, QueryTraderDerivativeOrdersRequest, QueryTraderDerivativeOrdersResponse, QueryTradeRewardCampaignRequest, QueryTradeRewardCampaignResponse, QueryTradeRewardPointsRequest, QueryTradeRewardPointsResponse, QueryTraderSpotOrdersRequest, QueryTraderSpotOrdersResponse } from "./query_pb.js"; +import { MitoVaultInfosRequest, MitoVaultInfosResponse, QueryAccountAddressDerivativeOrdersRequest, QueryAccountAddressDerivativeOrdersResponse, QueryAccountAddressSpotOrdersRequest, QueryAccountAddressSpotOrdersResponse, QueryActiveStakeGrantRequest, QueryActiveStakeGrantResponse, QueryAggregateMarketVolumeRequest, QueryAggregateMarketVolumeResponse, QueryAggregateMarketVolumesRequest, QueryAggregateMarketVolumesResponse, QueryAggregateVolumeRequest, QueryAggregateVolumeResponse, QueryAggregateVolumesRequest, QueryAggregateVolumesResponse, QueryBalanceMismatchesRequest, QueryBalanceMismatchesResponse, QueryBalanceWithBalanceHoldsRequest, QueryBalanceWithBalanceHoldsResponse, QueryBinaryMarketsRequest, QueryBinaryMarketsResponse, QueryDenomDecimalRequest, QueryDenomDecimalResponse, QueryDenomDecimalsRequest, QueryDenomDecimalsResponse, QueryDenomMinNotionalRequest, QueryDenomMinNotionalResponse, QueryDenomMinNotionalsRequest, QueryDenomMinNotionalsResponse, QueryDerivativeMarketAddressRequest, QueryDerivativeMarketAddressResponse, QueryDerivativeMarketRequest, QueryDerivativeMarketResponse, QueryDerivativeMarketsRequest, QueryDerivativeMarketsResponse, QueryDerivativeMidPriceAndTOBRequest, QueryDerivativeMidPriceAndTOBResponse, QueryDerivativeOrderbookRequest, QueryDerivativeOrderbookResponse, QueryDerivativeOrdersByHashesRequest, QueryDerivativeOrdersByHashesResponse, QueryExchangeBalancesRequest, QueryExchangeBalancesResponse, QueryExchangeParamsRequest, QueryExchangeParamsResponse, QueryExpiryFuturesMarketInfoRequest, QueryExpiryFuturesMarketInfoResponse, QueryFeeDiscountAccountInfoRequest, QueryFeeDiscountAccountInfoResponse, QueryFeeDiscountScheduleRequest, QueryFeeDiscountScheduleResponse, QueryFeeDiscountTierStatisticsRequest, QueryFeeDiscountTierStatisticsResponse, QueryFullDerivativeOrderbookRequest, QueryFullDerivativeOrderbookResponse, QueryFullSpotMarketRequest, QueryFullSpotMarketResponse, QueryFullSpotMarketsRequest, QueryFullSpotMarketsResponse, QueryFullSpotOrderbookRequest, QueryFullSpotOrderbookResponse, QueryGrantAuthorizationRequest, QueryGrantAuthorizationResponse, QueryGrantAuthorizationsRequest, QueryGrantAuthorizationsResponse, QueryHistoricalTradeRecordsRequest, QueryHistoricalTradeRecordsResponse, QueryIsOptedOutOfRewardsRequest, QueryIsOptedOutOfRewardsResponse, QueryMarketAtomicExecutionFeeMultiplierRequest, QueryMarketAtomicExecutionFeeMultiplierResponse, QueryMarketBalanceRequest, QueryMarketBalanceResponse, QueryMarketBalancesRequest, QueryMarketBalancesResponse, QueryMarketIDFromVaultRequest, QueryMarketIDFromVaultResponse, QueryMarketVolatilityRequest, QueryMarketVolatilityResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryOptedOutOfRewardsAccountsRequest, QueryOptedOutOfRewardsAccountsResponse, QueryPerpetualMarketFundingRequest, QueryPerpetualMarketFundingResponse, QueryPerpetualMarketInfoRequest, QueryPerpetualMarketInfoResponse, QueryPositionsRequest, QueryPositionsResponse, QuerySpotMarketRequest, QuerySpotMarketResponse, QuerySpotMarketsRequest, QuerySpotMarketsResponse, QuerySpotMidPriceAndTOBRequest, QuerySpotMidPriceAndTOBResponse, QuerySpotOrderbookRequest, QuerySpotOrderbookResponse, QuerySpotOrdersByHashesRequest, QuerySpotOrdersByHashesResponse, QuerySubaccountDepositRequest, QuerySubaccountDepositResponse, QuerySubaccountDepositsRequest, QuerySubaccountDepositsResponse, QuerySubaccountEffectivePositionInMarketRequest, QuerySubaccountEffectivePositionInMarketResponse, QuerySubaccountOrderMetadataRequest, QuerySubaccountOrderMetadataResponse, QuerySubaccountOrdersRequest, QuerySubaccountOrdersResponse, QuerySubaccountPositionInMarketRequest, QuerySubaccountPositionInMarketResponse, QuerySubaccountPositionsRequest, QuerySubaccountPositionsResponse, QuerySubaccountTradeNonceRequest, QuerySubaccountTradeNonceResponse, QueryTraderDerivativeConditionalOrdersRequest, QueryTraderDerivativeConditionalOrdersResponse, QueryTraderDerivativeOrdersRequest, QueryTraderDerivativeOrdersResponse, QueryTradeRewardCampaignRequest, QueryTradeRewardCampaignResponse, QueryTradeRewardPointsRequest, QueryTradeRewardPointsResponse, QueryTraderSpotOrdersRequest, QueryTraderSpotOrdersResponse } from "./query_pb.js"; const TYPE_NAME = "injective.exchange.v1beta1.Query"; +/** + * @generated from rpc injective.exchange.v1beta1.Query.L3DerivativeOrderBook + */ +export const QueryL3DerivativeOrderBookService = { + typeName: TYPE_NAME, + method: "L3DerivativeOrderBook", + Request: QueryFullDerivativeOrderbookRequest, + Response: QueryFullDerivativeOrderbookResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v1beta1.Query.L3SpotOrderBook + */ +export const QueryL3SpotOrderBookService = { + typeName: TYPE_NAME, + method: "L3SpotOrderBook", + Request: QueryFullSpotOrderbookRequest, + Response: QueryFullSpotOrderbookResponse, +} as const; + /** * Retrieves exchange params * @@ -661,7 +681,7 @@ export const QueryMarketVolatilityService = { } as const; /** - * Retrieves a spot market's orderbook by marketID + * Retrieves all binary options markets * * @generated from rpc injective.exchange.v1beta1.Query.BinaryOptionsMarkets */ @@ -694,3 +714,87 @@ export const QueryMarketAtomicExecutionFeeMultiplierService = { Response: QueryMarketAtomicExecutionFeeMultiplierResponse, } as const; +/** + * Retrieves the active stake grant for a grantee + * + * @generated from rpc injective.exchange.v1beta1.Query.ActiveStakeGrant + */ +export const QueryActiveStakeGrantService = { + typeName: TYPE_NAME, + method: "ActiveStakeGrant", + Request: QueryActiveStakeGrantRequest, + Response: QueryActiveStakeGrantResponse, +} as const; + +/** + * Retrieves the grant authorization amount for a granter and grantee + * + * @generated from rpc injective.exchange.v1beta1.Query.GrantAuthorization + */ +export const QueryGrantAuthorizationService = { + typeName: TYPE_NAME, + method: "GrantAuthorization", + Request: QueryGrantAuthorizationRequest, + Response: QueryGrantAuthorizationResponse, +} as const; + +/** + * Retrieves the grant authorization amount for a granter and grantee + * + * @generated from rpc injective.exchange.v1beta1.Query.GrantAuthorizations + */ +export const QueryGrantAuthorizationsService = { + typeName: TYPE_NAME, + method: "GrantAuthorizations", + Request: QueryGrantAuthorizationsRequest, + Response: QueryGrantAuthorizationsResponse, +} as const; + +/** + * Retrieves a derivative or binary options market's balance + * + * @generated from rpc injective.exchange.v1beta1.Query.MarketBalance + */ +export const QueryMarketBalanceService = { + typeName: TYPE_NAME, + method: "MarketBalance", + Request: QueryMarketBalanceRequest, + Response: QueryMarketBalanceResponse, +} as const; + +/** + * Retrieves all derivative or binary options market balances + * + * @generated from rpc injective.exchange.v1beta1.Query.MarketBalances + */ +export const QueryMarketBalancesService = { + typeName: TYPE_NAME, + method: "MarketBalances", + Request: QueryMarketBalancesRequest, + Response: QueryMarketBalancesResponse, +} as const; + +/** + * Retrieves the min notional for a denom + * + * @generated from rpc injective.exchange.v1beta1.Query.DenomMinNotional + */ +export const QueryDenomMinNotionalService = { + typeName: TYPE_NAME, + method: "DenomMinNotional", + Request: QueryDenomMinNotionalRequest, + Response: QueryDenomMinNotionalResponse, +} as const; + +/** + * Retrieves the min notionals for all denoms + * + * @generated from rpc injective.exchange.v1beta1.Query.DenomMinNotionals + */ +export const QueryDenomMinNotionalsService = { + typeName: TYPE_NAME, + method: "DenomMinNotionals", + Request: QueryDenomMinNotionalsRequest, + Response: QueryDenomMinNotionalsResponse, +} as const; + diff --git a/src/protobufs/injective/exchange/v1beta1/query_pb.ts b/src/protobufs/injective/exchange/v1beta1/query_pb.ts index 184064b6..9c89627d 100644 --- a/src/protobufs/injective/exchange/v1beta1/query_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/query_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AggregateAccountVolumeRecord, BinaryOptionsMarket, CampaignRewardPool, DenomDecimals, Deposit, DerivativeMarket, ExpiryFuturesMarketInfo, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, Level, MarketVolume, MidPriceAndTOB, Params, PerpetualMarketFunding, PerpetualMarketInfo, Position, SpotMarket, SubaccountOrderbookMetadata, SubaccountOrderData, TradeRecord, TradeRecords, TradingRewardCampaignInfo, VolumeRecord } from "./exchange_pb.js"; +import { ActiveGrant, AggregateAccountVolumeRecord, BinaryOptionsMarket, CampaignRewardPool, DenomDecimals, DenomMinNotional, Deposit, DerivativeMarket, EffectiveGrant, ExpiryFuturesMarketInfo, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, GrantAuthorization, Level, MarketVolume, MidPriceAndTOB, Params, PerpetualMarketFunding, PerpetualMarketInfo, Position, SpotMarket, SubaccountOrderbookMetadata, SubaccountOrderData, TradeRecord, TradeRecords, TradingRewardCampaignInfo, VolumeRecord } from "./exchange_pb.js"; import { Balance, DerivativePosition, GenesisState } from "./genesis_pb.js"; import { MetadataStatistics } from "../../oracle/v1beta1/oracle_pb.js"; @@ -119,11 +119,15 @@ export class Subaccount extends Message { */ export class QuerySubaccountOrdersRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; @@ -205,16 +209,22 @@ export class QuerySubaccountOrdersResponse extends Message { /** + * the subaccount orderbook metadata + * * @generated from field: injective.exchange.v1beta1.SubaccountOrderbookMetadata metadata = 1; */ metadata?: SubaccountOrderbookMetadata; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; /** + * true if the order is for buy orders + * * @generated from field: bool isBuy = 3; */ isBuy = false; @@ -331,11 +341,15 @@ export class QueryExchangeParamsResponse extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * subaccount details + * * @generated from field: injective.exchange.v1beta1.Subaccount subaccount = 2; */ subaccount?: Subaccount; @@ -996,11 +1010,15 @@ export class QueryAggregateMarketVolumesResponse extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the denom of the balance + * * @generated from field: string denom = 2; */ denom = ""; @@ -1261,21 +1279,31 @@ export class QuerySpotOrderbookRequest extends Message { /** - * price of the order + * price of the order (in chain format) * * @generated from field: string price = 1; */ price = ""; /** - * quantity of the order + * quantity of the order (in chain format) * * @generated from field: string quantity = 2; */ quantity = ""; /** - * the amount of the quantity remaining fillable + * the amount of the quantity remaining fillable (in chain format) * * @generated from field: string fillable = 3; */ @@ -1825,10 +1853,19 @@ export class TrimmedSpotLimitOrder extends Message { isBuy = false; /** + * the order hash (optional) + * * @generated from field: string order_hash = 5; */ orderHash = ""; + /** + * the client order ID (optional) + * + * @generated from field: string cid = 6; + */ + cid = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1842,6 +1879,7 @@ export class TrimmedSpotLimitOrder extends Message { { no: 3, name: "fillable", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedSpotLimitOrder { @@ -1991,21 +2029,21 @@ export class QuerySpotMidPriceAndTOBRequest extends Message { /** - * mid price of the market + * mid price of the market (in chain format) * * @generated from field: string mid_price = 1; */ midPrice = ""; /** - * best buy price of the market + * best buy price of the market (in chain format) * * @generated from field: string best_buy_price = 2; */ bestBuyPrice = ""; /** - * best sell price of the market + * best sell price of the market (in chain format) * * @generated from field: string best_sell_price = 3; */ @@ -2504,28 +2542,28 @@ export class QueryAccountAddressDerivativeOrdersRequest extends Message { /** - * price of the order + * price of the order (in chain format) * * @generated from field: string price = 1; */ price = ""; /** - * quantity of the order + * quantity of the order (in chain format) * * @generated from field: string quantity = 2; */ quantity = ""; /** - * margin of the order + * margin of the order (in chain format) * * @generated from field: string margin = 3; */ margin = ""; /** - * the amount of the quantity remaining fillable + * the amount of the quantity remaining fillable (in chain format) * * @generated from field: string fillable = 4; */ @@ -2534,17 +2572,24 @@ export class TrimmedDerivativeLimitOrder extends Message) { super(); proto3.util.initPartial(data, this); @@ -2559,6 +2604,7 @@ export class TrimmedDerivativeLimitOrder extends Message): TrimmedDerivativeLimitOrder { @@ -2908,21 +2954,29 @@ export class PerpetualMarketState extends Message { */ export class FullDerivativeMarket extends Message { /** + * derivative market details + * * @generated from field: injective.exchange.v1beta1.DerivativeMarket market = 1; */ market?: DerivativeMarket; /** + * perpetual market state or expiry futures market state + * * @generated from oneof injective.exchange.v1beta1.FullDerivativeMarket.info */ info: { /** + * perpetual market info + * * @generated from field: injective.exchange.v1beta1.PerpetualMarketState perpetual_info = 2; */ value: PerpetualMarketState; case: "perpetualInfo"; } | { /** + * expiry futures market info + * * @generated from field: injective.exchange.v1beta1.ExpiryFuturesMarketInfo futures_info = 3; */ value: ExpiryFuturesMarketInfo; @@ -2930,6 +2984,8 @@ export class FullDerivativeMarket extends Message { } | { case: undefined; value?: undefined } = { case: undefined }; /** + * mark price (in chain format) + * * @generated from field: string mark_price = 4; */ markPrice = ""; @@ -3196,6 +3252,8 @@ export class QueryDerivativeMarketAddressResponse extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; @@ -3236,6 +3294,8 @@ export class QuerySubaccountTradeNonceRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; @@ -3276,11 +3336,15 @@ export class QuerySubaccountPositionsRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; @@ -3322,11 +3386,15 @@ export class QuerySubaccountPositionInMarketRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; @@ -3368,6 +3436,8 @@ export class QuerySubaccountEffectivePositionInMarketRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; @@ -3485,21 +3555,29 @@ export class QuerySubaccountPositionInMarketResponse extends Message { /** + * whether the position is long or short + * * @generated from field: bool is_long = 1; */ isLong = false; /** + * the quantity of the position (in chain format) + * * @generated from field: string quantity = 2; */ quantity = ""; /** + * the entry price of the position (in chain format) + * * @generated from field: string entry_price = 3; */ entryPrice = ""; /** + * the effective margin of the position (in chain format) + * * @generated from field: string effective_margin = 4; */ effectiveMargin = ""; @@ -4591,36 +4669,50 @@ export class QueryBalanceMismatchesRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccountId = 1; */ subaccountId = ""; /** + * the denom of the balance + * * @generated from field: string denom = 2; */ denom = ""; /** + * the available balance + * * @generated from field: string available = 3; */ available = ""; /** + * the total balance + * * @generated from field: string total = 4; */ total = ""; /** + * the balance hold + * * @generated from field: string balance_hold = 5; */ balanceHold = ""; /** + * the expected total balance + * * @generated from field: string expected_total = 6; */ expectedTotal = ""; /** + * the difference between the total balance and the expected total balance + * * @generated from field: string difference = 7; */ difference = ""; @@ -4738,26 +4830,36 @@ export class QueryBalanceWithBalanceHoldsRequest extends Message { /** + * the subaccount ID + * * @generated from field: string subaccountId = 1; */ subaccountId = ""; /** + * the denom of the balance + * * @generated from field: string denom = 2; */ denom = ""; /** + * the available balance + * * @generated from field: string available = 3; */ available = ""; /** + * the total balance + * * @generated from field: string total = 4; */ total = ""; /** + * the balance on hold + * * @generated from field: string balance_hold = 5; */ balanceHold = ""; @@ -4993,21 +5095,29 @@ export class MitoVaultInfosRequest extends Message { */ export class MitoVaultInfosResponse extends Message { /** + * list of master addresses + * * @generated from field: repeated string master_addresses = 1; */ masterAddresses: string[] = []; /** + * list of derivative addresses + * * @generated from field: repeated string derivative_addresses = 2; */ derivativeAddresses: string[] = []; /** + * list of spot addresses + * * @generated from field: repeated string spot_addresses = 3; */ spotAddresses: string[] = []; /** + * list of cw20 addresses + * * @generated from field: repeated string cw20_addresses = 4; */ cw20Addresses: string[] = []; @@ -5455,11 +5565,15 @@ export class QueryBinaryMarketsResponse extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; @@ -5498,28 +5612,28 @@ export class QueryTraderDerivativeConditionalOrdersRequest extends Message { /** - * price of the order + * price of the order (in chain format) * * @generated from field: string price = 1; */ price = ""; /** - * quantity of the order + * quantity of the order (in chain format) * * @generated from field: string quantity = 2; */ quantity = ""; /** - * margin of the order + * margin of the order (in chain format) * * @generated from field: string margin = 3; */ margin = ""; /** - * price to trigger the order + * price to trigger the order (in chain format) * * @generated from field: string triggerPrice = 4; */ @@ -5528,22 +5642,31 @@ export class TrimmedDerivativeConditionalOrder extends Message) { super(); proto3.util.initPartial(data, this); @@ -5559,6 +5682,7 @@ export class TrimmedDerivativeConditionalOrder extends Message): TrimmedDerivativeConditionalOrder { @@ -5618,11 +5742,240 @@ export class QueryTraderDerivativeConditionalOrdersResponse extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryFullSpotOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotOrderbookRequest | PlainMessage | undefined, b: QueryFullSpotOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotOrderbookRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryFullSpotOrderbookResponse + */ +export class QueryFullSpotOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v1beta1.TrimmedLimitOrder Bids = 1; + */ + Bids: TrimmedLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v1beta1.TrimmedLimitOrder Asks = 2; + */ + Asks: TrimmedLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryFullSpotOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Bids", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 2, name: "Asks", kind: "message", T: TrimmedLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotOrderbookResponse | PlainMessage | undefined, b: QueryFullSpotOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotOrderbookResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryFullDerivativeOrderbookRequest + */ +export class QueryFullDerivativeOrderbookRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryFullDerivativeOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDerivativeOrderbookRequest | PlainMessage | undefined, b: QueryFullDerivativeOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDerivativeOrderbookRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryFullDerivativeOrderbookResponse + */ +export class QueryFullDerivativeOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v1beta1.TrimmedLimitOrder Bids = 1; + */ + Bids: TrimmedLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v1beta1.TrimmedLimitOrder Asks = 2; + */ + Asks: TrimmedLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryFullDerivativeOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Bids", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 2, name: "Asks", kind: "message", T: TrimmedLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDerivativeOrderbookResponse | PlainMessage | undefined, b: QueryFullDerivativeOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDerivativeOrderbookResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.TrimmedLimitOrder + */ +export class TrimmedLimitOrder extends Message { + /** + * the price of the order (in chain format) + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * the quantity of the order (in chain format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 3; + */ + orderHash = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 4; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.TrimmedLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: TrimmedLimitOrder | PlainMessage | undefined, b: TrimmedLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(TrimmedLimitOrder, a, b); + } +} + /** * @generated from message injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierRequest */ export class QueryMarketAtomicExecutionFeeMultiplierRequest extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; @@ -5692,3 +6045,574 @@ export class QueryMarketAtomicExecutionFeeMultiplierResponse extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryActiveStakeGrantRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryActiveStakeGrantRequest | PlainMessage | undefined, b: QueryActiveStakeGrantRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActiveStakeGrantRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryActiveStakeGrantResponse + */ +export class QueryActiveStakeGrantResponse extends Message { + /** + * @generated from field: injective.exchange.v1beta1.ActiveGrant grant = 1; + */ + grant?: ActiveGrant; + + /** + * @generated from field: injective.exchange.v1beta1.EffectiveGrant effective_grant = 2; + */ + effectiveGrant?: EffectiveGrant; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryActiveStakeGrantResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grant", kind: "message", T: ActiveGrant }, + { no: 2, name: "effective_grant", kind: "message", T: EffectiveGrant }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryActiveStakeGrantResponse | PlainMessage | undefined, b: QueryActiveStakeGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActiveStakeGrantResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryGrantAuthorizationRequest + */ +export class QueryGrantAuthorizationRequest extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string grantee = 2; + */ + grantee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryGrantAuthorizationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationRequest | PlainMessage | undefined, b: QueryGrantAuthorizationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryGrantAuthorizationResponse + */ +export class QueryGrantAuthorizationResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryGrantAuthorizationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationResponse | PlainMessage | undefined, b: QueryGrantAuthorizationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryGrantAuthorizationsRequest + */ +export class QueryGrantAuthorizationsRequest extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryGrantAuthorizationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationsRequest | PlainMessage | undefined, b: QueryGrantAuthorizationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryGrantAuthorizationsResponse + */ +export class QueryGrantAuthorizationsResponse extends Message { + /** + * @generated from field: string total_grant_amount = 1; + */ + totalGrantAmount = ""; + + /** + * @generated from field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryGrantAuthorizationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_grant_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationsResponse | PlainMessage | undefined, b: QueryGrantAuthorizationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationsResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryMarketBalanceRequest + */ +export class QueryMarketBalanceRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryMarketBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalanceRequest | PlainMessage | undefined, b: QueryMarketBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalanceRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryMarketBalanceResponse + */ +export class QueryMarketBalanceResponse extends Message { + /** + * @generated from field: injective.exchange.v1beta1.MarketBalance balance = 1; + */ + balance?: MarketBalance; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryMarketBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: MarketBalance }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalanceResponse | PlainMessage | undefined, b: QueryMarketBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalanceResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryMarketBalancesRequest + */ +export class QueryMarketBalancesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryMarketBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalancesRequest | PlainMessage | undefined, b: QueryMarketBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalancesRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryMarketBalancesResponse + */ +export class QueryMarketBalancesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v1beta1.MarketBalance balances = 1; + */ + balances: MarketBalance[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryMarketBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balances", kind: "message", T: MarketBalance, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalancesResponse | PlainMessage | undefined, b: QueryMarketBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalancesResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MarketBalance + */ +export class MarketBalance extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string balance = 2; + */ + balance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketBalance { + return new MarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketBalance { + return new MarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketBalance { + return new MarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: MarketBalance | PlainMessage | undefined, b: MarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketBalance, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryDenomMinNotionalRequest + */ +export class QueryDenomMinNotionalRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryDenomMinNotionalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalRequest | PlainMessage | undefined, b: QueryDenomMinNotionalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryDenomMinNotionalResponse + */ +export class QueryDenomMinNotionalResponse extends Message { + /** + * the minimum notional amount for the denom (in chain format) + * + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryDenomMinNotionalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalResponse | PlainMessage | undefined, b: QueryDenomMinNotionalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryDenomMinNotionalsRequest + */ +export class QueryDenomMinNotionalsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryDenomMinNotionalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalsRequest | PlainMessage | undefined, b: QueryDenomMinNotionalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.QueryDenomMinNotionalsResponse + */ +export class QueryDenomMinNotionalsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v1beta1.DenomMinNotional denom_min_notionals = 1; + */ + denomMinNotionals: DenomMinNotional[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.QueryDenomMinNotionalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalsResponse | PlainMessage | undefined, b: QueryDenomMinNotionalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalsResponse, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v1beta1/tx_cosmes.ts b/src/protobufs/injective/exchange/v1beta1/tx_cosmes.ts index de214e77..f28090ef 100644 --- a/src/protobufs/injective/exchange/v1beta1/tx_cosmes.ts +++ b/src/protobufs/injective/exchange/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgAdminUpdateBinaryOptionsMarket, MsgAdminUpdateBinaryOptionsMarketResponse, MsgBatchCancelBinaryOptionsOrders, MsgBatchCancelBinaryOptionsOrdersResponse, MsgBatchCancelDerivativeOrders, MsgBatchCancelDerivativeOrdersResponse, MsgBatchCancelSpotOrders, MsgBatchCancelSpotOrdersResponse, MsgBatchCreateDerivativeLimitOrders, MsgBatchCreateDerivativeLimitOrdersResponse, MsgBatchCreateSpotLimitOrders, MsgBatchCreateSpotLimitOrdersResponse, MsgBatchUpdateOrders, MsgBatchUpdateOrdersResponse, MsgCancelBinaryOptionsOrder, MsgCancelBinaryOptionsOrderResponse, MsgCancelDerivativeOrder, MsgCancelDerivativeOrderResponse, MsgCancelSpotOrder, MsgCancelSpotOrderResponse, MsgCreateBinaryOptionsLimitOrder, MsgCreateBinaryOptionsLimitOrderResponse, MsgCreateBinaryOptionsMarketOrder, MsgCreateBinaryOptionsMarketOrderResponse, MsgCreateDerivativeLimitOrder, MsgCreateDerivativeLimitOrderResponse, MsgCreateDerivativeMarketOrder, MsgCreateDerivativeMarketOrderResponse, MsgCreateSpotLimitOrder, MsgCreateSpotLimitOrderResponse, MsgCreateSpotMarketOrder, MsgCreateSpotMarketOrderResponse, MsgDeposit, MsgDepositResponse, MsgEmergencySettleMarket, MsgEmergencySettleMarketResponse, MsgExternalTransfer, MsgExternalTransferResponse, MsgIncreasePositionMargin, MsgIncreasePositionMarginResponse, MsgInstantBinaryOptionsMarketLaunch, MsgInstantBinaryOptionsMarketLaunchResponse, MsgInstantExpiryFuturesMarketLaunch, MsgInstantExpiryFuturesMarketLaunchResponse, MsgInstantPerpetualMarketLaunch, MsgInstantPerpetualMarketLaunchResponse, MsgInstantSpotMarketLaunch, MsgInstantSpotMarketLaunchResponse, MsgLiquidatePosition, MsgLiquidatePositionResponse, MsgPrivilegedExecuteContract, MsgPrivilegedExecuteContractResponse, MsgReclaimLockedFunds, MsgReclaimLockedFundsResponse, MsgRewardsOptOut, MsgRewardsOptOutResponse, MsgSubaccountTransfer, MsgSubaccountTransferResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; +import { MsgActivateStakeGrant, MsgActivateStakeGrantResponse, MsgAdminUpdateBinaryOptionsMarket, MsgAdminUpdateBinaryOptionsMarketResponse, MsgAuthorizeStakeGrants, MsgAuthorizeStakeGrantsResponse, MsgBatchCancelBinaryOptionsOrders, MsgBatchCancelBinaryOptionsOrdersResponse, MsgBatchCancelDerivativeOrders, MsgBatchCancelDerivativeOrdersResponse, MsgBatchCancelSpotOrders, MsgBatchCancelSpotOrdersResponse, MsgBatchCreateDerivativeLimitOrders, MsgBatchCreateDerivativeLimitOrdersResponse, MsgBatchCreateSpotLimitOrders, MsgBatchCreateSpotLimitOrdersResponse, MsgBatchExchangeModification, MsgBatchExchangeModificationResponse, MsgBatchUpdateOrders, MsgBatchUpdateOrdersResponse, MsgCancelBinaryOptionsOrder, MsgCancelBinaryOptionsOrderResponse, MsgCancelDerivativeOrder, MsgCancelDerivativeOrderResponse, MsgCancelSpotOrder, MsgCancelSpotOrderResponse, MsgCreateBinaryOptionsLimitOrder, MsgCreateBinaryOptionsLimitOrderResponse, MsgCreateBinaryOptionsMarketOrder, MsgCreateBinaryOptionsMarketOrderResponse, MsgCreateDerivativeLimitOrder, MsgCreateDerivativeLimitOrderResponse, MsgCreateDerivativeMarketOrder, MsgCreateDerivativeMarketOrderResponse, MsgCreateSpotLimitOrder, MsgCreateSpotLimitOrderResponse, MsgCreateSpotMarketOrder, MsgCreateSpotMarketOrderResponse, MsgDecreasePositionMargin, MsgDecreasePositionMarginResponse, MsgDeposit, MsgDepositResponse, MsgEmergencySettleMarket, MsgEmergencySettleMarketResponse, MsgExternalTransfer, MsgExternalTransferResponse, MsgIncreasePositionMargin, MsgIncreasePositionMarginResponse, MsgInstantBinaryOptionsMarketLaunch, MsgInstantBinaryOptionsMarketLaunchResponse, MsgInstantSpotMarketLaunch, MsgInstantSpotMarketLaunchResponse, MsgLiquidatePosition, MsgLiquidatePositionResponse, MsgPrivilegedExecuteContract, MsgPrivilegedExecuteContractResponse, MsgRewardsOptOut, MsgRewardsOptOutResponse, MsgSubaccountTransfer, MsgSubaccountTransferResponse, MsgUpdateDerivativeMarket, MsgUpdateDerivativeMarketResponse, MsgUpdateSpotMarket, MsgUpdateSpotMarketResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; const TYPE_NAME = "injective.exchange.v1beta1.Msg"; @@ -46,32 +46,6 @@ export const MsgInstantSpotMarketLaunchService = { Response: MsgInstantSpotMarketLaunchResponse, } as const; -/** - * InstantPerpetualMarketLaunch defines a method for creating a new perpetual - * futures market by paying listing fee without governance - * - * @generated from rpc injective.exchange.v1beta1.Msg.InstantPerpetualMarketLaunch - */ -export const MsgInstantPerpetualMarketLaunchService = { - typeName: TYPE_NAME, - method: "InstantPerpetualMarketLaunch", - Request: MsgInstantPerpetualMarketLaunch, - Response: MsgInstantPerpetualMarketLaunchResponse, -} as const; - -/** - * InstantExpiryFuturesMarketLaunch defines a method for creating a new expiry - * futures market by paying listing fee without governance - * - * @generated from rpc injective.exchange.v1beta1.Msg.InstantExpiryFuturesMarketLaunch - */ -export const MsgInstantExpiryFuturesMarketLaunchService = { - typeName: TYPE_NAME, - method: "InstantExpiryFuturesMarketLaunch", - Request: MsgInstantExpiryFuturesMarketLaunch, - Response: MsgInstantExpiryFuturesMarketLaunchResponse, -} as const; - /** * CreateSpotLimitOrder defines a method for creating a new spot limit order. * @@ -350,6 +324,18 @@ export const MsgIncreasePositionMarginService = { Response: MsgIncreasePositionMarginResponse, } as const; +/** + * DecreasePositionMargin defines a method for decreasing margin of a position + * + * @generated from rpc injective.exchange.v1beta1.Msg.DecreasePositionMargin + */ +export const MsgDecreasePositionMarginService = { + typeName: TYPE_NAME, + method: "DecreasePositionMargin", + Request: MsgDecreasePositionMargin, + Response: MsgDecreasePositionMarginResponse, +} as const; + /** * RewardsOptOut defines a method for opting out of rewards * @@ -376,22 +362,57 @@ export const MsgAdminUpdateBinaryOptionsMarketService = { } as const; /** - * @generated from rpc injective.exchange.v1beta1.Msg.ReclaimLockedFunds + * UpdateSpotMarket modifies certain spot market fields (admin only) + * + * @generated from rpc injective.exchange.v1beta1.Msg.UpdateSpotMarket + */ +export const MsgUpdateSpotMarketService = { + typeName: TYPE_NAME, + method: "UpdateSpotMarket", + Request: MsgUpdateSpotMarket, + Response: MsgUpdateSpotMarketResponse, +} as const; + +/** + * UpdateDerivativeMarket modifies certain derivative market fields (admin + * only) + * + * @generated from rpc injective.exchange.v1beta1.Msg.UpdateDerivativeMarket + */ +export const MsgUpdateDerivativeMarketService = { + typeName: TYPE_NAME, + method: "UpdateDerivativeMarket", + Request: MsgUpdateDerivativeMarket, + Response: MsgUpdateDerivativeMarketResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v1beta1.Msg.AuthorizeStakeGrants + */ +export const MsgAuthorizeStakeGrantsService = { + typeName: TYPE_NAME, + method: "AuthorizeStakeGrants", + Request: MsgAuthorizeStakeGrants, + Response: MsgAuthorizeStakeGrantsResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v1beta1.Msg.ActivateStakeGrant */ -export const MsgReclaimLockedFundsService = { +export const MsgActivateStakeGrantService = { typeName: TYPE_NAME, - method: "ReclaimLockedFunds", - Request: MsgReclaimLockedFunds, - Response: MsgReclaimLockedFundsResponse, + method: "ActivateStakeGrant", + Request: MsgActivateStakeGrant, + Response: MsgActivateStakeGrantResponse, } as const; /** - * @generated from rpc injective.exchange.v1beta1.Msg.UpdateParams + * @generated from rpc injective.exchange.v1beta1.Msg.BatchExchangeModification */ -export const MsgUpdateParamsService = { +export const MsgBatchExchangeModificationService = { typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, + method: "BatchExchangeModification", + Request: MsgBatchExchangeModification, + Response: MsgBatchExchangeModificationResponse, } as const; diff --git a/src/protobufs/injective/exchange/v1beta1/tx_pb.ts b/src/protobufs/injective/exchange/v1beta1/tx_pb.ts index 7c943bc5..c1174fcc 100644 --- a/src/protobufs/injective/exchange/v1beta1/tx_pb.ts +++ b/src/protobufs/injective/exchange/v1beta1/tx_pb.ts @@ -5,9 +5,246 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { DerivativeOrder, MarketStatus, Params, PositionDelta, SpotOrder } from "./exchange_pb.js"; +import { DerivativeOrder, GrantAuthorization, MarketStatus, Params, PositionDelta, SpotOrder } from "./exchange_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { OracleType } from "../../oracle/v1beta1/oracle_pb.js"; +import { BatchExchangeModificationProposal } from "./proposal_pb.js"; + +/** + * @generated from message injective.exchange.v1beta1.MsgUpdateSpotMarket + */ +export class MsgUpdateSpotMarket extends Message { + /** + * current admin address of the associated market + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * id of the market to be updated + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * (optional) updated ticker value + * + * @generated from field: string new_ticker = 3; + */ + newTicker = ""; + + /** + * (optional) updated min price tick size value + * + * @generated from field: string new_min_price_tick_size = 4; + */ + newMinPriceTickSize = ""; + + /** + * (optional) updated min quantity tick size value + * + * @generated from field: string new_min_quantity_tick_size = 5; + */ + newMinQuantityTickSize = ""; + + /** + * (optional) updated min notional + * + * @generated from field: string new_min_notional = 6; + */ + newMinNotional = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgUpdateSpotMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "new_min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotMarket | PlainMessage | undefined, b: MsgUpdateSpotMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotMarket, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgUpdateSpotMarketResponse + */ +export class MsgUpdateSpotMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgUpdateSpotMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotMarketResponse | PlainMessage | undefined, b: MsgUpdateSpotMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotMarketResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgUpdateDerivativeMarket + */ +export class MsgUpdateDerivativeMarket extends Message { + /** + * current admin address of the associated market + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * id of the market to be updated + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * (optional) updated value for ticker + * + * @generated from field: string new_ticker = 3; + */ + newTicker = ""; + + /** + * (optional) updated value for min_price_tick_size + * + * @generated from field: string new_min_price_tick_size = 4; + */ + newMinPriceTickSize = ""; + + /** + * (optional) updated value min_quantity_tick_size + * + * @generated from field: string new_min_quantity_tick_size = 5; + */ + newMinQuantityTickSize = ""; + + /** + * (optional) updated min notional + * + * @generated from field: string new_min_notional = 6; + */ + newMinNotional = ""; + + /** + * (optional) updated value for initial_margin_ratio + * + * @generated from field: string new_initial_margin_ratio = 7; + */ + newInitialMarginRatio = ""; + + /** + * (optional) updated value for maintenance_margin_ratio + * + * @generated from field: string new_maintenance_margin_ratio = 8; + */ + newMaintenanceMarginRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgUpdateDerivativeMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "new_min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "new_initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "new_maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDerivativeMarket | PlainMessage | undefined, b: MsgUpdateDerivativeMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDerivativeMarket, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgUpdateDerivativeMarketResponse + */ +export class MsgUpdateDerivativeMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgUpdateDerivativeMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDerivativeMarketResponse | PlainMessage | undefined, b: MsgUpdateDerivativeMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDerivativeMarketResponse, a, b); + } +} /** * @generated from message injective.exchange.v1beta1.MsgUpdateParams @@ -97,19 +334,23 @@ export class MsgUpdateParamsResponse extends Message { */ export class MsgDeposit extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** * (Optional) bytes32 subaccount ID to deposit funds into. If empty, the coin - * will be deposited to the sender's default subaccount address. + * will be deposited to the sender's default subaccount address * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the amount of the deposit (in chain format) + * * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; @@ -185,18 +426,22 @@ export class MsgDepositResponse extends Message { */ export class MsgWithdraw extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * bytes32 subaccount ID to withdraw funds from + * the subaccount ID to withdraw funds from * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the amount of the withdrawal (in chain format) + * * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; @@ -272,11 +517,15 @@ export class MsgWithdrawResponse extends Message { */ export class MsgCreateSpotLimitOrder extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the spot order to create + * * @generated from field: injective.exchange.v1beta1.SpotOrder order = 2; */ order?: SpotOrder; @@ -318,10 +567,19 @@ export class MsgCreateSpotLimitOrder extends Message { */ export class MsgCreateSpotLimitOrderResponse extends Message { /** + * the order hash + * * @generated from field: string order_hash = 1; */ orderHash = ""; + /** + * the client order ID + * + * @generated from field: string cid = 2; + */ + cid = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -331,6 +589,7 @@ export class MsgCreateSpotLimitOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotLimitOrderResponse { @@ -358,11 +617,15 @@ export class MsgCreateSpotLimitOrderResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the spot orders details + * * @generated from field: repeated injective.exchange.v1beta1.SpotOrder orders = 2; */ orders: SpotOrder[] = []; @@ -404,10 +667,26 @@ export class MsgBatchCreateSpotLimitOrders extends Message { /** + * the order hashes + * * @generated from field: repeated string order_hashes = 1; */ orderHashes: string[] = []; + /** + * the client order IDs + * + * @generated from field: repeated string created_orders_cids = 2; + */ + createdOrdersCids: string[] = []; + + /** + * the failed client order IDs + * + * @generated from field: repeated string failed_orders_cids = 3; + */ + failedOrdersCids: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -417,6 +696,8 @@ export class MsgBatchCreateSpotLimitOrdersResponse extends Message [ { no: 1, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "created_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "failed_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateSpotLimitOrdersResponse { @@ -444,19 +725,21 @@ export class MsgBatchCreateSpotLimitOrdersResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * Ticker for the spot market. + * the ticker for the spot market * * @generated from field: string ticker = 2; */ ticker = ""; /** - * type of coin to use as the base currency + * the type of coin to use as the base currency * * @generated from field: string base_denom = 3; */ @@ -484,6 +767,28 @@ export class MsgInstantSpotMarketLaunch extends Message) { super(); proto3.util.initPartial(data, this); @@ -498,6 +803,9 @@ export class MsgInstantSpotMarketLaunch extends Message): MsgInstantSpotMarketLaunch { @@ -653,6 +961,14 @@ export class MsgInstantPerpetualMarketLaunch extends Message) { super(); proto3.util.initPartial(data, this); @@ -674,6 +990,7 @@ export class MsgInstantPerpetualMarketLaunch extends Message): MsgInstantPerpetualMarketLaunch { @@ -735,26 +1052,28 @@ export class MsgInstantPerpetualMarketLaunchResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * Ticker for the derivative contract. + * the ticker for the derivative contract * * @generated from field: string ticker = 2; */ ticker = ""; /** - * Oracle symbol + * the oracle symbol * * @generated from field: string oracle_symbol = 3; */ oracleSymbol = ""; /** - * Oracle Provider + * the oracle provider * * @generated from field: string oracle_provider = 4; */ @@ -834,6 +1153,14 @@ export class MsgInstantBinaryOptionsMarketLaunch extends Message) { super(); proto3.util.initPartial(data, this); @@ -856,6 +1183,7 @@ export class MsgInstantBinaryOptionsMarketLaunch extends Message): MsgInstantBinaryOptionsMarketLaunch { @@ -1018,6 +1346,14 @@ export class MsgInstantExpiryFuturesMarketLaunch extends Message) { super(); proto3.util.initPartial(data, this); @@ -1040,6 +1376,7 @@ export class MsgInstantExpiryFuturesMarketLaunch extends Message): MsgInstantExpiryFuturesMarketLaunch { @@ -1156,6 +1493,11 @@ export class MsgCreateSpotMarketOrderResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1166,6 +1508,7 @@ export class MsgCreateSpotMarketOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "results", kind: "message", T: SpotMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotMarketOrderResponse { @@ -1291,6 +1634,11 @@ export class MsgCreateDerivativeLimitOrderResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1300,6 +1648,7 @@ export class MsgCreateDerivativeLimitOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeLimitOrderResponse { @@ -1376,6 +1725,11 @@ export class MsgCreateBinaryOptionsLimitOrderResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1385,6 +1739,7 @@ export class MsgCreateBinaryOptionsLimitOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsLimitOrderResponse { @@ -1461,6 +1816,16 @@ export class MsgBatchCreateDerivativeLimitOrdersResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1470,6 +1835,8 @@ export class MsgBatchCreateDerivativeLimitOrdersResponse extends Message [ { no: 1, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "created_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "failed_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateDerivativeLimitOrdersResponse { @@ -1763,59 +2130,79 @@ export class MsgBatchCancelBinaryOptionsOrdersResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * subaccount_id only used for the spot_market_ids_to_cancel_all and - * derivative_market_ids_to_cancel_all. + * the subaccount ID only used for the spot_market_ids_to_cancel_all and + * derivative_market_ids_to_cancel_all * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the spot market IDs to cancel all + * * @generated from field: repeated string spot_market_ids_to_cancel_all = 3; */ spotMarketIdsToCancelAll: string[] = []; /** + * the derivative market IDs to cancel all + * * @generated from field: repeated string derivative_market_ids_to_cancel_all = 4; */ derivativeMarketIdsToCancelAll: string[] = []; /** + * the spot orders to cancel + * * @generated from field: repeated injective.exchange.v1beta1.OrderData spot_orders_to_cancel = 5; */ spotOrdersToCancel: OrderData[] = []; /** + * the derivative orders to cancel + * * @generated from field: repeated injective.exchange.v1beta1.OrderData derivative_orders_to_cancel = 6; */ derivativeOrdersToCancel: OrderData[] = []; /** + * the spot orders to create + * * @generated from field: repeated injective.exchange.v1beta1.SpotOrder spot_orders_to_create = 7; */ spotOrdersToCreate: SpotOrder[] = []; /** + * the derivative orders to create + * * @generated from field: repeated injective.exchange.v1beta1.DerivativeOrder derivative_orders_to_create = 8; */ derivativeOrdersToCreate: DerivativeOrder[] = []; /** + * the binary options orders to cancel + * * @generated from field: repeated injective.exchange.v1beta1.OrderData binary_options_orders_to_cancel = 9; */ binaryOptionsOrdersToCancel: OrderData[] = []; /** + * the binary options market IDs to cancel all + * * @generated from field: repeated string binary_options_market_ids_to_cancel_all = 10; */ binaryOptionsMarketIdsToCancelAll: string[] = []; /** + * the binary options orders to create + * * @generated from field: repeated injective.exchange.v1beta1.DerivativeOrder binary_options_orders_to_create = 11; */ binaryOptionsOrdersToCreate: DerivativeOrder[] = []; @@ -1894,6 +2281,36 @@ export class MsgBatchUpdateOrdersResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1908,6 +2325,12 @@ export class MsgBatchUpdateOrdersResponse extends Message): MsgBatchUpdateOrdersResponse { @@ -1989,6 +2412,11 @@ export class MsgCreateDerivativeMarketOrderResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1999,6 +2427,7 @@ export class MsgCreateDerivativeMarketOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "results", kind: "message", T: DerivativeMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeMarketOrderResponse { @@ -2141,6 +2570,11 @@ export class MsgCreateBinaryOptionsMarketOrderResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -2151,6 +2585,7 @@ export class MsgCreateBinaryOptionsMarketOrderResponse extends Message [ { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "results", kind: "message", T: DerivativeMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsMarketOrderResponse { @@ -2177,26 +2612,36 @@ export class MsgCreateBinaryOptionsMarketOrderResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 3; */ subaccountId = ""; /** + * the order hash + * * @generated from field: string order_hash = 4; */ orderHash = ""; /** + * the order mask + * * bitwise combination of OrderMask enum values * * @generated from field: int32 order_mask = 5; @@ -2204,6 +2649,8 @@ export class MsgCancelDerivativeOrder extends Message orderMask = 0; /** + * the client order ID + * * @generated from field: string cid = 6; */ cid = ""; @@ -2283,33 +2730,43 @@ export class MsgCancelDerivativeOrderResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the market ID + * * @generated from field: string market_id = 2; */ marketId = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 3; */ subaccountId = ""; /** + * the order hash + * * @generated from field: string order_hash = 4; */ orderHash = ""; /** - * bitwise combination of OrderMask enum values + * the order mask (bitwise combination of OrderMask enum values) * * @generated from field: int32 order_mask = 5; */ orderMask = 0; /** + * the client order ID + * * @generated from field: string cid = 6; */ cid = ""; @@ -2386,28 +2843,36 @@ export class MsgCancelBinaryOptionsOrderResponse extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the order hash + * * @generated from field: string order_hash = 3; */ orderHash = ""; /** - * bitwise combination of OrderMask enum values + * the order mask (bitwise combination of OrderMask enum values) * * @generated from field: int32 order_mask = 4; */ orderMask = 0; /** + * the client order ID + * * @generated from field: string cid = 5; */ cid = ""; @@ -2452,11 +2917,15 @@ export class OrderData extends Message { */ export class MsgBatchCancelDerivativeOrders extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * orders details + * * @generated from field: repeated injective.exchange.v1beta1.OrderData data = 2; */ data: OrderData[] = []; @@ -2537,21 +3006,29 @@ export class MsgBatchCancelDerivativeOrdersResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the source subaccount ID + * * @generated from field: string source_subaccount_id = 2; */ sourceSubaccountId = ""; /** + * the destination subaccount ID + * * @generated from field: string destination_subaccount_id = 3; */ destinationSubaccountId = ""; /** + * the amount of the transfer + * * @generated from field: cosmos.base.v1beta1.Coin amount = 4; */ amount?: Coin; @@ -2718,16 +3195,22 @@ export class MsgExternalTransferResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 3; */ marketId = ""; @@ -2810,16 +3293,22 @@ export class MsgLiquidatePositionResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 3; */ marketId = ""; @@ -2895,27 +3384,36 @@ export class MsgEmergencySettleMarketResponse extends Message { /** + * the sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * the subaccount ID sending the funds + * * @generated from field: string source_subaccount_id = 2; */ sourceSubaccountId = ""; /** + * the subaccount ID the position belongs to + * * @generated from field: string destination_subaccount_id = 3; */ destinationSubaccountId = ""; /** + * the market ID + * * @generated from field: string market_id = 4; */ marketId = ""; /** - * amount defines the amount of margin to add to the position + * amount defines the amount of margin to add to the position (in chain + * format) * * @generated from field: string amount = 5; */ @@ -2987,6 +3485,114 @@ export class MsgIncreasePositionMarginResponse extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID sending the funds + * + * @generated from field: string source_subaccount_id = 2; + */ + sourceSubaccountId = ""; + + /** + * the subaccount ID the position belongs to + * + * @generated from field: string destination_subaccount_id = 3; + */ + destinationSubaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 4; + */ + marketId = ""; + + /** + * amount defines the amount of margin to withdraw from the position (in chain + * format) + * + * @generated from field: string amount = 5; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgDecreasePositionMargin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreasePositionMargin | PlainMessage | undefined, b: MsgDecreasePositionMargin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreasePositionMargin, a, b); + } +} + +/** + * MsgDecreasePositionMarginResponse defines the Msg/MsgDecreasePositionMargin + * response type. + * + * @generated from message injective.exchange.v1beta1.MsgDecreasePositionMarginResponse + */ +export class MsgDecreasePositionMarginResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgDecreasePositionMarginResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreasePositionMarginResponse | PlainMessage | undefined, b: MsgDecreasePositionMarginResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreasePositionMarginResponse, a, b); + } +} + /** * MsgPrivilegedExecuteContract defines the Msg/Exec message type * @@ -3454,3 +4060,231 @@ export class MsgAdminUpdateBinaryOptionsMarketResponse extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.exchange.v1beta1.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgAuthorizeStakeGrants"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeStakeGrants | PlainMessage | undefined, b: MsgAuthorizeStakeGrants | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeStakeGrants, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgAuthorizeStakeGrantsResponse + */ +export class MsgAuthorizeStakeGrantsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgAuthorizeStakeGrantsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeStakeGrantsResponse | PlainMessage | undefined, b: MsgAuthorizeStakeGrantsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeStakeGrantsResponse, a, b); + } +} + +/** + * MsgActivateStakeGrant allows a grantee to activate a stake grant. + * + * @generated from message injective.exchange.v1beta1.MsgActivateStakeGrant + */ +export class MsgActivateStakeGrant extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string granter = 2; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgActivateStakeGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateStakeGrant | PlainMessage | undefined, b: MsgActivateStakeGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateStakeGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgActivateStakeGrantResponse + */ +export class MsgActivateStakeGrantResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgActivateStakeGrantResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateStakeGrantResponse | PlainMessage | undefined, b: MsgActivateStakeGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateStakeGrantResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgBatchExchangeModification + */ +export class MsgBatchExchangeModification extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v1beta1.BatchExchangeModificationProposal proposal = 2; + */ + proposal?: BatchExchangeModificationProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgBatchExchangeModification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: BatchExchangeModificationProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchExchangeModification | PlainMessage | undefined, b: MsgBatchExchangeModification | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchExchangeModification, a, b); + } +} + +/** + * @generated from message injective.exchange.v1beta1.MsgBatchExchangeModificationResponse + */ +export class MsgBatchExchangeModificationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v1beta1.MsgBatchExchangeModificationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchExchangeModificationResponse | PlainMessage | undefined, b: MsgBatchExchangeModificationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchExchangeModificationResponse, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/authz_pb.ts b/src/protobufs/injective/exchange/v2/authz_pb.ts new file mode 100644 index 00000000..7a0258fe --- /dev/null +++ b/src/protobufs/injective/exchange/v2/authz_pb.ts @@ -0,0 +1,587 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/authz.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * spot authz messages + * + * @generated from message injective.exchange.v2.CreateSpotLimitOrderAuthz + */ +export class CreateSpotLimitOrderAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CreateSpotLimitOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateSpotLimitOrderAuthz { + return new CreateSpotLimitOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateSpotLimitOrderAuthz { + return new CreateSpotLimitOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateSpotLimitOrderAuthz { + return new CreateSpotLimitOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CreateSpotLimitOrderAuthz | PlainMessage | undefined, b: CreateSpotLimitOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateSpotLimitOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.CreateSpotMarketOrderAuthz + */ +export class CreateSpotMarketOrderAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CreateSpotMarketOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateSpotMarketOrderAuthz { + return new CreateSpotMarketOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateSpotMarketOrderAuthz { + return new CreateSpotMarketOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateSpotMarketOrderAuthz { + return new CreateSpotMarketOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CreateSpotMarketOrderAuthz | PlainMessage | undefined, b: CreateSpotMarketOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateSpotMarketOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchCreateSpotLimitOrdersAuthz + */ +export class BatchCreateSpotLimitOrdersAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchCreateSpotLimitOrdersAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchCreateSpotLimitOrdersAuthz { + return new BatchCreateSpotLimitOrdersAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchCreateSpotLimitOrdersAuthz { + return new BatchCreateSpotLimitOrdersAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchCreateSpotLimitOrdersAuthz { + return new BatchCreateSpotLimitOrdersAuthz().fromJsonString(jsonString, options); + } + + static equals(a: BatchCreateSpotLimitOrdersAuthz | PlainMessage | undefined, b: BatchCreateSpotLimitOrdersAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchCreateSpotLimitOrdersAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.CancelSpotOrderAuthz + */ +export class CancelSpotOrderAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CancelSpotOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CancelSpotOrderAuthz { + return new CancelSpotOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CancelSpotOrderAuthz { + return new CancelSpotOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CancelSpotOrderAuthz { + return new CancelSpotOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CancelSpotOrderAuthz | PlainMessage | undefined, b: CancelSpotOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CancelSpotOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchCancelSpotOrdersAuthz + */ +export class BatchCancelSpotOrdersAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchCancelSpotOrdersAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchCancelSpotOrdersAuthz { + return new BatchCancelSpotOrdersAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchCancelSpotOrdersAuthz { + return new BatchCancelSpotOrdersAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchCancelSpotOrdersAuthz { + return new BatchCancelSpotOrdersAuthz().fromJsonString(jsonString, options); + } + + static equals(a: BatchCancelSpotOrdersAuthz | PlainMessage | undefined, b: BatchCancelSpotOrdersAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchCancelSpotOrdersAuthz, a, b); + } +} + +/** + * derivative authz messages + * + * @generated from message injective.exchange.v2.CreateDerivativeLimitOrderAuthz + */ +export class CreateDerivativeLimitOrderAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CreateDerivativeLimitOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDerivativeLimitOrderAuthz { + return new CreateDerivativeLimitOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDerivativeLimitOrderAuthz { + return new CreateDerivativeLimitOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDerivativeLimitOrderAuthz { + return new CreateDerivativeLimitOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CreateDerivativeLimitOrderAuthz | PlainMessage | undefined, b: CreateDerivativeLimitOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDerivativeLimitOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.CreateDerivativeMarketOrderAuthz + */ +export class CreateDerivativeMarketOrderAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CreateDerivativeMarketOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDerivativeMarketOrderAuthz { + return new CreateDerivativeMarketOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDerivativeMarketOrderAuthz { + return new CreateDerivativeMarketOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDerivativeMarketOrderAuthz { + return new CreateDerivativeMarketOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CreateDerivativeMarketOrderAuthz | PlainMessage | undefined, b: CreateDerivativeMarketOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDerivativeMarketOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchCreateDerivativeLimitOrdersAuthz + */ +export class BatchCreateDerivativeLimitOrdersAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchCreateDerivativeLimitOrdersAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { + return new BatchCreateDerivativeLimitOrdersAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { + return new BatchCreateDerivativeLimitOrdersAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { + return new BatchCreateDerivativeLimitOrdersAuthz().fromJsonString(jsonString, options); + } + + static equals(a: BatchCreateDerivativeLimitOrdersAuthz | PlainMessage | undefined, b: BatchCreateDerivativeLimitOrdersAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchCreateDerivativeLimitOrdersAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.CancelDerivativeOrderAuthz + */ +export class CancelDerivativeOrderAuthz extends Message { + /** + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CancelDerivativeOrderAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CancelDerivativeOrderAuthz { + return new CancelDerivativeOrderAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CancelDerivativeOrderAuthz { + return new CancelDerivativeOrderAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CancelDerivativeOrderAuthz { + return new CancelDerivativeOrderAuthz().fromJsonString(jsonString, options); + } + + static equals(a: CancelDerivativeOrderAuthz | PlainMessage | undefined, b: CancelDerivativeOrderAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(CancelDerivativeOrderAuthz, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchCancelDerivativeOrdersAuthz + */ +export class BatchCancelDerivativeOrdersAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchCancelDerivativeOrdersAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchCancelDerivativeOrdersAuthz { + return new BatchCancelDerivativeOrdersAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchCancelDerivativeOrdersAuthz { + return new BatchCancelDerivativeOrdersAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchCancelDerivativeOrdersAuthz { + return new BatchCancelDerivativeOrdersAuthz().fromJsonString(jsonString, options); + } + + static equals(a: BatchCancelDerivativeOrdersAuthz | PlainMessage | undefined, b: BatchCancelDerivativeOrdersAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchCancelDerivativeOrdersAuthz, a, b); + } +} + +/** + * common authz message used in both spot & derivative markets + * + * @generated from message injective.exchange.v2.BatchUpdateOrdersAuthz + */ +export class BatchUpdateOrdersAuthz extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the spot market IDs + * + * @generated from field: repeated string spot_markets = 2; + */ + spotMarkets: string[] = []; + + /** + * the derivative market IDs + * + * @generated from field: repeated string derivative_markets = 3; + */ + derivativeMarkets: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchUpdateOrdersAuthz"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "spot_markets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "derivative_markets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchUpdateOrdersAuthz { + return new BatchUpdateOrdersAuthz().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchUpdateOrdersAuthz { + return new BatchUpdateOrdersAuthz().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchUpdateOrdersAuthz { + return new BatchUpdateOrdersAuthz().fromJsonString(jsonString, options); + } + + static equals(a: BatchUpdateOrdersAuthz | PlainMessage | undefined, b: BatchUpdateOrdersAuthz | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchUpdateOrdersAuthz, a, b); + } +} + +/** + * GenericExchangeAuthorization gives the grantee permissions to execute + * the provided Exchange method on behalf of the granter's account. + * + * @generated from message injective.exchange.v2.GenericExchangeAuthorization + */ +export class GenericExchangeAuthorization extends Message { + /** + * Msg, identified by it's type URL, to grant permissions to the grantee + * + * @generated from field: string msg = 1; + */ + msg = ""; + + /** + * SpendLimit is the maximum amount of tokens that the grantee can spend on + * behalf of the granter. If not set, there is no spend limit. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 2; + */ + spendLimit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.GenericExchangeAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "spend_limit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenericExchangeAuthorization { + return new GenericExchangeAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: GenericExchangeAuthorization | PlainMessage | undefined, b: GenericExchangeAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(GenericExchangeAuthorization, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/events_pb.ts b/src/protobufs/injective/exchange/v2/events_pb.ts new file mode 100644 index 00000000..565bd67c --- /dev/null +++ b/src/protobufs/injective/exchange/v2/events_pb.ts @@ -0,0 +1,2261 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/events.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccountRewards, CampaignRewardPool, DepositUpdate, DerivativePosition, DerivativeTradeLog, ExecutionType, FeeDiscountSchedule, GrantAuthorization, Level, SubaccountPosition, TradeLog, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { BinaryOptionsMarket, DerivativeMarket, ExpiryFuturesMarketInfo, MarketFeeMultiplier, PerpetualMarketFunding, PerpetualMarketInfo, SpotMarket } from "./market_pb.js"; +import { DerivativeLimitOrder, DerivativeMarketOrder, DerivativeOrder, SpotLimitOrder } from "./order_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message injective.exchange.v2.EventBatchSpotExecution + */ +export class EventBatchSpotExecution extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool is_buy = 2; + */ + isBuy = false; + + /** + * @generated from field: injective.exchange.v2.ExecutionType executionType = 3; + */ + executionType = ExecutionType.UnspecifiedExecutionType; + + /** + * @generated from field: repeated injective.exchange.v2.TradeLog trades = 4; + */ + trades: TradeLog[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventBatchSpotExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "executionType", kind: "enum", T: proto3.getEnumType(ExecutionType) }, + { no: 4, name: "trades", kind: "message", T: TradeLog, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchSpotExecution { + return new EventBatchSpotExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchSpotExecution { + return new EventBatchSpotExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBatchSpotExecution { + return new EventBatchSpotExecution().fromJsonString(jsonString, options); + } + + static equals(a: EventBatchSpotExecution | PlainMessage | undefined, b: EventBatchSpotExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBatchSpotExecution, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventBatchDerivativeExecution + */ +export class EventBatchDerivativeExecution extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool is_buy = 2; + */ + isBuy = false; + + /** + * @generated from field: bool is_liquidation = 3; + */ + isLiquidation = false; + + /** + * nil for time expiry futures + * + * @generated from field: string cumulative_funding = 4; + */ + cumulativeFunding = ""; + + /** + * @generated from field: injective.exchange.v2.ExecutionType executionType = 5; + */ + executionType = ExecutionType.UnspecifiedExecutionType; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeTradeLog trades = 6; + */ + trades: DerivativeTradeLog[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventBatchDerivativeExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "is_liquidation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "cumulative_funding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "executionType", kind: "enum", T: proto3.getEnumType(ExecutionType) }, + { no: 6, name: "trades", kind: "message", T: DerivativeTradeLog, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDerivativeExecution { + return new EventBatchDerivativeExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDerivativeExecution { + return new EventBatchDerivativeExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBatchDerivativeExecution { + return new EventBatchDerivativeExecution().fromJsonString(jsonString, options); + } + + static equals(a: EventBatchDerivativeExecution | PlainMessage | undefined, b: EventBatchDerivativeExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBatchDerivativeExecution, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventLostFundsFromLiquidation + */ +export class EventLostFundsFromLiquidation extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bytes subaccount_id = 2; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: string lost_funds_from_available_during_payout = 3; + */ + lostFundsFromAvailableDuringPayout = ""; + + /** + * @generated from field: string lost_funds_from_order_cancels = 4; + */ + lostFundsFromOrderCancels = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventLostFundsFromLiquidation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "lost_funds_from_available_during_payout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lost_funds_from_order_cancels", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventLostFundsFromLiquidation { + return new EventLostFundsFromLiquidation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventLostFundsFromLiquidation { + return new EventLostFundsFromLiquidation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventLostFundsFromLiquidation { + return new EventLostFundsFromLiquidation().fromJsonString(jsonString, options); + } + + static equals(a: EventLostFundsFromLiquidation | PlainMessage | undefined, b: EventLostFundsFromLiquidation | PlainMessage | undefined): boolean { + return proto3.util.equals(EventLostFundsFromLiquidation, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventBatchDerivativePosition + */ +export class EventBatchDerivativePosition extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SubaccountPosition positions = 2; + */ + positions: SubaccountPosition[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventBatchDerivativePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "positions", kind: "message", T: SubaccountPosition, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDerivativePosition { + return new EventBatchDerivativePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDerivativePosition { + return new EventBatchDerivativePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBatchDerivativePosition { + return new EventBatchDerivativePosition().fromJsonString(jsonString, options); + } + + static equals(a: EventBatchDerivativePosition | PlainMessage | undefined, b: EventBatchDerivativePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBatchDerivativePosition, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventDerivativeMarketPaused + */ +export class EventDerivativeMarketPaused extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string settle_price = 2; + */ + settlePrice = ""; + + /** + * @generated from field: string total_missing_funds = 3; + */ + totalMissingFunds = ""; + + /** + * @generated from field: string missing_funds_rate = 4; + */ + missingFundsRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventDerivativeMarketPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_missing_funds", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "missing_funds_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDerivativeMarketPaused { + return new EventDerivativeMarketPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDerivativeMarketPaused { + return new EventDerivativeMarketPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDerivativeMarketPaused { + return new EventDerivativeMarketPaused().fromJsonString(jsonString, options); + } + + static equals(a: EventDerivativeMarketPaused | PlainMessage | undefined, b: EventDerivativeMarketPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDerivativeMarketPaused, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSettledMarketBalance + */ +export class EventSettledMarketBalance extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSettledMarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSettledMarketBalance { + return new EventSettledMarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: EventSettledMarketBalance | PlainMessage | undefined, b: EventSettledMarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSettledMarketBalance, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventNotSettledMarketBalance + */ +export class EventNotSettledMarketBalance extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventNotSettledMarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventNotSettledMarketBalance { + return new EventNotSettledMarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: EventNotSettledMarketBalance | PlainMessage | undefined, b: EventNotSettledMarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(EventNotSettledMarketBalance, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventMarketBeyondBankruptcy + */ +export class EventMarketBeyondBankruptcy extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string settle_price = 2; + */ + settlePrice = ""; + + /** + * @generated from field: string missing_market_funds = 3; + */ + missingMarketFunds = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventMarketBeyondBankruptcy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "missing_market_funds", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventMarketBeyondBankruptcy { + return new EventMarketBeyondBankruptcy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventMarketBeyondBankruptcy { + return new EventMarketBeyondBankruptcy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventMarketBeyondBankruptcy { + return new EventMarketBeyondBankruptcy().fromJsonString(jsonString, options); + } + + static equals(a: EventMarketBeyondBankruptcy | PlainMessage | undefined, b: EventMarketBeyondBankruptcy | PlainMessage | undefined): boolean { + return proto3.util.equals(EventMarketBeyondBankruptcy, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventAllPositionsHaircut + */ +export class EventAllPositionsHaircut extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string settle_price = 2; + */ + settlePrice = ""; + + /** + * @generated from field: string missing_funds_rate = 3; + */ + missingFundsRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventAllPositionsHaircut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "missing_funds_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAllPositionsHaircut { + return new EventAllPositionsHaircut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAllPositionsHaircut { + return new EventAllPositionsHaircut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAllPositionsHaircut { + return new EventAllPositionsHaircut().fromJsonString(jsonString, options); + } + + static equals(a: EventAllPositionsHaircut | PlainMessage | undefined, b: EventAllPositionsHaircut | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAllPositionsHaircut, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventBinaryOptionsMarketUpdate + */ +export class EventBinaryOptionsMarketUpdate extends Message { + /** + * @generated from field: injective.exchange.v2.BinaryOptionsMarket market = 1; + */ + market?: BinaryOptionsMarket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventBinaryOptionsMarketUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: BinaryOptionsMarket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBinaryOptionsMarketUpdate { + return new EventBinaryOptionsMarketUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBinaryOptionsMarketUpdate { + return new EventBinaryOptionsMarketUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBinaryOptionsMarketUpdate { + return new EventBinaryOptionsMarketUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventBinaryOptionsMarketUpdate | PlainMessage | undefined, b: EventBinaryOptionsMarketUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBinaryOptionsMarketUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventNewSpotOrders + */ +export class EventNewSpotOrders extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SpotLimitOrder buy_orders = 2; + */ + buyOrders: SpotLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.SpotLimitOrder sell_orders = 3; + */ + sellOrders: SpotLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventNewSpotOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "buy_orders", kind: "message", T: SpotLimitOrder, repeated: true }, + { no: 3, name: "sell_orders", kind: "message", T: SpotLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNewSpotOrders { + return new EventNewSpotOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNewSpotOrders { + return new EventNewSpotOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventNewSpotOrders { + return new EventNewSpotOrders().fromJsonString(jsonString, options); + } + + static equals(a: EventNewSpotOrders | PlainMessage | undefined, b: EventNewSpotOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(EventNewSpotOrders, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventNewDerivativeOrders + */ +export class EventNewDerivativeOrders extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeLimitOrder buy_orders = 2; + */ + buyOrders: DerivativeLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeLimitOrder sell_orders = 3; + */ + sellOrders: DerivativeLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventNewDerivativeOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "buy_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, + { no: 3, name: "sell_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNewDerivativeOrders { + return new EventNewDerivativeOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNewDerivativeOrders { + return new EventNewDerivativeOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventNewDerivativeOrders { + return new EventNewDerivativeOrders().fromJsonString(jsonString, options); + } + + static equals(a: EventNewDerivativeOrders | PlainMessage | undefined, b: EventNewDerivativeOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(EventNewDerivativeOrders, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventCancelSpotOrder + */ +export class EventCancelSpotOrder extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: injective.exchange.v2.SpotLimitOrder order = 2; + */ + order?: SpotLimitOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventCancelSpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: SpotLimitOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelSpotOrder { + return new EventCancelSpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelSpotOrder { + return new EventCancelSpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelSpotOrder { + return new EventCancelSpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelSpotOrder | PlainMessage | undefined, b: EventCancelSpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelSpotOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSpotMarketUpdate + */ +export class EventSpotMarketUpdate extends Message { + /** + * @generated from field: injective.exchange.v2.SpotMarket market = 1; + */ + market?: SpotMarket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSpotMarketUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: SpotMarket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSpotMarketUpdate { + return new EventSpotMarketUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSpotMarketUpdate { + return new EventSpotMarketUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSpotMarketUpdate { + return new EventSpotMarketUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventSpotMarketUpdate | PlainMessage | undefined, b: EventSpotMarketUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSpotMarketUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventPerpetualMarketUpdate + */ +export class EventPerpetualMarketUpdate extends Message { + /** + * @generated from field: injective.exchange.v2.DerivativeMarket market = 1; + */ + market?: DerivativeMarket; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketInfo perpetual_market_info = 2; + */ + perpetualMarketInfo?: PerpetualMarketInfo; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketFunding funding = 3; + */ + funding?: PerpetualMarketFunding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventPerpetualMarketUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: DerivativeMarket }, + { no: 2, name: "perpetual_market_info", kind: "message", T: PerpetualMarketInfo }, + { no: 3, name: "funding", kind: "message", T: PerpetualMarketFunding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPerpetualMarketUpdate { + return new EventPerpetualMarketUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPerpetualMarketUpdate { + return new EventPerpetualMarketUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPerpetualMarketUpdate { + return new EventPerpetualMarketUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventPerpetualMarketUpdate | PlainMessage | undefined, b: EventPerpetualMarketUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPerpetualMarketUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventExpiryFuturesMarketUpdate + */ +export class EventExpiryFuturesMarketUpdate extends Message { + /** + * @generated from field: injective.exchange.v2.DerivativeMarket market = 1; + */ + market?: DerivativeMarket; + + /** + * @generated from field: injective.exchange.v2.ExpiryFuturesMarketInfo expiry_futures_market_info = 3; + */ + expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventExpiryFuturesMarketUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: DerivativeMarket }, + { no: 3, name: "expiry_futures_market_info", kind: "message", T: ExpiryFuturesMarketInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExpiryFuturesMarketUpdate { + return new EventExpiryFuturesMarketUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExpiryFuturesMarketUpdate { + return new EventExpiryFuturesMarketUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExpiryFuturesMarketUpdate { + return new EventExpiryFuturesMarketUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventExpiryFuturesMarketUpdate | PlainMessage | undefined, b: EventExpiryFuturesMarketUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExpiryFuturesMarketUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventPerpetualMarketFundingUpdate + */ +export class EventPerpetualMarketFundingUpdate extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketFunding funding = 2; + */ + funding?: PerpetualMarketFunding; + + /** + * @generated from field: bool is_hourly_funding = 3; + */ + isHourlyFunding = false; + + /** + * @generated from field: string funding_rate = 4; + */ + fundingRate = ""; + + /** + * @generated from field: string mark_price = 5; + */ + markPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventPerpetualMarketFundingUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "funding", kind: "message", T: PerpetualMarketFunding }, + { no: 3, name: "is_hourly_funding", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPerpetualMarketFundingUpdate { + return new EventPerpetualMarketFundingUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPerpetualMarketFundingUpdate { + return new EventPerpetualMarketFundingUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPerpetualMarketFundingUpdate { + return new EventPerpetualMarketFundingUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventPerpetualMarketFundingUpdate | PlainMessage | undefined, b: EventPerpetualMarketFundingUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPerpetualMarketFundingUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSubaccountDeposit + */ +export class EventSubaccountDeposit extends Message { + /** + * @generated from field: string src_address = 1; + */ + srcAddress = ""; + + /** + * @generated from field: bytes subaccount_id = 2; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSubaccountDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "src_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountDeposit { + return new EventSubaccountDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountDeposit { + return new EventSubaccountDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSubaccountDeposit { + return new EventSubaccountDeposit().fromJsonString(jsonString, options); + } + + static equals(a: EventSubaccountDeposit | PlainMessage | undefined, b: EventSubaccountDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSubaccountDeposit, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSubaccountWithdraw + */ +export class EventSubaccountWithdraw extends Message { + /** + * @generated from field: bytes subaccount_id = 1; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: string dst_address = 2; + */ + dstAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSubaccountWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "dst_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountWithdraw { + return new EventSubaccountWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountWithdraw { + return new EventSubaccountWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSubaccountWithdraw { + return new EventSubaccountWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: EventSubaccountWithdraw | PlainMessage | undefined, b: EventSubaccountWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSubaccountWithdraw, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSubaccountBalanceTransfer + */ +export class EventSubaccountBalanceTransfer extends Message { + /** + * @generated from field: string src_subaccount_id = 1; + */ + srcSubaccountId = ""; + + /** + * @generated from field: string dst_subaccount_id = 2; + */ + dstSubaccountId = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSubaccountBalanceTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "src_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dst_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountBalanceTransfer { + return new EventSubaccountBalanceTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountBalanceTransfer { + return new EventSubaccountBalanceTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSubaccountBalanceTransfer { + return new EventSubaccountBalanceTransfer().fromJsonString(jsonString, options); + } + + static equals(a: EventSubaccountBalanceTransfer | PlainMessage | undefined, b: EventSubaccountBalanceTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSubaccountBalanceTransfer, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventBatchDepositUpdate + */ +export class EventBatchDepositUpdate extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DepositUpdate deposit_updates = 1; + */ + depositUpdates: DepositUpdate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventBatchDepositUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_updates", kind: "message", T: DepositUpdate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDepositUpdate { + return new EventBatchDepositUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDepositUpdate { + return new EventBatchDepositUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBatchDepositUpdate { + return new EventBatchDepositUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventBatchDepositUpdate | PlainMessage | undefined, b: EventBatchDepositUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBatchDepositUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeMarketOrderCancel + */ +export class DerivativeMarketOrderCancel extends Message { + /** + * @generated from field: injective.exchange.v2.DerivativeMarketOrder market_order = 1; + */ + marketOrder?: DerivativeMarketOrder; + + /** + * @generated from field: string cancel_quantity = 2; + */ + cancelQuantity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarketOrderCancel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_order", kind: "message", T: DerivativeMarketOrder }, + { no: 2, name: "cancel_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketOrderCancel { + return new DerivativeMarketOrderCancel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketOrderCancel { + return new DerivativeMarketOrderCancel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketOrderCancel { + return new DerivativeMarketOrderCancel().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarketOrderCancel | PlainMessage | undefined, b: DerivativeMarketOrderCancel | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarketOrderCancel, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventCancelDerivativeOrder + */ +export class EventCancelDerivativeOrder extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool isLimitCancel = 2; + */ + isLimitCancel = false; + + /** + * @generated from field: injective.exchange.v2.DerivativeLimitOrder limit_order = 3; + */ + limitOrder?: DerivativeLimitOrder; + + /** + * @generated from field: injective.exchange.v2.DerivativeMarketOrderCancel market_order_cancel = 4; + */ + marketOrderCancel?: DerivativeMarketOrderCancel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventCancelDerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "isLimitCancel", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "limit_order", kind: "message", T: DerivativeLimitOrder }, + { no: 4, name: "market_order_cancel", kind: "message", T: DerivativeMarketOrderCancel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelDerivativeOrder { + return new EventCancelDerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelDerivativeOrder { + return new EventCancelDerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelDerivativeOrder { + return new EventCancelDerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelDerivativeOrder | PlainMessage | undefined, b: EventCancelDerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelDerivativeOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventFeeDiscountSchedule + */ +export class EventFeeDiscountSchedule extends Message { + /** + * @generated from field: injective.exchange.v2.FeeDiscountSchedule schedule = 1; + */ + schedule?: FeeDiscountSchedule; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventFeeDiscountSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule", kind: "message", T: FeeDiscountSchedule }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFeeDiscountSchedule { + return new EventFeeDiscountSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFeeDiscountSchedule { + return new EventFeeDiscountSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFeeDiscountSchedule { + return new EventFeeDiscountSchedule().fromJsonString(jsonString, options); + } + + static equals(a: EventFeeDiscountSchedule | PlainMessage | undefined, b: EventFeeDiscountSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFeeDiscountSchedule, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventTradingRewardCampaignUpdate + */ +export class EventTradingRewardCampaignUpdate extends Message { + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignInfo campaign_info = 1; + */ + campaignInfo?: TradingRewardCampaignInfo; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool campaign_reward_pools = 2; + */ + campaignRewardPools: CampaignRewardPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventTradingRewardCampaignUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "campaign_info", kind: "message", T: TradingRewardCampaignInfo }, + { no: 2, name: "campaign_reward_pools", kind: "message", T: CampaignRewardPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTradingRewardCampaignUpdate { + return new EventTradingRewardCampaignUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTradingRewardCampaignUpdate { + return new EventTradingRewardCampaignUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTradingRewardCampaignUpdate { + return new EventTradingRewardCampaignUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventTradingRewardCampaignUpdate | PlainMessage | undefined, b: EventTradingRewardCampaignUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTradingRewardCampaignUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventTradingRewardDistribution + */ +export class EventTradingRewardDistribution extends Message { + /** + * @generated from field: repeated injective.exchange.v2.AccountRewards account_rewards = 1; + */ + accountRewards: AccountRewards[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventTradingRewardDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_rewards", kind: "message", T: AccountRewards, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTradingRewardDistribution { + return new EventTradingRewardDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTradingRewardDistribution { + return new EventTradingRewardDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTradingRewardDistribution { + return new EventTradingRewardDistribution().fromJsonString(jsonString, options); + } + + static equals(a: EventTradingRewardDistribution | PlainMessage | undefined, b: EventTradingRewardDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTradingRewardDistribution, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventNewConditionalDerivativeOrder + */ +export class EventNewConditionalDerivativeOrder extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: injective.exchange.v2.DerivativeOrder order = 2; + */ + order?: DerivativeOrder; + + /** + * @generated from field: bytes hash = 3; + */ + hash = new Uint8Array(0); + + /** + * @generated from field: bool is_market = 4; + */ + isMarket = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventNewConditionalDerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeOrder }, + { no: 3, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "is_market", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNewConditionalDerivativeOrder { + return new EventNewConditionalDerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNewConditionalDerivativeOrder { + return new EventNewConditionalDerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventNewConditionalDerivativeOrder { + return new EventNewConditionalDerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventNewConditionalDerivativeOrder | PlainMessage | undefined, b: EventNewConditionalDerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventNewConditionalDerivativeOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventCancelConditionalDerivativeOrder + */ +export class EventCancelConditionalDerivativeOrder extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool isLimitCancel = 2; + */ + isLimitCancel = false; + + /** + * @generated from field: injective.exchange.v2.DerivativeLimitOrder limit_order = 3; + */ + limitOrder?: DerivativeLimitOrder; + + /** + * @generated from field: injective.exchange.v2.DerivativeMarketOrder market_order = 4; + */ + marketOrder?: DerivativeMarketOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventCancelConditionalDerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "isLimitCancel", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "limit_order", kind: "message", T: DerivativeLimitOrder }, + { no: 4, name: "market_order", kind: "message", T: DerivativeMarketOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelConditionalDerivativeOrder { + return new EventCancelConditionalDerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelConditionalDerivativeOrder { + return new EventCancelConditionalDerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelConditionalDerivativeOrder { + return new EventCancelConditionalDerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelConditionalDerivativeOrder | PlainMessage | undefined, b: EventCancelConditionalDerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelConditionalDerivativeOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventConditionalDerivativeOrderTrigger + */ +export class EventConditionalDerivativeOrderTrigger extends Message { + /** + * @generated from field: bytes market_id = 1; + */ + marketId = new Uint8Array(0); + + /** + * @generated from field: bool isLimitTrigger = 2; + */ + isLimitTrigger = false; + + /** + * @generated from field: bytes triggered_order_hash = 3; + */ + triggeredOrderHash = new Uint8Array(0); + + /** + * @generated from field: bytes placed_order_hash = 4; + */ + placedOrderHash = new Uint8Array(0); + + /** + * @generated from field: string triggered_order_cid = 5; + */ + triggeredOrderCid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventConditionalDerivativeOrderTrigger"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "isLimitTrigger", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "triggered_order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "placed_order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "triggered_order_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConditionalDerivativeOrderTrigger { + return new EventConditionalDerivativeOrderTrigger().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConditionalDerivativeOrderTrigger { + return new EventConditionalDerivativeOrderTrigger().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConditionalDerivativeOrderTrigger { + return new EventConditionalDerivativeOrderTrigger().fromJsonString(jsonString, options); + } + + static equals(a: EventConditionalDerivativeOrderTrigger | PlainMessage | undefined, b: EventConditionalDerivativeOrderTrigger | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConditionalDerivativeOrderTrigger, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventOrderFail + */ +export class EventOrderFail extends Message { + /** + * @generated from field: bytes account = 1; + */ + account = new Uint8Array(0); + + /** + * @generated from field: repeated bytes hashes = 2; + */ + hashes: Uint8Array[] = []; + + /** + * @generated from field: repeated uint32 flags = 3; + */ + flags: number[] = []; + + /** + * @generated from field: repeated string cids = 4; + */ + cids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventOrderFail"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 3, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 4, name: "cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderFail { + return new EventOrderFail().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderFail { + return new EventOrderFail().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderFail { + return new EventOrderFail().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderFail | PlainMessage | undefined, b: EventOrderFail | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderFail, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventAtomicMarketOrderFeeMultipliersUpdated + */ +export class EventAtomicMarketOrderFeeMultipliersUpdated extends Message { + /** + * @generated from field: repeated injective.exchange.v2.MarketFeeMultiplier market_fee_multipliers = 1; + */ + marketFeeMultipliers: MarketFeeMultiplier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventAtomicMarketOrderFeeMultipliersUpdated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_fee_multipliers", kind: "message", T: MarketFeeMultiplier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { + return new EventAtomicMarketOrderFeeMultipliersUpdated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { + return new EventAtomicMarketOrderFeeMultipliersUpdated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { + return new EventAtomicMarketOrderFeeMultipliersUpdated().fromJsonString(jsonString, options); + } + + static equals(a: EventAtomicMarketOrderFeeMultipliersUpdated | PlainMessage | undefined, b: EventAtomicMarketOrderFeeMultipliersUpdated | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAtomicMarketOrderFeeMultipliersUpdated, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventOrderbookUpdate + */ +export class EventOrderbookUpdate extends Message { + /** + * @generated from field: repeated injective.exchange.v2.OrderbookUpdate spot_updates = 1; + */ + spotUpdates: OrderbookUpdate[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.OrderbookUpdate derivative_updates = 2; + */ + derivativeUpdates: OrderbookUpdate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventOrderbookUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_updates", kind: "message", T: OrderbookUpdate, repeated: true }, + { no: 2, name: "derivative_updates", kind: "message", T: OrderbookUpdate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderbookUpdate { + return new EventOrderbookUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderbookUpdate { + return new EventOrderbookUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderbookUpdate { + return new EventOrderbookUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderbookUpdate | PlainMessage | undefined, b: EventOrderbookUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderbookUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OrderbookUpdate + */ +export class OrderbookUpdate extends Message { + /** + * @generated from field: uint64 seq = 1; + */ + seq = protoInt64.zero; + + /** + * @generated from field: injective.exchange.v2.Orderbook orderbook = 2; + */ + orderbook?: Orderbook; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OrderbookUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "orderbook", kind: "message", T: Orderbook }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromJsonString(jsonString, options); + } + + static equals(a: OrderbookUpdate | PlainMessage | undefined, b: OrderbookUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderbookUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.Orderbook + */ +export class Orderbook extends Message { + /** + * @generated from field: bytes market_id = 1; + */ + marketId = new Uint8Array(0); + + /** + * @generated from field: repeated injective.exchange.v2.Level buy_levels = 2; + */ + buyLevels: Level[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.Level sell_levels = 3; + */ + sellLevels: Level[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Orderbook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "buy_levels", kind: "message", T: Level, repeated: true }, + { no: 3, name: "sell_levels", kind: "message", T: Level, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Orderbook { + return new Orderbook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Orderbook { + return new Orderbook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Orderbook { + return new Orderbook().fromJsonString(jsonString, options); + } + + static equals(a: Orderbook | PlainMessage | undefined, b: Orderbook | PlainMessage | undefined): boolean { + return proto3.util.equals(Orderbook, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventGrantAuthorizations + */ +export class EventGrantAuthorizations extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: repeated injective.exchange.v2.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventGrantAuthorizations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventGrantAuthorizations { + return new EventGrantAuthorizations().fromJsonString(jsonString, options); + } + + static equals(a: EventGrantAuthorizations | PlainMessage | undefined, b: EventGrantAuthorizations | PlainMessage | undefined): boolean { + return proto3.util.equals(EventGrantAuthorizations, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventGrantActivation + */ +export class EventGrantActivation extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: string granter = 2; + */ + granter = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventGrantActivation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventGrantActivation { + return new EventGrantActivation().fromJsonString(jsonString, options); + } + + static equals(a: EventGrantActivation | PlainMessage | undefined, b: EventGrantActivation | PlainMessage | undefined): boolean { + return proto3.util.equals(EventGrantActivation, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventInvalidGrant + */ +export class EventInvalidGrant extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: string granter = 2; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventInvalidGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventInvalidGrant { + return new EventInvalidGrant().fromJsonString(jsonString, options); + } + + static equals(a: EventInvalidGrant | PlainMessage | undefined, b: EventInvalidGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(EventInvalidGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventOrderCancelFail + */ +export class EventOrderCancelFail extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * @generated from field: string order_hash = 3; + */ + orderHash = ""; + + /** + * @generated from field: string cid = 4; + */ + cid = ""; + + /** + * @generated from field: string description = 5; + */ + description = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventOrderCancelFail"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOrderCancelFail { + return new EventOrderCancelFail().fromJsonString(jsonString, options); + } + + static equals(a: EventOrderCancelFail | PlainMessage | undefined, b: EventOrderCancelFail | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOrderCancelFail, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventDerivativeOrdersV2Migration + */ +export class EventDerivativeOrdersV2Migration extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeOrderV2Changes buy_order_changes = 2; + */ + buyOrderChanges: DerivativeOrderV2Changes[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeOrderV2Changes sell_order_changes = 3; + */ + sellOrderChanges: DerivativeOrderV2Changes[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventDerivativeOrdersV2Migration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "buy_order_changes", kind: "message", T: DerivativeOrderV2Changes, repeated: true }, + { no: 3, name: "sell_order_changes", kind: "message", T: DerivativeOrderV2Changes, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDerivativeOrdersV2Migration { + return new EventDerivativeOrdersV2Migration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDerivativeOrdersV2Migration { + return new EventDerivativeOrdersV2Migration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDerivativeOrdersV2Migration { + return new EventDerivativeOrdersV2Migration().fromJsonString(jsonString, options); + } + + static equals(a: EventDerivativeOrdersV2Migration | PlainMessage | undefined, b: EventDerivativeOrdersV2Migration | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDerivativeOrdersV2Migration, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeOrderV2Changes + */ +export class DerivativeOrderV2Changes extends Message { + /** + * @generated from field: string cid = 1; + */ + cid = ""; + + /** + * @generated from field: bytes hash = 2; + */ + hash = new Uint8Array(0); + + /** + * price of the order + * + * @generated from field: string p = 3; + */ + p = ""; + + /** + * quantity of the order + * + * @generated from field: string q = 4; + */ + q = ""; + + /** + * margin of the order + * + * @generated from field: string m = 5; + */ + m = ""; + + /** + * the amount of the quantity remaining fillable + * + * @generated from field: string f = 6; + */ + f = ""; + + /** + * trigger price of the order + * + * @generated from field: string tp = 7; + */ + tp = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeOrderV2Changes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "p", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "q", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "m", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "f", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "tp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeOrderV2Changes { + return new DerivativeOrderV2Changes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeOrderV2Changes { + return new DerivativeOrderV2Changes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeOrderV2Changes { + return new DerivativeOrderV2Changes().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeOrderV2Changes | PlainMessage | undefined, b: DerivativeOrderV2Changes | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeOrderV2Changes, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventSpotOrdersV2Migration + */ +export class EventSpotOrdersV2Migration extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SpotOrderV2Changes buy_order_changes = 2; + */ + buyOrderChanges: SpotOrderV2Changes[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.SpotOrderV2Changes sell_order_changes = 3; + */ + sellOrderChanges: SpotOrderV2Changes[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventSpotOrdersV2Migration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "buy_order_changes", kind: "message", T: SpotOrderV2Changes, repeated: true }, + { no: 3, name: "sell_order_changes", kind: "message", T: SpotOrderV2Changes, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSpotOrdersV2Migration { + return new EventSpotOrdersV2Migration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSpotOrdersV2Migration { + return new EventSpotOrdersV2Migration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSpotOrdersV2Migration { + return new EventSpotOrdersV2Migration().fromJsonString(jsonString, options); + } + + static equals(a: EventSpotOrdersV2Migration | PlainMessage | undefined, b: EventSpotOrdersV2Migration | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSpotOrdersV2Migration, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventTriggerConditionalMarketOrderFailed + */ +export class EventTriggerConditionalMarketOrderFailed extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * @generated from field: string mark_price = 3; + */ + markPrice = ""; + + /** + * @generated from field: bytes order_hash = 4; + */ + orderHash = new Uint8Array(0); + + /** + * @generated from field: string trigger_err = 5; + */ + triggerErr = ""; + + /** + * @generated from field: string cid = 6; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventTriggerConditionalMarketOrderFailed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "trigger_err", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTriggerConditionalMarketOrderFailed { + return new EventTriggerConditionalMarketOrderFailed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTriggerConditionalMarketOrderFailed { + return new EventTriggerConditionalMarketOrderFailed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTriggerConditionalMarketOrderFailed { + return new EventTriggerConditionalMarketOrderFailed().fromJsonString(jsonString, options); + } + + static equals(a: EventTriggerConditionalMarketOrderFailed | PlainMessage | undefined, b: EventTriggerConditionalMarketOrderFailed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTriggerConditionalMarketOrderFailed, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventTriggerConditionalLimitOrderFailed + */ +export class EventTriggerConditionalLimitOrderFailed extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * @generated from field: string mark_price = 3; + */ + markPrice = ""; + + /** + * @generated from field: bytes order_hash = 4; + */ + orderHash = new Uint8Array(0); + + /** + * @generated from field: string trigger_err = 5; + */ + triggerErr = ""; + + /** + * @generated from field: string cid = 6; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventTriggerConditionalLimitOrderFailed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "trigger_err", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTriggerConditionalLimitOrderFailed { + return new EventTriggerConditionalLimitOrderFailed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTriggerConditionalLimitOrderFailed { + return new EventTriggerConditionalLimitOrderFailed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTriggerConditionalLimitOrderFailed { + return new EventTriggerConditionalLimitOrderFailed().fromJsonString(jsonString, options); + } + + static equals(a: EventTriggerConditionalLimitOrderFailed | PlainMessage | undefined, b: EventTriggerConditionalLimitOrderFailed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTriggerConditionalLimitOrderFailed, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SpotOrderV2Changes + */ +export class SpotOrderV2Changes extends Message { + /** + * @generated from field: string cid = 1; + */ + cid = ""; + + /** + * @generated from field: bytes hash = 2; + */ + hash = new Uint8Array(0); + + /** + * price of the order + * + * @generated from field: string p = 3; + */ + p = ""; + + /** + * quantity of the order + * + * @generated from field: string q = 4; + */ + q = ""; + + /** + * the amount of the quantity remaining fillable + * + * @generated from field: string f = 5; + */ + f = ""; + + /** + * trigger_price is the trigger price used by stop/take orders + * + * @generated from field: string tp = 6; + */ + tp = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotOrderV2Changes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "p", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "q", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "f", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "tp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrderV2Changes { + return new SpotOrderV2Changes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrderV2Changes { + return new SpotOrderV2Changes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrderV2Changes { + return new SpotOrderV2Changes().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrderV2Changes | PlainMessage | undefined, b: SpotOrderV2Changes | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrderV2Changes, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EventDerivativePositionV2Migration + */ +export class EventDerivativePositionV2Migration extends Message { + /** + * @generated from field: injective.exchange.v2.DerivativePosition position = 1; + */ + position?: DerivativePosition; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EventDerivativePositionV2Migration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: DerivativePosition }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDerivativePositionV2Migration { + return new EventDerivativePositionV2Migration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDerivativePositionV2Migration { + return new EventDerivativePositionV2Migration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDerivativePositionV2Migration { + return new EventDerivativePositionV2Migration().fromJsonString(jsonString, options); + } + + static equals(a: EventDerivativePositionV2Migration | PlainMessage | undefined, b: EventDerivativePositionV2Migration | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDerivativePositionV2Migration, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/exchange_pb.ts b/src/protobufs/injective/exchange/v2/exchange_pb.ts new file mode 100644 index 00000000..d5e2f9b7 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/exchange_pb.ts @@ -0,0 +1,2188 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/exchange.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { AtomicMarketOrderAccessLevel } from "./order_pb.js"; +import { MarketVolume } from "./market_pb.js"; + +/** + * @generated from enum injective.exchange.v2.ExecutionType + */ +export enum ExecutionType { + /** + * @generated from enum value: UnspecifiedExecutionType = 0; + */ + UnspecifiedExecutionType = 0, + + /** + * @generated from enum value: Market = 1; + */ + Market = 1, + + /** + * @generated from enum value: LimitFill = 2; + */ + LimitFill = 2, + + /** + * @generated from enum value: LimitMatchRestingOrder = 3; + */ + LimitMatchRestingOrder = 3, + + /** + * @generated from enum value: LimitMatchNewOrder = 4; + */ + LimitMatchNewOrder = 4, + + /** + * @generated from enum value: MarketLiquidation = 5; + */ + MarketLiquidation = 5, + + /** + * @generated from enum value: ExpiryMarketSettlement = 6; + */ + ExpiryMarketSettlement = 6, + + /** + * @generated from enum value: OffsettingPosition = 7; + */ + OffsettingPosition = 7, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionType) +proto3.util.setEnumType(ExecutionType, "injective.exchange.v2.ExecutionType", [ + { no: 0, name: "UnspecifiedExecutionType" }, + { no: 1, name: "Market" }, + { no: 2, name: "LimitFill" }, + { no: 3, name: "LimitMatchRestingOrder" }, + { no: 4, name: "LimitMatchNewOrder" }, + { no: 5, name: "MarketLiquidation" }, + { no: 6, name: "ExpiryMarketSettlement" }, + { no: 7, name: "OffsettingPosition" }, +]); + +/** + * @generated from message injective.exchange.v2.Params + */ +export class Params extends Message { + /** + * spot_market_instant_listing_fee defines the expedited fee in INJ required + * to create a spot market by bypassing governance + * + * @generated from field: cosmos.base.v1beta1.Coin spot_market_instant_listing_fee = 1; + */ + spotMarketInstantListingFee?: Coin; + + /** + * derivative_market_instant_listing_fee defines the expedited fee in INJ + * required to create a derivative market by bypassing governance + * + * @generated from field: cosmos.base.v1beta1.Coin derivative_market_instant_listing_fee = 2; + */ + derivativeMarketInstantListingFee?: Coin; + + /** + * default_spot_maker_fee defines the default exchange trade fee for makers on + * a spot market + * + * @generated from field: string default_spot_maker_fee_rate = 3; + */ + defaultSpotMakerFeeRate = ""; + + /** + * default_spot_taker_fee_rate defines the default exchange trade fee rate for + * takers on a new spot market + * + * @generated from field: string default_spot_taker_fee_rate = 4; + */ + defaultSpotTakerFeeRate = ""; + + /** + * default_derivative_maker_fee defines the default exchange trade fee for + * makers on a new derivative market + * + * @generated from field: string default_derivative_maker_fee_rate = 5; + */ + defaultDerivativeMakerFeeRate = ""; + + /** + * default_derivative_taker_fee defines the default exchange trade fee for + * takers on a new derivative market + * + * @generated from field: string default_derivative_taker_fee_rate = 6; + */ + defaultDerivativeTakerFeeRate = ""; + + /** + * default_initial_margin_ratio defines the default initial margin ratio on a + * new derivative market + * + * @generated from field: string default_initial_margin_ratio = 7; + */ + defaultInitialMarginRatio = ""; + + /** + * default_maintenance_margin_ratio defines the default maintenance margin + * ratio on a new derivative market + * + * @generated from field: string default_maintenance_margin_ratio = 8; + */ + defaultMaintenanceMarginRatio = ""; + + /** + * default_funding_interval defines the default funding interval on a + * derivative market + * + * @generated from field: int64 default_funding_interval = 9; + */ + defaultFundingInterval = protoInt64.zero; + + /** + * funding_multiple defines the timestamp multiple that the funding timestamp + * should be a multiple of + * + * @generated from field: int64 funding_multiple = 10; + */ + fundingMultiple = protoInt64.zero; + + /** + * relayer_fee_share_rate defines the trade fee share percentage that goes to + * relayers + * + * @generated from field: string relayer_fee_share_rate = 11; + */ + relayerFeeShareRate = ""; + + /** + * default_hourly_funding_rate_cap defines the default maximum absolute value + * of the hourly funding rate + * + * @generated from field: string default_hourly_funding_rate_cap = 12; + */ + defaultHourlyFundingRateCap = ""; + + /** + * hourly_interest_rate defines the hourly interest rate + * + * @generated from field: string default_hourly_interest_rate = 13; + */ + defaultHourlyInterestRate = ""; + + /** + * max_derivative_order_side_count defines the maximum number of derivative + * active orders a subaccount can have for a given orderbook side + * + * @generated from field: uint32 max_derivative_order_side_count = 14; + */ + maxDerivativeOrderSideCount = 0; + + /** + * inj_reward_staked_requirement_threshold defines the threshold on INJ + * rewards after which one also needs staked INJ to receive more + * + * @generated from field: string inj_reward_staked_requirement_threshold = 15; + */ + injRewardStakedRequirementThreshold = ""; + + /** + * the trading_rewards_vesting_duration defines the vesting times for trading + * rewards + * + * @generated from field: int64 trading_rewards_vesting_duration = 16; + */ + tradingRewardsVestingDuration = protoInt64.zero; + + /** + * liquidator_reward_share_rate defines the ratio of the split of the surplus + * collateral that goes to the liquidator + * + * @generated from field: string liquidator_reward_share_rate = 17; + */ + liquidatorRewardShareRate = ""; + + /** + * binary_options_market_instant_listing_fee defines the expedited fee in INJ + * required to create a derivative market by bypassing governance + * + * @generated from field: cosmos.base.v1beta1.Coin binary_options_market_instant_listing_fee = 18; + */ + binaryOptionsMarketInstantListingFee?: Coin; + + /** + * atomic_market_order_access_level defines the required access permissions + * for executing atomic market orders + * + * @generated from field: injective.exchange.v2.AtomicMarketOrderAccessLevel atomic_market_order_access_level = 19; + */ + atomicMarketOrderAccessLevel = AtomicMarketOrderAccessLevel.Nobody; + + /** + * spot_atomic_market_order_fee_multiplier defines the default multiplier for + * executing atomic market orders in spot markets + * + * @generated from field: string spot_atomic_market_order_fee_multiplier = 20; + */ + spotAtomicMarketOrderFeeMultiplier = ""; + + /** + * derivative_atomic_market_order_fee_multiplier defines the default + * multiplier for executing atomic market orders in derivative markets + * + * @generated from field: string derivative_atomic_market_order_fee_multiplier = 21; + */ + derivativeAtomicMarketOrderFeeMultiplier = ""; + + /** + * binary_options_atomic_market_order_fee_multiplier defines the default + * multiplier for executing atomic market orders in binary markets + * + * @generated from field: string binary_options_atomic_market_order_fee_multiplier = 22; + */ + binaryOptionsAtomicMarketOrderFeeMultiplier = ""; + + /** + * minimal_protocol_fee_rate defines the minimal protocol fee rate + * + * @generated from field: string minimal_protocol_fee_rate = 23; + */ + minimalProtocolFeeRate = ""; + + /** + * is_instant_derivative_market_launch_enabled defines whether instant + * derivative market launch is enabled + * + * @generated from field: bool is_instant_derivative_market_launch_enabled = 24; + */ + isInstantDerivativeMarketLaunchEnabled = false; + + /** + * @generated from field: int64 post_only_mode_height_threshold = 25; + */ + postOnlyModeHeightThreshold = protoInt64.zero; + + /** + * Maximum time in seconds since the last mark price update to allow a + * decrease in margin + * + * @generated from field: int64 margin_decrease_price_timestamp_threshold_seconds = 26; + */ + marginDecreasePriceTimestampThresholdSeconds = protoInt64.zero; + + /** + * List of addresses that are allowed to perform exchange admin operations + * + * @generated from field: repeated string exchange_admins = 27; + */ + exchangeAdmins: string[] = []; + + /** + * inj_auction_max_cap defines the maximum cap for INJ sent to auction + * + * @generated from field: string inj_auction_max_cap = 28; + */ + injAuctionMaxCap = ""; + + /** + * fixed_gas_enabled indicates if msg server will consume fixed gas amount for + * certain msg types + * + * @generated from field: bool fixed_gas_enabled = 29; + */ + fixedGasEnabled = false; + + /** + * emit_legacy_version_events indicates if events of legacy version types + * should be emitted in parallel to the new version events + * + * @generated from field: bool emit_legacy_version_events = 30; + */ + emitLegacyVersionEvents = false; + + /** + * default_reduce_margin_ratio defines the default reduce margin ratio on a + * new derivative market + * + * @generated from field: string default_reduce_margin_ratio = 31; + */ + defaultReduceMarginRatio = ""; + + /** + * post_only_mode_blocks_amount defines the amount of blocks the post only + * mode will be enabled after a chain upgrade + * + * @generated from field: uint64 post_only_mode_blocks_amount = 33; + */ + postOnlyModeBlocksAmount = protoInt64.zero; + + /** + * min_post_only_mode_downtime_duration defines the minimum downtime duration + * that must pass before the post only mode is automatically enabled. The + * accepted values are the Downtime enum values from the downtime_duration + * module + * + * @generated from field: string min_post_only_mode_downtime_duration = 34; + */ + minPostOnlyModeDowntimeDuration = ""; + + /** + * post_only_mode_blocks_amount defines the amount of blocks the post only + * mode will be enabled after the downtime-detector module detects a chain + * downtime + * + * @generated from field: uint64 post_only_mode_blocks_amount_after_downtime = 35; + */ + postOnlyModeBlocksAmountAfterDowntime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_market_instant_listing_fee", kind: "message", T: Coin }, + { no: 2, name: "derivative_market_instant_listing_fee", kind: "message", T: Coin }, + { no: 3, name: "default_spot_maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "default_spot_taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "default_derivative_maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "default_derivative_taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "default_initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "default_maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "default_funding_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "funding_multiple", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 11, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "default_hourly_funding_rate_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "default_hourly_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "max_derivative_order_side_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "inj_reward_staked_requirement_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "trading_rewards_vesting_duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 17, name: "liquidator_reward_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "binary_options_market_instant_listing_fee", kind: "message", T: Coin }, + { no: 19, name: "atomic_market_order_access_level", kind: "enum", T: proto3.getEnumType(AtomicMarketOrderAccessLevel) }, + { no: 20, name: "spot_atomic_market_order_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "derivative_atomic_market_order_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "binary_options_atomic_market_order_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 23, name: "minimal_protocol_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 24, name: "is_instant_derivative_market_launch_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 25, name: "post_only_mode_height_threshold", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 26, name: "margin_decrease_price_timestamp_threshold_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 27, name: "exchange_admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 28, name: "inj_auction_max_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 29, name: "fixed_gas_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 30, name: "emit_legacy_version_events", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 31, name: "default_reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 33, name: "post_only_mode_blocks_amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 34, name: "min_post_only_mode_downtime_duration", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 35, name: "post_only_mode_blocks_amount_after_downtime", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.NextFundingTimestamp + */ +export class NextFundingTimestamp extends Message { + /** + * @generated from field: int64 next_timestamp = 1; + */ + nextTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.NextFundingTimestamp"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NextFundingTimestamp { + return new NextFundingTimestamp().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NextFundingTimestamp { + return new NextFundingTimestamp().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NextFundingTimestamp { + return new NextFundingTimestamp().fromJsonString(jsonString, options); + } + + static equals(a: NextFundingTimestamp | PlainMessage | undefined, b: NextFundingTimestamp | PlainMessage | undefined): boolean { + return proto3.util.equals(NextFundingTimestamp, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MidPriceAndTOB + */ +export class MidPriceAndTOB extends Message { + /** + * mid price of the market (in human readable format) + * + * @generated from field: string mid_price = 1; + */ + midPrice = ""; + + /** + * best buy price of the market (in human readable format) + * + * @generated from field: string best_buy_price = 2; + */ + bestBuyPrice = ""; + + /** + * best sell price of the market (in human readable format) + * + * @generated from field: string best_sell_price = 3; + */ + bestSellPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MidPriceAndTOB"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mid_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "best_buy_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "best_sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MidPriceAndTOB { + return new MidPriceAndTOB().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MidPriceAndTOB { + return new MidPriceAndTOB().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MidPriceAndTOB { + return new MidPriceAndTOB().fromJsonString(jsonString, options); + } + + static equals(a: MidPriceAndTOB | PlainMessage | undefined, b: MidPriceAndTOB | PlainMessage | undefined): boolean { + return proto3.util.equals(MidPriceAndTOB, a, b); + } +} + +/** + * A subaccount's deposit for a given base currency + * + * @generated from message injective.exchange.v2.Deposit + */ +export class Deposit extends Message { + /** + * the available balance (in chain format) + * + * @generated from field: string available_balance = 1; + */ + availableBalance = ""; + + /** + * the total balance (in chain format) + * + * @generated from field: string total_balance = 2; + */ + totalBalance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "available_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountTradeNonce + */ +export class SubaccountTradeNonce extends Message { + /** + * @generated from field: uint32 nonce = 1; + */ + nonce = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountTradeNonce"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nonce", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountTradeNonce { + return new SubaccountTradeNonce().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountTradeNonce { + return new SubaccountTradeNonce().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountTradeNonce { + return new SubaccountTradeNonce().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountTradeNonce | PlainMessage | undefined, b: SubaccountTradeNonce | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountTradeNonce, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountOrder + */ +export class SubaccountOrder extends Message { + /** + * price of the order + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * the amount of the quantity remaining fillable + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * @generated from field: bool isReduceOnly = 3; + */ + isReduceOnly = false; + + /** + * @generated from field: string cid = 4; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "isReduceOnly", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountOrder { + return new SubaccountOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountOrder { + return new SubaccountOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountOrder { + return new SubaccountOrder().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountOrder | PlainMessage | undefined, b: SubaccountOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountOrderData + */ +export class SubaccountOrderData extends Message { + /** + * @generated from field: injective.exchange.v2.SubaccountOrder order = 1; + */ + order?: SubaccountOrder; + + /** + * @generated from field: bytes order_hash = 2; + */ + orderHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountOrderData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: SubaccountOrder }, + { no: 2, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountOrderData { + return new SubaccountOrderData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountOrderData { + return new SubaccountOrderData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountOrderData { + return new SubaccountOrderData().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountOrderData | PlainMessage | undefined, b: SubaccountOrderData | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountOrderData, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.Position + */ +export class Position extends Message { + /** + * True if the position is long. False if the position is short. + * + * @generated from field: bool isLong = 1; + */ + isLong = false; + + /** + * The quantity of the position (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * The entry price of the position (in human readable format) + * + * @generated from field: string entry_price = 3; + */ + entryPrice = ""; + + /** + * The margin of the position (in human readable format) + * + * @generated from field: string margin = 4; + */ + margin = ""; + + /** + * The cumulative funding + * + * @generated from field: string cumulative_funding_entry = 5; + */ + cumulativeFundingEntry = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "isLong", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "entry_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "cumulative_funding_entry", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.Balance + */ +export class Balance extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the denom of the balance + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * the token deposits details + * + * @generated from field: injective.exchange.v2.Deposit deposits = 3; + */ + deposits?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Balance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "deposits", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Balance { + return new Balance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Balance { + return new Balance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Balance { + return new Balance().fromJsonString(jsonString, options); + } + + static equals(a: Balance | PlainMessage | undefined, b: Balance | PlainMessage | undefined): boolean { + return proto3.util.equals(Balance, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativePosition + */ +export class DerivativePosition extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * the position details + * + * @generated from field: injective.exchange.v2.Position position = 3; + */ + position?: Position; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "position", kind: "message", T: Position }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativePosition { + return new DerivativePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativePosition { + return new DerivativePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativePosition { + return new DerivativePosition().fromJsonString(jsonString, options); + } + + static equals(a: DerivativePosition | PlainMessage | undefined, b: DerivativePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativePosition, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MarketOrderIndicator + */ +export class MarketOrderIndicator extends Message { + /** + * market_id represents the unique ID of the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool isBuy = 2; + */ + isBuy = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MarketOrderIndicator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketOrderIndicator { + return new MarketOrderIndicator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketOrderIndicator { + return new MarketOrderIndicator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketOrderIndicator { + return new MarketOrderIndicator().fromJsonString(jsonString, options); + } + + static equals(a: MarketOrderIndicator | PlainMessage | undefined, b: MarketOrderIndicator | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketOrderIndicator, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradeLog + */ +export class TradeLog extends Message { + /** + * @generated from field: string quantity = 1; + */ + quantity = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * bytes32 subaccount ID that executed the trade + * + * @generated from field: bytes subaccount_id = 3; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: string fee = 4; + */ + fee = ""; + + /** + * @generated from field: bytes order_hash = 5; + */ + orderHash = new Uint8Array(0); + + /** + * @generated from field: bytes fee_recipient_address = 6; + */ + feeRecipientAddress = new Uint8Array(0); + + /** + * @generated from field: string cid = 7; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradeLog"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "fee_recipient_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradeLog { + return new TradeLog().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradeLog { + return new TradeLog().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradeLog { + return new TradeLog().fromJsonString(jsonString, options); + } + + static equals(a: TradeLog | PlainMessage | undefined, b: TradeLog | PlainMessage | undefined): boolean { + return proto3.util.equals(TradeLog, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PositionDelta + */ +export class PositionDelta extends Message { + /** + * @generated from field: bool is_long = 1; + */ + isLong = false; + + /** + * @generated from field: string execution_quantity = 2; + */ + executionQuantity = ""; + + /** + * @generated from field: string execution_margin = 3; + */ + executionMargin = ""; + + /** + * @generated from field: string execution_price = 4; + */ + executionPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PositionDelta"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "is_long", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "execution_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "execution_margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "execution_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionDelta { + return new PositionDelta().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionDelta { + return new PositionDelta().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionDelta { + return new PositionDelta().fromJsonString(jsonString, options); + } + + static equals(a: PositionDelta | PlainMessage | undefined, b: PositionDelta | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionDelta, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeTradeLog + */ +export class DerivativeTradeLog extends Message { + /** + * @generated from field: bytes subaccount_id = 1; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: injective.exchange.v2.PositionDelta position_delta = 2; + */ + positionDelta?: PositionDelta; + + /** + * @generated from field: string payout = 3; + */ + payout = ""; + + /** + * @generated from field: string fee = 4; + */ + fee = ""; + + /** + * @generated from field: bytes order_hash = 5; + */ + orderHash = new Uint8Array(0); + + /** + * @generated from field: bytes fee_recipient_address = 6; + */ + feeRecipientAddress = new Uint8Array(0); + + /** + * @generated from field: string cid = 7; + */ + cid = ""; + + /** + * @generated from field: string pnl = 8; + */ + pnl = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeTradeLog"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "position_delta", kind: "message", T: PositionDelta }, + { no: 3, name: "payout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "fee_recipient_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pnl", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeTradeLog { + return new DerivativeTradeLog().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeTradeLog { + return new DerivativeTradeLog().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeTradeLog { + return new DerivativeTradeLog().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeTradeLog | PlainMessage | undefined, b: DerivativeTradeLog | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeTradeLog, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountPosition + */ +export class SubaccountPosition extends Message { + /** + * @generated from field: injective.exchange.v2.Position position = 1; + */ + position?: Position; + + /** + * @generated from field: bytes subaccount_id = 2; + */ + subaccountId = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: Position }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountPosition { + return new SubaccountPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountPosition { + return new SubaccountPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountPosition { + return new SubaccountPosition().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountPosition | PlainMessage | undefined, b: SubaccountPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountPosition, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountDeposit + */ +export class SubaccountDeposit extends Message { + /** + * @generated from field: bytes subaccount_id = 1; + */ + subaccountId = new Uint8Array(0); + + /** + * @generated from field: injective.exchange.v2.Deposit deposit = 2; + */ + deposit?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "deposit", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountDeposit | PlainMessage | undefined, b: SubaccountDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountDeposit, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DepositUpdate + */ +export class DepositUpdate extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SubaccountDeposit deposits = 2; + */ + deposits: SubaccountDeposit[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DepositUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deposits", kind: "message", T: SubaccountDeposit, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositUpdate { + return new DepositUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositUpdate { + return new DepositUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositUpdate { + return new DepositUpdate().fromJsonString(jsonString, options); + } + + static equals(a: DepositUpdate | PlainMessage | undefined, b: DepositUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PointsMultiplier + */ +export class PointsMultiplier extends Message { + /** + * @generated from field: string maker_points_multiplier = 1; + */ + makerPointsMultiplier = ""; + + /** + * @generated from field: string taker_points_multiplier = 2; + */ + takerPointsMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PointsMultiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maker_points_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_points_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PointsMultiplier { + return new PointsMultiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PointsMultiplier { + return new PointsMultiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PointsMultiplier { + return new PointsMultiplier().fromJsonString(jsonString, options); + } + + static equals(a: PointsMultiplier | PlainMessage | undefined, b: PointsMultiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(PointsMultiplier, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignBoostInfo + */ +export class TradingRewardCampaignBoostInfo extends Message { + /** + * @generated from field: repeated string boosted_spot_market_ids = 1; + */ + boostedSpotMarketIds: string[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.PointsMultiplier spot_market_multipliers = 2; + */ + spotMarketMultipliers: PointsMultiplier[] = []; + + /** + * @generated from field: repeated string boosted_derivative_market_ids = 3; + */ + boostedDerivativeMarketIds: string[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.PointsMultiplier derivative_market_multipliers = 4; + */ + derivativeMarketMultipliers: PointsMultiplier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignBoostInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "boosted_spot_market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "spot_market_multipliers", kind: "message", T: PointsMultiplier, repeated: true }, + { no: 3, name: "boosted_derivative_market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "derivative_market_multipliers", kind: "message", T: PointsMultiplier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignBoostInfo { + return new TradingRewardCampaignBoostInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignBoostInfo { + return new TradingRewardCampaignBoostInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignBoostInfo { + return new TradingRewardCampaignBoostInfo().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignBoostInfo | PlainMessage | undefined, b: TradingRewardCampaignBoostInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignBoostInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.CampaignRewardPool + */ +export class CampaignRewardPool extends Message { + /** + * the campaign start timestamp in seconds + * + * @generated from field: int64 start_timestamp = 1; + */ + startTimestamp = protoInt64.zero; + + /** + * max_campaign_rewards are the maximum reward amounts to be disbursed at the + * end of the campaign + * + * @generated from field: repeated cosmos.base.v1beta1.Coin max_campaign_rewards = 2; + */ + maxCampaignRewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.CampaignRewardPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "max_campaign_rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CampaignRewardPool { + return new CampaignRewardPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CampaignRewardPool { + return new CampaignRewardPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CampaignRewardPool { + return new CampaignRewardPool().fromJsonString(jsonString, options); + } + + static equals(a: CampaignRewardPool | PlainMessage | undefined, b: CampaignRewardPool | PlainMessage | undefined): boolean { + return proto3.util.equals(CampaignRewardPool, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignInfo + */ +export class TradingRewardCampaignInfo extends Message { + /** + * number of seconds of the duration of each campaign + * + * @generated from field: int64 campaign_duration_seconds = 1; + */ + campaignDurationSeconds = protoInt64.zero; + + /** + * the trading fee quote denoms which will be counted for the rewards + * + * @generated from field: repeated string quote_denoms = 2; + */ + quoteDenoms: string[] = []; + + /** + * the optional boost info for markets + * + * @generated from field: injective.exchange.v2.TradingRewardCampaignBoostInfo trading_reward_boost_info = 3; + */ + tradingRewardBoostInfo?: TradingRewardCampaignBoostInfo; + + /** + * the marketIDs which are disqualified from being rewarded + * + * @generated from field: repeated string disqualified_market_ids = 4; + */ + disqualifiedMarketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "campaign_duration_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "trading_reward_boost_info", kind: "message", T: TradingRewardCampaignBoostInfo }, + { no: 4, name: "disqualified_market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignInfo { + return new TradingRewardCampaignInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignInfo { + return new TradingRewardCampaignInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignInfo { + return new TradingRewardCampaignInfo().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignInfo | PlainMessage | undefined, b: TradingRewardCampaignInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountTierInfo + */ +export class FeeDiscountTierInfo extends Message { + /** + * the maker discount rate + * + * @generated from field: string maker_discount_rate = 1; + */ + makerDiscountRate = ""; + + /** + * the taker discount rate + * + * @generated from field: string taker_discount_rate = 2; + */ + takerDiscountRate = ""; + + /** + * the staked amount required to qualify for the discount (in chain format) + * + * @generated from field: string staked_amount = 3; + */ + stakedAmount = ""; + + /** + * the volume required to qualify for the discount (in human readable format) + * + * @generated from field: string volume = 4; + */ + volume = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountTierInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maker_discount_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_discount_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "staked_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "volume", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountTierInfo { + return new FeeDiscountTierInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountTierInfo { + return new FeeDiscountTierInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountTierInfo { + return new FeeDiscountTierInfo().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountTierInfo | PlainMessage | undefined, b: FeeDiscountTierInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountTierInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountSchedule + */ +export class FeeDiscountSchedule extends Message { + /** + * the bucket number + * + * @generated from field: uint64 bucket_count = 1; + */ + bucketCount = protoInt64.zero; + + /** + * the bucket duration in seconds + * + * @generated from field: int64 bucket_duration = 2; + */ + bucketDuration = protoInt64.zero; + + /** + * the trading fee quote denoms which will be counted for the fee paid + * contribution + * + * @generated from field: repeated string quote_denoms = 3; + */ + quoteDenoms: string[] = []; + + /** + * the fee discount tiers + * + * @generated from field: repeated injective.exchange.v2.FeeDiscountTierInfo tier_infos = 4; + */ + tierInfos: FeeDiscountTierInfo[] = []; + + /** + * the marketIDs which are disqualified from contributing to the fee paid + * amount + * + * @generated from field: repeated string disqualified_market_ids = 5; + */ + disqualifiedMarketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bucket_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "bucket_duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "tier_infos", kind: "message", T: FeeDiscountTierInfo, repeated: true }, + { no: 5, name: "disqualified_market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountSchedule { + return new FeeDiscountSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountSchedule { + return new FeeDiscountSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountSchedule { + return new FeeDiscountSchedule().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountSchedule | PlainMessage | undefined, b: FeeDiscountSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountSchedule, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountTierTTL + */ +export class FeeDiscountTierTTL extends Message { + /** + * the tier number + * + * @generated from field: uint64 tier = 1; + */ + tier = protoInt64.zero; + + /** + * the TTL timestamp in seconds + * + * @generated from field: int64 ttl_timestamp = 2; + */ + ttlTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountTierTTL"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tier", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "ttl_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountTierTTL { + return new FeeDiscountTierTTL().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountTierTTL { + return new FeeDiscountTierTTL().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountTierTTL { + return new FeeDiscountTierTTL().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountTierTTL | PlainMessage | undefined, b: FeeDiscountTierTTL | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountTierTTL, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.AccountRewards + */ +export class AccountRewards extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 2; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AccountRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountRewards { + return new AccountRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountRewards { + return new AccountRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountRewards { + return new AccountRewards().fromJsonString(jsonString, options); + } + + static equals(a: AccountRewards | PlainMessage | undefined, b: AccountRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountRewards, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradeRecords + */ +export class TradeRecords extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.TradeRecord latest_trade_records = 2; + */ + latestTradeRecords: TradeRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradeRecords"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "latest_trade_records", kind: "message", T: TradeRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradeRecords { + return new TradeRecords().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradeRecords { + return new TradeRecords().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradeRecords { + return new TradeRecords().fromJsonString(jsonString, options); + } + + static equals(a: TradeRecords | PlainMessage | undefined, b: TradeRecords | PlainMessage | undefined): boolean { + return proto3.util.equals(TradeRecords, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountIDs + */ +export class SubaccountIDs extends Message { + /** + * @generated from field: repeated bytes subaccount_ids = 1; + */ + subaccountIds: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountIDs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountIDs { + return new SubaccountIDs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountIDs { + return new SubaccountIDs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountIDs { + return new SubaccountIDs().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountIDs | PlainMessage | undefined, b: SubaccountIDs | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountIDs, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradeRecord + */ +export class TradeRecord extends Message { + /** + * the timestamp of the trade + * + * @generated from field: int64 timestamp = 1; + */ + timestamp = protoInt64.zero; + + /** + * the price of the trade (in human readable format) + * + * @generated from field: string price = 2; + */ + price = ""; + + /** + * the quantity of the trade (in human readable format) + * + * @generated from field: string quantity = 3; + */ + quantity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradeRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradeRecord { + return new TradeRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradeRecord { + return new TradeRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradeRecord { + return new TradeRecord().fromJsonString(jsonString, options); + } + + static equals(a: TradeRecord | PlainMessage | undefined, b: TradeRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(TradeRecord, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.Level + */ +export class Level extends Message { + /** + * price (in human readable format) + * + * @generated from field: string p = 1; + */ + p = ""; + + /** + * quantity (in human readable format) + * + * @generated from field: string q = 2; + */ + q = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Level"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "p", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "q", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Level { + return new Level().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Level { + return new Level().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Level { + return new Level().fromJsonString(jsonString, options); + } + + static equals(a: Level | PlainMessage | undefined, b: Level | PlainMessage | undefined): boolean { + return proto3.util.equals(Level, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.AggregateSubaccountVolumeRecord + */ +export class AggregateSubaccountVolumeRecord extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the subaccount volumes for each market + * + * @generated from field: repeated injective.exchange.v2.MarketVolume market_volumes = 2; + */ + marketVolumes: MarketVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AggregateSubaccountVolumeRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_volumes", kind: "message", T: MarketVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AggregateSubaccountVolumeRecord { + return new AggregateSubaccountVolumeRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AggregateSubaccountVolumeRecord { + return new AggregateSubaccountVolumeRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AggregateSubaccountVolumeRecord { + return new AggregateSubaccountVolumeRecord().fromJsonString(jsonString, options); + } + + static equals(a: AggregateSubaccountVolumeRecord | PlainMessage | undefined, b: AggregateSubaccountVolumeRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(AggregateSubaccountVolumeRecord, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.AggregateAccountVolumeRecord + */ +export class AggregateAccountVolumeRecord extends Message { + /** + * account the volume belongs to + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * the aggregate volumes for each market + * + * @generated from field: repeated injective.exchange.v2.MarketVolume market_volumes = 2; + */ + marketVolumes: MarketVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AggregateAccountVolumeRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_volumes", kind: "message", T: MarketVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AggregateAccountVolumeRecord { + return new AggregateAccountVolumeRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AggregateAccountVolumeRecord { + return new AggregateAccountVolumeRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AggregateAccountVolumeRecord { + return new AggregateAccountVolumeRecord().fromJsonString(jsonString, options); + } + + static equals(a: AggregateAccountVolumeRecord | PlainMessage | undefined, b: AggregateAccountVolumeRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(AggregateAccountVolumeRecord, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DenomDecimals + */ +export class DenomDecimals extends Message { + /** + * the denom of the token + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * the decimals of the token + * + * @generated from field: uint64 decimals = 2; + */ + decimals = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DenomDecimals"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "decimals", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomDecimals { + return new DenomDecimals().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomDecimals { + return new DenomDecimals().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomDecimals { + return new DenomDecimals().fromJsonString(jsonString, options); + } + + static equals(a: DenomDecimals | PlainMessage | undefined, b: DenomDecimals | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomDecimals, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.GrantAuthorization + */ +export class GrantAuthorization extends Message { + /** + * the grantee address + * + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * the amount of stake granted (INJ in chain format) + * + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.GrantAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GrantAuthorization { + return new GrantAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: GrantAuthorization | PlainMessage | undefined, b: GrantAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(GrantAuthorization, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.ActiveGrant + */ +export class ActiveGrant extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ActiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGrant { + return new ActiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGrant { + return new ActiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActiveGrant { + return new ActiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: ActiveGrant | PlainMessage | undefined, b: ActiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(ActiveGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EffectiveGrant + */ +export class EffectiveGrant extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string net_granted_stake = 2; + */ + netGrantedStake = ""; + + /** + * @generated from field: bool is_valid = 3; + */ + isValid = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EffectiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "net_granted_stake", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "is_valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EffectiveGrant { + return new EffectiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: EffectiveGrant | PlainMessage | undefined, b: EffectiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(EffectiveGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DenomMinNotional + */ +export class DenomMinNotional extends Message { + /** + * the denom of the token + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * the minimum notional value for the token (in human readable format) + * + * @generated from field: string min_notional = 2; + */ + minNotional = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DenomMinNotional"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomMinNotional { + return new DenomMinNotional().fromJsonString(jsonString, options); + } + + static equals(a: DenomMinNotional | PlainMessage | undefined, b: DenomMinNotional | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomMinNotional, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/genesis_pb.ts b/src/protobufs/injective/exchange/v2/genesis_pb.ts new file mode 100644 index 00000000..6e09c5c2 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/genesis_pb.ts @@ -0,0 +1,741 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/genesis.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ActiveGrant, AggregateSubaccountVolumeRecord, Balance, CampaignRewardPool, DenomDecimals, DenomMinNotional, DerivativePosition, FeeDiscountSchedule, FeeDiscountTierTTL, GrantAuthorization, Params, SubaccountTradeNonce, TradeRecords, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { BinaryOptionsMarket, DerivativeMarket, DerivativeMarketSettlementInfo, ExpiryFuturesMarketInfoState, MarketFeeMultiplier, MarketVolume, PerpetualMarketFundingState, PerpetualMarketInfo, SpotMarket } from "./market_pb.js"; +import { ConditionalDerivativeOrderBook, DerivativeOrderBook, SpotOrderBook } from "./orderbook_pb.js"; + +/** + * GenesisState defines the exchange module's genesis state. + * + * @generated from message injective.exchange.v2.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of related to exchange. + * + * @generated from field: injective.exchange.v2.Params params = 1; + */ + params?: Params; + + /** + * spot_markets is an array containing the genesis trade pairs + * + * @generated from field: repeated injective.exchange.v2.SpotMarket spot_markets = 2; + */ + spotMarkets: SpotMarket[] = []; + + /** + * derivative_markets is an array containing the genesis derivative markets + * + * @generated from field: repeated injective.exchange.v2.DerivativeMarket derivative_markets = 3; + */ + derivativeMarkets: DerivativeMarket[] = []; + + /** + * spot_orderbook defines the spot exchange limit orderbook active at genesis. + * + * @generated from field: repeated injective.exchange.v2.SpotOrderBook spot_orderbook = 4; + */ + spotOrderbook: SpotOrderBook[] = []; + + /** + * derivative_orderbook defines the derivative exchange limit orderbook active + * at genesis. + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrderBook derivative_orderbook = 5; + */ + derivativeOrderbook: DerivativeOrderBook[] = []; + + /** + * balances defines the exchange users balances active at genesis. + * + * @generated from field: repeated injective.exchange.v2.Balance balances = 6; + */ + balances: Balance[] = []; + + /** + * positions defines the exchange derivative positions at genesis + * + * @generated from field: repeated injective.exchange.v2.DerivativePosition positions = 7; + */ + positions: DerivativePosition[] = []; + + /** + * subaccount_trade_nonces defines the subaccount trade nonces for the + * subaccounts at genesis + * + * @generated from field: repeated injective.exchange.v2.SubaccountNonce subaccount_trade_nonces = 8; + */ + subaccountTradeNonces: SubaccountNonce[] = []; + + /** + * expiry_futures_market_info defines the market info for the expiry futures + * markets at genesis + * + * @generated from field: repeated injective.exchange.v2.ExpiryFuturesMarketInfoState expiry_futures_market_info_state = 9; + */ + expiryFuturesMarketInfoState: ExpiryFuturesMarketInfoState[] = []; + + /** + * perpetual_market_info defines the market info for the perpetual derivative + * markets at genesis + * + * @generated from field: repeated injective.exchange.v2.PerpetualMarketInfo perpetual_market_info = 10; + */ + perpetualMarketInfo: PerpetualMarketInfo[] = []; + + /** + * perpetual_market_funding_state defines the funding state for the perpetual + * derivative markets at genesis + * + * @generated from field: repeated injective.exchange.v2.PerpetualMarketFundingState perpetual_market_funding_state = 11; + */ + perpetualMarketFundingState: PerpetualMarketFundingState[] = []; + + /** + * derivative_market_settlement_scheduled defines the scheduled markets for + * settlement at genesis + * + * @generated from field: repeated injective.exchange.v2.DerivativeMarketSettlementInfo derivative_market_settlement_scheduled = 12; + */ + derivativeMarketSettlementScheduled: DerivativeMarketSettlementInfo[] = []; + + /** + * sets spot markets as enabled + * + * @generated from field: bool is_spot_exchange_enabled = 13; + */ + isSpotExchangeEnabled = false; + + /** + * sets derivative markets as enabled + * + * @generated from field: bool is_derivatives_exchange_enabled = 14; + */ + isDerivativesExchangeEnabled = false; + + /** + * the current trading reward campaign info + * + * @generated from field: injective.exchange.v2.TradingRewardCampaignInfo trading_reward_campaign_info = 15; + */ + tradingRewardCampaignInfo?: TradingRewardCampaignInfo; + + /** + * the current and upcoming trading reward campaign pools + * + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool trading_reward_pool_campaign_schedule = 16; + */ + tradingRewardPoolCampaignSchedule: CampaignRewardPool[] = []; + + /** + * the current trading reward account points + * + * @generated from field: repeated injective.exchange.v2.TradingRewardCampaignAccountPoints trading_reward_campaign_account_points = 17; + */ + tradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPoints[] = []; + + /** + * the fee discount schedule + * + * @generated from field: injective.exchange.v2.FeeDiscountSchedule fee_discount_schedule = 18; + */ + feeDiscountSchedule?: FeeDiscountSchedule; + + /** + * the cached fee discount account tiers with TTL + * + * @generated from field: repeated injective.exchange.v2.FeeDiscountAccountTierTTL fee_discount_account_tier_ttl = 19; + */ + feeDiscountAccountTierTtl: FeeDiscountAccountTierTTL[] = []; + + /** + * the fee discount paid by accounts in all buckets + * + * @generated from field: repeated injective.exchange.v2.FeeDiscountBucketVolumeAccounts fee_discount_bucket_volume_accounts = 20; + */ + feeDiscountBucketVolumeAccounts: FeeDiscountBucketVolumeAccounts[] = []; + + /** + * sets the first fee cycle as finished + * + * @generated from field: bool is_first_fee_cycle_finished = 21; + */ + isFirstFeeCycleFinished = false; + + /** + * the current and upcoming trading reward campaign pending pools + * + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 22; + */ + pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool[] = []; + + /** + * the pending trading reward account points + * + * @generated from field: repeated injective.exchange.v2.TradingRewardCampaignAccountPendingPoints pending_trading_reward_campaign_account_points = 23; + */ + pendingTradingRewardCampaignAccountPoints: TradingRewardCampaignAccountPendingPoints[] = []; + + /** + * the addresses opting out of trading rewards + * + * @generated from field: repeated string rewards_opt_out_addresses = 24; + */ + rewardsOptOutAddresses: string[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.TradeRecords historical_trade_records = 25; + */ + historicalTradeRecords: TradeRecords[] = []; + + /** + * binary_options_markets is an array containing the genesis binary options + * markets + * + * @generated from field: repeated injective.exchange.v2.BinaryOptionsMarket binary_options_markets = 26; + */ + binaryOptionsMarkets: BinaryOptionsMarket[] = []; + + /** + * binary_options_markets_scheduled_for_settlement contains the marketIDs of + * binary options markets scheduled for next-block settlement + * + * @generated from field: repeated string binary_options_market_ids_scheduled_for_settlement = 27; + */ + binaryOptionsMarketIdsScheduledForSettlement: string[] = []; + + /** + * spot_market_ids_scheduled_to_force_close defines the scheduled markets for + * forced closings at genesis + * + * @generated from field: repeated string spot_market_ids_scheduled_to_force_close = 28; + */ + spotMarketIdsScheduledToForceClose: string[] = []; + + /** + * auction_exchange_transfer_denom_decimals defines the denom decimals for the + * exchange. + * + * @generated from field: repeated injective.exchange.v2.DenomDecimals auction_exchange_transfer_denom_decimals = 29; + */ + auctionExchangeTransferDenomDecimals: DenomDecimals[] = []; + + /** + * conditional_derivative_orderbook contains conditional orderbooks for all + * markets (both lmit and market conditional orders) + * + * @generated from field: repeated injective.exchange.v2.ConditionalDerivativeOrderBook conditional_derivative_orderbooks = 30; + */ + conditionalDerivativeOrderbooks: ConditionalDerivativeOrderBook[] = []; + + /** + * market_fee_multipliers contains any non-default atomic order fee + * multipliers + * + * @generated from field: repeated injective.exchange.v2.MarketFeeMultiplier market_fee_multipliers = 31; + */ + marketFeeMultipliers: MarketFeeMultiplier[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.OrderbookSequence orderbook_sequences = 32; + */ + orderbookSequences: OrderbookSequence[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.AggregateSubaccountVolumeRecord subaccount_volumes = 33; + */ + subaccountVolumes: AggregateSubaccountVolumeRecord[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.MarketVolume market_volumes = 34; + */ + marketVolumes: MarketVolume[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.FullGrantAuthorizations grant_authorizations = 35; + */ + grantAuthorizations: FullGrantAuthorizations[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.FullActiveGrant active_grants = 36; + */ + activeGrants: FullActiveGrant[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DenomMinNotional denom_min_notionals = 37; + */ + denomMinNotionals: DenomMinNotional[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "spot_markets", kind: "message", T: SpotMarket, repeated: true }, + { no: 3, name: "derivative_markets", kind: "message", T: DerivativeMarket, repeated: true }, + { no: 4, name: "spot_orderbook", kind: "message", T: SpotOrderBook, repeated: true }, + { no: 5, name: "derivative_orderbook", kind: "message", T: DerivativeOrderBook, repeated: true }, + { no: 6, name: "balances", kind: "message", T: Balance, repeated: true }, + { no: 7, name: "positions", kind: "message", T: DerivativePosition, repeated: true }, + { no: 8, name: "subaccount_trade_nonces", kind: "message", T: SubaccountNonce, repeated: true }, + { no: 9, name: "expiry_futures_market_info_state", kind: "message", T: ExpiryFuturesMarketInfoState, repeated: true }, + { no: 10, name: "perpetual_market_info", kind: "message", T: PerpetualMarketInfo, repeated: true }, + { no: 11, name: "perpetual_market_funding_state", kind: "message", T: PerpetualMarketFundingState, repeated: true }, + { no: 12, name: "derivative_market_settlement_scheduled", kind: "message", T: DerivativeMarketSettlementInfo, repeated: true }, + { no: 13, name: "is_spot_exchange_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "is_derivatives_exchange_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "trading_reward_campaign_info", kind: "message", T: TradingRewardCampaignInfo }, + { no: 16, name: "trading_reward_pool_campaign_schedule", kind: "message", T: CampaignRewardPool, repeated: true }, + { no: 17, name: "trading_reward_campaign_account_points", kind: "message", T: TradingRewardCampaignAccountPoints, repeated: true }, + { no: 18, name: "fee_discount_schedule", kind: "message", T: FeeDiscountSchedule }, + { no: 19, name: "fee_discount_account_tier_ttl", kind: "message", T: FeeDiscountAccountTierTTL, repeated: true }, + { no: 20, name: "fee_discount_bucket_volume_accounts", kind: "message", T: FeeDiscountBucketVolumeAccounts, repeated: true }, + { no: 21, name: "is_first_fee_cycle_finished", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 22, name: "pending_trading_reward_pool_campaign_schedule", kind: "message", T: CampaignRewardPool, repeated: true }, + { no: 23, name: "pending_trading_reward_campaign_account_points", kind: "message", T: TradingRewardCampaignAccountPendingPoints, repeated: true }, + { no: 24, name: "rewards_opt_out_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 25, name: "historical_trade_records", kind: "message", T: TradeRecords, repeated: true }, + { no: 26, name: "binary_options_markets", kind: "message", T: BinaryOptionsMarket, repeated: true }, + { no: 27, name: "binary_options_market_ids_scheduled_for_settlement", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 28, name: "spot_market_ids_scheduled_to_force_close", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 29, name: "auction_exchange_transfer_denom_decimals", kind: "message", T: DenomDecimals, repeated: true }, + { no: 30, name: "conditional_derivative_orderbooks", kind: "message", T: ConditionalDerivativeOrderBook, repeated: true }, + { no: 31, name: "market_fee_multipliers", kind: "message", T: MarketFeeMultiplier, repeated: true }, + { no: 32, name: "orderbook_sequences", kind: "message", T: OrderbookSequence, repeated: true }, + { no: 33, name: "subaccount_volumes", kind: "message", T: AggregateSubaccountVolumeRecord, repeated: true }, + { no: 34, name: "market_volumes", kind: "message", T: MarketVolume, repeated: true }, + { no: 35, name: "grant_authorizations", kind: "message", T: FullGrantAuthorizations, repeated: true }, + { no: 36, name: "active_grants", kind: "message", T: FullActiveGrant, repeated: true }, + { no: 37, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OrderbookSequence + */ +export class OrderbookSequence extends Message { + /** + * @generated from field: uint64 sequence = 1; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: string market_id = 2; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OrderbookSequence"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderbookSequence { + return new OrderbookSequence().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderbookSequence { + return new OrderbookSequence().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderbookSequence { + return new OrderbookSequence().fromJsonString(jsonString, options); + } + + static equals(a: OrderbookSequence | PlainMessage | undefined, b: OrderbookSequence | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderbookSequence, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountAccountTierTTL + */ +export class FeeDiscountAccountTierTTL extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountTierTTL tier_ttl = 2; + */ + tierTtl?: FeeDiscountTierTTL; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountAccountTierTTL"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tier_ttl", kind: "message", T: FeeDiscountTierTTL }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountAccountTierTTL { + return new FeeDiscountAccountTierTTL().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountAccountTierTTL { + return new FeeDiscountAccountTierTTL().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountAccountTierTTL { + return new FeeDiscountAccountTierTTL().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountAccountTierTTL | PlainMessage | undefined, b: FeeDiscountAccountTierTTL | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountAccountTierTTL, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountBucketVolumeAccounts + */ +export class FeeDiscountBucketVolumeAccounts extends Message { + /** + * @generated from field: int64 bucket_start_timestamp = 1; + */ + bucketStartTimestamp = protoInt64.zero; + + /** + * @generated from field: repeated injective.exchange.v2.AccountVolume account_volume = 2; + */ + accountVolume: AccountVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountBucketVolumeAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bucket_start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "account_volume", kind: "message", T: AccountVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountBucketVolumeAccounts { + return new FeeDiscountBucketVolumeAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountBucketVolumeAccounts { + return new FeeDiscountBucketVolumeAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountBucketVolumeAccounts { + return new FeeDiscountBucketVolumeAccounts().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountBucketVolumeAccounts | PlainMessage | undefined, b: FeeDiscountBucketVolumeAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountBucketVolumeAccounts, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.AccountVolume + */ +export class AccountVolume extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string volume = 2; + */ + volume = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AccountVolume"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "volume", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountVolume { + return new AccountVolume().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountVolume { + return new AccountVolume().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountVolume { + return new AccountVolume().fromJsonString(jsonString, options); + } + + static equals(a: AccountVolume | PlainMessage | undefined, b: AccountVolume | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountVolume, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignAccountPoints + */ +export class TradingRewardCampaignAccountPoints extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string points = 2; + */ + points = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignAccountPoints"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "points", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignAccountPoints { + return new TradingRewardCampaignAccountPoints().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignAccountPoints { + return new TradingRewardCampaignAccountPoints().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignAccountPoints { + return new TradingRewardCampaignAccountPoints().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignAccountPoints | PlainMessage | undefined, b: TradingRewardCampaignAccountPoints | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignAccountPoints, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignAccountPendingPoints + */ +export class TradingRewardCampaignAccountPendingPoints extends Message { + /** + * @generated from field: int64 reward_pool_start_timestamp = 1; + */ + rewardPoolStartTimestamp = protoInt64.zero; + + /** + * @generated from field: repeated injective.exchange.v2.TradingRewardCampaignAccountPoints account_points = 2; + */ + accountPoints: TradingRewardCampaignAccountPoints[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignAccountPendingPoints"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reward_pool_start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "account_points", kind: "message", T: TradingRewardCampaignAccountPoints, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignAccountPendingPoints { + return new TradingRewardCampaignAccountPendingPoints().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignAccountPendingPoints { + return new TradingRewardCampaignAccountPendingPoints().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignAccountPendingPoints { + return new TradingRewardCampaignAccountPendingPoints().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignAccountPendingPoints | PlainMessage | undefined, b: TradingRewardCampaignAccountPendingPoints | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignAccountPendingPoints, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountNonce + */ +export class SubaccountNonce extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the subaccount trade nonce + * + * @generated from field: injective.exchange.v2.SubaccountTradeNonce subaccount_trade_nonce = 2; + */ + subaccountTradeNonce?: SubaccountTradeNonce; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountNonce"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_trade_nonce", kind: "message", T: SubaccountTradeNonce }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountNonce { + return new SubaccountNonce().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountNonce { + return new SubaccountNonce().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountNonce { + return new SubaccountNonce().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountNonce | PlainMessage | undefined, b: SubaccountNonce | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountNonce, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FullGrantAuthorizations + */ +export class FullGrantAuthorizations extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string total_grant_amount = 2; + */ + totalGrantAmount = ""; + + /** + * @generated from field: int64 last_delegations_checked_time = 3; + */ + lastDelegationsCheckedTime = protoInt64.zero; + + /** + * @generated from field: repeated injective.exchange.v2.GrantAuthorization grants = 4; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FullGrantAuthorizations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_grant_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "last_delegations_checked_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullGrantAuthorizations { + return new FullGrantAuthorizations().fromJsonString(jsonString, options); + } + + static equals(a: FullGrantAuthorizations | PlainMessage | undefined, b: FullGrantAuthorizations | PlainMessage | undefined): boolean { + return proto3.util.equals(FullGrantAuthorizations, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FullActiveGrant + */ +export class FullActiveGrant extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + /** + * @generated from field: injective.exchange.v2.ActiveGrant active_grant = 2; + */ + activeGrant?: ActiveGrant; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FullActiveGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "active_grant", kind: "message", T: ActiveGrant }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullActiveGrant { + return new FullActiveGrant().fromJsonString(jsonString, options); + } + + static equals(a: FullActiveGrant | PlainMessage | undefined, b: FullActiveGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(FullActiveGrant, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/market_pb.ts b/src/protobufs/injective/exchange/v2/market_pb.ts new file mode 100644 index 00000000..a9cc1db7 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/market_pb.ts @@ -0,0 +1,1221 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/market.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { OracleType } from "../../oracle/v1beta1/oracle_pb.js"; + +/** + * @generated from enum injective.exchange.v2.MarketStatus + */ +export enum MarketStatus { + /** + * @generated from enum value: Unspecified = 0; + */ + Unspecified = 0, + + /** + * @generated from enum value: Active = 1; + */ + Active = 1, + + /** + * @generated from enum value: Paused = 2; + */ + Paused = 2, + + /** + * @generated from enum value: Demolished = 3; + */ + Demolished = 3, + + /** + * @generated from enum value: Expired = 4; + */ + Expired = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(MarketStatus) +proto3.util.setEnumType(MarketStatus, "injective.exchange.v2.MarketStatus", [ + { no: 0, name: "Unspecified" }, + { no: 1, name: "Active" }, + { no: 2, name: "Paused" }, + { no: 3, name: "Demolished" }, + { no: 4, name: "Expired" }, +]); + +/** + * @generated from message injective.exchange.v2.OpenNotionalCap + */ +export class OpenNotionalCap extends Message { + /** + * @generated from oneof injective.exchange.v2.OpenNotionalCap.cap + */ + cap: { + /** + * @generated from field: injective.exchange.v2.OpenNotionalCapUncapped uncapped = 1; + */ + value: OpenNotionalCapUncapped; + case: "uncapped"; + } | { + /** + * @generated from field: injective.exchange.v2.OpenNotionalCapCapped capped = 2; + */ + value: OpenNotionalCapCapped; + case: "capped"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OpenNotionalCap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uncapped", kind: "message", T: OpenNotionalCapUncapped, oneof: "cap" }, + { no: 2, name: "capped", kind: "message", T: OpenNotionalCapCapped, oneof: "cap" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCap { + return new OpenNotionalCap().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCap | PlainMessage | undefined, b: OpenNotionalCap | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCap, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OpenNotionalCapUncapped + */ +export class OpenNotionalCapUncapped extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OpenNotionalCapUncapped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCapUncapped { + return new OpenNotionalCapUncapped().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCapUncapped | PlainMessage | undefined, b: OpenNotionalCapUncapped | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCapUncapped, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OpenNotionalCapCapped + */ +export class OpenNotionalCapCapped extends Message { + /** + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OpenNotionalCapCapped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenNotionalCapCapped { + return new OpenNotionalCapCapped().fromJsonString(jsonString, options); + } + + static equals(a: OpenNotionalCapCapped | PlainMessage | undefined, b: OpenNotionalCapCapped | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenNotionalCapCapped, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MarketFeeMultiplier + */ +export class MarketFeeMultiplier extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string fee_multiplier = 2; + */ + feeMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MarketFeeMultiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketFeeMultiplier { + return new MarketFeeMultiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketFeeMultiplier { + return new MarketFeeMultiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketFeeMultiplier { + return new MarketFeeMultiplier().fromJsonString(jsonString, options); + } + + static equals(a: MarketFeeMultiplier | PlainMessage | undefined, b: MarketFeeMultiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketFeeMultiplier, a, b); + } +} + +/** + * An object describing trade pair of two assets. + * + * @generated from message injective.exchange.v2.SpotMarket + */ +export class SpotMarket extends Message { + /** + * A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote + * asset. + * + * @generated from field: string ticker = 1; + */ + ticker = ""; + + /** + * Coin denom used for the base asset + * + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + /** + * Coin used for the quote asset + * + * @generated from field: string quote_denom = 3; + */ + quoteDenom = ""; + + /** + * maker_fee_rate defines the fee percentage makers pay when trading + * + * @generated from field: string maker_fee_rate = 4; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the fee percentage takers pay when trading + * + * @generated from field: string taker_fee_rate = 5; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the percentage of the transaction fee shared + * with the relayer in a derivative market + * + * @generated from field: string relayer_fee_share_rate = 6; + */ + relayerFeeShareRate = ""; + + /** + * Unique market ID. + * + * @generated from field: string market_id = 7; + */ + marketId = ""; + + /** + * Status of the market + * + * @generated from field: injective.exchange.v2.MarketStatus status = 8; + */ + status = MarketStatus.Unspecified; + + /** + * min_price_tick_size defines the minimum tick size that the price required + * for orders in the market (in human readable format) + * + * @generated from field: string min_price_tick_size = 9; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the quantity + * required for orders in the market (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 10; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 11; + */ + minNotional = ""; + + /** + * current market admin + * + * @generated from field: string admin = 12; + */ + admin = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 13; + */ + adminPermissions = 0; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 14; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 15; + */ + quoteDecimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 9, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 14, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarket { + return new SpotMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotMarket { + return new SpotMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotMarket { + return new SpotMarket().fromJsonString(jsonString, options); + } + + static equals(a: SpotMarket | PlainMessage | undefined, b: SpotMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotMarket, a, b); + } +} + +/** + * An object describing a binary options market in Injective Protocol. + * + * @generated from message injective.exchange.v2.BinaryOptionsMarket + */ +export class BinaryOptionsMarket extends Message { + /** + * Ticker for the derivative contract. + * + * @generated from field: string ticker = 1; + */ + ticker = ""; + + /** + * Oracle symbol + * + * @generated from field: string oracle_symbol = 2; + */ + oracleSymbol = ""; + + /** + * Oracle Provider + * + * @generated from field: string oracle_provider = 3; + */ + oracleProvider = ""; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 4; + */ + oracleType = OracleType.Unspecified; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 5; + */ + oracleScaleFactor = 0; + + /** + * expiration timestamp + * + * @generated from field: int64 expiration_timestamp = 6; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration timestamp + * + * @generated from field: int64 settlement_timestamp = 7; + */ + settlementTimestamp = protoInt64.zero; + + /** + * admin of the market + * + * @generated from field: string admin = 8; + */ + admin = ""; + + /** + * Address of the quote currency denomination for the binary options contract + * + * @generated from field: string quote_denom = 9; + */ + quoteDenom = ""; + + /** + * Unique market ID. + * + * @generated from field: string market_id = 10; + */ + marketId = ""; + + /** + * maker_fee_rate defines the maker fee rate of a binary options market + * + * @generated from field: string maker_fee_rate = 11; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the taker fee rate of a derivative market + * + * @generated from field: string taker_fee_rate = 12; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the percentage of the transaction fee shared + * with the relayer in a derivative market + * + * @generated from field: string relayer_fee_share_rate = 13; + */ + relayerFeeShareRate = ""; + + /** + * Status of the market + * + * @generated from field: injective.exchange.v2.MarketStatus status = 14; + */ + status = MarketStatus.Unspecified; + + /** + * min_price_tick_size defines the minimum tick size that the price and margin + * required for orders in the market (in human readable format) + * + * @generated from field: string min_price_tick_size = 15; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the quantity + * required for orders in the market (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 16; + */ + minQuantityTickSize = ""; + + /** + * settlement_price defines the settlement price of the binary options market + * (in human readable format) + * + * @generated from field: string settlement_price = 17; + */ + settlementPrice = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 18; + */ + minNotional = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 19; + */ + adminPermissions = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 20; + */ + quoteDecimals = 0; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 21; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BinaryOptionsMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 5, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "settlement_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 15, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 20, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 21, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BinaryOptionsMarket { + return new BinaryOptionsMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BinaryOptionsMarket { + return new BinaryOptionsMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BinaryOptionsMarket { + return new BinaryOptionsMarket().fromJsonString(jsonString, options); + } + + static equals(a: BinaryOptionsMarket | PlainMessage | undefined, b: BinaryOptionsMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(BinaryOptionsMarket, a, b); + } +} + +/** + * An object describing a derivative market in the Injective Futures Protocol. + * + * @generated from message injective.exchange.v2.DerivativeMarket + */ +export class DerivativeMarket extends Message { + /** + * Ticker for the derivative contract. + * + * @generated from field: string ticker = 1; + */ + ticker = ""; + + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 2; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 3; + */ + oracleQuote = ""; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 4; + */ + oracleType = OracleType.Unspecified; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 5; + */ + oracleScaleFactor = 0; + + /** + * Address of the quote currency denomination for the derivative contract + * + * @generated from field: string quote_denom = 6; + */ + quoteDenom = ""; + + /** + * Unique market ID. + * + * @generated from field: string market_id = 7; + */ + marketId = ""; + + /** + * initial_margin_ratio defines the initial margin ratio of a derivative + * market + * + * @generated from field: string initial_margin_ratio = 8; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio of a + * derivative market + * + * @generated from field: string maintenance_margin_ratio = 9; + */ + maintenanceMarginRatio = ""; + + /** + * maker_fee_rate defines the maker fee rate of a derivative market + * + * @generated from field: string maker_fee_rate = 10; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the taker fee rate of a derivative market + * + * @generated from field: string taker_fee_rate = 11; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the percentage of the transaction fee shared + * with the relayer in a derivative market + * + * @generated from field: string relayer_fee_share_rate = 12; + */ + relayerFeeShareRate = ""; + + /** + * true if the market is a perpetual market. false if the market is an expiry + * futures market + * + * @generated from field: bool isPerpetual = 13; + */ + isPerpetual = false; + + /** + * Status of the market + * + * @generated from field: injective.exchange.v2.MarketStatus status = 14; + */ + status = MarketStatus.Unspecified; + + /** + * min_price_tick_size defines the minimum tick size that the price and margin + * required for orders in the market (in human readable format) + * + * @generated from field: string min_price_tick_size = 15; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the quantity + * required for orders in the market (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 16; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 17; + */ + minNotional = ""; + + /** + * current market admin + * + * @generated from field: string admin = 18; + */ + admin = ""; + + /** + * level of admin permissions + * + * @generated from field: uint32 admin_permissions = 19; + */ + adminPermissions = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 20; + */ + quoteDecimals = 0; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 21; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 22; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 5, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "isPerpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 15, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 20, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 21, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarket { + return new DerivativeMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarket { + return new DerivativeMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarket { + return new DerivativeMarket().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarket | PlainMessage | undefined, b: DerivativeMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarket, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeMarketSettlementInfo + */ +export class DerivativeMarketSettlementInfo extends Message { + /** + * market ID. + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * settlement_price defines the settlement price + * + * @generated from field: string settlement_price = 2; + */ + settlementPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarketSettlementInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketSettlementInfo { + return new DerivativeMarketSettlementInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketSettlementInfo { + return new DerivativeMarketSettlementInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketSettlementInfo { + return new DerivativeMarketSettlementInfo().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarketSettlementInfo | PlainMessage | undefined, b: DerivativeMarketSettlementInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarketSettlementInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MarketVolume + */ +export class MarketVolume extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the market volume + * + * @generated from field: injective.exchange.v2.VolumeRecord volume = 2; + */ + volume?: VolumeRecord; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MarketVolume"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "volume", kind: "message", T: VolumeRecord }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketVolume { + return new MarketVolume().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketVolume { + return new MarketVolume().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketVolume { + return new MarketVolume().fromJsonString(jsonString, options); + } + + static equals(a: MarketVolume | PlainMessage | undefined, b: MarketVolume | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketVolume, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.VolumeRecord + */ +export class VolumeRecord extends Message { + /** + * the market's maker volume (in human readable format) + * + * @generated from field: string maker_volume = 1; + */ + makerVolume = ""; + + /** + * the market's taker volume (in human readable format) + * + * @generated from field: string taker_volume = 2; + */ + takerVolume = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.VolumeRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maker_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VolumeRecord { + return new VolumeRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VolumeRecord { + return new VolumeRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VolumeRecord { + return new VolumeRecord().fromJsonString(jsonString, options); + } + + static equals(a: VolumeRecord | PlainMessage | undefined, b: VolumeRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(VolumeRecord, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.ExpiryFuturesMarketInfoState + */ +export class ExpiryFuturesMarketInfoState extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: injective.exchange.v2.ExpiryFuturesMarketInfo market_info = 2; + */ + marketInfo?: ExpiryFuturesMarketInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ExpiryFuturesMarketInfoState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_info", kind: "message", T: ExpiryFuturesMarketInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExpiryFuturesMarketInfoState { + return new ExpiryFuturesMarketInfoState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExpiryFuturesMarketInfoState { + return new ExpiryFuturesMarketInfoState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExpiryFuturesMarketInfoState { + return new ExpiryFuturesMarketInfoState().fromJsonString(jsonString, options); + } + + static equals(a: ExpiryFuturesMarketInfoState | PlainMessage | undefined, b: ExpiryFuturesMarketInfoState | PlainMessage | undefined): boolean { + return proto3.util.equals(ExpiryFuturesMarketInfoState, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PerpetualMarketFundingState + */ +export class PerpetualMarketFundingState extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketFunding funding = 2; + */ + funding?: PerpetualMarketFunding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PerpetualMarketFundingState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "funding", kind: "message", T: PerpetualMarketFunding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualMarketFundingState { + return new PerpetualMarketFundingState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualMarketFundingState { + return new PerpetualMarketFundingState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualMarketFundingState { + return new PerpetualMarketFundingState().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualMarketFundingState | PlainMessage | undefined, b: PerpetualMarketFundingState | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualMarketFundingState, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.ExpiryFuturesMarketInfo + */ +export class ExpiryFuturesMarketInfo extends Message { + /** + * market ID. + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * expiration_timestamp defines the expiration time for a time expiry futures + * market. + * + * @generated from field: int64 expiration_timestamp = 2; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration_twap_start_timestamp defines the start time of the TWAP + * calculation window + * + * @generated from field: int64 twap_start_timestamp = 3; + */ + twapStartTimestamp = protoInt64.zero; + + /** + * expiration_twap_start_price_cumulative defines the cumulative price for the + * start of the TWAP window (in human readable format) + * + * @generated from field: string expiration_twap_start_price_cumulative = 4; + */ + expirationTwapStartPriceCumulative = ""; + + /** + * settlement_price defines the settlement price for a time expiry futures + * market (in human readable format) + * + * @generated from field: string settlement_price = 5; + */ + settlementPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ExpiryFuturesMarketInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "twap_start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "expiration_twap_start_price_cumulative", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExpiryFuturesMarketInfo { + return new ExpiryFuturesMarketInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExpiryFuturesMarketInfo { + return new ExpiryFuturesMarketInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExpiryFuturesMarketInfo { + return new ExpiryFuturesMarketInfo().fromJsonString(jsonString, options); + } + + static equals(a: ExpiryFuturesMarketInfo | PlainMessage | undefined, b: ExpiryFuturesMarketInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ExpiryFuturesMarketInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PerpetualMarketInfo + */ +export class PerpetualMarketInfo extends Message { + /** + * market ID. + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * hourly_funding_rate_cap defines the maximum absolute value of the hourly + * funding rate + * + * @generated from field: string hourly_funding_rate_cap = 2; + */ + hourlyFundingRateCap = ""; + + /** + * hourly_interest_rate defines the hourly interest rate + * + * @generated from field: string hourly_interest_rate = 3; + */ + hourlyInterestRate = ""; + + /** + * next_funding_timestamp defines the next funding timestamp in seconds of a + * perpetual market + * + * @generated from field: int64 next_funding_timestamp = 4; + */ + nextFundingTimestamp = protoInt64.zero; + + /** + * funding_interval defines the next funding interval in seconds of a + * perpetual market. + * + * @generated from field: int64 funding_interval = 5; + */ + fundingInterval = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PerpetualMarketInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hourly_funding_rate_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "hourly_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "next_funding_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "funding_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualMarketInfo { + return new PerpetualMarketInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualMarketInfo { + return new PerpetualMarketInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualMarketInfo { + return new PerpetualMarketInfo().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualMarketInfo | PlainMessage | undefined, b: PerpetualMarketInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualMarketInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PerpetualMarketFunding + */ +export class PerpetualMarketFunding extends Message { + /** + * cumulative_funding defines the cumulative funding of a perpetual market. + * + * @generated from field: string cumulative_funding = 1; + */ + cumulativeFunding = ""; + + /** + * cumulative_price defines the running time-integral of the perp premium + * ((VWAP - mark_price) / mark_price) i.e., sum(premium * seconds) + * used to compute the interval’s average premium for funding + * + * @generated from field: string cumulative_price = 2; + */ + cumulativePrice = ""; + + /** + * the last funding timestamp in seconds + * + * @generated from field: int64 last_timestamp = 3; + */ + lastTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PerpetualMarketFunding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cumulative_funding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cumulative_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "last_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualMarketFunding { + return new PerpetualMarketFunding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualMarketFunding { + return new PerpetualMarketFunding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualMarketFunding { + return new PerpetualMarketFunding().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualMarketFunding | PlainMessage | undefined, b: PerpetualMarketFunding | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualMarketFunding, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/order_pb.ts b/src/protobufs/injective/exchange/v2/order_pb.ts new file mode 100644 index 00000000..477ab77e --- /dev/null +++ b/src/protobufs/injective/exchange/v2/order_pb.ts @@ -0,0 +1,711 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/order.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from enum injective.exchange.v2.OrderType + */ +export enum OrderType { + /** + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: BUY = 1; + */ + BUY = 1, + + /** + * @generated from enum value: SELL = 2; + */ + SELL = 2, + + /** + * @generated from enum value: STOP_BUY = 3; + */ + STOP_BUY = 3, + + /** + * @generated from enum value: STOP_SELL = 4; + */ + STOP_SELL = 4, + + /** + * @generated from enum value: TAKE_BUY = 5; + */ + TAKE_BUY = 5, + + /** + * @generated from enum value: TAKE_SELL = 6; + */ + TAKE_SELL = 6, + + /** + * @generated from enum value: BUY_PO = 7; + */ + BUY_PO = 7, + + /** + * @generated from enum value: SELL_PO = 8; + */ + SELL_PO = 8, + + /** + * @generated from enum value: BUY_ATOMIC = 9; + */ + BUY_ATOMIC = 9, + + /** + * @generated from enum value: SELL_ATOMIC = 10; + */ + SELL_ATOMIC = 10, +} +// Retrieve enum metadata with: proto3.getEnumType(OrderType) +proto3.util.setEnumType(OrderType, "injective.exchange.v2.OrderType", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "BUY" }, + { no: 2, name: "SELL" }, + { no: 3, name: "STOP_BUY" }, + { no: 4, name: "STOP_SELL" }, + { no: 5, name: "TAKE_BUY" }, + { no: 6, name: "TAKE_SELL" }, + { no: 7, name: "BUY_PO" }, + { no: 8, name: "SELL_PO" }, + { no: 9, name: "BUY_ATOMIC" }, + { no: 10, name: "SELL_ATOMIC" }, +]); + +/** + * @generated from enum injective.exchange.v2.OrderMask + */ +export enum OrderMask { + /** + * @generated from enum value: UNUSED = 0; + */ + UNUSED = 0, + + /** + * @generated from enum value: ANY = 1; + */ + ANY = 1, + + /** + * @generated from enum value: REGULAR = 2; + */ + REGULAR = 2, + + /** + * @generated from enum value: CONDITIONAL = 4; + */ + CONDITIONAL = 4, + + /** + * for conditional orders means HIGHER + * + * @generated from enum value: DIRECTION_BUY_OR_HIGHER = 8; + */ + DIRECTION_BUY_OR_HIGHER = 8, + + /** + * for conditional orders means LOWER + * + * @generated from enum value: DIRECTION_SELL_OR_LOWER = 16; + */ + DIRECTION_SELL_OR_LOWER = 16, + + /** + * @generated from enum value: TYPE_MARKET = 32; + */ + TYPE_MARKET = 32, + + /** + * @generated from enum value: TYPE_LIMIT = 64; + */ + TYPE_LIMIT = 64, +} +// Retrieve enum metadata with: proto3.getEnumType(OrderMask) +proto3.util.setEnumType(OrderMask, "injective.exchange.v2.OrderMask", [ + { no: 0, name: "UNUSED" }, + { no: 1, name: "ANY" }, + { no: 2, name: "REGULAR" }, + { no: 4, name: "CONDITIONAL" }, + { no: 8, name: "DIRECTION_BUY_OR_HIGHER" }, + { no: 16, name: "DIRECTION_SELL_OR_LOWER" }, + { no: 32, name: "TYPE_MARKET" }, + { no: 64, name: "TYPE_LIMIT" }, +]); + +/** + * @generated from enum injective.exchange.v2.AtomicMarketOrderAccessLevel + */ +export enum AtomicMarketOrderAccessLevel { + /** + * @generated from enum value: Nobody = 0; + */ + Nobody = 0, + + /** + * currently unsupported + * + * @generated from enum value: BeginBlockerSmartContractsOnly = 1; + */ + BeginBlockerSmartContractsOnly = 1, + + /** + * @generated from enum value: SmartContractsOnly = 2; + */ + SmartContractsOnly = 2, + + /** + * @generated from enum value: Everyone = 3; + */ + Everyone = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(AtomicMarketOrderAccessLevel) +proto3.util.setEnumType(AtomicMarketOrderAccessLevel, "injective.exchange.v2.AtomicMarketOrderAccessLevel", [ + { no: 0, name: "Nobody" }, + { no: 1, name: "BeginBlockerSmartContractsOnly" }, + { no: 2, name: "SmartContractsOnly" }, + { no: 3, name: "Everyone" }, +]); + +/** + * @generated from message injective.exchange.v2.OrderInfo + */ +export class OrderInfo extends Message { + /** + * bytes32 subaccount ID that created the order + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * address fee_recipient address that will receive fees for the order + * + * @generated from field: string fee_recipient = 2; + */ + feeRecipient = ""; + + /** + * price of the order (in human readable format) + * + * @generated from field: string price = 3; + */ + price = ""; + + /** + * quantity of the order (in human readable format) + * + * @generated from field: string quantity = 4; + */ + quantity = ""; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 5; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OrderInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "fee_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderInfo { + return new OrderInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderInfo { + return new OrderInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderInfo { + return new OrderInfo().fromJsonString(jsonString, options); + } + + static equals(a: OrderInfo | PlainMessage | undefined, b: OrderInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SpotOrder + */ +export class SpotOrder extends Message { + /** + * market_id represents the unique ID of the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 2; + */ + orderInfo?: OrderInfo; + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 3; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * trigger_price is the trigger price used by stop/take orders (in human + * readable format) (optional) + * + * @generated from field: string trigger_price = 4; + */ + triggerPrice = ""; + + /** + * expiration block is the block number at which the order will expire + * + * @generated from field: int64 expiration_block = 5; + */ + expirationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_info", kind: "message", T: OrderInfo }, + { no: 3, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 4, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "expiration_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrder { + return new SpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrder { + return new SpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrder { + return new SpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrder | PlainMessage | undefined, b: SpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrder, a, b); + } +} + +/** + * A valid Spot market order with Metadata. + * + * @generated from message injective.exchange.v2.SpotMarketOrder + */ +export class SpotMarketOrder extends Message { + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 1; + */ + orderInfo?: OrderInfo; + + /** + * @generated from field: string balance_hold = 2; + */ + balanceHold = ""; + + /** + * @generated from field: bytes order_hash = 3; + */ + orderHash = new Uint8Array(0); + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 4; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * trigger_price is the trigger price used by stop/take orders + * + * @generated from field: string trigger_price = 5; + */ + triggerPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotMarketOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_info", kind: "message", T: OrderInfo }, + { no: 2, name: "balance_hold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 5, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarketOrder { + return new SpotMarketOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotMarketOrder { + return new SpotMarketOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotMarketOrder { + return new SpotMarketOrder().fromJsonString(jsonString, options); + } + + static equals(a: SpotMarketOrder | PlainMessage | undefined, b: SpotMarketOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotMarketOrder, a, b); + } +} + +/** + * A valid Spot limit order with Metadata. + * + * @generated from message injective.exchange.v2.SpotLimitOrder + */ +export class SpotLimitOrder extends Message { + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 1; + */ + orderInfo?: OrderInfo; + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 2; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * the amount of the quantity remaining fillable + * + * @generated from field: string fillable = 3; + */ + fillable = ""; + + /** + * trigger_price is the trigger price used by stop/take orders + * + * @generated from field: string trigger_price = 4; + */ + triggerPrice = ""; + + /** + * order hash + * + * @generated from field: bytes order_hash = 5; + */ + orderHash = new Uint8Array(0); + + /** + * expiration block is the block number at which the order will expire + * + * @generated from field: int64 expiration_block = 6; + */ + expirationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_info", kind: "message", T: OrderInfo }, + { no: 2, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 3, name: "fillable", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "expiration_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotLimitOrder { + return new SpotLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotLimitOrder { + return new SpotLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotLimitOrder { + return new SpotLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: SpotLimitOrder | PlainMessage | undefined, b: SpotLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotLimitOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeOrder + */ +export class DerivativeOrder extends Message { + /** + * market_id represents the unique ID of the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 2; + */ + orderInfo?: OrderInfo; + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 3; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * margin is the margin used by the limit order (in human readable format) + * + * @generated from field: string margin = 4; + */ + margin = ""; + + /** + * trigger_price is the trigger price used by stop/take orders (in human + * readable format) (optional) + * + * @generated from field: string trigger_price = 5; + */ + triggerPrice = ""; + + /** + * expiration block is the block number at which the order will expire + * + * @generated from field: int64 expiration_block = 6; + */ + expirationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_info", kind: "message", T: OrderInfo }, + { no: 3, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 4, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "expiration_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeOrder | PlainMessage | undefined, b: DerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeOrder, a, b); + } +} + +/** + * A valid Derivative market order with Metadata. + * + * @generated from message injective.exchange.v2.DerivativeMarketOrder + */ +export class DerivativeMarketOrder extends Message { + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 1; + */ + orderInfo?: OrderInfo; + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 2; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * @generated from field: string margin = 3; + */ + margin = ""; + + /** + * @generated from field: string margin_hold = 4; + */ + marginHold = ""; + + /** + * trigger_price is the trigger price used by stop/take orders + * + * @generated from field: string trigger_price = 5; + */ + triggerPrice = ""; + + /** + * @generated from field: bytes order_hash = 6; + */ + orderHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarketOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_info", kind: "message", T: OrderInfo }, + { no: 2, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 3, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "margin_hold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketOrder { + return new DerivativeMarketOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketOrder { + return new DerivativeMarketOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketOrder { + return new DerivativeMarketOrder().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarketOrder | PlainMessage | undefined, b: DerivativeMarketOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarketOrder, a, b); + } +} + +/** + * A valid Derivative limit order with Metadata. + * + * @generated from message injective.exchange.v2.DerivativeLimitOrder + */ +export class DerivativeLimitOrder extends Message { + /** + * order_info contains the information of the order + * + * @generated from field: injective.exchange.v2.OrderInfo order_info = 1; + */ + orderInfo?: OrderInfo; + + /** + * order types + * + * @generated from field: injective.exchange.v2.OrderType order_type = 2; + */ + orderType = OrderType.UNSPECIFIED; + + /** + * margin is the margin used by the limit order + * + * @generated from field: string margin = 3; + */ + margin = ""; + + /** + * the amount of the quantity remaining fillable + * + * @generated from field: string fillable = 4; + */ + fillable = ""; + + /** + * trigger_price is the trigger price used by stop/take orders + * + * @generated from field: string trigger_price = 5; + */ + triggerPrice = ""; + + /** + * @generated from field: bytes order_hash = 6; + */ + orderHash = new Uint8Array(0); + + /** + * expiration block is the block number at which the order will expire + * + * @generated from field: int64 expiration_block = 7; + */ + expirationBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_info", kind: "message", T: OrderInfo }, + { no: 2, name: "order_type", kind: "enum", T: proto3.getEnumType(OrderType) }, + { no: 3, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fillable", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "trigger_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "expiration_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeLimitOrder { + return new DerivativeLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeLimitOrder { + return new DerivativeLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeLimitOrder { + return new DerivativeLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeLimitOrder | PlainMessage | undefined, b: DerivativeLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeLimitOrder, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/orderbook_pb.ts b/src/protobufs/injective/exchange/v2/orderbook_pb.ts new file mode 100644 index 00000000..ac366af7 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/orderbook_pb.ts @@ -0,0 +1,255 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/orderbook.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DerivativeLimitOrder, DerivativeMarketOrder, SpotLimitOrder } from "./order_pb.js"; + +/** + * Spot Exchange Limit Orderbook + * + * @generated from message injective.exchange.v2.SpotOrderBook + */ +export class SpotOrderBook extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool isBuySide = 2; + */ + isBuySide = false; + + /** + * @generated from field: repeated injective.exchange.v2.SpotLimitOrder orders = 3; + */ + orders: SpotLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotOrderBook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "isBuySide", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "orders", kind: "message", T: SpotLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrderBook { + return new SpotOrderBook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrderBook { + return new SpotOrderBook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrderBook { + return new SpotOrderBook().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrderBook | PlainMessage | undefined, b: SpotOrderBook | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrderBook, a, b); + } +} + +/** + * Derivative Exchange Limit Orderbook + * + * @generated from message injective.exchange.v2.DerivativeOrderBook + */ +export class DerivativeOrderBook extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bool isBuySide = 2; + */ + isBuySide = false; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeLimitOrder orders = 3; + */ + orders: DerivativeLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeOrderBook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "isBuySide", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeOrderBook { + return new DerivativeOrderBook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeOrderBook { + return new DerivativeOrderBook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeOrderBook { + return new DerivativeOrderBook().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeOrderBook | PlainMessage | undefined, b: DerivativeOrderBook | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeOrderBook, a, b); + } +} + +/** + * Orderbook containing limit & market conditional orders + * + * @generated from message injective.exchange.v2.ConditionalDerivativeOrderBook + */ +export class ConditionalDerivativeOrderBook extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeLimitOrder limit_buy_orders = 2; + */ + limitBuyOrders: DerivativeLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeMarketOrder market_buy_orders = 3; + */ + marketBuyOrders: DerivativeMarketOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeLimitOrder limit_sell_orders = 4; + */ + limitSellOrders: DerivativeLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeMarketOrder market_sell_orders = 5; + */ + marketSellOrders: DerivativeMarketOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ConditionalDerivativeOrderBook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit_buy_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, + { no: 3, name: "market_buy_orders", kind: "message", T: DerivativeMarketOrder, repeated: true }, + { no: 4, name: "limit_sell_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, + { no: 5, name: "market_sell_orders", kind: "message", T: DerivativeMarketOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConditionalDerivativeOrderBook { + return new ConditionalDerivativeOrderBook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConditionalDerivativeOrderBook { + return new ConditionalDerivativeOrderBook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConditionalDerivativeOrderBook { + return new ConditionalDerivativeOrderBook().fromJsonString(jsonString, options); + } + + static equals(a: ConditionalDerivativeOrderBook | PlainMessage | undefined, b: ConditionalDerivativeOrderBook | PlainMessage | undefined): boolean { + return proto3.util.equals(ConditionalDerivativeOrderBook, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountOrderbookMetadata + */ +export class SubaccountOrderbookMetadata extends Message { + /** + * The number of vanilla limit orders + * + * @generated from field: uint32 vanilla_limit_order_count = 1; + */ + vanillaLimitOrderCount = 0; + + /** + * The number of reduce-only limit orders + * + * @generated from field: uint32 reduce_only_limit_order_count = 2; + */ + reduceOnlyLimitOrderCount = 0; + + /** + * The aggregate quantity of the subaccount's reduce-only limit orders (in + * human readable format) + * + * @generated from field: string aggregate_reduce_only_quantity = 3; + */ + aggregateReduceOnlyQuantity = ""; + + /** + * The aggregate quantity of the subaccount's vanilla limit orders (in human + * readable format) + * + * @generated from field: string aggregate_vanilla_quantity = 4; + */ + aggregateVanillaQuantity = ""; + + /** + * The number of vanilla conditional orders + * + * @generated from field: uint32 vanilla_conditional_order_count = 5; + */ + vanillaConditionalOrderCount = 0; + + /** + * The number of reduce-only conditional orders + * + * @generated from field: uint32 reduce_only_conditional_order_count = 6; + */ + reduceOnlyConditionalOrderCount = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountOrderbookMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vanilla_limit_order_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "reduce_only_limit_order_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "aggregate_reduce_only_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "aggregate_vanilla_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "vanilla_conditional_order_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "reduce_only_conditional_order_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountOrderbookMetadata { + return new SubaccountOrderbookMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountOrderbookMetadata { + return new SubaccountOrderbookMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountOrderbookMetadata { + return new SubaccountOrderbookMetadata().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountOrderbookMetadata | PlainMessage | undefined, b: SubaccountOrderbookMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountOrderbookMetadata, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/proposal_pb.ts b/src/protobufs/injective/exchange/v2/proposal_pb.ts new file mode 100644 index 00000000..e20e7058 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/proposal_pb.ts @@ -0,0 +1,2035 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/proposal.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { MarketFeeMultiplier, MarketStatus, OpenNotionalCap } from "./market_pb.js"; +import { OracleType } from "../../oracle/v1beta1/oracle_pb.js"; +import { CampaignRewardPool, DenomDecimals, DenomMinNotional, FeeDiscountSchedule, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { CommunityPoolSpendProposal } from "../../../cosmos/distribution/v1beta1/distribution_pb.js"; + +/** + * @generated from enum injective.exchange.v2.ExchangeType + */ +export enum ExchangeType { + /** + * @generated from enum value: EXCHANGE_UNSPECIFIED = 0; + */ + EXCHANGE_UNSPECIFIED = 0, + + /** + * @generated from enum value: SPOT = 1; + */ + SPOT = 1, + + /** + * @generated from enum value: DERIVATIVES = 2; + */ + DERIVATIVES = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ExchangeType) +proto3.util.setEnumType(ExchangeType, "injective.exchange.v2.ExchangeType", [ + { no: 0, name: "EXCHANGE_UNSPECIFIED" }, + { no: 1, name: "SPOT" }, + { no: 2, name: "DERIVATIVES" }, +]); + +/** + * @generated from message injective.exchange.v2.SpotMarketParamUpdateProposal + */ +export class SpotMarketParamUpdateProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * maker_fee_rate defines the trade fee rate for makers on the spot market + * + * @generated from field: string maker_fee_rate = 4; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the trade fee rate for takers on the spot market + * + * @generated from field: string taker_fee_rate = 5; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the relayer fee share rate for the spot + * market + * + * @generated from field: string relayer_fee_share_rate = 6; + */ + relayerFeeShareRate = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 7; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 8; + */ + minQuantityTickSize = ""; + + /** + * @generated from field: injective.exchange.v2.MarketStatus status = 9; + */ + status = MarketStatus.Unspecified; + + /** + * @generated from field: string ticker = 10; + */ + ticker = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 11; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v2.AdminInfo admin_info = 12; + */ + adminInfo?: AdminInfo; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 13; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 14; + */ + quoteDecimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotMarketParamUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 10, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 13, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 14, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarketParamUpdateProposal { + return new SpotMarketParamUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotMarketParamUpdateProposal { + return new SpotMarketParamUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotMarketParamUpdateProposal { + return new SpotMarketParamUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: SpotMarketParamUpdateProposal | PlainMessage | undefined, b: SpotMarketParamUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotMarketParamUpdateProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.ExchangeEnableProposal + */ +export class ExchangeEnableProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: injective.exchange.v2.ExchangeType exchangeType = 3; + */ + exchangeType = ExchangeType.EXCHANGE_UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ExchangeEnableProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "exchangeType", kind: "enum", T: proto3.getEnumType(ExchangeType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExchangeEnableProposal { + return new ExchangeEnableProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExchangeEnableProposal { + return new ExchangeEnableProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExchangeEnableProposal { + return new ExchangeEnableProposal().fromJsonString(jsonString, options); + } + + static equals(a: ExchangeEnableProposal | PlainMessage | undefined, b: ExchangeEnableProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ExchangeEnableProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchExchangeModificationProposal + */ +export class BatchExchangeModificationProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SpotMarketParamUpdateProposal spot_market_param_update_proposals = 3; + */ + spotMarketParamUpdateProposals: SpotMarketParamUpdateProposal[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.DerivativeMarketParamUpdateProposal derivative_market_param_update_proposals = 4; + */ + derivativeMarketParamUpdateProposals: DerivativeMarketParamUpdateProposal[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.SpotMarketLaunchProposal spot_market_launch_proposals = 5; + */ + spotMarketLaunchProposals: SpotMarketLaunchProposal[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.PerpetualMarketLaunchProposal perpetual_market_launch_proposals = 6; + */ + perpetualMarketLaunchProposals: PerpetualMarketLaunchProposal[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.ExpiryFuturesMarketLaunchProposal expiry_futures_market_launch_proposals = 7; + */ + expiryFuturesMarketLaunchProposals: ExpiryFuturesMarketLaunchProposal[] = []; + + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignUpdateProposal trading_reward_campaign_update_proposal = 8; + */ + tradingRewardCampaignUpdateProposal?: TradingRewardCampaignUpdateProposal; + + /** + * @generated from field: repeated injective.exchange.v2.BinaryOptionsMarketLaunchProposal binary_options_market_launch_proposals = 9; + */ + binaryOptionsMarketLaunchProposals: BinaryOptionsMarketLaunchProposal[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.BinaryOptionsMarketParamUpdateProposal binary_options_param_update_proposals = 10; + */ + binaryOptionsParamUpdateProposals: BinaryOptionsMarketParamUpdateProposal[] = []; + + /** + * @generated from field: injective.exchange.v2.UpdateAuctionExchangeTransferDenomDecimalsProposal auction_exchange_transfer_denom_decimals_update_proposal = 11; + */ + auctionExchangeTransferDenomDecimalsUpdateProposal?: UpdateAuctionExchangeTransferDenomDecimalsProposal; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountProposal fee_discount_proposal = 12; + */ + feeDiscountProposal?: FeeDiscountProposal; + + /** + * @generated from field: repeated injective.exchange.v2.MarketForcedSettlementProposal market_forced_settlement_proposals = 13; + */ + marketForcedSettlementProposals: MarketForcedSettlementProposal[] = []; + + /** + * @generated from field: injective.exchange.v2.DenomMinNotionalProposal denom_min_notional_proposal = 14; + */ + denomMinNotionalProposal?: DenomMinNotionalProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchExchangeModificationProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "spot_market_param_update_proposals", kind: "message", T: SpotMarketParamUpdateProposal, repeated: true }, + { no: 4, name: "derivative_market_param_update_proposals", kind: "message", T: DerivativeMarketParamUpdateProposal, repeated: true }, + { no: 5, name: "spot_market_launch_proposals", kind: "message", T: SpotMarketLaunchProposal, repeated: true }, + { no: 6, name: "perpetual_market_launch_proposals", kind: "message", T: PerpetualMarketLaunchProposal, repeated: true }, + { no: 7, name: "expiry_futures_market_launch_proposals", kind: "message", T: ExpiryFuturesMarketLaunchProposal, repeated: true }, + { no: 8, name: "trading_reward_campaign_update_proposal", kind: "message", T: TradingRewardCampaignUpdateProposal }, + { no: 9, name: "binary_options_market_launch_proposals", kind: "message", T: BinaryOptionsMarketLaunchProposal, repeated: true }, + { no: 10, name: "binary_options_param_update_proposals", kind: "message", T: BinaryOptionsMarketParamUpdateProposal, repeated: true }, + { no: 11, name: "auction_exchange_transfer_denom_decimals_update_proposal", kind: "message", T: UpdateAuctionExchangeTransferDenomDecimalsProposal }, + { no: 12, name: "fee_discount_proposal", kind: "message", T: FeeDiscountProposal }, + { no: 13, name: "market_forced_settlement_proposals", kind: "message", T: MarketForcedSettlementProposal, repeated: true }, + { no: 14, name: "denom_min_notional_proposal", kind: "message", T: DenomMinNotionalProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchExchangeModificationProposal { + return new BatchExchangeModificationProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchExchangeModificationProposal { + return new BatchExchangeModificationProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchExchangeModificationProposal { + return new BatchExchangeModificationProposal().fromJsonString(jsonString, options); + } + + static equals(a: BatchExchangeModificationProposal | PlainMessage | undefined, b: BatchExchangeModificationProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchExchangeModificationProposal, a, b); + } +} + +/** + * SpotMarketLaunchProposal defines a SDK message for proposing a new spot + * market through governance + * + * @generated from message injective.exchange.v2.SpotMarketLaunchProposal + */ +export class SpotMarketLaunchProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Ticker for the spot market. + * + * @generated from field: string ticker = 3; + */ + ticker = ""; + + /** + * type of coin to use as the base currency + * + * @generated from field: string base_denom = 4; + */ + baseDenom = ""; + + /** + * type of coin to use as the quote currency + * + * @generated from field: string quote_denom = 5; + */ + quoteDenom = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price + * + * @generated from field: string min_price_tick_size = 6; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 7; + */ + minQuantityTickSize = ""; + + /** + * maker_fee_rate defines the fee percentage makers pay when trading + * + * @generated from field: string maker_fee_rate = 8; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the fee percentage takers pay when trading + * + * @generated from field: string taker_fee_rate = 9; + */ + takerFeeRate = ""; + + /** + * min_notional defines the minimum notional for orders in the market + * + * @generated from field: string min_notional = 10; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v2.AdminInfo admin_info = 11; + */ + adminInfo?: AdminInfo; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 14; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 15; + */ + quoteDecimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotMarketLaunchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 14, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 15, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarketLaunchProposal { + return new SpotMarketLaunchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotMarketLaunchProposal { + return new SpotMarketLaunchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotMarketLaunchProposal { + return new SpotMarketLaunchProposal().fromJsonString(jsonString, options); + } + + static equals(a: SpotMarketLaunchProposal | PlainMessage | undefined, b: SpotMarketLaunchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotMarketLaunchProposal, a, b); + } +} + +/** + * PerpetualMarketLaunchProposal defines a SDK message for proposing a new + * perpetual futures market through governance + * + * @generated from message injective.exchange.v2.PerpetualMarketLaunchProposal + */ +export class PerpetualMarketLaunchProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Ticker for the derivative market. + * + * @generated from field: string ticker = 3; + */ + ticker = ""; + + /** + * type of coin to use as the base currency + * + * @generated from field: string quote_denom = 4; + */ + quoteDenom = ""; + + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 5; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 6; + */ + oracleQuote = ""; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 7; + */ + oracleScaleFactor = 0; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 8; + */ + oracleType = OracleType.Unspecified; + + /** + * initial_margin_ratio defines the initial margin ratio for the derivative + * market + * + * @generated from field: string initial_margin_ratio = 9; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio for the + * derivative market + * + * @generated from field: string maintenance_margin_ratio = 10; + */ + maintenanceMarginRatio = ""; + + /** + * maker_fee_rate defines the exchange trade fee for makers for the derivative + * market + * + * @generated from field: string maker_fee_rate = 11; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the exchange trade fee for takers for the derivative + * market + * + * @generated from field: string taker_fee_rate = 12; + */ + takerFeeRate = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 13; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 14; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 15; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v2.AdminInfo admin_info = 16; + */ + adminInfo?: AdminInfo; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 17; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 18; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PerpetualMarketLaunchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 9, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 17, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualMarketLaunchProposal { + return new PerpetualMarketLaunchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualMarketLaunchProposal { + return new PerpetualMarketLaunchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualMarketLaunchProposal { + return new PerpetualMarketLaunchProposal().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualMarketLaunchProposal | PlainMessage | undefined, b: PerpetualMarketLaunchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualMarketLaunchProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BinaryOptionsMarketLaunchProposal + */ +export class BinaryOptionsMarketLaunchProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Ticker for the derivative contract. + * + * @generated from field: string ticker = 3; + */ + ticker = ""; + + /** + * Oracle symbol + * + * @generated from field: string oracle_symbol = 4; + */ + oracleSymbol = ""; + + /** + * Oracle Provider + * + * @generated from field: string oracle_provider = 5; + */ + oracleProvider = ""; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 6; + */ + oracleType = OracleType.Unspecified; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 7; + */ + oracleScaleFactor = 0; + + /** + * expiration timestamp + * + * @generated from field: int64 expiration_timestamp = 8; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration timestamp + * + * @generated from field: int64 settlement_timestamp = 9; + */ + settlementTimestamp = protoInt64.zero; + + /** + * admin of the market + * + * @generated from field: string admin = 10; + */ + admin = ""; + + /** + * Address of the quote currency denomination for the binary options contract + * + * @generated from field: string quote_denom = 11; + */ + quoteDenom = ""; + + /** + * maker_fee_rate defines the maker fee rate of a binary options market + * + * @generated from field: string maker_fee_rate = 12; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the taker fee rate of a derivative market + * + * @generated from field: string taker_fee_rate = 13; + */ + takerFeeRate = ""; + + /** + * min_price_tick_size defines the minimum tick size that the price and margin + * required for orders in the market + * + * @generated from field: string min_price_tick_size = 14; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the quantity + * required for orders in the market + * + * @generated from field: string min_quantity_tick_size = 15; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 16; + */ + minNotional = ""; + + /** + * @generated from field: uint32 admin_permissions = 17; + */ + adminPermissions = 0; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 18; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BinaryOptionsMarketLaunchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 7, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "settlement_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 18, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BinaryOptionsMarketLaunchProposal { + return new BinaryOptionsMarketLaunchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BinaryOptionsMarketLaunchProposal { + return new BinaryOptionsMarketLaunchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BinaryOptionsMarketLaunchProposal { + return new BinaryOptionsMarketLaunchProposal().fromJsonString(jsonString, options); + } + + static equals(a: BinaryOptionsMarketLaunchProposal | PlainMessage | undefined, b: BinaryOptionsMarketLaunchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(BinaryOptionsMarketLaunchProposal, a, b); + } +} + +/** + * ExpiryFuturesMarketLaunchProposal defines a SDK message for proposing a new + * expiry futures market through governance + * + * @generated from message injective.exchange.v2.ExpiryFuturesMarketLaunchProposal + */ +export class ExpiryFuturesMarketLaunchProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * Ticker for the derivative market. + * + * @generated from field: string ticker = 3; + */ + ticker = ""; + + /** + * type of coin to use as the quote currency + * + * @generated from field: string quote_denom = 4; + */ + quoteDenom = ""; + + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 5; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 6; + */ + oracleQuote = ""; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 7; + */ + oracleScaleFactor = 0; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 8; + */ + oracleType = OracleType.Unspecified; + + /** + * Expiration time of the market + * + * @generated from field: int64 expiry = 9; + */ + expiry = protoInt64.zero; + + /** + * initial_margin_ratio defines the initial margin ratio for the derivative + * market + * + * @generated from field: string initial_margin_ratio = 10; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio for the + * derivative market + * + * @generated from field: string maintenance_margin_ratio = 11; + */ + maintenanceMarginRatio = ""; + + /** + * maker_fee_rate defines the exchange trade fee for makers for the derivative + * market + * + * @generated from field: string maker_fee_rate = 12; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the exchange trade fee for takers for the derivative + * market + * + * @generated from field: string taker_fee_rate = 13; + */ + takerFeeRate = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 14; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 15; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 16; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v2.AdminInfo admin_info = 17; + */ + adminInfo?: AdminInfo; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 18; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 19; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ExpiryFuturesMarketLaunchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 9, name: "expiry", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 18, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExpiryFuturesMarketLaunchProposal { + return new ExpiryFuturesMarketLaunchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExpiryFuturesMarketLaunchProposal { + return new ExpiryFuturesMarketLaunchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExpiryFuturesMarketLaunchProposal { + return new ExpiryFuturesMarketLaunchProposal().fromJsonString(jsonString, options); + } + + static equals(a: ExpiryFuturesMarketLaunchProposal | PlainMessage | undefined, b: ExpiryFuturesMarketLaunchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(ExpiryFuturesMarketLaunchProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeMarketParamUpdateProposal + */ +export class DerivativeMarketParamUpdateProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * initial_margin_ratio defines the initial margin ratio for the derivative + * market + * + * @generated from field: string initial_margin_ratio = 4; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio for the + * derivative market + * + * @generated from field: string maintenance_margin_ratio = 5; + */ + maintenanceMarginRatio = ""; + + /** + * maker_fee_rate defines the exchange trade fee for makers for the derivative + * market + * + * @generated from field: string maker_fee_rate = 6; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the exchange trade fee for takers for the derivative + * market + * + * @generated from field: string taker_fee_rate = 7; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the relayer fee share rate for the + * derivative market + * + * @generated from field: string relayer_fee_share_rate = 8; + */ + relayerFeeShareRate = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 9; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 10; + */ + minQuantityTickSize = ""; + + /** + * hourly_interest_rate defines the hourly interest rate + * + * @generated from field: string HourlyInterestRate = 11; + */ + HourlyInterestRate = ""; + + /** + * hourly_funding_rate_cap defines the maximum absolute value of the hourly + * funding rate + * + * @generated from field: string HourlyFundingRateCap = 12; + */ + HourlyFundingRateCap = ""; + + /** + * @generated from field: injective.exchange.v2.MarketStatus status = 13; + */ + status = MarketStatus.Unspecified; + + /** + * @generated from field: injective.exchange.v2.OracleParams oracle_params = 14; + */ + oracleParams?: OracleParams; + + /** + * @generated from field: string ticker = 15; + */ + ticker = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 16; + */ + minNotional = ""; + + /** + * @generated from field: injective.exchange.v2.AdminInfo admin_info = 17; + */ + adminInfo?: AdminInfo; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 18; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 19; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarketParamUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "HourlyInterestRate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "HourlyFundingRateCap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 14, name: "oracle_params", kind: "message", T: OracleParams }, + { no: 15, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "admin_info", kind: "message", T: AdminInfo }, + { no: 18, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketParamUpdateProposal { + return new DerivativeMarketParamUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketParamUpdateProposal { + return new DerivativeMarketParamUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketParamUpdateProposal { + return new DerivativeMarketParamUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarketParamUpdateProposal | PlainMessage | undefined, b: DerivativeMarketParamUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarketParamUpdateProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.AdminInfo + */ +export class AdminInfo extends Message { + /** + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * @generated from field: uint32 admin_permissions = 2; + */ + adminPermissions = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AdminInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "admin_permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AdminInfo { + return new AdminInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AdminInfo { + return new AdminInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AdminInfo { + return new AdminInfo().fromJsonString(jsonString, options); + } + + static equals(a: AdminInfo | PlainMessage | undefined, b: AdminInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(AdminInfo, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MarketForcedSettlementProposal + */ +export class MarketForcedSettlementProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * @generated from field: string settlement_price = 4; + */ + settlementPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MarketForcedSettlementProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketForcedSettlementProposal { + return new MarketForcedSettlementProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketForcedSettlementProposal { + return new MarketForcedSettlementProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketForcedSettlementProposal { + return new MarketForcedSettlementProposal().fromJsonString(jsonString, options); + } + + static equals(a: MarketForcedSettlementProposal | PlainMessage | undefined, b: MarketForcedSettlementProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketForcedSettlementProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.UpdateAuctionExchangeTransferDenomDecimalsProposal + */ +export class UpdateAuctionExchangeTransferDenomDecimalsProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated injective.exchange.v2.DenomDecimals denom_decimals = 3; + */ + denomDecimals: DenomDecimals[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.UpdateAuctionExchangeTransferDenomDecimalsProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_decimals", kind: "message", T: DenomDecimals, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAuctionExchangeTransferDenomDecimalsProposal { + return new UpdateAuctionExchangeTransferDenomDecimalsProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAuctionExchangeTransferDenomDecimalsProposal { + return new UpdateAuctionExchangeTransferDenomDecimalsProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateAuctionExchangeTransferDenomDecimalsProposal { + return new UpdateAuctionExchangeTransferDenomDecimalsProposal().fromJsonString(jsonString, options); + } + + static equals(a: UpdateAuctionExchangeTransferDenomDecimalsProposal | PlainMessage | undefined, b: UpdateAuctionExchangeTransferDenomDecimalsProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateAuctionExchangeTransferDenomDecimalsProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BinaryOptionsMarketParamUpdateProposal + */ +export class BinaryOptionsMarketParamUpdateProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * maker_fee_rate defines the exchange trade fee for makers for the derivative + * market + * + * @generated from field: string maker_fee_rate = 4; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the exchange trade fee for takers for the derivative + * market + * + * @generated from field: string taker_fee_rate = 5; + */ + takerFeeRate = ""; + + /** + * relayer_fee_share_rate defines the relayer fee share rate for the + * derivative market + * + * @generated from field: string relayer_fee_share_rate = 6; + */ + relayerFeeShareRate = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 7; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 8; + */ + minQuantityTickSize = ""; + + /** + * expiration timestamp + * + * @generated from field: int64 expiration_timestamp = 9; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration timestamp + * + * @generated from field: int64 settlement_timestamp = 10; + */ + settlementTimestamp = protoInt64.zero; + + /** + * new price at which market will be settled + * + * @generated from field: string settlement_price = 11; + */ + settlementPrice = ""; + + /** + * admin of the market + * + * @generated from field: string admin = 12; + */ + admin = ""; + + /** + * @generated from field: injective.exchange.v2.MarketStatus status = 13; + */ + status = MarketStatus.Unspecified; + + /** + * @generated from field: injective.exchange.v2.ProviderOracleParams oracle_params = 14; + */ + oracleParams?: ProviderOracleParams; + + /** + * @generated from field: string ticker = 15; + */ + ticker = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 16; + */ + minNotional = ""; + + /** + * open_notional_cap defines the maximum open notional for the market + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 17; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BinaryOptionsMarketParamUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "relayer_fee_share_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "settlement_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 11, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + { no: 14, name: "oracle_params", kind: "message", T: ProviderOracleParams }, + { no: 15, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BinaryOptionsMarketParamUpdateProposal { + return new BinaryOptionsMarketParamUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BinaryOptionsMarketParamUpdateProposal { + return new BinaryOptionsMarketParamUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BinaryOptionsMarketParamUpdateProposal { + return new BinaryOptionsMarketParamUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: BinaryOptionsMarketParamUpdateProposal | PlainMessage | undefined, b: BinaryOptionsMarketParamUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(BinaryOptionsMarketParamUpdateProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.ProviderOracleParams + */ +export class ProviderOracleParams extends Message { + /** + * Oracle base currency + * + * @generated from field: string symbol = 1; + */ + symbol = ""; + + /** + * Oracle quote currency + * + * @generated from field: string provider = 2; + */ + provider = ""; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 3; + */ + oracleScaleFactor = 0; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 4; + */ + oracleType = OracleType.Unspecified; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.ProviderOracleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProviderOracleParams { + return new ProviderOracleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProviderOracleParams { + return new ProviderOracleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProviderOracleParams { + return new ProviderOracleParams().fromJsonString(jsonString, options); + } + + static equals(a: ProviderOracleParams | PlainMessage | undefined, b: ProviderOracleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ProviderOracleParams, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OracleParams + */ +export class OracleParams extends Message { + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 1; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 2; + */ + oracleQuote = ""; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 3; + */ + oracleScaleFactor = 0; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 4; + */ + oracleType = OracleType.Unspecified; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OracleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OracleParams { + return new OracleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OracleParams { + return new OracleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OracleParams { + return new OracleParams().fromJsonString(jsonString, options); + } + + static equals(a: OracleParams | PlainMessage | undefined, b: OracleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(OracleParams, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignLaunchProposal + */ +export class TradingRewardCampaignLaunchProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignInfo campaign_info = 3; + */ + campaignInfo?: TradingRewardCampaignInfo; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool campaign_reward_pools = 4; + */ + campaignRewardPools: CampaignRewardPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignLaunchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "campaign_info", kind: "message", T: TradingRewardCampaignInfo }, + { no: 4, name: "campaign_reward_pools", kind: "message", T: CampaignRewardPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignLaunchProposal { + return new TradingRewardCampaignLaunchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignLaunchProposal { + return new TradingRewardCampaignLaunchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignLaunchProposal { + return new TradingRewardCampaignLaunchProposal().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignLaunchProposal | PlainMessage | undefined, b: TradingRewardCampaignLaunchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignLaunchProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardCampaignUpdateProposal + */ +export class TradingRewardCampaignUpdateProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignInfo campaign_info = 3; + */ + campaignInfo?: TradingRewardCampaignInfo; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool campaign_reward_pools_additions = 4; + */ + campaignRewardPoolsAdditions: CampaignRewardPool[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool campaign_reward_pools_updates = 5; + */ + campaignRewardPoolsUpdates: CampaignRewardPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardCampaignUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "campaign_info", kind: "message", T: TradingRewardCampaignInfo }, + { no: 4, name: "campaign_reward_pools_additions", kind: "message", T: CampaignRewardPool, repeated: true }, + { no: 5, name: "campaign_reward_pools_updates", kind: "message", T: CampaignRewardPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardCampaignUpdateProposal { + return new TradingRewardCampaignUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardCampaignUpdateProposal { + return new TradingRewardCampaignUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardCampaignUpdateProposal { + return new TradingRewardCampaignUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardCampaignUpdateProposal | PlainMessage | undefined, b: TradingRewardCampaignUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardCampaignUpdateProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.RewardPointUpdate + */ +export class RewardPointUpdate extends Message { + /** + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * new_points overwrites the current trading reward points for the account + * + * @generated from field: string new_points = 12; + */ + newPoints = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.RewardPointUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "new_points", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardPointUpdate { + return new RewardPointUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardPointUpdate { + return new RewardPointUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardPointUpdate { + return new RewardPointUpdate().fromJsonString(jsonString, options); + } + + static equals(a: RewardPointUpdate | PlainMessage | undefined, b: RewardPointUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardPointUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TradingRewardPendingPointsUpdateProposal + */ +export class TradingRewardPendingPointsUpdateProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: int64 pending_pool_timestamp = 3; + */ + pendingPoolTimestamp = protoInt64.zero; + + /** + * @generated from field: repeated injective.exchange.v2.RewardPointUpdate reward_point_updates = 4; + */ + rewardPointUpdates: RewardPointUpdate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradingRewardPendingPointsUpdateProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pending_pool_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "reward_point_updates", kind: "message", T: RewardPointUpdate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradingRewardPendingPointsUpdateProposal { + return new TradingRewardPendingPointsUpdateProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradingRewardPendingPointsUpdateProposal { + return new TradingRewardPendingPointsUpdateProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradingRewardPendingPointsUpdateProposal { + return new TradingRewardPendingPointsUpdateProposal().fromJsonString(jsonString, options); + } + + static equals(a: TradingRewardPendingPointsUpdateProposal | PlainMessage | undefined, b: TradingRewardPendingPointsUpdateProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(TradingRewardPendingPointsUpdateProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FeeDiscountProposal + */ +export class FeeDiscountProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountSchedule schedule = 3; + */ + schedule?: FeeDiscountSchedule; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FeeDiscountProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "schedule", kind: "message", T: FeeDiscountSchedule }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeDiscountProposal { + return new FeeDiscountProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeDiscountProposal { + return new FeeDiscountProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeDiscountProposal { + return new FeeDiscountProposal().fromJsonString(jsonString, options); + } + + static equals(a: FeeDiscountProposal | PlainMessage | undefined, b: FeeDiscountProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeDiscountProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BatchCommunityPoolSpendProposal + */ +export class BatchCommunityPoolSpendProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated cosmos.distribution.v1beta1.CommunityPoolSpendProposal proposals = 3; + */ + proposals: CommunityPoolSpendProposal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BatchCommunityPoolSpendProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proposals", kind: "message", T: CommunityPoolSpendProposal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BatchCommunityPoolSpendProposal { + return new BatchCommunityPoolSpendProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BatchCommunityPoolSpendProposal { + return new BatchCommunityPoolSpendProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BatchCommunityPoolSpendProposal { + return new BatchCommunityPoolSpendProposal().fromJsonString(jsonString, options); + } + + static equals(a: BatchCommunityPoolSpendProposal | PlainMessage | undefined, b: BatchCommunityPoolSpendProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(BatchCommunityPoolSpendProposal, a, b); + } +} + +/** + * AtomicMarketOrderFeeMultiplierScheduleProposal defines a SDK message for + * proposing new atomic take fee multipliers for specified markets + * + * @generated from message injective.exchange.v2.AtomicMarketOrderFeeMultiplierScheduleProposal + */ +export class AtomicMarketOrderFeeMultiplierScheduleProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated injective.exchange.v2.MarketFeeMultiplier market_fee_multipliers = 3; + */ + marketFeeMultipliers: MarketFeeMultiplier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.AtomicMarketOrderFeeMultiplierScheduleProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_fee_multipliers", kind: "message", T: MarketFeeMultiplier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AtomicMarketOrderFeeMultiplierScheduleProposal { + return new AtomicMarketOrderFeeMultiplierScheduleProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AtomicMarketOrderFeeMultiplierScheduleProposal { + return new AtomicMarketOrderFeeMultiplierScheduleProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AtomicMarketOrderFeeMultiplierScheduleProposal { + return new AtomicMarketOrderFeeMultiplierScheduleProposal().fromJsonString(jsonString, options); + } + + static equals(a: AtomicMarketOrderFeeMultiplierScheduleProposal | PlainMessage | undefined, b: AtomicMarketOrderFeeMultiplierScheduleProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(AtomicMarketOrderFeeMultiplierScheduleProposal, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DenomMinNotionalProposal + */ +export class DenomMinNotionalProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated injective.exchange.v2.DenomMinNotional denom_min_notionals = 3; + */ + denomMinNotionals: DenomMinNotional[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DenomMinNotionalProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomMinNotionalProposal { + return new DenomMinNotionalProposal().fromJsonString(jsonString, options); + } + + static equals(a: DenomMinNotionalProposal | PlainMessage | undefined, b: DenomMinNotionalProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomMinNotionalProposal, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/query_cosmes.ts b/src/protobufs/injective/exchange/v2/query_cosmes.ts new file mode 100644 index 00000000..e5a6d7bb --- /dev/null +++ b/src/protobufs/injective/exchange/v2/query_cosmes.ts @@ -0,0 +1,824 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/exchange/v2/query.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MitoVaultInfosRequest, MitoVaultInfosResponse, QueryAccountAddressDerivativeOrdersRequest, QueryAccountAddressDerivativeOrdersResponse, QueryAccountAddressSpotOrdersRequest, QueryAccountAddressSpotOrdersResponse, QueryActiveStakeGrantRequest, QueryActiveStakeGrantResponse, QueryAggregateMarketVolumeRequest, QueryAggregateMarketVolumeResponse, QueryAggregateMarketVolumesRequest, QueryAggregateMarketVolumesResponse, QueryAggregateVolumeRequest, QueryAggregateVolumeResponse, QueryAggregateVolumesRequest, QueryAggregateVolumesResponse, QueryAuctionExchangeTransferDenomDecimalRequest, QueryAuctionExchangeTransferDenomDecimalResponse, QueryAuctionExchangeTransferDenomDecimalsRequest, QueryAuctionExchangeTransferDenomDecimalsResponse, QueryBalanceMismatchesRequest, QueryBalanceMismatchesResponse, QueryBalanceWithBalanceHoldsRequest, QueryBalanceWithBalanceHoldsResponse, QueryBinaryMarketsRequest, QueryBinaryMarketsResponse, QueryDenomMinNotionalRequest, QueryDenomMinNotionalResponse, QueryDenomMinNotionalsRequest, QueryDenomMinNotionalsResponse, QueryDerivativeMarketAddressRequest, QueryDerivativeMarketAddressResponse, QueryDerivativeMarketRequest, QueryDerivativeMarketResponse, QueryDerivativeMarketsRequest, QueryDerivativeMarketsResponse, QueryDerivativeMidPriceAndTOBRequest, QueryDerivativeMidPriceAndTOBResponse, QueryDerivativeOrderbookRequest, QueryDerivativeOrderbookResponse, QueryDerivativeOrdersByHashesRequest, QueryDerivativeOrdersByHashesResponse, QueryExchangeBalancesRequest, QueryExchangeBalancesResponse, QueryExchangeParamsRequest, QueryExchangeParamsResponse, QueryExpiryFuturesMarketInfoRequest, QueryExpiryFuturesMarketInfoResponse, QueryFeeDiscountAccountInfoRequest, QueryFeeDiscountAccountInfoResponse, QueryFeeDiscountScheduleRequest, QueryFeeDiscountScheduleResponse, QueryFeeDiscountTierStatisticsRequest, QueryFeeDiscountTierStatisticsResponse, QueryFullDerivativeOrderbookRequest, QueryFullDerivativeOrderbookResponse, QueryFullSpotMarketRequest, QueryFullSpotMarketResponse, QueryFullSpotMarketsRequest, QueryFullSpotMarketsResponse, QueryFullSpotOrderbookRequest, QueryFullSpotOrderbookResponse, QueryGrantAuthorizationRequest, QueryGrantAuthorizationResponse, QueryGrantAuthorizationsRequest, QueryGrantAuthorizationsResponse, QueryHistoricalTradeRecordsRequest, QueryHistoricalTradeRecordsResponse, QueryIsOptedOutOfRewardsRequest, QueryIsOptedOutOfRewardsResponse, QueryMarketAtomicExecutionFeeMultiplierRequest, QueryMarketAtomicExecutionFeeMultiplierResponse, QueryMarketBalanceRequest, QueryMarketBalanceResponse, QueryMarketBalancesRequest, QueryMarketBalancesResponse, QueryMarketIDFromVaultRequest, QueryMarketIDFromVaultResponse, QueryMarketVolatilityRequest, QueryMarketVolatilityResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryOpenInterestRequest, QueryOpenInterestResponse, QueryOptedOutOfRewardsAccountsRequest, QueryOptedOutOfRewardsAccountsResponse, QueryPerpetualMarketFundingRequest, QueryPerpetualMarketFundingResponse, QueryPerpetualMarketInfoRequest, QueryPerpetualMarketInfoResponse, QueryPositionsInMarketRequest, QueryPositionsInMarketResponse, QueryPositionsRequest, QueryPositionsResponse, QuerySpotMarketRequest, QuerySpotMarketResponse, QuerySpotMarketsRequest, QuerySpotMarketsResponse, QuerySpotMidPriceAndTOBRequest, QuerySpotMidPriceAndTOBResponse, QuerySpotOrderbookRequest, QuerySpotOrderbookResponse, QuerySpotOrdersByHashesRequest, QuerySpotOrdersByHashesResponse, QuerySubaccountDepositRequest, QuerySubaccountDepositResponse, QuerySubaccountDepositsRequest, QuerySubaccountDepositsResponse, QuerySubaccountEffectivePositionInMarketRequest, QuerySubaccountEffectivePositionInMarketResponse, QuerySubaccountOrderMetadataRequest, QuerySubaccountOrderMetadataResponse, QuerySubaccountOrdersRequest, QuerySubaccountOrdersResponse, QuerySubaccountPositionInMarketRequest, QuerySubaccountPositionInMarketResponse, QuerySubaccountPositionsRequest, QuerySubaccountPositionsResponse, QuerySubaccountTradeNonceRequest, QuerySubaccountTradeNonceResponse, QueryTraderDerivativeConditionalOrdersRequest, QueryTraderDerivativeConditionalOrdersResponse, QueryTraderDerivativeOrdersRequest, QueryTraderDerivativeOrdersResponse, QueryTradeRewardCampaignRequest, QueryTradeRewardCampaignResponse, QueryTradeRewardPointsRequest, QueryTradeRewardPointsResponse, QueryTraderSpotOrdersRequest, QueryTraderSpotOrdersResponse } from "./query_pb.js"; + +const TYPE_NAME = "injective.exchange.v2.Query"; + +/** + * @generated from rpc injective.exchange.v2.Query.L3DerivativeOrderBook + */ +export const QueryL3DerivativeOrderBookService = { + typeName: TYPE_NAME, + method: "L3DerivativeOrderBook", + Request: QueryFullDerivativeOrderbookRequest, + Response: QueryFullDerivativeOrderbookResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Query.L3SpotOrderBook + */ +export const QueryL3SpotOrderBookService = { + typeName: TYPE_NAME, + method: "L3SpotOrderBook", + Request: QueryFullSpotOrderbookRequest, + Response: QueryFullSpotOrderbookResponse, +} as const; + +/** + * Retrieves exchange params + * + * @generated from rpc injective.exchange.v2.Query.QueryExchangeParams + */ +export const QueryQueryExchangeParamsService = { + typeName: TYPE_NAME, + method: "QueryExchangeParams", + Request: QueryExchangeParamsRequest, + Response: QueryExchangeParamsResponse, +} as const; + +/** + * Retrieves a Subaccount's Deposits + * + * @generated from rpc injective.exchange.v2.Query.SubaccountDeposits + */ +export const QuerySubaccountDepositsService = { + typeName: TYPE_NAME, + method: "SubaccountDeposits", + Request: QuerySubaccountDepositsRequest, + Response: QuerySubaccountDepositsResponse, +} as const; + +/** + * Retrieves a Subaccount's Deposits + * + * @generated from rpc injective.exchange.v2.Query.SubaccountDeposit + */ +export const QuerySubaccountDepositService = { + typeName: TYPE_NAME, + method: "SubaccountDeposit", + Request: QuerySubaccountDepositRequest, + Response: QuerySubaccountDepositResponse, +} as const; + +/** + * Retrieves all of the balances of all users on the exchange. + * + * @generated from rpc injective.exchange.v2.Query.ExchangeBalances + */ +export const QueryExchangeBalancesService = { + typeName: TYPE_NAME, + method: "ExchangeBalances", + Request: QueryExchangeBalancesRequest, + Response: QueryExchangeBalancesResponse, +} as const; + +/** + * Retrieves the aggregate volumes for the specified account or subaccount + * + * @generated from rpc injective.exchange.v2.Query.AggregateVolume + */ +export const QueryAggregateVolumeService = { + typeName: TYPE_NAME, + method: "AggregateVolume", + Request: QueryAggregateVolumeRequest, + Response: QueryAggregateVolumeResponse, +} as const; + +/** + * Retrieves the aggregate volumes for specified accounts + * + * @generated from rpc injective.exchange.v2.Query.AggregateVolumes + */ +export const QueryAggregateVolumesService = { + typeName: TYPE_NAME, + method: "AggregateVolumes", + Request: QueryAggregateVolumesRequest, + Response: QueryAggregateVolumesResponse, +} as const; + +/** + * Retrieves the aggregate volume for the specified market + * + * @generated from rpc injective.exchange.v2.Query.AggregateMarketVolume + */ +export const QueryAggregateMarketVolumeService = { + typeName: TYPE_NAME, + method: "AggregateMarketVolume", + Request: QueryAggregateMarketVolumeRequest, + Response: QueryAggregateMarketVolumeResponse, +} as const; + +/** + * Retrieves the aggregate market volumes for specified markets + * + * @generated from rpc injective.exchange.v2.Query.AggregateMarketVolumes + */ +export const QueryAggregateMarketVolumesService = { + typeName: TYPE_NAME, + method: "AggregateMarketVolumes", + Request: QueryAggregateMarketVolumesRequest, + Response: QueryAggregateMarketVolumesResponse, +} as const; + +/** + * Retrieves the denom decimals for a denom. + * + * @generated from rpc injective.exchange.v2.Query.AuctionExchangeTransferDenomDecimal + */ +export const QueryAuctionExchangeTransferDenomDecimalService = { + typeName: TYPE_NAME, + method: "AuctionExchangeTransferDenomDecimal", + Request: QueryAuctionExchangeTransferDenomDecimalRequest, + Response: QueryAuctionExchangeTransferDenomDecimalResponse, +} as const; + +/** + * Retrieves the denom decimals for multiple denoms. Returns all denom + * decimals if unspecified. + * + * @generated from rpc injective.exchange.v2.Query.AuctionExchangeTransferDenomDecimals + */ +export const QueryAuctionExchangeTransferDenomDecimalsService = { + typeName: TYPE_NAME, + method: "AuctionExchangeTransferDenomDecimals", + Request: QueryAuctionExchangeTransferDenomDecimalsRequest, + Response: QueryAuctionExchangeTransferDenomDecimalsResponse, +} as const; + +/** + * Retrieves a list of spot markets. + * + * @generated from rpc injective.exchange.v2.Query.SpotMarkets + */ +export const QuerySpotMarketsService = { + typeName: TYPE_NAME, + method: "SpotMarkets", + Request: QuerySpotMarketsRequest, + Response: QuerySpotMarketsResponse, +} as const; + +/** + * Retrieves a spot market by ticker + * + * @generated from rpc injective.exchange.v2.Query.SpotMarket + */ +export const QuerySpotMarketService = { + typeName: TYPE_NAME, + method: "SpotMarket", + Request: QuerySpotMarketRequest, + Response: QuerySpotMarketResponse, +} as const; + +/** + * Retrieves a list of spot markets with extra information. + * + * @generated from rpc injective.exchange.v2.Query.FullSpotMarkets + */ +export const QueryFullSpotMarketsService = { + typeName: TYPE_NAME, + method: "FullSpotMarkets", + Request: QueryFullSpotMarketsRequest, + Response: QueryFullSpotMarketsResponse, +} as const; + +/** + * Retrieves a spot market with extra information. + * + * @generated from rpc injective.exchange.v2.Query.FullSpotMarket + */ +export const QueryFullSpotMarketService = { + typeName: TYPE_NAME, + method: "FullSpotMarket", + Request: QueryFullSpotMarketRequest, + Response: QueryFullSpotMarketResponse, +} as const; + +/** + * Retrieves a spot market's orderbook by marketID + * + * @generated from rpc injective.exchange.v2.Query.SpotOrderbook + */ +export const QuerySpotOrderbookService = { + typeName: TYPE_NAME, + method: "SpotOrderbook", + Request: QuerySpotOrderbookRequest, + Response: QuerySpotOrderbookResponse, +} as const; + +/** + * Retrieves a trader's spot orders + * + * @generated from rpc injective.exchange.v2.Query.TraderSpotOrders + */ +export const QueryTraderSpotOrdersService = { + typeName: TYPE_NAME, + method: "TraderSpotOrders", + Request: QueryTraderSpotOrdersRequest, + Response: QueryTraderSpotOrdersResponse, +} as const; + +/** + * Retrieves all account address spot orders + * + * @generated from rpc injective.exchange.v2.Query.AccountAddressSpotOrders + */ +export const QueryAccountAddressSpotOrdersService = { + typeName: TYPE_NAME, + method: "AccountAddressSpotOrders", + Request: QueryAccountAddressSpotOrdersRequest, + Response: QueryAccountAddressSpotOrdersResponse, +} as const; + +/** + * Retrieves spot orders corresponding to specified order hashes for a given + * subaccountID and marketID + * + * @generated from rpc injective.exchange.v2.Query.SpotOrdersByHashes + */ +export const QuerySpotOrdersByHashesService = { + typeName: TYPE_NAME, + method: "SpotOrdersByHashes", + Request: QuerySpotOrdersByHashesRequest, + Response: QuerySpotOrdersByHashesResponse, +} as const; + +/** + * Retrieves subaccount's orders + * + * @generated from rpc injective.exchange.v2.Query.SubaccountOrders + */ +export const QuerySubaccountOrdersService = { + typeName: TYPE_NAME, + method: "SubaccountOrders", + Request: QuerySubaccountOrdersRequest, + Response: QuerySubaccountOrdersResponse, +} as const; + +/** + * Retrieves a trader's transient spot orders + * + * @generated from rpc injective.exchange.v2.Query.TraderSpotTransientOrders + */ +export const QueryTraderSpotTransientOrdersService = { + typeName: TYPE_NAME, + method: "TraderSpotTransientOrders", + Request: QueryTraderSpotOrdersRequest, + Response: QueryTraderSpotOrdersResponse, +} as const; + +/** + * Retrieves a spot market's mid-price + * + * @generated from rpc injective.exchange.v2.Query.SpotMidPriceAndTOB + */ +export const QuerySpotMidPriceAndTOBService = { + typeName: TYPE_NAME, + method: "SpotMidPriceAndTOB", + Request: QuerySpotMidPriceAndTOBRequest, + Response: QuerySpotMidPriceAndTOBResponse, +} as const; + +/** + * Retrieves a derivative market's mid-price + * + * @generated from rpc injective.exchange.v2.Query.DerivativeMidPriceAndTOB + */ +export const QueryDerivativeMidPriceAndTOBService = { + typeName: TYPE_NAME, + method: "DerivativeMidPriceAndTOB", + Request: QueryDerivativeMidPriceAndTOBRequest, + Response: QueryDerivativeMidPriceAndTOBResponse, +} as const; + +/** + * Retrieves a derivative market's orderbook by marketID + * + * @generated from rpc injective.exchange.v2.Query.DerivativeOrderbook + */ +export const QueryDerivativeOrderbookService = { + typeName: TYPE_NAME, + method: "DerivativeOrderbook", + Request: QueryDerivativeOrderbookRequest, + Response: QueryDerivativeOrderbookResponse, +} as const; + +/** + * Retrieves a trader's derivative orders + * + * @generated from rpc injective.exchange.v2.Query.TraderDerivativeOrders + */ +export const QueryTraderDerivativeOrdersService = { + typeName: TYPE_NAME, + method: "TraderDerivativeOrders", + Request: QueryTraderDerivativeOrdersRequest, + Response: QueryTraderDerivativeOrdersResponse, +} as const; + +/** + * Retrieves all account address derivative orders + * + * @generated from rpc injective.exchange.v2.Query.AccountAddressDerivativeOrders + */ +export const QueryAccountAddressDerivativeOrdersService = { + typeName: TYPE_NAME, + method: "AccountAddressDerivativeOrders", + Request: QueryAccountAddressDerivativeOrdersRequest, + Response: QueryAccountAddressDerivativeOrdersResponse, +} as const; + +/** + * Retrieves a trader's derivative orders + * + * @generated from rpc injective.exchange.v2.Query.DerivativeOrdersByHashes + */ +export const QueryDerivativeOrdersByHashesService = { + typeName: TYPE_NAME, + method: "DerivativeOrdersByHashes", + Request: QueryDerivativeOrdersByHashesRequest, + Response: QueryDerivativeOrdersByHashesResponse, +} as const; + +/** + * Retrieves a trader's transient derivative orders + * + * @generated from rpc injective.exchange.v2.Query.TraderDerivativeTransientOrders + */ +export const QueryTraderDerivativeTransientOrdersService = { + typeName: TYPE_NAME, + method: "TraderDerivativeTransientOrders", + Request: QueryTraderDerivativeOrdersRequest, + Response: QueryTraderDerivativeOrdersResponse, +} as const; + +/** + * Retrieves a list of derivative markets. + * + * @generated from rpc injective.exchange.v2.Query.DerivativeMarkets + */ +export const QueryDerivativeMarketsService = { + typeName: TYPE_NAME, + method: "DerivativeMarkets", + Request: QueryDerivativeMarketsRequest, + Response: QueryDerivativeMarketsResponse, +} as const; + +/** + * Retrieves a derivative market by ticker + * + * @generated from rpc injective.exchange.v2.Query.DerivativeMarket + */ +export const QueryDerivativeMarketService = { + typeName: TYPE_NAME, + method: "DerivativeMarket", + Request: QueryDerivativeMarketRequest, + Response: QueryDerivativeMarketResponse, +} as const; + +/** + * Retrieves a derivative market's corresponding address for fees that + * contribute to the market's insurance fund + * + * @generated from rpc injective.exchange.v2.Query.DerivativeMarketAddress + */ +export const QueryDerivativeMarketAddressService = { + typeName: TYPE_NAME, + method: "DerivativeMarketAddress", + Request: QueryDerivativeMarketAddressRequest, + Response: QueryDerivativeMarketAddressResponse, +} as const; + +/** + * Retrieves a subaccount's trade nonce + * + * @generated from rpc injective.exchange.v2.Query.SubaccountTradeNonce + */ +export const QuerySubaccountTradeNonceService = { + typeName: TYPE_NAME, + method: "SubaccountTradeNonce", + Request: QuerySubaccountTradeNonceRequest, + Response: QuerySubaccountTradeNonceResponse, +} as const; + +/** + * Retrieves the entire exchange module's state + * + * @generated from rpc injective.exchange.v2.Query.ExchangeModuleState + */ +export const QueryExchangeModuleStateService = { + typeName: TYPE_NAME, + method: "ExchangeModuleState", + Request: QueryModuleStateRequest, + Response: QueryModuleStateResponse, +} as const; + +/** + * Retrieves the entire exchange module's positions + * + * @generated from rpc injective.exchange.v2.Query.Positions + */ +export const QueryPositionsService = { + typeName: TYPE_NAME, + method: "Positions", + Request: QueryPositionsRequest, + Response: QueryPositionsResponse, +} as const; + +/** + * Retrieves all positions in market + * + * @generated from rpc injective.exchange.v2.Query.PositionsInMarket + */ +export const QueryPositionsInMarketService = { + typeName: TYPE_NAME, + method: "PositionsInMarket", + Request: QueryPositionsInMarketRequest, + Response: QueryPositionsInMarketResponse, +} as const; + +/** + * Retrieves subaccount's positions + * + * @generated from rpc injective.exchange.v2.Query.SubaccountPositions + */ +export const QuerySubaccountPositionsService = { + typeName: TYPE_NAME, + method: "SubaccountPositions", + Request: QuerySubaccountPositionsRequest, + Response: QuerySubaccountPositionsResponse, +} as const; + +/** + * Retrieves subaccount's position in market + * + * @generated from rpc injective.exchange.v2.Query.SubaccountPositionInMarket + */ +export const QuerySubaccountPositionInMarketService = { + typeName: TYPE_NAME, + method: "SubaccountPositionInMarket", + Request: QuerySubaccountPositionInMarketRequest, + Response: QuerySubaccountPositionInMarketResponse, +} as const; + +/** + * Retrieves subaccount's position in market + * + * @generated from rpc injective.exchange.v2.Query.SubaccountEffectivePositionInMarket + */ +export const QuerySubaccountEffectivePositionInMarketService = { + typeName: TYPE_NAME, + method: "SubaccountEffectivePositionInMarket", + Request: QuerySubaccountEffectivePositionInMarketRequest, + Response: QuerySubaccountEffectivePositionInMarketResponse, +} as const; + +/** + * Retrieves perpetual market info + * + * @generated from rpc injective.exchange.v2.Query.PerpetualMarketInfo + */ +export const QueryPerpetualMarketInfoService = { + typeName: TYPE_NAME, + method: "PerpetualMarketInfo", + Request: QueryPerpetualMarketInfoRequest, + Response: QueryPerpetualMarketInfoResponse, +} as const; + +/** + * Retrieves expiry market info + * + * @generated from rpc injective.exchange.v2.Query.ExpiryFuturesMarketInfo + */ +export const QueryExpiryFuturesMarketInfoService = { + typeName: TYPE_NAME, + method: "ExpiryFuturesMarketInfo", + Request: QueryExpiryFuturesMarketInfoRequest, + Response: QueryExpiryFuturesMarketInfoResponse, +} as const; + +/** + * Retrieves perpetual market funding + * + * @generated from rpc injective.exchange.v2.Query.PerpetualMarketFunding + */ +export const QueryPerpetualMarketFundingService = { + typeName: TYPE_NAME, + method: "PerpetualMarketFunding", + Request: QueryPerpetualMarketFundingRequest, + Response: QueryPerpetualMarketFundingResponse, +} as const; + +/** + * Retrieves subaccount's order metadata + * + * @generated from rpc injective.exchange.v2.Query.SubaccountOrderMetadata + */ +export const QuerySubaccountOrderMetadataService = { + typeName: TYPE_NAME, + method: "SubaccountOrderMetadata", + Request: QuerySubaccountOrderMetadataRequest, + Response: QuerySubaccountOrderMetadataResponse, +} as const; + +/** + * Retrieves the account and total trade rewards points + * + * @generated from rpc injective.exchange.v2.Query.TradeRewardPoints + */ +export const QueryTradeRewardPointsService = { + typeName: TYPE_NAME, + method: "TradeRewardPoints", + Request: QueryTradeRewardPointsRequest, + Response: QueryTradeRewardPointsResponse, +} as const; + +/** + * Retrieves the pending account and total trade rewards points + * + * @generated from rpc injective.exchange.v2.Query.PendingTradeRewardPoints + */ +export const QueryPendingTradeRewardPointsService = { + typeName: TYPE_NAME, + method: "PendingTradeRewardPoints", + Request: QueryTradeRewardPointsRequest, + Response: QueryTradeRewardPointsResponse, +} as const; + +/** + * Retrieves the trade reward campaign + * + * @generated from rpc injective.exchange.v2.Query.TradeRewardCampaign + */ +export const QueryTradeRewardCampaignService = { + typeName: TYPE_NAME, + method: "TradeRewardCampaign", + Request: QueryTradeRewardCampaignRequest, + Response: QueryTradeRewardCampaignResponse, +} as const; + +/** + * Retrieves the account's fee discount info + * + * @generated from rpc injective.exchange.v2.Query.FeeDiscountAccountInfo + */ +export const QueryFeeDiscountAccountInfoService = { + typeName: TYPE_NAME, + method: "FeeDiscountAccountInfo", + Request: QueryFeeDiscountAccountInfoRequest, + Response: QueryFeeDiscountAccountInfoResponse, +} as const; + +/** + * Retrieves the fee discount schedule + * + * @generated from rpc injective.exchange.v2.Query.FeeDiscountSchedule + */ +export const QueryFeeDiscountScheduleService = { + typeName: TYPE_NAME, + method: "FeeDiscountSchedule", + Request: QueryFeeDiscountScheduleRequest, + Response: QueryFeeDiscountScheduleResponse, +} as const; + +/** + * Retrieves mismatches between available vs. total balance + * + * @generated from rpc injective.exchange.v2.Query.BalanceMismatches + */ +export const QueryBalanceMismatchesService = { + typeName: TYPE_NAME, + method: "BalanceMismatches", + Request: QueryBalanceMismatchesRequest, + Response: QueryBalanceMismatchesResponse, +} as const; + +/** + * Retrieves available and total balances with balance holds + * + * @generated from rpc injective.exchange.v2.Query.BalanceWithBalanceHolds + */ +export const QueryBalanceWithBalanceHoldsService = { + typeName: TYPE_NAME, + method: "BalanceWithBalanceHolds", + Request: QueryBalanceWithBalanceHoldsRequest, + Response: QueryBalanceWithBalanceHoldsResponse, +} as const; + +/** + * Retrieves fee discount tier stats + * + * @generated from rpc injective.exchange.v2.Query.FeeDiscountTierStatistics + */ +export const QueryFeeDiscountTierStatisticsService = { + typeName: TYPE_NAME, + method: "FeeDiscountTierStatistics", + Request: QueryFeeDiscountTierStatisticsRequest, + Response: QueryFeeDiscountTierStatisticsResponse, +} as const; + +/** + * Retrieves market making pool info + * + * @generated from rpc injective.exchange.v2.Query.MitoVaultInfos + */ +export const QueryMitoVaultInfosService = { + typeName: TYPE_NAME, + method: "MitoVaultInfos", + Request: MitoVaultInfosRequest, + Response: MitoVaultInfosResponse, +} as const; + +/** + * QueryMarketIDFromVault returns the market ID for a given vault subaccount + * ID + * + * @generated from rpc injective.exchange.v2.Query.QueryMarketIDFromVault + */ +export const QueryQueryMarketIDFromVaultService = { + typeName: TYPE_NAME, + method: "QueryMarketIDFromVault", + Request: QueryMarketIDFromVaultRequest, + Response: QueryMarketIDFromVaultResponse, +} as const; + +/** + * Retrieves historical trade records for a given market ID + * + * @generated from rpc injective.exchange.v2.Query.HistoricalTradeRecords + */ +export const QueryHistoricalTradeRecordsService = { + typeName: TYPE_NAME, + method: "HistoricalTradeRecords", + Request: QueryHistoricalTradeRecordsRequest, + Response: QueryHistoricalTradeRecordsResponse, +} as const; + +/** + * Retrieves if the account is opted out of rewards + * + * @generated from rpc injective.exchange.v2.Query.IsOptedOutOfRewards + */ +export const QueryIsOptedOutOfRewardsService = { + typeName: TYPE_NAME, + method: "IsOptedOutOfRewards", + Request: QueryIsOptedOutOfRewardsRequest, + Response: QueryIsOptedOutOfRewardsResponse, +} as const; + +/** + * Retrieves all accounts opted out of rewards + * + * @generated from rpc injective.exchange.v2.Query.OptedOutOfRewardsAccounts + */ +export const QueryOptedOutOfRewardsAccountsService = { + typeName: TYPE_NAME, + method: "OptedOutOfRewardsAccounts", + Request: QueryOptedOutOfRewardsAccountsRequest, + Response: QueryOptedOutOfRewardsAccountsResponse, +} as const; + +/** + * MarketVolatility computes the volatility for spot and derivative markets + * trading history. + * + * @generated from rpc injective.exchange.v2.Query.MarketVolatility + */ +export const QueryMarketVolatilityService = { + typeName: TYPE_NAME, + method: "MarketVolatility", + Request: QueryMarketVolatilityRequest, + Response: QueryMarketVolatilityResponse, +} as const; + +/** + * Retrieves all binary options markets + * + * @generated from rpc injective.exchange.v2.Query.BinaryOptionsMarkets + */ +export const QueryBinaryOptionsMarketsService = { + typeName: TYPE_NAME, + method: "BinaryOptionsMarkets", + Request: QueryBinaryMarketsRequest, + Response: QueryBinaryMarketsResponse, +} as const; + +/** + * Retrieves a trader's derivative conditional orders + * + * @generated from rpc injective.exchange.v2.Query.TraderDerivativeConditionalOrders + */ +export const QueryTraderDerivativeConditionalOrdersService = { + typeName: TYPE_NAME, + method: "TraderDerivativeConditionalOrders", + Request: QueryTraderDerivativeConditionalOrdersRequest, + Response: QueryTraderDerivativeConditionalOrdersResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Query.MarketAtomicExecutionFeeMultiplier + */ +export const QueryMarketAtomicExecutionFeeMultiplierService = { + typeName: TYPE_NAME, + method: "MarketAtomicExecutionFeeMultiplier", + Request: QueryMarketAtomicExecutionFeeMultiplierRequest, + Response: QueryMarketAtomicExecutionFeeMultiplierResponse, +} as const; + +/** + * Retrieves the active stake grant for a grantee + * + * @generated from rpc injective.exchange.v2.Query.ActiveStakeGrant + */ +export const QueryActiveStakeGrantService = { + typeName: TYPE_NAME, + method: "ActiveStakeGrant", + Request: QueryActiveStakeGrantRequest, + Response: QueryActiveStakeGrantResponse, +} as const; + +/** + * Retrieves the grant authorization amount for a granter and grantee + * + * @generated from rpc injective.exchange.v2.Query.GrantAuthorization + */ +export const QueryGrantAuthorizationService = { + typeName: TYPE_NAME, + method: "GrantAuthorization", + Request: QueryGrantAuthorizationRequest, + Response: QueryGrantAuthorizationResponse, +} as const; + +/** + * Retrieves the grant authorization amount for a granter and grantee + * + * @generated from rpc injective.exchange.v2.Query.GrantAuthorizations + */ +export const QueryGrantAuthorizationsService = { + typeName: TYPE_NAME, + method: "GrantAuthorizations", + Request: QueryGrantAuthorizationsRequest, + Response: QueryGrantAuthorizationsResponse, +} as const; + +/** + * Retrieves a derivative or binary options market's balance + * + * @generated from rpc injective.exchange.v2.Query.MarketBalance + */ +export const QueryMarketBalanceService = { + typeName: TYPE_NAME, + method: "MarketBalance", + Request: QueryMarketBalanceRequest, + Response: QueryMarketBalanceResponse, +} as const; + +/** + * Retrieves all derivative or binary options market balances + * + * @generated from rpc injective.exchange.v2.Query.MarketBalances + */ +export const QueryMarketBalancesService = { + typeName: TYPE_NAME, + method: "MarketBalances", + Request: QueryMarketBalancesRequest, + Response: QueryMarketBalancesResponse, +} as const; + +/** + * Retrieves the min notional for a denom + * + * @generated from rpc injective.exchange.v2.Query.DenomMinNotional + */ +export const QueryDenomMinNotionalService = { + typeName: TYPE_NAME, + method: "DenomMinNotional", + Request: QueryDenomMinNotionalRequest, + Response: QueryDenomMinNotionalResponse, +} as const; + +/** + * Retrieves the min notionals for all denoms + * + * @generated from rpc injective.exchange.v2.Query.DenomMinNotionals + */ +export const QueryDenomMinNotionalsService = { + typeName: TYPE_NAME, + method: "DenomMinNotionals", + Request: QueryDenomMinNotionalsRequest, + Response: QueryDenomMinNotionalsResponse, +} as const; + +/** + * Retrieves a market's open interest + * + * @generated from rpc injective.exchange.v2.Query.OpenInterest + */ +export const QueryOpenInterestService = { + typeName: TYPE_NAME, + method: "OpenInterest", + Request: QueryOpenInterestRequest, + Response: QueryOpenInterestResponse, +} as const; + diff --git a/src/protobufs/injective/exchange/v2/query_pb.ts b/src/protobufs/injective/exchange/v2/query_pb.ts new file mode 100644 index 00000000..ad9e023e --- /dev/null +++ b/src/protobufs/injective/exchange/v2/query_pb.ts @@ -0,0 +1,6867 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/query.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ActiveGrant, AggregateAccountVolumeRecord, Balance, CampaignRewardPool, DenomDecimals, DenomMinNotional, Deposit, DerivativePosition, EffectiveGrant, FeeDiscountSchedule, FeeDiscountTierInfo, FeeDiscountTierTTL, GrantAuthorization, Level, MidPriceAndTOB, Params, Position, SubaccountOrderData, TradeRecord, TradeRecords, TradingRewardCampaignInfo } from "./exchange_pb.js"; +import { SubaccountOrderbookMetadata } from "./orderbook_pb.js"; +import { BinaryOptionsMarket, DerivativeMarket, ExpiryFuturesMarketInfo, MarketVolume, PerpetualMarketFunding, PerpetualMarketInfo, SpotMarket, VolumeRecord } from "./market_pb.js"; +import { GenesisState } from "./genesis_pb.js"; +import { MetadataStatistics } from "../../oracle/v1beta1/oracle_pb.js"; + +/** + * @generated from enum injective.exchange.v2.OrderSide + */ +export enum OrderSide { + /** + * will return both + * + * @generated from enum value: Side_Unspecified = 0; + */ + Side_Unspecified = 0, + + /** + * @generated from enum value: Buy = 1; + */ + Buy = 1, + + /** + * @generated from enum value: Sell = 2; + */ + Sell = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(OrderSide) +proto3.util.setEnumType(OrderSide, "injective.exchange.v2.OrderSide", [ + { no: 0, name: "Side_Unspecified" }, + { no: 1, name: "Buy" }, + { no: 2, name: "Sell" }, +]); + +/** + * CancellationStrategy is the list of cancellation strategies. + * + * @generated from enum injective.exchange.v2.CancellationStrategy + */ +export enum CancellationStrategy { + /** + * just cancelling in random order in most efficient way + * + * @generated from enum value: UnspecifiedOrder = 0; + */ + UnspecifiedOrder = 0, + + /** + * e.g. for buy orders from lowest to highest price + * + * @generated from enum value: FromWorstToBest = 1; + */ + FromWorstToBest = 1, + + /** + * e.g. for buy orders from higest to lowest price + * + * @generated from enum value: FromBestToWorst = 2; + */ + FromBestToWorst = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(CancellationStrategy) +proto3.util.setEnumType(CancellationStrategy, "injective.exchange.v2.CancellationStrategy", [ + { no: 0, name: "UnspecifiedOrder" }, + { no: 1, name: "FromWorstToBest" }, + { no: 2, name: "FromBestToWorst" }, +]); + +/** + * @generated from message injective.exchange.v2.Subaccount + */ +export class Subaccount extends Message { + /** + * the subaccount's trader address + * + * @generated from field: string trader = 1; + */ + trader = ""; + + /** + * the subaccount's nonce number + * + * @generated from field: uint32 subaccount_nonce = 2; + */ + subaccountNonce = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.Subaccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trader", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_nonce", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Subaccount { + return new Subaccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Subaccount { + return new Subaccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Subaccount { + return new Subaccount().fromJsonString(jsonString, options); + } + + static equals(a: Subaccount | PlainMessage | undefined, b: Subaccount | PlainMessage | undefined): boolean { + return proto3.util.equals(Subaccount, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QuerySubaccountOrdersRequest + */ +export class QuerySubaccountOrdersRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountOrdersRequest { + return new QuerySubaccountOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountOrdersRequest { + return new QuerySubaccountOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountOrdersRequest { + return new QuerySubaccountOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountOrdersRequest | PlainMessage | undefined, b: QuerySubaccountOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountOrdersRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QuerySubaccountOrdersResponse + */ +export class QuerySubaccountOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.SubaccountOrderData buy_orders = 1; + */ + buyOrders: SubaccountOrderData[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.SubaccountOrderData sell_orders = 2; + */ + sellOrders: SubaccountOrderData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "buy_orders", kind: "message", T: SubaccountOrderData, repeated: true }, + { no: 2, name: "sell_orders", kind: "message", T: SubaccountOrderData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountOrdersResponse { + return new QuerySubaccountOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountOrdersResponse { + return new QuerySubaccountOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountOrdersResponse { + return new QuerySubaccountOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountOrdersResponse | PlainMessage | undefined, b: QuerySubaccountOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountOrdersResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SubaccountOrderbookMetadataWithMarket + */ +export class SubaccountOrderbookMetadataWithMarket extends Message { + /** + * the subaccount orderbook details + * + * @generated from field: injective.exchange.v2.SubaccountOrderbookMetadata metadata = 1; + */ + metadata?: SubaccountOrderbookMetadata; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * true if the orderbook is for a buy orders + * + * @generated from field: bool isBuy = 3; + */ + isBuy = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SubaccountOrderbookMetadataWithMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: SubaccountOrderbookMetadata }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountOrderbookMetadataWithMarket { + return new SubaccountOrderbookMetadataWithMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountOrderbookMetadataWithMarket { + return new SubaccountOrderbookMetadataWithMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountOrderbookMetadataWithMarket { + return new SubaccountOrderbookMetadataWithMarket().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountOrderbookMetadataWithMarket | PlainMessage | undefined, b: SubaccountOrderbookMetadataWithMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountOrderbookMetadataWithMarket, a, b); + } +} + +/** + * QueryExchangeParamsRequest is the request type for the Query/ExchangeParams + * RPC method. + * + * @generated from message injective.exchange.v2.QueryExchangeParamsRequest + */ +export class QueryExchangeParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExchangeParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeParamsRequest { + return new QueryExchangeParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeParamsRequest { + return new QueryExchangeParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeParamsRequest { + return new QueryExchangeParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeParamsRequest | PlainMessage | undefined, b: QueryExchangeParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeParamsRequest, a, b); + } +} + +/** + * QueryExchangeParamsRequest is the response type for the Query/ExchangeParams + * RPC method. + * + * @generated from message injective.exchange.v2.QueryExchangeParamsResponse + */ +export class QueryExchangeParamsResponse extends Message { + /** + * @generated from field: injective.exchange.v2.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExchangeParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeParamsResponse { + return new QueryExchangeParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeParamsResponse { + return new QueryExchangeParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeParamsResponse { + return new QueryExchangeParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeParamsResponse | PlainMessage | undefined, b: QueryExchangeParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeParamsResponse, a, b); + } +} + +/** + * QuerySubaccountDepositsRequest is the request type for the + * Query/SubaccountDeposits RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountDepositsRequest + */ +export class QuerySubaccountDepositsRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the subaccount details + * + * @generated from field: injective.exchange.v2.Subaccount subaccount = 2; + */ + subaccount?: Subaccount; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount", kind: "message", T: Subaccount }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountDepositsRequest { + return new QuerySubaccountDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountDepositsRequest { + return new QuerySubaccountDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountDepositsRequest { + return new QuerySubaccountDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountDepositsRequest | PlainMessage | undefined, b: QuerySubaccountDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountDepositsRequest, a, b); + } +} + +/** + * QuerySubaccountDepositsResponse is the response type for the + * Query/SubaccountDeposits RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountDepositsResponse + */ +export class QuerySubaccountDepositsResponse extends Message { + /** + * @generated from field: map deposits = 1; + */ + deposits: { [key: string]: Deposit } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Deposit} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountDepositsResponse { + return new QuerySubaccountDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountDepositsResponse { + return new QuerySubaccountDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountDepositsResponse { + return new QuerySubaccountDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountDepositsResponse | PlainMessage | undefined, b: QuerySubaccountDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountDepositsResponse, a, b); + } +} + +/** + * QueryExchangeBalancesRequest is the request type for the + * Query/ExchangeBalances RPC method. + * + * @generated from message injective.exchange.v2.QueryExchangeBalancesRequest + */ +export class QueryExchangeBalancesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExchangeBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeBalancesRequest { + return new QueryExchangeBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeBalancesRequest { + return new QueryExchangeBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeBalancesRequest { + return new QueryExchangeBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeBalancesRequest | PlainMessage | undefined, b: QueryExchangeBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeBalancesRequest, a, b); + } +} + +/** + * QuerySubaccountDepositsResponse is the response type for the + * Query/SubaccountDeposits RPC method. + * + * @generated from message injective.exchange.v2.QueryExchangeBalancesResponse + */ +export class QueryExchangeBalancesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.Balance balances = 1; + */ + balances: Balance[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExchangeBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balances", kind: "message", T: Balance, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeBalancesResponse { + return new QueryExchangeBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeBalancesResponse { + return new QueryExchangeBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeBalancesResponse { + return new QueryExchangeBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeBalancesResponse | PlainMessage | undefined, b: QueryExchangeBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeBalancesResponse, a, b); + } +} + +/** + * QueryAggregateVolumeRequest is the request type for the Query/AggregateVolume + * RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateVolumeRequest + */ +export class QueryAggregateVolumeRequest extends Message { + /** + * can either be an address or a subaccount + * + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateVolumeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVolumeRequest { + return new QueryAggregateVolumeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVolumeRequest { + return new QueryAggregateVolumeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVolumeRequest { + return new QueryAggregateVolumeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVolumeRequest | PlainMessage | undefined, b: QueryAggregateVolumeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVolumeRequest, a, b); + } +} + +/** + * QueryAggregateVolumeResponse is the response type for the + * Query/AggregateVolume RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateVolumeResponse + */ +export class QueryAggregateVolumeResponse extends Message { + /** + * if an address is specified, then the aggregate_volumes will aggregate the + * volumes across all subaccounts for the address + * + * @generated from field: repeated injective.exchange.v2.MarketVolume aggregate_volumes = 1; + */ + aggregateVolumes: MarketVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateVolumeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_volumes", kind: "message", T: MarketVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVolumeResponse { + return new QueryAggregateVolumeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVolumeResponse { + return new QueryAggregateVolumeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVolumeResponse { + return new QueryAggregateVolumeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVolumeResponse | PlainMessage | undefined, b: QueryAggregateVolumeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVolumeResponse, a, b); + } +} + +/** + * QueryAggregateVolumesRequest is the request type for the + * Query/AggregateVolumes RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateVolumesRequest + */ +export class QueryAggregateVolumesRequest extends Message { + /** + * @generated from field: repeated string accounts = 1; + */ + accounts: string[] = []; + + /** + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateVolumesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVolumesRequest { + return new QueryAggregateVolumesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVolumesRequest { + return new QueryAggregateVolumesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVolumesRequest { + return new QueryAggregateVolumesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVolumesRequest | PlainMessage | undefined, b: QueryAggregateVolumesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVolumesRequest, a, b); + } +} + +/** + * QueryAggregateVolumesResponse is the response type for the + * Query/AggregateVolumes RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateVolumesResponse + */ +export class QueryAggregateVolumesResponse extends Message { + /** + * the aggregate volume records for the accounts specified + * + * @generated from field: repeated injective.exchange.v2.AggregateAccountVolumeRecord aggregate_account_volumes = 1; + */ + aggregateAccountVolumes: AggregateAccountVolumeRecord[] = []; + + /** + * the aggregate volumes for the markets specified + * + * @generated from field: repeated injective.exchange.v2.MarketVolume aggregate_market_volumes = 2; + */ + aggregateMarketVolumes: MarketVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateVolumesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_account_volumes", kind: "message", T: AggregateAccountVolumeRecord, repeated: true }, + { no: 2, name: "aggregate_market_volumes", kind: "message", T: MarketVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVolumesResponse { + return new QueryAggregateVolumesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVolumesResponse { + return new QueryAggregateVolumesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVolumesResponse { + return new QueryAggregateVolumesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVolumesResponse | PlainMessage | undefined, b: QueryAggregateVolumesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVolumesResponse, a, b); + } +} + +/** + * QueryAggregateMarketVolumeRequest is the request type for the + * Query/AggregateMarketVolume RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateMarketVolumeRequest + */ +export class QueryAggregateMarketVolumeRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateMarketVolumeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateMarketVolumeRequest { + return new QueryAggregateMarketVolumeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateMarketVolumeRequest { + return new QueryAggregateMarketVolumeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateMarketVolumeRequest { + return new QueryAggregateMarketVolumeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateMarketVolumeRequest | PlainMessage | undefined, b: QueryAggregateMarketVolumeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateMarketVolumeRequest, a, b); + } +} + +/** + * QueryAggregateMarketVolumeResponse is the response type for the + * Query/AggregateMarketVolume RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateMarketVolumeResponse + */ +export class QueryAggregateMarketVolumeResponse extends Message { + /** + * @generated from field: injective.exchange.v2.VolumeRecord volume = 1; + */ + volume?: VolumeRecord; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateMarketVolumeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "volume", kind: "message", T: VolumeRecord }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateMarketVolumeResponse { + return new QueryAggregateMarketVolumeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateMarketVolumeResponse { + return new QueryAggregateMarketVolumeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateMarketVolumeResponse { + return new QueryAggregateMarketVolumeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateMarketVolumeResponse | PlainMessage | undefined, b: QueryAggregateMarketVolumeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateMarketVolumeResponse, a, b); + } +} + +/** + * QueryAuctionExchangeTransferDenomDecimalRequest is the request type for the + * Query/DenomDecimal RPC method. + * + * @generated from message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalRequest + */ +export class QueryAuctionExchangeTransferDenomDecimalRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionExchangeTransferDenomDecimalRequest { + return new QueryAuctionExchangeTransferDenomDecimalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionExchangeTransferDenomDecimalRequest { + return new QueryAuctionExchangeTransferDenomDecimalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionExchangeTransferDenomDecimalRequest { + return new QueryAuctionExchangeTransferDenomDecimalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionExchangeTransferDenomDecimalRequest | PlainMessage | undefined, b: QueryAuctionExchangeTransferDenomDecimalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionExchangeTransferDenomDecimalRequest, a, b); + } +} + +/** + * QueryDenomDecimalResponse is the response type for the Query/DenomDecimal RPC + * method. + * + * @generated from message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalResponse + */ +export class QueryAuctionExchangeTransferDenomDecimalResponse extends Message { + /** + * @generated from field: uint64 decimal = 1; + */ + decimal = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "decimal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionExchangeTransferDenomDecimalResponse { + return new QueryAuctionExchangeTransferDenomDecimalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionExchangeTransferDenomDecimalResponse { + return new QueryAuctionExchangeTransferDenomDecimalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionExchangeTransferDenomDecimalResponse { + return new QueryAuctionExchangeTransferDenomDecimalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionExchangeTransferDenomDecimalResponse | PlainMessage | undefined, b: QueryAuctionExchangeTransferDenomDecimalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionExchangeTransferDenomDecimalResponse, a, b); + } +} + +/** + * QueryDenomDecimalsRequest is the request type for the Query/DenomDecimals RPC + * method. + * + * @generated from message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsRequest + */ +export class QueryAuctionExchangeTransferDenomDecimalsRequest extends Message { + /** + * denoms can be empty to query all denom decimals + * + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsRequest { + return new QueryAuctionExchangeTransferDenomDecimalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsRequest { + return new QueryAuctionExchangeTransferDenomDecimalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsRequest { + return new QueryAuctionExchangeTransferDenomDecimalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionExchangeTransferDenomDecimalsRequest | PlainMessage | undefined, b: QueryAuctionExchangeTransferDenomDecimalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionExchangeTransferDenomDecimalsRequest, a, b); + } +} + +/** + * QueryDenomDecimalsRequest is the response type for the Query/DenomDecimals + * RPC method. + * + * @generated from message injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsResponse + */ +export class QueryAuctionExchangeTransferDenomDecimalsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DenomDecimals denom_decimals = 1; + */ + denomDecimals: DenomDecimals[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAuctionExchangeTransferDenomDecimalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_decimals", kind: "message", T: DenomDecimals, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsResponse { + return new QueryAuctionExchangeTransferDenomDecimalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsResponse { + return new QueryAuctionExchangeTransferDenomDecimalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionExchangeTransferDenomDecimalsResponse { + return new QueryAuctionExchangeTransferDenomDecimalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionExchangeTransferDenomDecimalsResponse | PlainMessage | undefined, b: QueryAuctionExchangeTransferDenomDecimalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionExchangeTransferDenomDecimalsResponse, a, b); + } +} + +/** + * QueryAggregateMarketVolumesRequest is the request type for the + * Query/AggregateMarketVolumes RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateMarketVolumesRequest + */ +export class QueryAggregateMarketVolumesRequest extends Message { + /** + * @generated from field: repeated string market_ids = 1; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateMarketVolumesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateMarketVolumesRequest { + return new QueryAggregateMarketVolumesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateMarketVolumesRequest { + return new QueryAggregateMarketVolumesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateMarketVolumesRequest { + return new QueryAggregateMarketVolumesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateMarketVolumesRequest | PlainMessage | undefined, b: QueryAggregateMarketVolumesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateMarketVolumesRequest, a, b); + } +} + +/** + * QueryAggregateMarketVolumesResponse is the response type for the + * Query/AggregateMarketVolumes RPC method. + * + * @generated from message injective.exchange.v2.QueryAggregateMarketVolumesResponse + */ +export class QueryAggregateMarketVolumesResponse extends Message { + /** + * the aggregate volumes for the entire market + * + * @generated from field: repeated injective.exchange.v2.MarketVolume volumes = 1; + */ + volumes: MarketVolume[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAggregateMarketVolumesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "volumes", kind: "message", T: MarketVolume, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateMarketVolumesResponse { + return new QueryAggregateMarketVolumesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateMarketVolumesResponse { + return new QueryAggregateMarketVolumesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateMarketVolumesResponse { + return new QueryAggregateMarketVolumesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateMarketVolumesResponse | PlainMessage | undefined, b: QueryAggregateMarketVolumesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateMarketVolumesResponse, a, b); + } +} + +/** + * QuerySubaccountDepositsRequest is the request type for the + * Query/SubaccountDeposits RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountDepositRequest + */ +export class QuerySubaccountDepositRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the token denom + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountDepositRequest { + return new QuerySubaccountDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountDepositRequest { + return new QuerySubaccountDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountDepositRequest { + return new QuerySubaccountDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountDepositRequest | PlainMessage | undefined, b: QuerySubaccountDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountDepositRequest, a, b); + } +} + +/** + * QuerySubaccountDepositsResponse is the response type for the + * Query/SubaccountDeposits RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountDepositResponse + */ +export class QuerySubaccountDepositResponse extends Message { + /** + * @generated from field: injective.exchange.v2.Deposit deposits = 1; + */ + deposits?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountDepositResponse { + return new QuerySubaccountDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountDepositResponse { + return new QuerySubaccountDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountDepositResponse { + return new QuerySubaccountDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountDepositResponse | PlainMessage | undefined, b: QuerySubaccountDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountDepositResponse, a, b); + } +} + +/** + * QuerySpotMarketsRequest is the request type for the Query/SpotMarkets RPC + * method. + * + * @generated from message injective.exchange.v2.QuerySpotMarketsRequest + */ +export class QuerySpotMarketsRequest extends Message { + /** + * Status of the market, for convenience it is set to string - not enum + * + * @generated from field: string status = 1; + */ + status = ""; + + /** + * Filter by market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMarketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMarketsRequest { + return new QuerySpotMarketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMarketsRequest { + return new QuerySpotMarketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMarketsRequest { + return new QuerySpotMarketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMarketsRequest | PlainMessage | undefined, b: QuerySpotMarketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMarketsRequest, a, b); + } +} + +/** + * QuerySpotMarketsResponse is the response type for the Query/SpotMarkets RPC + * method. + * + * @generated from message injective.exchange.v2.QuerySpotMarketsResponse + */ +export class QuerySpotMarketsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.SpotMarket markets = 1; + */ + markets: SpotMarket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMarketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: SpotMarket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMarketsResponse { + return new QuerySpotMarketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMarketsResponse { + return new QuerySpotMarketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMarketsResponse { + return new QuerySpotMarketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMarketsResponse | PlainMessage | undefined, b: QuerySpotMarketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMarketsResponse, a, b); + } +} + +/** + * QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC + * method. + * + * @generated from message injective.exchange.v2.QuerySpotMarketRequest + */ +export class QuerySpotMarketRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMarketRequest { + return new QuerySpotMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMarketRequest { + return new QuerySpotMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMarketRequest { + return new QuerySpotMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMarketRequest | PlainMessage | undefined, b: QuerySpotMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMarketRequest, a, b); + } +} + +/** + * QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC + * method. + * + * @generated from message injective.exchange.v2.QuerySpotMarketResponse + */ +export class QuerySpotMarketResponse extends Message { + /** + * @generated from field: injective.exchange.v2.SpotMarket market = 1; + */ + market?: SpotMarket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: SpotMarket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMarketResponse { + return new QuerySpotMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMarketResponse { + return new QuerySpotMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMarketResponse { + return new QuerySpotMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMarketResponse | PlainMessage | undefined, b: QuerySpotMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMarketResponse, a, b); + } +} + +/** + * QuerySpotOrderbookRequest is the request type for the Query/SpotOrderbook RPC + * method. + * + * @generated from message injective.exchange.v2.QuerySpotOrderbookRequest + */ +export class QuerySpotOrderbookRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the maximum number of orderbook entries to return per side (optional) + * + * @generated from field: uint64 limit = 2; + */ + limit = protoInt64.zero; + + /** + * the order side to return the orderbook entries for (optional) + * + * @generated from field: injective.exchange.v2.OrderSide order_side = 3; + */ + orderSide = OrderSide.Side_Unspecified; + + /** + * limits the number of entries to return per side based on the cumulative + * notional (in human readable format) + * + * @generated from field: string limit_cumulative_notional = 4; + */ + limitCumulativeNotional = ""; + + /** + * limits the number of entries to return per side based on the cumulative + * quantity (in human readable format) + * + * @generated from field: string limit_cumulative_quantity = 5; + */ + limitCumulativeQuantity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "order_side", kind: "enum", T: proto3.getEnumType(OrderSide) }, + { no: 4, name: "limit_cumulative_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "limit_cumulative_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotOrderbookRequest { + return new QuerySpotOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotOrderbookRequest { + return new QuerySpotOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotOrderbookRequest { + return new QuerySpotOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotOrderbookRequest | PlainMessage | undefined, b: QuerySpotOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotOrderbookRequest, a, b); + } +} + +/** + * QuerySpotOrderbookResponse is the response type for the Query/SpotOrderbook + * RPC method. + * + * @generated from message injective.exchange.v2.QuerySpotOrderbookResponse + */ +export class QuerySpotOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.Level buys_price_level = 1; + */ + buysPriceLevel: Level[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.Level sells_price_level = 2; + */ + sellsPriceLevel: Level[] = []; + + /** + * the current orderbook sequence number + * + * @generated from field: uint64 seq = 3; + */ + seq = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "buys_price_level", kind: "message", T: Level, repeated: true }, + { no: 2, name: "sells_price_level", kind: "message", T: Level, repeated: true }, + { no: 3, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotOrderbookResponse { + return new QuerySpotOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotOrderbookResponse { + return new QuerySpotOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotOrderbookResponse { + return new QuerySpotOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotOrderbookResponse | PlainMessage | undefined, b: QuerySpotOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotOrderbookResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FullSpotMarket + */ +export class FullSpotMarket extends Message { + /** + * spot market details + * + * @generated from field: injective.exchange.v2.SpotMarket market = 1; + */ + market?: SpotMarket; + + /** + * mid_price_and_tob defines the mid price for this market and the best ask + * and bid orders + * + * @generated from field: injective.exchange.v2.MidPriceAndTOB mid_price_and_tob = 2; + */ + midPriceAndTob?: MidPriceAndTOB; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FullSpotMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: SpotMarket }, + { no: 2, name: "mid_price_and_tob", kind: "message", T: MidPriceAndTOB }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullSpotMarket { + return new FullSpotMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullSpotMarket { + return new FullSpotMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullSpotMarket { + return new FullSpotMarket().fromJsonString(jsonString, options); + } + + static equals(a: FullSpotMarket | PlainMessage | undefined, b: FullSpotMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(FullSpotMarket, a, b); + } +} + +/** + * QueryFullSpotMarketsRequest is the request type for the Query/FullSpotMarkets + * RPC method. + * + * @generated from message injective.exchange.v2.QueryFullSpotMarketsRequest + */ +export class QueryFullSpotMarketsRequest extends Message { + /** + * Status of the market, for convenience it is set to string - not enum + * + * @generated from field: string status = 1; + */ + status = ""; + + /** + * Filter by market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + /** + * Flag to return the markets mid price and top of the book buy and sell + * orders. + * + * @generated from field: bool with_mid_price_and_tob = 3; + */ + withMidPriceAndTob = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotMarketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "with_mid_price_and_tob", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotMarketsRequest { + return new QueryFullSpotMarketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotMarketsRequest { + return new QueryFullSpotMarketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotMarketsRequest { + return new QueryFullSpotMarketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotMarketsRequest | PlainMessage | undefined, b: QueryFullSpotMarketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotMarketsRequest, a, b); + } +} + +/** + * QueryFullSpotMarketsResponse is the response type for the + * Query/FullSpotMarkets RPC method. + * + * @generated from message injective.exchange.v2.QueryFullSpotMarketsResponse + */ +export class QueryFullSpotMarketsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.FullSpotMarket markets = 1; + */ + markets: FullSpotMarket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotMarketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: FullSpotMarket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotMarketsResponse { + return new QueryFullSpotMarketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotMarketsResponse { + return new QueryFullSpotMarketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotMarketsResponse { + return new QueryFullSpotMarketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotMarketsResponse | PlainMessage | undefined, b: QueryFullSpotMarketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotMarketsResponse, a, b); + } +} + +/** + * QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC + * method. + * + * @generated from message injective.exchange.v2.QueryFullSpotMarketRequest + */ +export class QueryFullSpotMarketRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * Flag to return the markets mid price and top of the book buy and sell + * orders. + * + * @generated from field: bool with_mid_price_and_tob = 2; + */ + withMidPriceAndTob = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "with_mid_price_and_tob", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotMarketRequest { + return new QueryFullSpotMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotMarketRequest { + return new QueryFullSpotMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotMarketRequest { + return new QueryFullSpotMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotMarketRequest | PlainMessage | undefined, b: QueryFullSpotMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotMarketRequest, a, b); + } +} + +/** + * QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC + * method. + * + * @generated from message injective.exchange.v2.QueryFullSpotMarketResponse + */ +export class QueryFullSpotMarketResponse extends Message { + /** + * @generated from field: injective.exchange.v2.FullSpotMarket market = 1; + */ + market?: FullSpotMarket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: FullSpotMarket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotMarketResponse { + return new QueryFullSpotMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotMarketResponse { + return new QueryFullSpotMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotMarketResponse { + return new QueryFullSpotMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotMarketResponse | PlainMessage | undefined, b: QueryFullSpotMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotMarketResponse, a, b); + } +} + +/** + * QuerySpotOrdersByHashesRequest is the request type for the + * Query/SpotOrdersByHashes RPC method. + * + * @generated from message injective.exchange.v2.QuerySpotOrdersByHashesRequest + */ +export class QuerySpotOrdersByHashesRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the order hashes + * + * @generated from field: repeated string order_hashes = 3; + */ + orderHashes: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotOrdersByHashesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotOrdersByHashesRequest { + return new QuerySpotOrdersByHashesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotOrdersByHashesRequest { + return new QuerySpotOrdersByHashesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotOrdersByHashesRequest { + return new QuerySpotOrdersByHashesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotOrdersByHashesRequest | PlainMessage | undefined, b: QuerySpotOrdersByHashesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotOrdersByHashesRequest, a, b); + } +} + +/** + * QuerySpotOrdersByHashesResponse is the response type for the + * Query/SpotOrdersByHashes RPC method. + * + * @generated from message injective.exchange.v2.QuerySpotOrdersByHashesResponse + */ +export class QuerySpotOrdersByHashesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1; + */ + orders: TrimmedSpotLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotOrdersByHashesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedSpotLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotOrdersByHashesResponse { + return new QuerySpotOrdersByHashesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotOrdersByHashesResponse { + return new QuerySpotOrdersByHashesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotOrdersByHashesResponse { + return new QuerySpotOrdersByHashesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotOrdersByHashesResponse | PlainMessage | undefined, b: QuerySpotOrdersByHashesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotOrdersByHashesResponse, a, b); + } +} + +/** + * QueryTraderSpotOrdersRequest is the request type for the + * Query/TraderSpotOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderSpotOrdersRequest + */ +export class QueryTraderSpotOrdersRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderSpotOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderSpotOrdersRequest { + return new QueryTraderSpotOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderSpotOrdersRequest { + return new QueryTraderSpotOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderSpotOrdersRequest { + return new QueryTraderSpotOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderSpotOrdersRequest | PlainMessage | undefined, b: QueryTraderSpotOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderSpotOrdersRequest, a, b); + } +} + +/** + * QueryAccountAddressSpotOrdersRequest is the request type for the + * Query/AccountAddressSpotOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryAccountAddressSpotOrdersRequest + */ +export class QueryAccountAddressSpotOrdersRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * Account address of the trader + * + * @generated from field: string account_address = 2; + */ + accountAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAccountAddressSpotOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressSpotOrdersRequest { + return new QueryAccountAddressSpotOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressSpotOrdersRequest { + return new QueryAccountAddressSpotOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressSpotOrdersRequest { + return new QueryAccountAddressSpotOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountAddressSpotOrdersRequest | PlainMessage | undefined, b: QueryAccountAddressSpotOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountAddressSpotOrdersRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TrimmedSpotLimitOrder + */ +export class TrimmedSpotLimitOrder extends Message { + /** + * price of the order (in human readable format) + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * quantity of the order (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * the amount of the quantity remaining fillable (in human readable format) + * + * @generated from field: string fillable = 3; + */ + fillable = ""; + + /** + * true if the order is a buy + * + * @generated from field: bool isBuy = 4; + */ + isBuy = false; + + /** + * the order hash (optional) + * + * @generated from field: string order_hash = 5; + */ + orderHash = ""; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 6; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TrimmedSpotLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fillable", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedSpotLimitOrder { + return new TrimmedSpotLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrimmedSpotLimitOrder { + return new TrimmedSpotLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrimmedSpotLimitOrder { + return new TrimmedSpotLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: TrimmedSpotLimitOrder | PlainMessage | undefined, b: TrimmedSpotLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(TrimmedSpotLimitOrder, a, b); + } +} + +/** + * QueryTraderSpotOrdersResponse is the response type for the + * Query/TraderSpotOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderSpotOrdersResponse + */ +export class QueryTraderSpotOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1; + */ + orders: TrimmedSpotLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderSpotOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedSpotLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderSpotOrdersResponse { + return new QueryTraderSpotOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderSpotOrdersResponse { + return new QueryTraderSpotOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderSpotOrdersResponse { + return new QueryTraderSpotOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderSpotOrdersResponse | PlainMessage | undefined, b: QueryTraderSpotOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderSpotOrdersResponse, a, b); + } +} + +/** + * QueryAccountAddressSpotOrdersResponse is the response type for the + * Query/AccountAddressSpotOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryAccountAddressSpotOrdersResponse + */ +export class QueryAccountAddressSpotOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedSpotLimitOrder orders = 1; + */ + orders: TrimmedSpotLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAccountAddressSpotOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedSpotLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressSpotOrdersResponse { + return new QueryAccountAddressSpotOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressSpotOrdersResponse { + return new QueryAccountAddressSpotOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressSpotOrdersResponse { + return new QueryAccountAddressSpotOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountAddressSpotOrdersResponse | PlainMessage | undefined, b: QueryAccountAddressSpotOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountAddressSpotOrdersResponse, a, b); + } +} + +/** + * QuerySpotMidPriceAndTOBRequest is the request type for the + * Query/SpotMidPriceAndTOB RPC method. + * + * @generated from message injective.exchange.v2.QuerySpotMidPriceAndTOBRequest + */ +export class QuerySpotMidPriceAndTOBRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMidPriceAndTOBRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMidPriceAndTOBRequest { + return new QuerySpotMidPriceAndTOBRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMidPriceAndTOBRequest { + return new QuerySpotMidPriceAndTOBRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMidPriceAndTOBRequest { + return new QuerySpotMidPriceAndTOBRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMidPriceAndTOBRequest | PlainMessage | undefined, b: QuerySpotMidPriceAndTOBRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMidPriceAndTOBRequest, a, b); + } +} + +/** + * QuerySpotMidPriceAndTOBResponse is the response type for the + * Query/SpotMidPriceAndTOB RPC method. + * + * @generated from message injective.exchange.v2.QuerySpotMidPriceAndTOBResponse + */ +export class QuerySpotMidPriceAndTOBResponse extends Message { + /** + * mid price of the market (in human readable format) + * + * @generated from field: string mid_price = 1; + */ + midPrice = ""; + + /** + * best buy price of the market (in human readable format) + * + * @generated from field: string best_buy_price = 2; + */ + bestBuyPrice = ""; + + /** + * best sell price of the market + * + * @generated from field: string best_sell_price = 3; + */ + bestSellPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySpotMidPriceAndTOBResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mid_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "best_buy_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "best_sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotMidPriceAndTOBResponse { + return new QuerySpotMidPriceAndTOBResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotMidPriceAndTOBResponse { + return new QuerySpotMidPriceAndTOBResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotMidPriceAndTOBResponse { + return new QuerySpotMidPriceAndTOBResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotMidPriceAndTOBResponse | PlainMessage | undefined, b: QuerySpotMidPriceAndTOBResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotMidPriceAndTOBResponse, a, b); + } +} + +/** + * QueryDerivativeMidPriceAndTOBRequest is the request type for the + * Query/GetDerivativeMidPriceAndTOB RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMidPriceAndTOBRequest + */ +export class QueryDerivativeMidPriceAndTOBRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMidPriceAndTOBRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMidPriceAndTOBRequest { + return new QueryDerivativeMidPriceAndTOBRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMidPriceAndTOBRequest { + return new QueryDerivativeMidPriceAndTOBRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMidPriceAndTOBRequest { + return new QueryDerivativeMidPriceAndTOBRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMidPriceAndTOBRequest | PlainMessage | undefined, b: QueryDerivativeMidPriceAndTOBRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMidPriceAndTOBRequest, a, b); + } +} + +/** + * QueryDerivativeMidPriceAndTOBResponse is the response type for the + * Query/GetDerivativeMidPriceAndTOB RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMidPriceAndTOBResponse + */ +export class QueryDerivativeMidPriceAndTOBResponse extends Message { + /** + * mid price of the market + * + * @generated from field: string mid_price = 1; + */ + midPrice = ""; + + /** + * best buy price of the market + * + * @generated from field: string best_buy_price = 2; + */ + bestBuyPrice = ""; + + /** + * best sell price of the market + * + * @generated from field: string best_sell_price = 3; + */ + bestSellPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMidPriceAndTOBResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mid_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "best_buy_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "best_sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMidPriceAndTOBResponse { + return new QueryDerivativeMidPriceAndTOBResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMidPriceAndTOBResponse { + return new QueryDerivativeMidPriceAndTOBResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMidPriceAndTOBResponse { + return new QueryDerivativeMidPriceAndTOBResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMidPriceAndTOBResponse | PlainMessage | undefined, b: QueryDerivativeMidPriceAndTOBResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMidPriceAndTOBResponse, a, b); + } +} + +/** + * QueryDerivativeOrderbookRequest is the request type for the + * Query/DerivativeOrderbook RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeOrderbookRequest + */ +export class QueryDerivativeOrderbookRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: uint64 limit = 2; + */ + limit = protoInt64.zero; + + /** + * @generated from field: string limit_cumulative_notional = 3; + */ + limitCumulativeNotional = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "limit_cumulative_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeOrderbookRequest { + return new QueryDerivativeOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeOrderbookRequest { + return new QueryDerivativeOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeOrderbookRequest { + return new QueryDerivativeOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeOrderbookRequest | PlainMessage | undefined, b: QueryDerivativeOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeOrderbookRequest, a, b); + } +} + +/** + * QueryDerivativeOrderbookResponse is the response type for the + * Query/DerivativeOrderbook RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeOrderbookResponse + */ +export class QueryDerivativeOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.Level buys_price_level = 1; + */ + buysPriceLevel: Level[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.Level sells_price_level = 2; + */ + sellsPriceLevel: Level[] = []; + + /** + * the current orderbook sequence number + * + * @generated from field: uint64 seq = 3; + */ + seq = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "buys_price_level", kind: "message", T: Level, repeated: true }, + { no: 2, name: "sells_price_level", kind: "message", T: Level, repeated: true }, + { no: 3, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeOrderbookResponse { + return new QueryDerivativeOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeOrderbookResponse { + return new QueryDerivativeOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeOrderbookResponse { + return new QueryDerivativeOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeOrderbookResponse | PlainMessage | undefined, b: QueryDerivativeOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeOrderbookResponse, a, b); + } +} + +/** + * QueryTraderSpotOrdersToCancelUpToAmountRequest is the request type for the + * Query/TraderSpotOrdersToCancelUpToAmountRequest RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderSpotOrdersToCancelUpToAmountRequest + */ +export class QueryTraderSpotOrdersToCancelUpToAmountRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the base amount to cancel (free up) + * + * @generated from field: string base_amount = 3; + */ + baseAmount = ""; + + /** + * the quote amount to cancel (free up) + * + * @generated from field: string quote_amount = 4; + */ + quoteAmount = ""; + + /** + * The cancellation strategy + * + * @generated from field: injective.exchange.v2.CancellationStrategy strategy = 5; + */ + strategy = CancellationStrategy.UnspecifiedOrder; + + /** + * The reference price for the cancellation strategy, e.g. mid price or mark + * price + * + * @generated from field: string reference_price = 6; + */ + referencePrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderSpotOrdersToCancelUpToAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "base_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quote_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "strategy", kind: "enum", T: proto3.getEnumType(CancellationStrategy) }, + { no: 6, name: "reference_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderSpotOrdersToCancelUpToAmountRequest { + return new QueryTraderSpotOrdersToCancelUpToAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderSpotOrdersToCancelUpToAmountRequest { + return new QueryTraderSpotOrdersToCancelUpToAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderSpotOrdersToCancelUpToAmountRequest { + return new QueryTraderSpotOrdersToCancelUpToAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderSpotOrdersToCancelUpToAmountRequest | PlainMessage | undefined, b: QueryTraderSpotOrdersToCancelUpToAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderSpotOrdersToCancelUpToAmountRequest, a, b); + } +} + +/** + * QueryTraderDerivativeOrdersToCancelUpToAmountRequest is the request type for + * the Query/TraderDerivativeOrdersToCancelUpToAmountRequest RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderDerivativeOrdersToCancelUpToAmountRequest + */ +export class QueryTraderDerivativeOrdersToCancelUpToAmountRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the quote amount to cancel (free up) + * + * @generated from field: string quote_amount = 3; + */ + quoteAmount = ""; + + /** + * The cancellation strategy + * + * @generated from field: injective.exchange.v2.CancellationStrategy strategy = 4; + */ + strategy = CancellationStrategy.UnspecifiedOrder; + + /** + * The reference price for the cancellation strategy, e.g. mid price or mark + * price + * + * @generated from field: string reference_price = 5; + */ + referencePrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderDerivativeOrdersToCancelUpToAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "strategy", kind: "enum", T: proto3.getEnumType(CancellationStrategy) }, + { no: 5, name: "reference_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderDerivativeOrdersToCancelUpToAmountRequest { + return new QueryTraderDerivativeOrdersToCancelUpToAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderDerivativeOrdersToCancelUpToAmountRequest { + return new QueryTraderDerivativeOrdersToCancelUpToAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderDerivativeOrdersToCancelUpToAmountRequest { + return new QueryTraderDerivativeOrdersToCancelUpToAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderDerivativeOrdersToCancelUpToAmountRequest | PlainMessage | undefined, b: QueryTraderDerivativeOrdersToCancelUpToAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderDerivativeOrdersToCancelUpToAmountRequest, a, b); + } +} + +/** + * QueryTraderDerivativeOrdersRequest is the request type for the + * Query/TraderDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderDerivativeOrdersRequest + */ +export class QueryTraderDerivativeOrdersRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderDerivativeOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderDerivativeOrdersRequest { + return new QueryTraderDerivativeOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderDerivativeOrdersRequest { + return new QueryTraderDerivativeOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderDerivativeOrdersRequest { + return new QueryTraderDerivativeOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderDerivativeOrdersRequest | PlainMessage | undefined, b: QueryTraderDerivativeOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderDerivativeOrdersRequest, a, b); + } +} + +/** + * QueryAccountAddressSpotOrdersRequest is the request type for the + * Query/AccountAddressDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryAccountAddressDerivativeOrdersRequest + */ +export class QueryAccountAddressDerivativeOrdersRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * Account address of the trader + * + * @generated from field: string account_address = 2; + */ + accountAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAccountAddressDerivativeOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressDerivativeOrdersRequest { + return new QueryAccountAddressDerivativeOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressDerivativeOrdersRequest { + return new QueryAccountAddressDerivativeOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressDerivativeOrdersRequest { + return new QueryAccountAddressDerivativeOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountAddressDerivativeOrdersRequest | PlainMessage | undefined, b: QueryAccountAddressDerivativeOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountAddressDerivativeOrdersRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TrimmedDerivativeLimitOrder + */ +export class TrimmedDerivativeLimitOrder extends Message { + /** + * price of the order (in human readable format) + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * quantity of the order (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * margin of the order (in human readable format) + * + * @generated from field: string margin = 3; + */ + margin = ""; + + /** + * the amount of the quantity remaining fillable (in human readable format) + * + * @generated from field: string fillable = 4; + */ + fillable = ""; + + /** + * true if the order is a buy + * + * @generated from field: bool isBuy = 5; + */ + isBuy = false; + + /** + * the order hash (optional) + * + * @generated from field: string order_hash = 6; + */ + orderHash = ""; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 7; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TrimmedDerivativeLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fillable", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedDerivativeLimitOrder { + return new TrimmedDerivativeLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrimmedDerivativeLimitOrder { + return new TrimmedDerivativeLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrimmedDerivativeLimitOrder { + return new TrimmedDerivativeLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: TrimmedDerivativeLimitOrder | PlainMessage | undefined, b: TrimmedDerivativeLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(TrimmedDerivativeLimitOrder, a, b); + } +} + +/** + * QueryTraderDerivativeOrdersResponse is the response type for the + * Query/TraderDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderDerivativeOrdersResponse + */ +export class QueryTraderDerivativeOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1; + */ + orders: TrimmedDerivativeLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderDerivativeOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedDerivativeLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderDerivativeOrdersResponse { + return new QueryTraderDerivativeOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderDerivativeOrdersResponse { + return new QueryTraderDerivativeOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderDerivativeOrdersResponse { + return new QueryTraderDerivativeOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderDerivativeOrdersResponse | PlainMessage | undefined, b: QueryTraderDerivativeOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderDerivativeOrdersResponse, a, b); + } +} + +/** + * QueryAccountAddressDerivativeOrdersResponse is the response type for the + * Query/AccountAddressDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryAccountAddressDerivativeOrdersResponse + */ +export class QueryAccountAddressDerivativeOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1; + */ + orders: TrimmedDerivativeLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryAccountAddressDerivativeOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedDerivativeLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressDerivativeOrdersResponse { + return new QueryAccountAddressDerivativeOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressDerivativeOrdersResponse { + return new QueryAccountAddressDerivativeOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressDerivativeOrdersResponse { + return new QueryAccountAddressDerivativeOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountAddressDerivativeOrdersResponse | PlainMessage | undefined, b: QueryAccountAddressDerivativeOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountAddressDerivativeOrdersResponse, a, b); + } +} + +/** + * QueryTraderDerivativeOrdersRequest is the request type for the + * Query/TraderDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeOrdersByHashesRequest + */ +export class QueryDerivativeOrdersByHashesRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * SubaccountID of the trader + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the order hashes + * + * @generated from field: repeated string order_hashes = 3; + */ + orderHashes: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeOrdersByHashesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeOrdersByHashesRequest { + return new QueryDerivativeOrdersByHashesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeOrdersByHashesRequest { + return new QueryDerivativeOrdersByHashesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeOrdersByHashesRequest { + return new QueryDerivativeOrdersByHashesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeOrdersByHashesRequest | PlainMessage | undefined, b: QueryDerivativeOrdersByHashesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeOrdersByHashesRequest, a, b); + } +} + +/** + * QueryDerivativeOrdersByHashesResponse is the response type for the + * Query/DerivativeOrdersByHashes RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeOrdersByHashesResponse + */ +export class QueryDerivativeOrdersByHashesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedDerivativeLimitOrder orders = 1; + */ + orders: TrimmedDerivativeLimitOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeOrdersByHashesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedDerivativeLimitOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeOrdersByHashesResponse { + return new QueryDerivativeOrdersByHashesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeOrdersByHashesResponse { + return new QueryDerivativeOrdersByHashesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeOrdersByHashesResponse { + return new QueryDerivativeOrdersByHashesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeOrdersByHashesResponse | PlainMessage | undefined, b: QueryDerivativeOrdersByHashesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeOrdersByHashesResponse, a, b); + } +} + +/** + * QueryDerivativeMarketsRequest is the request type for the + * Query/DerivativeMarkets RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketsRequest + */ +export class QueryDerivativeMarketsRequest extends Message { + /** + * Status of the market, for convenience it is set to string - not enum + * + * @generated from field: string status = 1; + */ + status = ""; + + /** + * Filter by market IDs + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + /** + * Flag to return the markets mid price and top of the book buy and sell + * orders. + * + * @generated from field: bool with_mid_price_and_tob = 3; + */ + withMidPriceAndTob = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "with_mid_price_and_tob", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketsRequest { + return new QueryDerivativeMarketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketsRequest { + return new QueryDerivativeMarketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketsRequest { + return new QueryDerivativeMarketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketsRequest | PlainMessage | undefined, b: QueryDerivativeMarketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PriceLevel + */ +export class PriceLevel extends Message { + /** + * @generated from field: string price = 1; + */ + price = ""; + + /** + * quantity + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PriceLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PriceLevel { + return new PriceLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PriceLevel { + return new PriceLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PriceLevel { + return new PriceLevel().fromJsonString(jsonString, options); + } + + static equals(a: PriceLevel | PlainMessage | undefined, b: PriceLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(PriceLevel, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.PerpetualMarketState + */ +export class PerpetualMarketState extends Message { + /** + * @generated from field: injective.exchange.v2.PerpetualMarketInfo market_info = 1; + */ + marketInfo?: PerpetualMarketInfo; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketFunding funding_info = 2; + */ + fundingInfo?: PerpetualMarketFunding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.PerpetualMarketState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_info", kind: "message", T: PerpetualMarketInfo }, + { no: 2, name: "funding_info", kind: "message", T: PerpetualMarketFunding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerpetualMarketState { + return new PerpetualMarketState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerpetualMarketState { + return new PerpetualMarketState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerpetualMarketState { + return new PerpetualMarketState().fromJsonString(jsonString, options); + } + + static equals(a: PerpetualMarketState | PlainMessage | undefined, b: PerpetualMarketState | PlainMessage | undefined): boolean { + return proto3.util.equals(PerpetualMarketState, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.FullDerivativeMarket + */ +export class FullDerivativeMarket extends Message { + /** + * derivative market details + * + * @generated from field: injective.exchange.v2.DerivativeMarket market = 1; + */ + market?: DerivativeMarket; + + /** + * perpetual market state or expiry futures market state + * + * @generated from oneof injective.exchange.v2.FullDerivativeMarket.info + */ + info: { + /** + * perpetual market info + * + * @generated from field: injective.exchange.v2.PerpetualMarketState perpetual_info = 2; + */ + value: PerpetualMarketState; + case: "perpetualInfo"; + } | { + /** + * expiry futures market info + * + * @generated from field: injective.exchange.v2.ExpiryFuturesMarketInfo futures_info = 3; + */ + value: ExpiryFuturesMarketInfo; + case: "futuresInfo"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * mark price (in human readable format) + * + * @generated from field: string mark_price = 4; + */ + markPrice = ""; + + /** + * mid_price_and_tob defines the mid price for this market and the best ask + * and bid orders + * + * @generated from field: injective.exchange.v2.MidPriceAndTOB mid_price_and_tob = 5; + */ + midPriceAndTob?: MidPriceAndTOB; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.FullDerivativeMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: DerivativeMarket }, + { no: 2, name: "perpetual_info", kind: "message", T: PerpetualMarketState, oneof: "info" }, + { no: 3, name: "futures_info", kind: "message", T: ExpiryFuturesMarketInfo, oneof: "info" }, + { no: 4, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "mid_price_and_tob", kind: "message", T: MidPriceAndTOB }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FullDerivativeMarket { + return new FullDerivativeMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FullDerivativeMarket { + return new FullDerivativeMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FullDerivativeMarket { + return new FullDerivativeMarket().fromJsonString(jsonString, options); + } + + static equals(a: FullDerivativeMarket | PlainMessage | undefined, b: FullDerivativeMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(FullDerivativeMarket, a, b); + } +} + +/** + * QueryDerivativeMarketsResponse is the response type for the + * Query/DerivativeMarkets RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketsResponse + */ +export class QueryDerivativeMarketsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.FullDerivativeMarket markets = 1; + */ + markets: FullDerivativeMarket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: FullDerivativeMarket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketsResponse { + return new QueryDerivativeMarketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketsResponse { + return new QueryDerivativeMarketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketsResponse { + return new QueryDerivativeMarketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketsResponse | PlainMessage | undefined, b: QueryDerivativeMarketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketsResponse, a, b); + } +} + +/** + * QueryDerivativeMarketRequest is the request type for the + * Query/DerivativeMarket RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketRequest + */ +export class QueryDerivativeMarketRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketRequest { + return new QueryDerivativeMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketRequest { + return new QueryDerivativeMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketRequest { + return new QueryDerivativeMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketRequest | PlainMessage | undefined, b: QueryDerivativeMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketRequest, a, b); + } +} + +/** + * QueryDerivativeMarketResponse is the response type for the + * Query/DerivativeMarket RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketResponse + */ +export class QueryDerivativeMarketResponse extends Message { + /** + * @generated from field: injective.exchange.v2.FullDerivativeMarket market = 1; + */ + market?: FullDerivativeMarket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market", kind: "message", T: FullDerivativeMarket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketResponse { + return new QueryDerivativeMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketResponse { + return new QueryDerivativeMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketResponse { + return new QueryDerivativeMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketResponse | PlainMessage | undefined, b: QueryDerivativeMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketResponse, a, b); + } +} + +/** + * QueryDerivativeMarketAddressRequest is the request type for the + * Query/DerivativeMarketAddress RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketAddressRequest + */ +export class QueryDerivativeMarketAddressRequest extends Message { + /** + * Market ID for the market + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketAddressRequest { + return new QueryDerivativeMarketAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketAddressRequest { + return new QueryDerivativeMarketAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketAddressRequest { + return new QueryDerivativeMarketAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketAddressRequest | PlainMessage | undefined, b: QueryDerivativeMarketAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketAddressRequest, a, b); + } +} + +/** + * QueryDerivativeMarketAddressResponse is the response type for the + * Query/DerivativeMarketAddress RPC method. + * + * @generated from message injective.exchange.v2.QueryDerivativeMarketAddressResponse + */ +export class QueryDerivativeMarketAddressResponse extends Message { + /** + * address for the market + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * subaccountID for the market + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDerivativeMarketAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDerivativeMarketAddressResponse { + return new QueryDerivativeMarketAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDerivativeMarketAddressResponse { + return new QueryDerivativeMarketAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDerivativeMarketAddressResponse { + return new QueryDerivativeMarketAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDerivativeMarketAddressResponse | PlainMessage | undefined, b: QueryDerivativeMarketAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDerivativeMarketAddressResponse, a, b); + } +} + +/** + * QuerySubaccountTradeNonceRequest is the request type for the + * Query/SubaccountTradeNonce RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountTradeNonceRequest + */ +export class QuerySubaccountTradeNonceRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountTradeNonceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountTradeNonceRequest { + return new QuerySubaccountTradeNonceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountTradeNonceRequest { + return new QuerySubaccountTradeNonceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountTradeNonceRequest { + return new QuerySubaccountTradeNonceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountTradeNonceRequest | PlainMessage | undefined, b: QuerySubaccountTradeNonceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountTradeNonceRequest, a, b); + } +} + +/** + * QueryPositionsInMarketRequest is the request type for the + * Query/PositionsInMarket RPC method. + * + * @generated from message injective.exchange.v2.QueryPositionsInMarketRequest + */ +export class QueryPositionsInMarketRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPositionsInMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsInMarketRequest { + return new QueryPositionsInMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsInMarketRequest { + return new QueryPositionsInMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsInMarketRequest { + return new QueryPositionsInMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsInMarketRequest | PlainMessage | undefined, b: QueryPositionsInMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsInMarketRequest, a, b); + } +} + +/** + * QueryPositionsInMarketResponse is the response type for the + * Query/PositionsInMarket RPC method. + * + * @generated from message injective.exchange.v2.QueryPositionsInMarketResponse + */ +export class QueryPositionsInMarketResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DerivativePosition state = 1; + */ + state: DerivativePosition[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPositionsInMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: DerivativePosition, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsInMarketResponse { + return new QueryPositionsInMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsInMarketResponse { + return new QueryPositionsInMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsInMarketResponse { + return new QueryPositionsInMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsInMarketResponse | PlainMessage | undefined, b: QueryPositionsInMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsInMarketResponse, a, b); + } +} + +/** + * QuerySubaccountPositionsRequest is the request type for the + * Query/SubaccountPositions RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountPositionsRequest + */ +export class QuerySubaccountPositionsRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountPositionsRequest { + return new QuerySubaccountPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountPositionsRequest { + return new QuerySubaccountPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountPositionsRequest { + return new QuerySubaccountPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountPositionsRequest | PlainMessage | undefined, b: QuerySubaccountPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountPositionsRequest, a, b); + } +} + +/** + * QuerySubaccountPositionInMarketRequest is the request type for the + * Query/SubaccountPositionInMarket RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountPositionInMarketRequest + */ +export class QuerySubaccountPositionInMarketRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountPositionInMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountPositionInMarketRequest { + return new QuerySubaccountPositionInMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountPositionInMarketRequest { + return new QuerySubaccountPositionInMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountPositionInMarketRequest { + return new QuerySubaccountPositionInMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountPositionInMarketRequest | PlainMessage | undefined, b: QuerySubaccountPositionInMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountPositionInMarketRequest, a, b); + } +} + +/** + * QuerySubaccountEffectivePositionInMarketRequest is the request type for the + * Query/SubaccountEffectivePositionInMarket RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountEffectivePositionInMarketRequest + */ +export class QuerySubaccountEffectivePositionInMarketRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountEffectivePositionInMarketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountEffectivePositionInMarketRequest { + return new QuerySubaccountEffectivePositionInMarketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountEffectivePositionInMarketRequest { + return new QuerySubaccountEffectivePositionInMarketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountEffectivePositionInMarketRequest { + return new QuerySubaccountEffectivePositionInMarketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountEffectivePositionInMarketRequest | PlainMessage | undefined, b: QuerySubaccountEffectivePositionInMarketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountEffectivePositionInMarketRequest, a, b); + } +} + +/** + * QuerySubaccountOrderMetadataRequest is the request type for the + * Query/SubaccountOrderMetadata RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountOrderMetadataRequest + */ +export class QuerySubaccountOrderMetadataRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountOrderMetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountOrderMetadataRequest { + return new QuerySubaccountOrderMetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountOrderMetadataRequest { + return new QuerySubaccountOrderMetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountOrderMetadataRequest { + return new QuerySubaccountOrderMetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountOrderMetadataRequest | PlainMessage | undefined, b: QuerySubaccountOrderMetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountOrderMetadataRequest, a, b); + } +} + +/** + * QuerySubaccountPositionsResponse is the response type for the + * Query/SubaccountPositions RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountPositionsResponse + */ +export class QuerySubaccountPositionsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DerivativePosition state = 1; + */ + state: DerivativePosition[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: DerivativePosition, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountPositionsResponse { + return new QuerySubaccountPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountPositionsResponse { + return new QuerySubaccountPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountPositionsResponse { + return new QuerySubaccountPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountPositionsResponse | PlainMessage | undefined, b: QuerySubaccountPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountPositionsResponse, a, b); + } +} + +/** + * QuerySubaccountPositionInMarketResponse is the response type for the + * Query/SubaccountPositionInMarket RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountPositionInMarketResponse + */ +export class QuerySubaccountPositionInMarketResponse extends Message { + /** + * @generated from field: injective.exchange.v2.Position state = 1; + */ + state?: Position; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountPositionInMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: Position }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountPositionInMarketResponse { + return new QuerySubaccountPositionInMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountPositionInMarketResponse { + return new QuerySubaccountPositionInMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountPositionInMarketResponse { + return new QuerySubaccountPositionInMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountPositionInMarketResponse | PlainMessage | undefined, b: QuerySubaccountPositionInMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountPositionInMarketResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.EffectivePosition + */ +export class EffectivePosition extends Message { + /** + * whether the position is long or short + * + * @generated from field: bool is_long = 1; + */ + isLong = false; + + /** + * the quantity of the position (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * the entry price of the position (in human readable format) + * + * @generated from field: string entry_price = 3; + */ + entryPrice = ""; + + /** + * the effective margin of the position (in human readable format) + * + * @generated from field: string effective_margin = 4; + */ + effectiveMargin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.EffectivePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "is_long", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "entry_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "effective_margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EffectivePosition { + return new EffectivePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EffectivePosition { + return new EffectivePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EffectivePosition { + return new EffectivePosition().fromJsonString(jsonString, options); + } + + static equals(a: EffectivePosition | PlainMessage | undefined, b: EffectivePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(EffectivePosition, a, b); + } +} + +/** + * QuerySubaccountEffectivePositionInMarketResponse is the response type for the + * Query/SubaccountEffectivePositionInMarket RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountEffectivePositionInMarketResponse + */ +export class QuerySubaccountEffectivePositionInMarketResponse extends Message { + /** + * @generated from field: injective.exchange.v2.EffectivePosition state = 1; + */ + state?: EffectivePosition; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountEffectivePositionInMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: EffectivePosition }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountEffectivePositionInMarketResponse { + return new QuerySubaccountEffectivePositionInMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountEffectivePositionInMarketResponse { + return new QuerySubaccountEffectivePositionInMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountEffectivePositionInMarketResponse { + return new QuerySubaccountEffectivePositionInMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountEffectivePositionInMarketResponse | PlainMessage | undefined, b: QuerySubaccountEffectivePositionInMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountEffectivePositionInMarketResponse, a, b); + } +} + +/** + * QueryPerpetualMarketInfoRequest is the request type for the + * Query/PerpetualMarketInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryPerpetualMarketInfoRequest + */ +export class QueryPerpetualMarketInfoRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPerpetualMarketInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualMarketInfoRequest { + return new QueryPerpetualMarketInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualMarketInfoRequest { + return new QueryPerpetualMarketInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualMarketInfoRequest { + return new QueryPerpetualMarketInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualMarketInfoRequest | PlainMessage | undefined, b: QueryPerpetualMarketInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualMarketInfoRequest, a, b); + } +} + +/** + * QueryPerpetualMarketInfoResponse is the response type for the + * Query/PerpetualMarketInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryPerpetualMarketInfoResponse + */ +export class QueryPerpetualMarketInfoResponse extends Message { + /** + * @generated from field: injective.exchange.v2.PerpetualMarketInfo info = 1; + */ + info?: PerpetualMarketInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPerpetualMarketInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "info", kind: "message", T: PerpetualMarketInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualMarketInfoResponse { + return new QueryPerpetualMarketInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualMarketInfoResponse { + return new QueryPerpetualMarketInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualMarketInfoResponse { + return new QueryPerpetualMarketInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualMarketInfoResponse | PlainMessage | undefined, b: QueryPerpetualMarketInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualMarketInfoResponse, a, b); + } +} + +/** + * QueryExpiryFuturesMarketInfoRequest is the request type for the Query/ + * ExpiryFuturesMarketInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryExpiryFuturesMarketInfoRequest + */ +export class QueryExpiryFuturesMarketInfoRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExpiryFuturesMarketInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExpiryFuturesMarketInfoRequest { + return new QueryExpiryFuturesMarketInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExpiryFuturesMarketInfoRequest { + return new QueryExpiryFuturesMarketInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExpiryFuturesMarketInfoRequest { + return new QueryExpiryFuturesMarketInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExpiryFuturesMarketInfoRequest | PlainMessage | undefined, b: QueryExpiryFuturesMarketInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExpiryFuturesMarketInfoRequest, a, b); + } +} + +/** + * QueryExpiryFuturesMarketInfoResponse is the response type for the Query/ + * ExpiryFuturesMarketInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryExpiryFuturesMarketInfoResponse + */ +export class QueryExpiryFuturesMarketInfoResponse extends Message { + /** + * @generated from field: injective.exchange.v2.ExpiryFuturesMarketInfo info = 1; + */ + info?: ExpiryFuturesMarketInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryExpiryFuturesMarketInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "info", kind: "message", T: ExpiryFuturesMarketInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExpiryFuturesMarketInfoResponse { + return new QueryExpiryFuturesMarketInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExpiryFuturesMarketInfoResponse { + return new QueryExpiryFuturesMarketInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExpiryFuturesMarketInfoResponse { + return new QueryExpiryFuturesMarketInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExpiryFuturesMarketInfoResponse | PlainMessage | undefined, b: QueryExpiryFuturesMarketInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExpiryFuturesMarketInfoResponse, a, b); + } +} + +/** + * QueryPerpetualMarketFundingRequest is the request type for the + * Query/PerpetualMarketFunding RPC method. + * + * @generated from message injective.exchange.v2.QueryPerpetualMarketFundingRequest + */ +export class QueryPerpetualMarketFundingRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPerpetualMarketFundingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualMarketFundingRequest { + return new QueryPerpetualMarketFundingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualMarketFundingRequest { + return new QueryPerpetualMarketFundingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualMarketFundingRequest { + return new QueryPerpetualMarketFundingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualMarketFundingRequest | PlainMessage | undefined, b: QueryPerpetualMarketFundingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualMarketFundingRequest, a, b); + } +} + +/** + * QueryPerpetualMarketFundingResponse is the response type for the + * Query/PerpetualMarketFunding RPC method. + * + * @generated from message injective.exchange.v2.QueryPerpetualMarketFundingResponse + */ +export class QueryPerpetualMarketFundingResponse extends Message { + /** + * @generated from field: injective.exchange.v2.PerpetualMarketFunding state = 1; + */ + state?: PerpetualMarketFunding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPerpetualMarketFundingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: PerpetualMarketFunding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPerpetualMarketFundingResponse { + return new QueryPerpetualMarketFundingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPerpetualMarketFundingResponse { + return new QueryPerpetualMarketFundingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPerpetualMarketFundingResponse { + return new QueryPerpetualMarketFundingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPerpetualMarketFundingResponse | PlainMessage | undefined, b: QueryPerpetualMarketFundingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPerpetualMarketFundingResponse, a, b); + } +} + +/** + * QuerySubaccountOrderMetadataResponse is the response type for the + * Query/SubaccountOrderMetadata RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountOrderMetadataResponse + */ +export class QuerySubaccountOrderMetadataResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.SubaccountOrderbookMetadataWithMarket metadata = 1; + */ + metadata: SubaccountOrderbookMetadataWithMarket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountOrderMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: SubaccountOrderbookMetadataWithMarket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountOrderMetadataResponse { + return new QuerySubaccountOrderMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountOrderMetadataResponse { + return new QuerySubaccountOrderMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountOrderMetadataResponse { + return new QuerySubaccountOrderMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountOrderMetadataResponse | PlainMessage | undefined, b: QuerySubaccountOrderMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountOrderMetadataResponse, a, b); + } +} + +/** + * QuerySubaccountTradeNonceResponse is the response type for the + * Query/SubaccountTradeNonce RPC method. + * + * @generated from message injective.exchange.v2.QuerySubaccountTradeNonceResponse + */ +export class QuerySubaccountTradeNonceResponse extends Message { + /** + * @generated from field: uint32 nonce = 1; + */ + nonce = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QuerySubaccountTradeNonceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nonce", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubaccountTradeNonceResponse { + return new QuerySubaccountTradeNonceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubaccountTradeNonceResponse { + return new QuerySubaccountTradeNonceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubaccountTradeNonceResponse { + return new QuerySubaccountTradeNonceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubaccountTradeNonceResponse | PlainMessage | undefined, b: QuerySubaccountTradeNonceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubaccountTradeNonceResponse, a, b); + } +} + +/** + * QueryModuleStateRequest is the request type for the Query/ExchangeModuleState + * RPC method. + * + * @generated from message injective.exchange.v2.QueryModuleStateRequest + */ +export class QueryModuleStateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryModuleStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryModuleStateRequest | PlainMessage | undefined, b: QueryModuleStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryModuleStateRequest, a, b); + } +} + +/** + * QueryModuleStateResponse is the response type for the + * Query/ExchangeModuleState RPC method. + * + * @generated from message injective.exchange.v2.QueryModuleStateResponse + */ +export class QueryModuleStateResponse extends Message { + /** + * @generated from field: injective.exchange.v2.GenesisState state = 1; + */ + state?: GenesisState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryModuleStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: GenesisState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryModuleStateResponse | PlainMessage | undefined, b: QueryModuleStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryModuleStateResponse, a, b); + } +} + +/** + * QueryPositionsRequest is the request type for the Query/Positions RPC method. + * + * @generated from message injective.exchange.v2.QueryPositionsRequest + */ +export class QueryPositionsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsRequest | PlainMessage | undefined, b: QueryPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsRequest, a, b); + } +} + +/** + * QueryPositionsResponse is the response type for the Query/Positions RPC + * method. + * + * @generated from message injective.exchange.v2.QueryPositionsResponse + */ +export class QueryPositionsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DerivativePosition state = 1; + */ + state: DerivativePosition[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "message", T: DerivativePosition, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsResponse | PlainMessage | undefined, b: QueryPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsResponse, a, b); + } +} + +/** + * QueryTradeRewardPointsRequest is the request type for the + * Query/TradeRewardPoints RPC method. + * + * @generated from message injective.exchange.v2.QueryTradeRewardPointsRequest + */ +export class QueryTradeRewardPointsRequest extends Message { + /** + * @generated from field: repeated string accounts = 1; + */ + accounts: string[] = []; + + /** + * @generated from field: int64 pending_pool_timestamp = 2; + */ + pendingPoolTimestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTradeRewardPointsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pending_pool_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTradeRewardPointsRequest { + return new QueryTradeRewardPointsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTradeRewardPointsRequest { + return new QueryTradeRewardPointsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTradeRewardPointsRequest { + return new QueryTradeRewardPointsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTradeRewardPointsRequest | PlainMessage | undefined, b: QueryTradeRewardPointsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTradeRewardPointsRequest, a, b); + } +} + +/** + * QueryTradeRewardPointsResponse is the response type for the + * Query/TradeRewardPoints RPC method. + * + * @generated from message injective.exchange.v2.QueryTradeRewardPointsResponse + */ +export class QueryTradeRewardPointsResponse extends Message { + /** + * @generated from field: repeated string account_trade_reward_points = 1; + */ + accountTradeRewardPoints: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTradeRewardPointsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_trade_reward_points", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTradeRewardPointsResponse { + return new QueryTradeRewardPointsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTradeRewardPointsResponse { + return new QueryTradeRewardPointsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTradeRewardPointsResponse { + return new QueryTradeRewardPointsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTradeRewardPointsResponse | PlainMessage | undefined, b: QueryTradeRewardPointsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTradeRewardPointsResponse, a, b); + } +} + +/** + * QueryTradeRewardCampaignRequest is the request type for the + * Query/TradeRewardCampaign RPC method. + * + * @generated from message injective.exchange.v2.QueryTradeRewardCampaignRequest + */ +export class QueryTradeRewardCampaignRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTradeRewardCampaignRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTradeRewardCampaignRequest { + return new QueryTradeRewardCampaignRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTradeRewardCampaignRequest { + return new QueryTradeRewardCampaignRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTradeRewardCampaignRequest { + return new QueryTradeRewardCampaignRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTradeRewardCampaignRequest | PlainMessage | undefined, b: QueryTradeRewardCampaignRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTradeRewardCampaignRequest, a, b); + } +} + +/** + * QueryTradeRewardCampaignResponse is the response type for the + * Query/TradeRewardCampaign RPC method. + * + * @generated from message injective.exchange.v2.QueryTradeRewardCampaignResponse + */ +export class QueryTradeRewardCampaignResponse extends Message { + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignInfo trading_reward_campaign_info = 1; + */ + tradingRewardCampaignInfo?: TradingRewardCampaignInfo; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool trading_reward_pool_campaign_schedule = 2; + */ + tradingRewardPoolCampaignSchedule: CampaignRewardPool[] = []; + + /** + * @generated from field: string total_trade_reward_points = 3; + */ + totalTradeRewardPoints = ""; + + /** + * @generated from field: repeated injective.exchange.v2.CampaignRewardPool pending_trading_reward_pool_campaign_schedule = 4; + */ + pendingTradingRewardPoolCampaignSchedule: CampaignRewardPool[] = []; + + /** + * @generated from field: repeated string pending_total_trade_reward_points = 5; + */ + pendingTotalTradeRewardPoints: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTradeRewardCampaignResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trading_reward_campaign_info", kind: "message", T: TradingRewardCampaignInfo }, + { no: 2, name: "trading_reward_pool_campaign_schedule", kind: "message", T: CampaignRewardPool, repeated: true }, + { no: 3, name: "total_trade_reward_points", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pending_trading_reward_pool_campaign_schedule", kind: "message", T: CampaignRewardPool, repeated: true }, + { no: 5, name: "pending_total_trade_reward_points", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTradeRewardCampaignResponse { + return new QueryTradeRewardCampaignResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTradeRewardCampaignResponse { + return new QueryTradeRewardCampaignResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTradeRewardCampaignResponse { + return new QueryTradeRewardCampaignResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTradeRewardCampaignResponse | PlainMessage | undefined, b: QueryTradeRewardCampaignResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTradeRewardCampaignResponse, a, b); + } +} + +/** + * QueryIsRegisteredDMMRequest is the request type for the Query/IsRegisteredDMM + * RPC method. + * + * @generated from message injective.exchange.v2.QueryIsOptedOutOfRewardsRequest + */ +export class QueryIsOptedOutOfRewardsRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryIsOptedOutOfRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIsOptedOutOfRewardsRequest { + return new QueryIsOptedOutOfRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIsOptedOutOfRewardsRequest { + return new QueryIsOptedOutOfRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIsOptedOutOfRewardsRequest { + return new QueryIsOptedOutOfRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIsOptedOutOfRewardsRequest | PlainMessage | undefined, b: QueryIsOptedOutOfRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIsOptedOutOfRewardsRequest, a, b); + } +} + +/** + * QueryIsRegisteredDMMResponse is the response type for the + * Query/IsRegisteredDMM RPC method. + * + * @generated from message injective.exchange.v2.QueryIsOptedOutOfRewardsResponse + */ +export class QueryIsOptedOutOfRewardsResponse extends Message { + /** + * @generated from field: bool is_opted_out = 1; + */ + isOptedOut = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryIsOptedOutOfRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "is_opted_out", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIsOptedOutOfRewardsResponse { + return new QueryIsOptedOutOfRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIsOptedOutOfRewardsResponse { + return new QueryIsOptedOutOfRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIsOptedOutOfRewardsResponse { + return new QueryIsOptedOutOfRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIsOptedOutOfRewardsResponse | PlainMessage | undefined, b: QueryIsOptedOutOfRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIsOptedOutOfRewardsResponse, a, b); + } +} + +/** + * QueryRegisteredDMMsRequest is the request type for the Query/RegisteredDMMs + * RPC method. + * + * @generated from message injective.exchange.v2.QueryOptedOutOfRewardsAccountsRequest + */ +export class QueryOptedOutOfRewardsAccountsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryOptedOutOfRewardsAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOptedOutOfRewardsAccountsRequest { + return new QueryOptedOutOfRewardsAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOptedOutOfRewardsAccountsRequest { + return new QueryOptedOutOfRewardsAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOptedOutOfRewardsAccountsRequest { + return new QueryOptedOutOfRewardsAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOptedOutOfRewardsAccountsRequest | PlainMessage | undefined, b: QueryOptedOutOfRewardsAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOptedOutOfRewardsAccountsRequest, a, b); + } +} + +/** + * QueryRegisteredDMMsResponse is the response type for the Query/RegisteredDMMs + * RPC method. + * + * @generated from message injective.exchange.v2.QueryOptedOutOfRewardsAccountsResponse + */ +export class QueryOptedOutOfRewardsAccountsResponse extends Message { + /** + * @generated from field: repeated string accounts = 1; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryOptedOutOfRewardsAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOptedOutOfRewardsAccountsResponse { + return new QueryOptedOutOfRewardsAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOptedOutOfRewardsAccountsResponse { + return new QueryOptedOutOfRewardsAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOptedOutOfRewardsAccountsResponse { + return new QueryOptedOutOfRewardsAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOptedOutOfRewardsAccountsResponse | PlainMessage | undefined, b: QueryOptedOutOfRewardsAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOptedOutOfRewardsAccountsResponse, a, b); + } +} + +/** + * QueryFeeDiscountAccountInfoRequest is the request type for the + * Query/FeeDiscountAccountInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountAccountInfoRequest + */ +export class QueryFeeDiscountAccountInfoRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountAccountInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountAccountInfoRequest { + return new QueryFeeDiscountAccountInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountAccountInfoRequest { + return new QueryFeeDiscountAccountInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountAccountInfoRequest { + return new QueryFeeDiscountAccountInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountAccountInfoRequest | PlainMessage | undefined, b: QueryFeeDiscountAccountInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountAccountInfoRequest, a, b); + } +} + +/** + * QueryFeeDiscountAccountInfoResponse is the response type for the + * Query/FeeDiscountAccountInfo RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountAccountInfoResponse + */ +export class QueryFeeDiscountAccountInfoResponse extends Message { + /** + * @generated from field: uint64 tier_level = 1; + */ + tierLevel = protoInt64.zero; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountTierInfo account_info = 2; + */ + accountInfo?: FeeDiscountTierInfo; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountTierTTL account_ttl = 3; + */ + accountTtl?: FeeDiscountTierTTL; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountAccountInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tier_level", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "account_info", kind: "message", T: FeeDiscountTierInfo }, + { no: 3, name: "account_ttl", kind: "message", T: FeeDiscountTierTTL }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountAccountInfoResponse { + return new QueryFeeDiscountAccountInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountAccountInfoResponse { + return new QueryFeeDiscountAccountInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountAccountInfoResponse { + return new QueryFeeDiscountAccountInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountAccountInfoResponse | PlainMessage | undefined, b: QueryFeeDiscountAccountInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountAccountInfoResponse, a, b); + } +} + +/** + * QueryFeeDiscountScheduleRequest is the request type for the + * Query/FeeDiscountSchedule RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountScheduleRequest + */ +export class QueryFeeDiscountScheduleRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountScheduleRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountScheduleRequest { + return new QueryFeeDiscountScheduleRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountScheduleRequest { + return new QueryFeeDiscountScheduleRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountScheduleRequest { + return new QueryFeeDiscountScheduleRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountScheduleRequest | PlainMessage | undefined, b: QueryFeeDiscountScheduleRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountScheduleRequest, a, b); + } +} + +/** + * QueryFeeDiscountScheduleResponse is the response type for the + * Query/FeeDiscountSchedule RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountScheduleResponse + */ +export class QueryFeeDiscountScheduleResponse extends Message { + /** + * @generated from field: injective.exchange.v2.FeeDiscountSchedule fee_discount_schedule = 1; + */ + feeDiscountSchedule?: FeeDiscountSchedule; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_discount_schedule", kind: "message", T: FeeDiscountSchedule }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountScheduleResponse { + return new QueryFeeDiscountScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountScheduleResponse { + return new QueryFeeDiscountScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountScheduleResponse { + return new QueryFeeDiscountScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountScheduleResponse | PlainMessage | undefined, b: QueryFeeDiscountScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountScheduleResponse, a, b); + } +} + +/** + * QueryBalanceMismatchesRequest is the request type for the + * Query/QueryBalanceMismatches RPC method. + * + * @generated from message injective.exchange.v2.QueryBalanceMismatchesRequest + */ +export class QueryBalanceMismatchesRequest extends Message { + /** + * @generated from field: int64 dust_factor = 1; + */ + dustFactor = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBalanceMismatchesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dust_factor", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceMismatchesRequest { + return new QueryBalanceMismatchesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceMismatchesRequest { + return new QueryBalanceMismatchesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceMismatchesRequest { + return new QueryBalanceMismatchesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceMismatchesRequest | PlainMessage | undefined, b: QueryBalanceMismatchesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceMismatchesRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BalanceMismatch + */ +export class BalanceMismatch extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccountId = 1; + */ + subaccountId = ""; + + /** + * the denom of the balance + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * the available balance + * + * @generated from field: string available = 3; + */ + available = ""; + + /** + * the total balance + * + * @generated from field: string total = 4; + */ + total = ""; + + /** + * the balance hold + * + * @generated from field: string balance_hold = 5; + */ + balanceHold = ""; + + /** + * the expected total balance + * + * @generated from field: string expected_total = 6; + */ + expectedTotal = ""; + + /** + * the difference between the total balance and the expected total balance + * + * @generated from field: string difference = 7; + */ + difference = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BalanceMismatch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccountId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "available", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "balance_hold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "expected_total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "difference", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BalanceMismatch { + return new BalanceMismatch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BalanceMismatch { + return new BalanceMismatch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BalanceMismatch { + return new BalanceMismatch().fromJsonString(jsonString, options); + } + + static equals(a: BalanceMismatch | PlainMessage | undefined, b: BalanceMismatch | PlainMessage | undefined): boolean { + return proto3.util.equals(BalanceMismatch, a, b); + } +} + +/** + * QueryBalanceMismatchesResponse is the response type for the + * Query/QueryBalanceMismatches RPC method. + * + * @generated from message injective.exchange.v2.QueryBalanceMismatchesResponse + */ +export class QueryBalanceMismatchesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.BalanceMismatch balance_mismatches = 1; + */ + balanceMismatches: BalanceMismatch[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBalanceMismatchesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance_mismatches", kind: "message", T: BalanceMismatch, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceMismatchesResponse { + return new QueryBalanceMismatchesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceMismatchesResponse { + return new QueryBalanceMismatchesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceMismatchesResponse { + return new QueryBalanceMismatchesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceMismatchesResponse | PlainMessage | undefined, b: QueryBalanceMismatchesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceMismatchesResponse, a, b); + } +} + +/** + * QueryBalanceWithBalanceHoldsRequest is the request type for the + * Query/QueryBalanceWithBalanceHolds RPC method. + * + * @generated from message injective.exchange.v2.QueryBalanceWithBalanceHoldsRequest + */ +export class QueryBalanceWithBalanceHoldsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBalanceWithBalanceHoldsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceWithBalanceHoldsRequest { + return new QueryBalanceWithBalanceHoldsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceWithBalanceHoldsRequest { + return new QueryBalanceWithBalanceHoldsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceWithBalanceHoldsRequest { + return new QueryBalanceWithBalanceHoldsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceWithBalanceHoldsRequest | PlainMessage | undefined, b: QueryBalanceWithBalanceHoldsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceWithBalanceHoldsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.BalanceWithMarginHold + */ +export class BalanceWithMarginHold extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccountId = 1; + */ + subaccountId = ""; + + /** + * the denom of the balance + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * the available balance + * + * @generated from field: string available = 3; + */ + available = ""; + + /** + * the total balance + * + * @generated from field: string total = 4; + */ + total = ""; + + /** + * the balance on hold + * + * @generated from field: string balance_hold = 5; + */ + balanceHold = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.BalanceWithMarginHold"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccountId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "available", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "balance_hold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BalanceWithMarginHold { + return new BalanceWithMarginHold().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BalanceWithMarginHold { + return new BalanceWithMarginHold().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BalanceWithMarginHold { + return new BalanceWithMarginHold().fromJsonString(jsonString, options); + } + + static equals(a: BalanceWithMarginHold | PlainMessage | undefined, b: BalanceWithMarginHold | PlainMessage | undefined): boolean { + return proto3.util.equals(BalanceWithMarginHold, a, b); + } +} + +/** + * QueryBalanceWithBalanceHoldsResponse is the response type for the + * Query/QueryBalanceWithBalanceHolds RPC method. + * + * @generated from message injective.exchange.v2.QueryBalanceWithBalanceHoldsResponse + */ +export class QueryBalanceWithBalanceHoldsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.BalanceWithMarginHold balance_with_balance_holds = 1; + */ + balanceWithBalanceHolds: BalanceWithMarginHold[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBalanceWithBalanceHoldsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance_with_balance_holds", kind: "message", T: BalanceWithMarginHold, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceWithBalanceHoldsResponse { + return new QueryBalanceWithBalanceHoldsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceWithBalanceHoldsResponse { + return new QueryBalanceWithBalanceHoldsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceWithBalanceHoldsResponse { + return new QueryBalanceWithBalanceHoldsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceWithBalanceHoldsResponse | PlainMessage | undefined, b: QueryBalanceWithBalanceHoldsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceWithBalanceHoldsResponse, a, b); + } +} + +/** + * QueryFeeDiscountTierStatisticsRequest is the request type for the + * Query/QueryFeeDiscountTierStatistics RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountTierStatisticsRequest + */ +export class QueryFeeDiscountTierStatisticsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountTierStatisticsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountTierStatisticsRequest { + return new QueryFeeDiscountTierStatisticsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountTierStatisticsRequest { + return new QueryFeeDiscountTierStatisticsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountTierStatisticsRequest { + return new QueryFeeDiscountTierStatisticsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountTierStatisticsRequest | PlainMessage | undefined, b: QueryFeeDiscountTierStatisticsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountTierStatisticsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TierStatistic + */ +export class TierStatistic extends Message { + /** + * @generated from field: uint64 tier = 1; + */ + tier = protoInt64.zero; + + /** + * @generated from field: uint64 count = 2; + */ + count = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TierStatistic"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tier", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TierStatistic { + return new TierStatistic().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TierStatistic { + return new TierStatistic().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TierStatistic { + return new TierStatistic().fromJsonString(jsonString, options); + } + + static equals(a: TierStatistic | PlainMessage | undefined, b: TierStatistic | PlainMessage | undefined): boolean { + return proto3.util.equals(TierStatistic, a, b); + } +} + +/** + * QueryFeeDiscountTierStatisticsResponse is the response type for the + * Query/QueryFeeDiscountTierStatistics RPC method. + * + * @generated from message injective.exchange.v2.QueryFeeDiscountTierStatisticsResponse + */ +export class QueryFeeDiscountTierStatisticsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TierStatistic statistics = 1; + */ + statistics: TierStatistic[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFeeDiscountTierStatisticsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "statistics", kind: "message", T: TierStatistic, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeDiscountTierStatisticsResponse { + return new QueryFeeDiscountTierStatisticsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeDiscountTierStatisticsResponse { + return new QueryFeeDiscountTierStatisticsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeDiscountTierStatisticsResponse { + return new QueryFeeDiscountTierStatisticsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeDiscountTierStatisticsResponse | PlainMessage | undefined, b: QueryFeeDiscountTierStatisticsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeDiscountTierStatisticsResponse, a, b); + } +} + +/** + * MitoVaultInfosRequest is the request type for the Query/MitoVaultInfos RPC + * method. + * + * @generated from message injective.exchange.v2.MitoVaultInfosRequest + */ +export class MitoVaultInfosRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MitoVaultInfosRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MitoVaultInfosRequest { + return new MitoVaultInfosRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MitoVaultInfosRequest { + return new MitoVaultInfosRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MitoVaultInfosRequest { + return new MitoVaultInfosRequest().fromJsonString(jsonString, options); + } + + static equals(a: MitoVaultInfosRequest | PlainMessage | undefined, b: MitoVaultInfosRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(MitoVaultInfosRequest, a, b); + } +} + +/** + * MitoVaultInfosResponse is the response type for the Query/MitoVaultInfos RPC + * method. + * + * @generated from message injective.exchange.v2.MitoVaultInfosResponse + */ +export class MitoVaultInfosResponse extends Message { + /** + * list of master addresses + * + * @generated from field: repeated string master_addresses = 1; + */ + masterAddresses: string[] = []; + + /** + * list of derivative addresses + * + * @generated from field: repeated string derivative_addresses = 2; + */ + derivativeAddresses: string[] = []; + + /** + * list of spot addresses + * + * @generated from field: repeated string spot_addresses = 3; + */ + spotAddresses: string[] = []; + + /** + * list of cw20 addresses + * + * @generated from field: repeated string cw20_addresses = 4; + */ + cw20Addresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MitoVaultInfosResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "master_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "derivative_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "spot_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "cw20_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MitoVaultInfosResponse { + return new MitoVaultInfosResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MitoVaultInfosResponse { + return new MitoVaultInfosResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MitoVaultInfosResponse { + return new MitoVaultInfosResponse().fromJsonString(jsonString, options); + } + + static equals(a: MitoVaultInfosResponse | PlainMessage | undefined, b: MitoVaultInfosResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MitoVaultInfosResponse, a, b); + } +} + +/** + * QueryMarketIDFromVaultRequest is the request type for the + * Query/QueryMarketIDFromVault RPC method. + * + * @generated from message injective.exchange.v2.QueryMarketIDFromVaultRequest + */ +export class QueryMarketIDFromVaultRequest extends Message { + /** + * @generated from field: string vault_address = 1; + */ + vaultAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketIDFromVaultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketIDFromVaultRequest { + return new QueryMarketIDFromVaultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketIDFromVaultRequest { + return new QueryMarketIDFromVaultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketIDFromVaultRequest { + return new QueryMarketIDFromVaultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketIDFromVaultRequest | PlainMessage | undefined, b: QueryMarketIDFromVaultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketIDFromVaultRequest, a, b); + } +} + +/** + * QueryMarketIDFromVaultResponse is the response type for the + * Query/QueryMarketIDFromVault RPC method. + * + * @generated from message injective.exchange.v2.QueryMarketIDFromVaultResponse + */ +export class QueryMarketIDFromVaultResponse extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketIDFromVaultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketIDFromVaultResponse { + return new QueryMarketIDFromVaultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketIDFromVaultResponse { + return new QueryMarketIDFromVaultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketIDFromVaultResponse { + return new QueryMarketIDFromVaultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketIDFromVaultResponse | PlainMessage | undefined, b: QueryMarketIDFromVaultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketIDFromVaultResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryHistoricalTradeRecordsRequest + */ +export class QueryHistoricalTradeRecordsRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryHistoricalTradeRecordsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalTradeRecordsRequest { + return new QueryHistoricalTradeRecordsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalTradeRecordsRequest { + return new QueryHistoricalTradeRecordsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalTradeRecordsRequest { + return new QueryHistoricalTradeRecordsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryHistoricalTradeRecordsRequest | PlainMessage | undefined, b: QueryHistoricalTradeRecordsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryHistoricalTradeRecordsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryHistoricalTradeRecordsResponse + */ +export class QueryHistoricalTradeRecordsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TradeRecords trade_records = 1; + */ + tradeRecords: TradeRecords[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryHistoricalTradeRecordsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trade_records", kind: "message", T: TradeRecords, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalTradeRecordsResponse { + return new QueryHistoricalTradeRecordsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalTradeRecordsResponse { + return new QueryHistoricalTradeRecordsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalTradeRecordsResponse { + return new QueryHistoricalTradeRecordsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryHistoricalTradeRecordsResponse | PlainMessage | undefined, b: QueryHistoricalTradeRecordsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryHistoricalTradeRecordsResponse, a, b); + } +} + +/** + * TradeHistoryOptions are the optional params for Query/MarketVolatility RPC + * method. + * + * @generated from message injective.exchange.v2.TradeHistoryOptions + */ +export class TradeHistoryOptions extends Message { + /** + * TradeGroupingSec of 0 means use the chain's default grouping + * + * @generated from field: uint64 trade_grouping_sec = 1; + */ + tradeGroupingSec = protoInt64.zero; + + /** + * MaxAge restricts the trade records oldest age in seconds from the current + * block time to consider. A value of 0 means use all the records present on + * the chain. + * + * @generated from field: uint64 max_age = 2; + */ + maxAge = protoInt64.zero; + + /** + * If IncludeRawHistory is true, the raw underlying data used for the + * computation is included in the response + * + * @generated from field: bool include_raw_history = 4; + */ + includeRawHistory = false; + + /** + * If IncludeMetadata is true, metadata on the computation is included in the + * response + * + * @generated from field: bool include_metadata = 5; + */ + includeMetadata = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TradeHistoryOptions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trade_grouping_sec", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "max_age", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "include_raw_history", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "include_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradeHistoryOptions { + return new TradeHistoryOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradeHistoryOptions { + return new TradeHistoryOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradeHistoryOptions { + return new TradeHistoryOptions().fromJsonString(jsonString, options); + } + + static equals(a: TradeHistoryOptions | PlainMessage | undefined, b: TradeHistoryOptions | PlainMessage | undefined): boolean { + return proto3.util.equals(TradeHistoryOptions, a, b); + } +} + +/** + * QueryMarketVolatilityRequest are the request params for the + * Query/MarketVolatility RPC method. + * + * @generated from message injective.exchange.v2.QueryMarketVolatilityRequest + */ +export class QueryMarketVolatilityRequest extends Message { + /** + * the market ID to query volatility for + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the trade history options + * + * @generated from field: injective.exchange.v2.TradeHistoryOptions trade_history_options = 2; + */ + tradeHistoryOptions?: TradeHistoryOptions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketVolatilityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "trade_history_options", kind: "message", T: TradeHistoryOptions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketVolatilityRequest { + return new QueryMarketVolatilityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketVolatilityRequest { + return new QueryMarketVolatilityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketVolatilityRequest { + return new QueryMarketVolatilityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketVolatilityRequest | PlainMessage | undefined, b: QueryMarketVolatilityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketVolatilityRequest, a, b); + } +} + +/** + * QueryMarketVolatilityResponse is the response type for the + * Query/MarketVolatility RPC method. + * + * @generated from message injective.exchange.v2.QueryMarketVolatilityResponse + */ +export class QueryMarketVolatilityResponse extends Message { + /** + * @generated from field: string volatility = 1; + */ + volatility = ""; + + /** + * @generated from field: injective.oracle.v1beta1.MetadataStatistics history_metadata = 2; + */ + historyMetadata?: MetadataStatistics; + + /** + * @generated from field: repeated injective.exchange.v2.TradeRecord raw_history = 3; + */ + rawHistory: TradeRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketVolatilityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "volatility", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "history_metadata", kind: "message", T: MetadataStatistics }, + { no: 3, name: "raw_history", kind: "message", T: TradeRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketVolatilityResponse { + return new QueryMarketVolatilityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketVolatilityResponse { + return new QueryMarketVolatilityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketVolatilityResponse { + return new QueryMarketVolatilityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketVolatilityResponse | PlainMessage | undefined, b: QueryMarketVolatilityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketVolatilityResponse, a, b); + } +} + +/** + * QuerBinaryMarketsRequest is the request type for the Query/BinaryMarkets RPC + * method. + * + * @generated from message injective.exchange.v2.QueryBinaryMarketsRequest + */ +export class QueryBinaryMarketsRequest extends Message { + /** + * Status of the market, for convenience it is set to string - not enum + * + * @generated from field: string status = 1; + */ + status = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBinaryMarketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBinaryMarketsRequest { + return new QueryBinaryMarketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBinaryMarketsRequest { + return new QueryBinaryMarketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBinaryMarketsRequest { + return new QueryBinaryMarketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBinaryMarketsRequest | PlainMessage | undefined, b: QueryBinaryMarketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBinaryMarketsRequest, a, b); + } +} + +/** + * QueryBinaryMarketsResponse is the response type for the Query/BinaryMarkets + * RPC method. + * + * @generated from message injective.exchange.v2.QueryBinaryMarketsResponse + */ +export class QueryBinaryMarketsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.BinaryOptionsMarket markets = 1; + */ + markets: BinaryOptionsMarket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryBinaryMarketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: BinaryOptionsMarket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBinaryMarketsResponse { + return new QueryBinaryMarketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBinaryMarketsResponse { + return new QueryBinaryMarketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBinaryMarketsResponse { + return new QueryBinaryMarketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBinaryMarketsResponse | PlainMessage | undefined, b: QueryBinaryMarketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBinaryMarketsResponse, a, b); + } +} + +/** + * QueryConditionalOrdersRequest is the request type for the + * Query/ConditionalOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderDerivativeConditionalOrdersRequest + */ +export class QueryTraderDerivativeConditionalOrdersRequest extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderDerivativeConditionalOrdersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderDerivativeConditionalOrdersRequest { + return new QueryTraderDerivativeConditionalOrdersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderDerivativeConditionalOrdersRequest { + return new QueryTraderDerivativeConditionalOrdersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderDerivativeConditionalOrdersRequest { + return new QueryTraderDerivativeConditionalOrdersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderDerivativeConditionalOrdersRequest | PlainMessage | undefined, b: QueryTraderDerivativeConditionalOrdersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderDerivativeConditionalOrdersRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TrimmedDerivativeConditionalOrder + */ +export class TrimmedDerivativeConditionalOrder extends Message { + /** + * price of the order (in human readable format) + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * quantity of the order (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * margin of the order (in human readable format) + * + * @generated from field: string margin = 3; + */ + margin = ""; + + /** + * price to trigger the order (in human readable format) + * + * @generated from field: string triggerPrice = 4; + */ + triggerPrice = ""; + + /** + * true if the order is a buy + * + * @generated from field: bool isBuy = 5; + */ + isBuy = false; + + /** + * true if the order is a limit order + * + * @generated from field: bool isLimit = 6; + */ + isLimit = false; + + /** + * the order hash + * + * @generated from field: string order_hash = 7; + */ + orderHash = ""; + + /** + * the client ID + * + * @generated from field: string cid = 8; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TrimmedDerivativeConditionalOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "triggerPrice", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "isBuy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "isLimit", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedDerivativeConditionalOrder { + return new TrimmedDerivativeConditionalOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrimmedDerivativeConditionalOrder { + return new TrimmedDerivativeConditionalOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrimmedDerivativeConditionalOrder { + return new TrimmedDerivativeConditionalOrder().fromJsonString(jsonString, options); + } + + static equals(a: TrimmedDerivativeConditionalOrder | PlainMessage | undefined, b: TrimmedDerivativeConditionalOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(TrimmedDerivativeConditionalOrder, a, b); + } +} + +/** + * QueryTraderDerivativeOrdersResponse is the response type for the + * Query/TraderDerivativeOrders RPC method. + * + * @generated from message injective.exchange.v2.QueryTraderDerivativeConditionalOrdersResponse + */ +export class QueryTraderDerivativeConditionalOrdersResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedDerivativeConditionalOrder orders = 1; + */ + orders: TrimmedDerivativeConditionalOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryTraderDerivativeConditionalOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "orders", kind: "message", T: TrimmedDerivativeConditionalOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraderDerivativeConditionalOrdersResponse { + return new QueryTraderDerivativeConditionalOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraderDerivativeConditionalOrdersResponse { + return new QueryTraderDerivativeConditionalOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTraderDerivativeConditionalOrdersResponse { + return new QueryTraderDerivativeConditionalOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTraderDerivativeConditionalOrdersResponse | PlainMessage | undefined, b: QueryTraderDerivativeConditionalOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTraderDerivativeConditionalOrdersResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryFullSpotOrderbookRequest + */ +export class QueryFullSpotOrderbookRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotOrderbookRequest { + return new QueryFullSpotOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotOrderbookRequest | PlainMessage | undefined, b: QueryFullSpotOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotOrderbookRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryFullSpotOrderbookResponse + */ +export class QueryFullSpotOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedLimitOrder Bids = 1; + */ + Bids: TrimmedLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.TrimmedLimitOrder Asks = 2; + */ + Asks: TrimmedLimitOrder[] = []; + + /** + * the current orderbook sequence number + * + * @generated from field: uint64 seq = 3; + */ + seq = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullSpotOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Bids", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 2, name: "Asks", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 3, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullSpotOrderbookResponse { + return new QueryFullSpotOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullSpotOrderbookResponse | PlainMessage | undefined, b: QueryFullSpotOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullSpotOrderbookResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryFullDerivativeOrderbookRequest + */ +export class QueryFullDerivativeOrderbookRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullDerivativeOrderbookRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDerivativeOrderbookRequest { + return new QueryFullDerivativeOrderbookRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDerivativeOrderbookRequest | PlainMessage | undefined, b: QueryFullDerivativeOrderbookRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDerivativeOrderbookRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryFullDerivativeOrderbookResponse + */ +export class QueryFullDerivativeOrderbookResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.TrimmedLimitOrder Bids = 1; + */ + Bids: TrimmedLimitOrder[] = []; + + /** + * @generated from field: repeated injective.exchange.v2.TrimmedLimitOrder Asks = 2; + */ + Asks: TrimmedLimitOrder[] = []; + + /** + * the current orderbook sequence number + * + * @generated from field: uint64 seq = 3; + */ + seq = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryFullDerivativeOrderbookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Bids", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 2, name: "Asks", kind: "message", T: TrimmedLimitOrder, repeated: true }, + { no: 3, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDerivativeOrderbookResponse { + return new QueryFullDerivativeOrderbookResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDerivativeOrderbookResponse | PlainMessage | undefined, b: QueryFullDerivativeOrderbookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDerivativeOrderbookResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.TrimmedLimitOrder + */ +export class TrimmedLimitOrder extends Message { + /** + * price of the order (in human readable format) + * + * @generated from field: string price = 1; + */ + price = ""; + + /** + * quantity of the order (in human readable format) + * + * @generated from field: string quantity = 2; + */ + quantity = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 3; + */ + orderHash = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 4; + */ + subaccountId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.TrimmedLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrimmedLimitOrder { + return new TrimmedLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: TrimmedLimitOrder | PlainMessage | undefined, b: TrimmedLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(TrimmedLimitOrder, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketAtomicExecutionFeeMultiplierRequest + */ +export class QueryMarketAtomicExecutionFeeMultiplierRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketAtomicExecutionFeeMultiplierRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierRequest { + return new QueryMarketAtomicExecutionFeeMultiplierRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierRequest { + return new QueryMarketAtomicExecutionFeeMultiplierRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierRequest { + return new QueryMarketAtomicExecutionFeeMultiplierRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketAtomicExecutionFeeMultiplierRequest | PlainMessage | undefined, b: QueryMarketAtomicExecutionFeeMultiplierRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketAtomicExecutionFeeMultiplierRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketAtomicExecutionFeeMultiplierResponse + */ +export class QueryMarketAtomicExecutionFeeMultiplierResponse extends Message { + /** + * @generated from field: string multiplier = 1; + */ + multiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketAtomicExecutionFeeMultiplierResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierResponse { + return new QueryMarketAtomicExecutionFeeMultiplierResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierResponse { + return new QueryMarketAtomicExecutionFeeMultiplierResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketAtomicExecutionFeeMultiplierResponse { + return new QueryMarketAtomicExecutionFeeMultiplierResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketAtomicExecutionFeeMultiplierResponse | PlainMessage | undefined, b: QueryMarketAtomicExecutionFeeMultiplierResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketAtomicExecutionFeeMultiplierResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryActiveStakeGrantRequest + */ +export class QueryActiveStakeGrantRequest extends Message { + /** + * @generated from field: string grantee = 1; + */ + grantee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryActiveStakeGrantRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActiveStakeGrantRequest { + return new QueryActiveStakeGrantRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryActiveStakeGrantRequest | PlainMessage | undefined, b: QueryActiveStakeGrantRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActiveStakeGrantRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryActiveStakeGrantResponse + */ +export class QueryActiveStakeGrantResponse extends Message { + /** + * @generated from field: injective.exchange.v2.ActiveGrant grant = 1; + */ + grant?: ActiveGrant; + + /** + * @generated from field: injective.exchange.v2.EffectiveGrant effective_grant = 2; + */ + effectiveGrant?: EffectiveGrant; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryActiveStakeGrantResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grant", kind: "message", T: ActiveGrant }, + { no: 2, name: "effective_grant", kind: "message", T: EffectiveGrant }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActiveStakeGrantResponse { + return new QueryActiveStakeGrantResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryActiveStakeGrantResponse | PlainMessage | undefined, b: QueryActiveStakeGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActiveStakeGrantResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryGrantAuthorizationRequest + */ +export class QueryGrantAuthorizationRequest extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + /** + * @generated from field: string grantee = 2; + */ + grantee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryGrantAuthorizationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationRequest { + return new QueryGrantAuthorizationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationRequest | PlainMessage | undefined, b: QueryGrantAuthorizationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryGrantAuthorizationResponse + */ +export class QueryGrantAuthorizationResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryGrantAuthorizationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationResponse { + return new QueryGrantAuthorizationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationResponse | PlainMessage | undefined, b: QueryGrantAuthorizationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryGrantAuthorizationsRequest + */ +export class QueryGrantAuthorizationsRequest extends Message { + /** + * @generated from field: string granter = 1; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryGrantAuthorizationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationsRequest { + return new QueryGrantAuthorizationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationsRequest | PlainMessage | undefined, b: QueryGrantAuthorizationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryGrantAuthorizationsResponse + */ +export class QueryGrantAuthorizationsResponse extends Message { + /** + * @generated from field: string total_grant_amount = 1; + */ + totalGrantAmount = ""; + + /** + * @generated from field: repeated injective.exchange.v2.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryGrantAuthorizationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_grant_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGrantAuthorizationsResponse { + return new QueryGrantAuthorizationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGrantAuthorizationsResponse | PlainMessage | undefined, b: QueryGrantAuthorizationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGrantAuthorizationsResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketBalanceRequest + */ +export class QueryMarketBalanceRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalanceRequest { + return new QueryMarketBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalanceRequest | PlainMessage | undefined, b: QueryMarketBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalanceRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketBalanceResponse + */ +export class QueryMarketBalanceResponse extends Message { + /** + * @generated from field: injective.exchange.v2.MarketBalance balance = 1; + */ + balance?: MarketBalance; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: MarketBalance }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalanceResponse { + return new QueryMarketBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalanceResponse | PlainMessage | undefined, b: QueryMarketBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalanceResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketBalancesRequest + */ +export class QueryMarketBalancesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalancesRequest { + return new QueryMarketBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalancesRequest | PlainMessage | undefined, b: QueryMarketBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalancesRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryMarketBalancesResponse + */ +export class QueryMarketBalancesResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.MarketBalance balances = 1; + */ + balances: MarketBalance[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryMarketBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balances", kind: "message", T: MarketBalance, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketBalancesResponse { + return new QueryMarketBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketBalancesResponse | PlainMessage | undefined, b: QueryMarketBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketBalancesResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MarketBalance + */ +export class MarketBalance extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the current balance of the market + * + * @generated from field: string balance = 2; + */ + balance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MarketBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketBalance { + return new MarketBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketBalance { + return new MarketBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketBalance { + return new MarketBalance().fromJsonString(jsonString, options); + } + + static equals(a: MarketBalance | PlainMessage | undefined, b: MarketBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketBalance, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryDenomMinNotionalRequest + */ +export class QueryDenomMinNotionalRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDenomMinNotionalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalRequest { + return new QueryDenomMinNotionalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalRequest | PlainMessage | undefined, b: QueryDenomMinNotionalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryDenomMinNotionalResponse + */ +export class QueryDenomMinNotionalResponse extends Message { + /** + * the minimum notional amount for the denom (in human readable format) + * + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDenomMinNotionalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalResponse { + return new QueryDenomMinNotionalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalResponse | PlainMessage | undefined, b: QueryDenomMinNotionalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryDenomMinNotionalsRequest + */ +export class QueryDenomMinNotionalsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDenomMinNotionalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalsRequest { + return new QueryDenomMinNotionalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalsRequest | PlainMessage | undefined, b: QueryDenomMinNotionalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalsRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryDenomMinNotionalsResponse + */ +export class QueryDenomMinNotionalsResponse extends Message { + /** + * @generated from field: repeated injective.exchange.v2.DenomMinNotional denom_min_notionals = 1; + */ + denomMinNotionals: DenomMinNotional[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryDenomMinNotionalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_min_notionals", kind: "message", T: DenomMinNotional, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomMinNotionalsResponse { + return new QueryDenomMinNotionalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomMinNotionalsResponse | PlainMessage | undefined, b: QueryDenomMinNotionalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomMinNotionalsResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OpenInterest + */ +export class OpenInterest extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the open interest of the market + * + * @generated from field: string balance = 2; + */ + balance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OpenInterest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OpenInterest { + return new OpenInterest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OpenInterest { + return new OpenInterest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OpenInterest { + return new OpenInterest().fromJsonString(jsonString, options); + } + + static equals(a: OpenInterest | PlainMessage | undefined, b: OpenInterest | PlainMessage | undefined): boolean { + return proto3.util.equals(OpenInterest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryOpenInterestRequest + */ +export class QueryOpenInterestRequest extends Message { + /** + * market id + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryOpenInterestRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenInterestRequest { + return new QueryOpenInterestRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenInterestRequest { + return new QueryOpenInterestRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenInterestRequest { + return new QueryOpenInterestRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenInterestRequest | PlainMessage | undefined, b: QueryOpenInterestRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenInterestRequest, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.QueryOpenInterestResponse + */ +export class QueryOpenInterestResponse extends Message { + /** + * @generated from field: injective.exchange.v2.OpenInterest amount = 1; + */ + amount?: OpenInterest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.QueryOpenInterestResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: OpenInterest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOpenInterestResponse { + return new QueryOpenInterestResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOpenInterestResponse { + return new QueryOpenInterestResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOpenInterestResponse { + return new QueryOpenInterestResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOpenInterestResponse | PlainMessage | undefined, b: QueryOpenInterestResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOpenInterestResponse, a, b); + } +} + diff --git a/src/protobufs/injective/exchange/v2/tx_cosmes.ts b/src/protobufs/injective/exchange/v2/tx_cosmes.ts new file mode 100644 index 00000000..b7df5a0e --- /dev/null +++ b/src/protobufs/injective/exchange/v2/tx_cosmes.ts @@ -0,0 +1,626 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/exchange/v2/tx.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgActivateStakeGrant, MsgActivateStakeGrantResponse, MsgAdminUpdateBinaryOptionsMarket, MsgAdminUpdateBinaryOptionsMarketResponse, MsgAtomicMarketOrderFeeMultiplierSchedule, MsgAtomicMarketOrderFeeMultiplierScheduleResponse, MsgAuthorizeStakeGrants, MsgAuthorizeStakeGrantsResponse, MsgBatchCancelBinaryOptionsOrders, MsgBatchCancelBinaryOptionsOrdersResponse, MsgBatchCancelDerivativeOrders, MsgBatchCancelDerivativeOrdersResponse, MsgBatchCancelSpotOrders, MsgBatchCancelSpotOrdersResponse, MsgBatchCommunityPoolSpend, MsgBatchCommunityPoolSpendResponse, MsgBatchCreateDerivativeLimitOrders, MsgBatchCreateDerivativeLimitOrdersResponse, MsgBatchCreateSpotLimitOrders, MsgBatchCreateSpotLimitOrdersResponse, MsgBatchExchangeModification, MsgBatchExchangeModificationResponse, MsgBatchUpdateOrders, MsgBatchUpdateOrdersResponse, MsgBinaryOptionsMarketLaunch, MsgBinaryOptionsMarketLaunchResponse, MsgBinaryOptionsMarketParamUpdate, MsgBinaryOptionsMarketParamUpdateResponse, MsgCancelBinaryOptionsOrder, MsgCancelBinaryOptionsOrderResponse, MsgCancelDerivativeOrder, MsgCancelDerivativeOrderResponse, MsgCancelPostOnlyMode, MsgCancelPostOnlyModeResponse, MsgCancelSpotOrder, MsgCancelSpotOrderResponse, MsgCreateBinaryOptionsLimitOrder, MsgCreateBinaryOptionsLimitOrderResponse, MsgCreateBinaryOptionsMarketOrder, MsgCreateBinaryOptionsMarketOrderResponse, MsgCreateDerivativeLimitOrder, MsgCreateDerivativeLimitOrderResponse, MsgCreateDerivativeMarketOrder, MsgCreateDerivativeMarketOrderResponse, MsgCreateSpotLimitOrder, MsgCreateSpotLimitOrderResponse, MsgCreateSpotMarketOrder, MsgCreateSpotMarketOrderResponse, MsgDecreasePositionMargin, MsgDecreasePositionMarginResponse, MsgDeposit, MsgDepositResponse, MsgDerivativeMarketParamUpdate, MsgDerivativeMarketParamUpdateResponse, MsgEmergencySettleMarket, MsgEmergencySettleMarketResponse, MsgExchangeEnable, MsgExchangeEnableResponse, MsgExpiryFuturesMarketLaunch, MsgExpiryFuturesMarketLaunchResponse, MsgExternalTransfer, MsgExternalTransferResponse, MsgFeeDiscount, MsgFeeDiscountResponse, MsgIncreasePositionMargin, MsgIncreasePositionMarginResponse, MsgInstantBinaryOptionsMarketLaunch, MsgInstantBinaryOptionsMarketLaunchResponse, MsgInstantExpiryFuturesMarketLaunch, MsgInstantExpiryFuturesMarketLaunchResponse, MsgInstantPerpetualMarketLaunch, MsgInstantPerpetualMarketLaunchResponse, MsgInstantSpotMarketLaunch, MsgInstantSpotMarketLaunchResponse, MsgLiquidatePosition, MsgLiquidatePositionResponse, MsgMarketForcedSettlement, MsgMarketForcedSettlementResponse, MsgOffsetPosition, MsgOffsetPositionResponse, MsgPerpetualMarketLaunch, MsgPerpetualMarketLaunchResponse, MsgPrivilegedExecuteContract, MsgPrivilegedExecuteContractResponse, MsgRewardsOptOut, MsgRewardsOptOutResponse, MsgSpotMarketLaunch, MsgSpotMarketLaunchResponse, MsgSpotMarketParamUpdate, MsgSpotMarketParamUpdateResponse, MsgSubaccountTransfer, MsgSubaccountTransferResponse, MsgTradingRewardCampaignLaunch, MsgTradingRewardCampaignLaunchResponse, MsgTradingRewardCampaignUpdate, MsgTradingRewardCampaignUpdateResponse, MsgTradingRewardPendingPointsUpdate, MsgTradingRewardPendingPointsUpdateResponse, MsgUpdateDerivativeMarket, MsgUpdateDerivativeMarketResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateSpotMarket, MsgUpdateSpotMarketResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "injective.exchange.v2.Msg"; + +/** + * Deposit defines a method for transferring coins from the sender's bank + * balance into the subaccount's exchange deposits + * + * @generated from rpc injective.exchange.v2.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing coins from a subaccount's + * deposits to the user's bank balance + * + * @generated from rpc injective.exchange.v2.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + +/** + * InstantSpotMarketLaunch defines method for creating a spot market by paying + * listing fee without governance + * + * @generated from rpc injective.exchange.v2.Msg.InstantSpotMarketLaunch + */ +export const MsgInstantSpotMarketLaunchService = { + typeName: TYPE_NAME, + method: "InstantSpotMarketLaunch", + Request: MsgInstantSpotMarketLaunch, + Response: MsgInstantSpotMarketLaunchResponse, +} as const; + +/** + * InstantPerpetualMarketLaunch defines a method for creating a new perpetual + * futures market by paying listing fee without governance + * + * @generated from rpc injective.exchange.v2.Msg.InstantPerpetualMarketLaunch + */ +export const MsgInstantPerpetualMarketLaunchService = { + typeName: TYPE_NAME, + method: "InstantPerpetualMarketLaunch", + Request: MsgInstantPerpetualMarketLaunch, + Response: MsgInstantPerpetualMarketLaunchResponse, +} as const; + +/** + * InstantExpiryFuturesMarketLaunch defines a method for creating a new expiry + * futures market by paying listing fee without governance + * + * @generated from rpc injective.exchange.v2.Msg.InstantExpiryFuturesMarketLaunch + */ +export const MsgInstantExpiryFuturesMarketLaunchService = { + typeName: TYPE_NAME, + method: "InstantExpiryFuturesMarketLaunch", + Request: MsgInstantExpiryFuturesMarketLaunch, + Response: MsgInstantExpiryFuturesMarketLaunchResponse, +} as const; + +/** + * CreateSpotLimitOrder defines a method for creating a new spot limit order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateSpotLimitOrder + */ +export const MsgCreateSpotLimitOrderService = { + typeName: TYPE_NAME, + method: "CreateSpotLimitOrder", + Request: MsgCreateSpotLimitOrder, + Response: MsgCreateSpotLimitOrderResponse, +} as const; + +/** + * BatchCreateSpotLimitOrder defines a method for creating a new batch of spot + * limit orders. + * + * @generated from rpc injective.exchange.v2.Msg.BatchCreateSpotLimitOrders + */ +export const MsgBatchCreateSpotLimitOrdersService = { + typeName: TYPE_NAME, + method: "BatchCreateSpotLimitOrders", + Request: MsgBatchCreateSpotLimitOrders, + Response: MsgBatchCreateSpotLimitOrdersResponse, +} as const; + +/** + * CreateSpotMarketOrder defines a method for creating a new spot market + * order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateSpotMarketOrder + */ +export const MsgCreateSpotMarketOrderService = { + typeName: TYPE_NAME, + method: "CreateSpotMarketOrder", + Request: MsgCreateSpotMarketOrder, + Response: MsgCreateSpotMarketOrderResponse, +} as const; + +/** + * MsgCancelSpotOrder defines a method for cancelling a spot order. + * + * @generated from rpc injective.exchange.v2.Msg.CancelSpotOrder + */ +export const MsgCancelSpotOrderService = { + typeName: TYPE_NAME, + method: "CancelSpotOrder", + Request: MsgCancelSpotOrder, + Response: MsgCancelSpotOrderResponse, +} as const; + +/** + * BatchCancelSpotOrders defines a method for cancelling a batch of spot + * orders in a given market. + * + * @generated from rpc injective.exchange.v2.Msg.BatchCancelSpotOrders + */ +export const MsgBatchCancelSpotOrdersService = { + typeName: TYPE_NAME, + method: "BatchCancelSpotOrders", + Request: MsgBatchCancelSpotOrders, + Response: MsgBatchCancelSpotOrdersResponse, +} as const; + +/** + * BatchUpdateOrders defines a method for updating a batch of orders. + * + * @generated from rpc injective.exchange.v2.Msg.BatchUpdateOrders + */ +export const MsgBatchUpdateOrdersService = { + typeName: TYPE_NAME, + method: "BatchUpdateOrders", + Request: MsgBatchUpdateOrders, + Response: MsgBatchUpdateOrdersResponse, +} as const; + +/** + * PrivilegedExecuteContract defines a method for executing a Cosmwasm + * contract from the exchange module with privileged capabilities. + * + * @generated from rpc injective.exchange.v2.Msg.PrivilegedExecuteContract + */ +export const MsgPrivilegedExecuteContractService = { + typeName: TYPE_NAME, + method: "PrivilegedExecuteContract", + Request: MsgPrivilegedExecuteContract, + Response: MsgPrivilegedExecuteContractResponse, +} as const; + +/** + * CreateDerivativeLimitOrder defines a method for creating a new derivative + * limit order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateDerivativeLimitOrder + */ +export const MsgCreateDerivativeLimitOrderService = { + typeName: TYPE_NAME, + method: "CreateDerivativeLimitOrder", + Request: MsgCreateDerivativeLimitOrder, + Response: MsgCreateDerivativeLimitOrderResponse, +} as const; + +/** + * BatchCreateDerivativeLimitOrders defines a method for creating a new batch + * of derivative limit orders. + * + * @generated from rpc injective.exchange.v2.Msg.BatchCreateDerivativeLimitOrders + */ +export const MsgBatchCreateDerivativeLimitOrdersService = { + typeName: TYPE_NAME, + method: "BatchCreateDerivativeLimitOrders", + Request: MsgBatchCreateDerivativeLimitOrders, + Response: MsgBatchCreateDerivativeLimitOrdersResponse, +} as const; + +/** + * MsgCreateDerivativeLimitOrder defines a method for creating a new + * derivative market order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateDerivativeMarketOrder + */ +export const MsgCreateDerivativeMarketOrderService = { + typeName: TYPE_NAME, + method: "CreateDerivativeMarketOrder", + Request: MsgCreateDerivativeMarketOrder, + Response: MsgCreateDerivativeMarketOrderResponse, +} as const; + +/** + * MsgCancelDerivativeOrder defines a method for cancelling a derivative + * order. + * + * @generated from rpc injective.exchange.v2.Msg.CancelDerivativeOrder + */ +export const MsgCancelDerivativeOrderService = { + typeName: TYPE_NAME, + method: "CancelDerivativeOrder", + Request: MsgCancelDerivativeOrder, + Response: MsgCancelDerivativeOrderResponse, +} as const; + +/** + * MsgBatchCancelDerivativeOrders defines a method for cancelling a batch of + * derivative limit orders. + * + * @generated from rpc injective.exchange.v2.Msg.BatchCancelDerivativeOrders + */ +export const MsgBatchCancelDerivativeOrdersService = { + typeName: TYPE_NAME, + method: "BatchCancelDerivativeOrders", + Request: MsgBatchCancelDerivativeOrders, + Response: MsgBatchCancelDerivativeOrdersResponse, +} as const; + +/** + * InstantBinaryOptionsMarketLaunch defines method for creating a binary + * options market by paying listing fee without governance + * + * @generated from rpc injective.exchange.v2.Msg.InstantBinaryOptionsMarketLaunch + */ +export const MsgInstantBinaryOptionsMarketLaunchService = { + typeName: TYPE_NAME, + method: "InstantBinaryOptionsMarketLaunch", + Request: MsgInstantBinaryOptionsMarketLaunch, + Response: MsgInstantBinaryOptionsMarketLaunchResponse, +} as const; + +/** + * CreateBinaryOptionsLimitOrder defines a method for creating a new binary + * options limit order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateBinaryOptionsLimitOrder + */ +export const MsgCreateBinaryOptionsLimitOrderService = { + typeName: TYPE_NAME, + method: "CreateBinaryOptionsLimitOrder", + Request: MsgCreateBinaryOptionsLimitOrder, + Response: MsgCreateBinaryOptionsLimitOrderResponse, +} as const; + +/** + * CreateBinaryOptionsMarketOrder defines a method for creating a new binary + * options market order. + * + * @generated from rpc injective.exchange.v2.Msg.CreateBinaryOptionsMarketOrder + */ +export const MsgCreateBinaryOptionsMarketOrderService = { + typeName: TYPE_NAME, + method: "CreateBinaryOptionsMarketOrder", + Request: MsgCreateBinaryOptionsMarketOrder, + Response: MsgCreateBinaryOptionsMarketOrderResponse, +} as const; + +/** + * MsgCancelBinaryOptionsOrder defines a method for cancelling a binary + * options order. + * + * @generated from rpc injective.exchange.v2.Msg.CancelBinaryOptionsOrder + */ +export const MsgCancelBinaryOptionsOrderService = { + typeName: TYPE_NAME, + method: "CancelBinaryOptionsOrder", + Request: MsgCancelBinaryOptionsOrder, + Response: MsgCancelBinaryOptionsOrderResponse, +} as const; + +/** + * BatchCancelBinaryOptionsOrders defines a method for cancelling a batch of + * binary options limit orders. + * + * @generated from rpc injective.exchange.v2.Msg.BatchCancelBinaryOptionsOrders + */ +export const MsgBatchCancelBinaryOptionsOrdersService = { + typeName: TYPE_NAME, + method: "BatchCancelBinaryOptionsOrders", + Request: MsgBatchCancelBinaryOptionsOrders, + Response: MsgBatchCancelBinaryOptionsOrdersResponse, +} as const; + +/** + * SubaccountTransfer defines a method for transfer between subaccounts + * + * @generated from rpc injective.exchange.v2.Msg.SubaccountTransfer + */ +export const MsgSubaccountTransferService = { + typeName: TYPE_NAME, + method: "SubaccountTransfer", + Request: MsgSubaccountTransfer, + Response: MsgSubaccountTransferResponse, +} as const; + +/** + * ExternalTransfer defines a method for transfer between external accounts + * + * @generated from rpc injective.exchange.v2.Msg.ExternalTransfer + */ +export const MsgExternalTransferService = { + typeName: TYPE_NAME, + method: "ExternalTransfer", + Request: MsgExternalTransfer, + Response: MsgExternalTransferResponse, +} as const; + +/** + * LiquidatePosition defines a method for liquidating a position + * + * @generated from rpc injective.exchange.v2.Msg.LiquidatePosition + */ +export const MsgLiquidatePositionService = { + typeName: TYPE_NAME, + method: "LiquidatePosition", + Request: MsgLiquidatePosition, + Response: MsgLiquidatePositionResponse, +} as const; + +/** + * EmergencySettleMarket defines a method for emergency settling a market + * + * @generated from rpc injective.exchange.v2.Msg.EmergencySettleMarket + */ +export const MsgEmergencySettleMarketService = { + typeName: TYPE_NAME, + method: "EmergencySettleMarket", + Request: MsgEmergencySettleMarket, + Response: MsgEmergencySettleMarketResponse, +} as const; + +/** + * OffsetPosition defines a method for offsetting a position + * + * @generated from rpc injective.exchange.v2.Msg.OffsetPosition + */ +export const MsgOffsetPositionService = { + typeName: TYPE_NAME, + method: "OffsetPosition", + Request: MsgOffsetPosition, + Response: MsgOffsetPositionResponse, +} as const; + +/** + * IncreasePositionMargin defines a method for increasing margin of a position + * + * @generated from rpc injective.exchange.v2.Msg.IncreasePositionMargin + */ +export const MsgIncreasePositionMarginService = { + typeName: TYPE_NAME, + method: "IncreasePositionMargin", + Request: MsgIncreasePositionMargin, + Response: MsgIncreasePositionMarginResponse, +} as const; + +/** + * DecreasePositionMargin defines a method for decreasing margin of a position + * + * @generated from rpc injective.exchange.v2.Msg.DecreasePositionMargin + */ +export const MsgDecreasePositionMarginService = { + typeName: TYPE_NAME, + method: "DecreasePositionMargin", + Request: MsgDecreasePositionMargin, + Response: MsgDecreasePositionMarginResponse, +} as const; + +/** + * RewardsOptOut defines a method for opting out of rewards + * + * @generated from rpc injective.exchange.v2.Msg.RewardsOptOut + */ +export const MsgRewardsOptOutService = { + typeName: TYPE_NAME, + method: "RewardsOptOut", + Request: MsgRewardsOptOut, + Response: MsgRewardsOptOutResponse, +} as const; + +/** + * AdminUpdateBinaryOptionsMarket defines method for updating a binary options + * market by admin + * + * @generated from rpc injective.exchange.v2.Msg.AdminUpdateBinaryOptionsMarket + */ +export const MsgAdminUpdateBinaryOptionsMarketService = { + typeName: TYPE_NAME, + method: "AdminUpdateBinaryOptionsMarket", + Request: MsgAdminUpdateBinaryOptionsMarket, + Response: MsgAdminUpdateBinaryOptionsMarketResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * UpdateSpotMarket modifies certain spot market fields (admin only) + * + * @generated from rpc injective.exchange.v2.Msg.UpdateSpotMarket + */ +export const MsgUpdateSpotMarketService = { + typeName: TYPE_NAME, + method: "UpdateSpotMarket", + Request: MsgUpdateSpotMarket, + Response: MsgUpdateSpotMarketResponse, +} as const; + +/** + * UpdateDerivativeMarket modifies certain derivative market fields (admin + * only) + * + * @generated from rpc injective.exchange.v2.Msg.UpdateDerivativeMarket + */ +export const MsgUpdateDerivativeMarketService = { + typeName: TYPE_NAME, + method: "UpdateDerivativeMarket", + Request: MsgUpdateDerivativeMarket, + Response: MsgUpdateDerivativeMarketResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.AuthorizeStakeGrants + */ +export const MsgAuthorizeStakeGrantsService = { + typeName: TYPE_NAME, + method: "AuthorizeStakeGrants", + Request: MsgAuthorizeStakeGrants, + Response: MsgAuthorizeStakeGrantsResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.ActivateStakeGrant + */ +export const MsgActivateStakeGrantService = { + typeName: TYPE_NAME, + method: "ActivateStakeGrant", + Request: MsgActivateStakeGrant, + Response: MsgActivateStakeGrantResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.BatchExchangeModification + */ +export const MsgBatchExchangeModificationService = { + typeName: TYPE_NAME, + method: "BatchExchangeModification", + Request: MsgBatchExchangeModification, + Response: MsgBatchExchangeModificationResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.LaunchSpotMarket + */ +export const MsgLaunchSpotMarketService = { + typeName: TYPE_NAME, + method: "LaunchSpotMarket", + Request: MsgSpotMarketLaunch, + Response: MsgSpotMarketLaunchResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.LaunchPerpetualMarket + */ +export const MsgLaunchPerpetualMarketService = { + typeName: TYPE_NAME, + method: "LaunchPerpetualMarket", + Request: MsgPerpetualMarketLaunch, + Response: MsgPerpetualMarketLaunchResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.LaunchExpiryFuturesMarket + */ +export const MsgLaunchExpiryFuturesMarketService = { + typeName: TYPE_NAME, + method: "LaunchExpiryFuturesMarket", + Request: MsgExpiryFuturesMarketLaunch, + Response: MsgExpiryFuturesMarketLaunchResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.LaunchBinaryOptionsMarket + */ +export const MsgLaunchBinaryOptionsMarketService = { + typeName: TYPE_NAME, + method: "LaunchBinaryOptionsMarket", + Request: MsgBinaryOptionsMarketLaunch, + Response: MsgBinaryOptionsMarketLaunchResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.BatchSpendCommunityPool + */ +export const MsgBatchSpendCommunityPoolService = { + typeName: TYPE_NAME, + method: "BatchSpendCommunityPool", + Request: MsgBatchCommunityPoolSpend, + Response: MsgBatchCommunityPoolSpendResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.SpotMarketParamUpdate + */ +export const MsgSpotMarketParamUpdateService = { + typeName: TYPE_NAME, + method: "SpotMarketParamUpdate", + Request: MsgSpotMarketParamUpdate, + Response: MsgSpotMarketParamUpdateResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.DerivativeMarketParamUpdate + */ +export const MsgDerivativeMarketParamUpdateService = { + typeName: TYPE_NAME, + method: "DerivativeMarketParamUpdate", + Request: MsgDerivativeMarketParamUpdate, + Response: MsgDerivativeMarketParamUpdateResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.BinaryOptionsMarketParamUpdate + */ +export const MsgBinaryOptionsMarketParamUpdateService = { + typeName: TYPE_NAME, + method: "BinaryOptionsMarketParamUpdate", + Request: MsgBinaryOptionsMarketParamUpdate, + Response: MsgBinaryOptionsMarketParamUpdateResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.ForceSettleMarket + */ +export const MsgForceSettleMarketService = { + typeName: TYPE_NAME, + method: "ForceSettleMarket", + Request: MsgMarketForcedSettlement, + Response: MsgMarketForcedSettlementResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.LaunchTradingRewardCampaign + */ +export const MsgLaunchTradingRewardCampaignService = { + typeName: TYPE_NAME, + method: "LaunchTradingRewardCampaign", + Request: MsgTradingRewardCampaignLaunch, + Response: MsgTradingRewardCampaignLaunchResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.EnableExchange + */ +export const MsgEnableExchangeService = { + typeName: TYPE_NAME, + method: "EnableExchange", + Request: MsgExchangeEnable, + Response: MsgExchangeEnableResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.UpdateTradingRewardCampaign + */ +export const MsgUpdateTradingRewardCampaignService = { + typeName: TYPE_NAME, + method: "UpdateTradingRewardCampaign", + Request: MsgTradingRewardCampaignUpdate, + Response: MsgTradingRewardCampaignUpdateResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.UpdateTradingRewardPendingPoints + */ +export const MsgUpdateTradingRewardPendingPointsService = { + typeName: TYPE_NAME, + method: "UpdateTradingRewardPendingPoints", + Request: MsgTradingRewardPendingPointsUpdate, + Response: MsgTradingRewardPendingPointsUpdateResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.UpdateFeeDiscount + */ +export const MsgUpdateFeeDiscountService = { + typeName: TYPE_NAME, + method: "UpdateFeeDiscount", + Request: MsgFeeDiscount, + Response: MsgFeeDiscountResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.UpdateAtomicMarketOrderFeeMultiplierSchedule + */ +export const MsgUpdateAtomicMarketOrderFeeMultiplierScheduleService = { + typeName: TYPE_NAME, + method: "UpdateAtomicMarketOrderFeeMultiplierSchedule", + Request: MsgAtomicMarketOrderFeeMultiplierSchedule, + Response: MsgAtomicMarketOrderFeeMultiplierScheduleResponse, +} as const; + +/** + * @generated from rpc injective.exchange.v2.Msg.CancelPostOnlyMode + */ +export const MsgCancelPostOnlyModeService = { + typeName: TYPE_NAME, + method: "CancelPostOnlyMode", + Request: MsgCancelPostOnlyMode, + Response: MsgCancelPostOnlyModeResponse, +} as const; + diff --git a/src/protobufs/injective/exchange/v2/tx_pb.ts b/src/protobufs/injective/exchange/v2/tx_pb.ts new file mode 100644 index 00000000..a84d9ea7 --- /dev/null +++ b/src/protobufs/injective/exchange/v2/tx_pb.ts @@ -0,0 +1,5770 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/exchange/v2/tx.proto (package injective.exchange.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { MarketStatus, OpenNotionalCap } from "./market_pb.js"; +import { GrantAuthorization, Params, PositionDelta } from "./exchange_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { DerivativeOrder, SpotOrder } from "./order_pb.js"; +import { OracleType } from "../../oracle/v1beta1/oracle_pb.js"; +import { AtomicMarketOrderFeeMultiplierScheduleProposal, BatchCommunityPoolSpendProposal, BatchExchangeModificationProposal, BinaryOptionsMarketLaunchProposal, BinaryOptionsMarketParamUpdateProposal, DerivativeMarketParamUpdateProposal, ExchangeEnableProposal, ExpiryFuturesMarketLaunchProposal, FeeDiscountProposal, MarketForcedSettlementProposal, PerpetualMarketLaunchProposal, SpotMarketLaunchProposal, SpotMarketParamUpdateProposal, TradingRewardCampaignLaunchProposal, TradingRewardCampaignUpdateProposal, TradingRewardPendingPointsUpdateProposal } from "./proposal_pb.js"; + +/** + * @generated from message injective.exchange.v2.MsgUpdateSpotMarket + */ +export class MsgUpdateSpotMarket extends Message { + /** + * current admin address of the associated market + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * id of the market to be updated + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * (optional) updated ticker value + * + * @generated from field: string new_ticker = 3; + */ + newTicker = ""; + + /** + * (optional) updated min price tick size value (in human readable format) + * + * @generated from field: string new_min_price_tick_size = 4; + */ + newMinPriceTickSize = ""; + + /** + * (optional) updated min quantity tick size value (in human readable format) + * + * @generated from field: string new_min_quantity_tick_size = 5; + */ + newMinQuantityTickSize = ""; + + /** + * (optional) updated min notional (in human readable format) + * + * @generated from field: string new_min_notional = 6; + */ + newMinNotional = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateSpotMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "new_min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotMarket { + return new MsgUpdateSpotMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotMarket | PlainMessage | undefined, b: MsgUpdateSpotMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotMarket, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgUpdateSpotMarketResponse + */ +export class MsgUpdateSpotMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateSpotMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSpotMarketResponse { + return new MsgUpdateSpotMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSpotMarketResponse | PlainMessage | undefined, b: MsgUpdateSpotMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSpotMarketResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgUpdateDerivativeMarket + */ +export class MsgUpdateDerivativeMarket extends Message { + /** + * current admin address of the associated market + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * id of the market to be updated + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * (optional) updated value for ticker + * + * @generated from field: string new_ticker = 3; + */ + newTicker = ""; + + /** + * (optional) updated value for min_price_tick_size (in human readable format) + * + * @generated from field: string new_min_price_tick_size = 4; + */ + newMinPriceTickSize = ""; + + /** + * (optional) updated value min_quantity_tick_size (in human readable format) + * + * @generated from field: string new_min_quantity_tick_size = 5; + */ + newMinQuantityTickSize = ""; + + /** + * (optional) updated min notional (in human readable format) + * + * @generated from field: string new_min_notional = 6; + */ + newMinNotional = ""; + + /** + * (optional) updated value for initial_margin_ratio + * + * @generated from field: string new_initial_margin_ratio = 7; + */ + newInitialMarginRatio = ""; + + /** + * (optional) updated value for maintenance_margin_ratio + * + * @generated from field: string new_maintenance_margin_ratio = 8; + */ + newMaintenanceMarginRatio = ""; + + /** + * (optional) updated value for reduce_margin_ratio + * + * @generated from field: string new_reduce_margin_ratio = 9; + */ + newReduceMarginRatio = ""; + + /** + * (optional) updated value for open_notional_cap + * + * @generated from field: injective.exchange.v2.OpenNotionalCap new_open_notional_cap = 10; + */ + newOpenNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateDerivativeMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "new_min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "new_initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "new_maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "new_reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "new_open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDerivativeMarket { + return new MsgUpdateDerivativeMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDerivativeMarket | PlainMessage | undefined, b: MsgUpdateDerivativeMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDerivativeMarket, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgUpdateDerivativeMarketResponse + */ +export class MsgUpdateDerivativeMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateDerivativeMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateDerivativeMarketResponse { + return new MsgUpdateDerivativeMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateDerivativeMarketResponse | PlainMessage | undefined, b: MsgUpdateDerivativeMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateDerivativeMarketResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the exchange parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: injective.exchange.v2.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgDeposit defines a SDK message for transferring coins from the sender's + * bank balance into the subaccount's exchange deposits + * + * @generated from message injective.exchange.v2.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * (Optional) the subaccount ID to deposit funds into. If empty, the coin + * will be deposited to the sender's default subaccount address. + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the amount of the deposit (in chain format) + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message injective.exchange.v2.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw defines a SDK message for withdrawing coins from a subaccount's + * deposits to the user's bank balance + * + * @generated from message injective.exchange.v2.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID to withdraw funds from + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the amount of the withdrawal (in chain format) + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdraw defines the Msg/Withdraw response type. + * + * @generated from message injective.exchange.v2.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + +/** + * MsgCreateSpotLimitOrder defines a SDK message for creating a new spot limit + * order. + * + * @generated from message injective.exchange.v2.MsgCreateSpotLimitOrder + */ +export class MsgCreateSpotLimitOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.SpotOrder order = 2; + */ + order?: SpotOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateSpotLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: SpotOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotLimitOrder { + return new MsgCreateSpotLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotLimitOrder { + return new MsgCreateSpotLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotLimitOrder { + return new MsgCreateSpotLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotLimitOrder | PlainMessage | undefined, b: MsgCreateSpotLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotLimitOrder, a, b); + } +} + +/** + * MsgCreateSpotLimitOrderResponse defines the Msg/CreateSpotOrder response + * type. + * + * @generated from message injective.exchange.v2.MsgCreateSpotLimitOrderResponse + */ +export class MsgCreateSpotLimitOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: string cid = 2; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateSpotLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotLimitOrderResponse { + return new MsgCreateSpotLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotLimitOrderResponse { + return new MsgCreateSpotLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotLimitOrderResponse { + return new MsgCreateSpotLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotLimitOrderResponse | PlainMessage | undefined, b: MsgCreateSpotLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotLimitOrderResponse, a, b); + } +} + +/** + * MsgBatchCreateSpotLimitOrders defines a SDK message for creating a new batch + * of spot limit orders. + * + * @generated from message injective.exchange.v2.MsgBatchCreateSpotLimitOrders + */ +export class MsgBatchCreateSpotLimitOrders extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.exchange.v2.SpotOrder orders = 2; + */ + orders: SpotOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCreateSpotLimitOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "orders", kind: "message", T: SpotOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateSpotLimitOrders { + return new MsgBatchCreateSpotLimitOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCreateSpotLimitOrders { + return new MsgBatchCreateSpotLimitOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCreateSpotLimitOrders { + return new MsgBatchCreateSpotLimitOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCreateSpotLimitOrders | PlainMessage | undefined, b: MsgBatchCreateSpotLimitOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCreateSpotLimitOrders, a, b); + } +} + +/** + * MsgBatchCreateSpotLimitOrdersResponse defines the + * Msg/BatchCreateSpotLimitOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchCreateSpotLimitOrdersResponse + */ +export class MsgBatchCreateSpotLimitOrdersResponse extends Message { + /** + * @generated from field: repeated string order_hashes = 1; + */ + orderHashes: string[] = []; + + /** + * @generated from field: repeated string created_orders_cids = 2; + */ + createdOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_orders_cids = 3; + */ + failedOrdersCids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCreateSpotLimitOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "created_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "failed_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateSpotLimitOrdersResponse { + return new MsgBatchCreateSpotLimitOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCreateSpotLimitOrdersResponse { + return new MsgBatchCreateSpotLimitOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCreateSpotLimitOrdersResponse { + return new MsgBatchCreateSpotLimitOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCreateSpotLimitOrdersResponse | PlainMessage | undefined, b: MsgBatchCreateSpotLimitOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCreateSpotLimitOrdersResponse, a, b); + } +} + +/** + * MsgInstantSpotMarketLaunch defines a SDK message for creating a new spot + * market by paying listing fee without governance + * + * @generated from message injective.exchange.v2.MsgInstantSpotMarketLaunch + */ +export class MsgInstantSpotMarketLaunch extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Ticker for the spot market. + * + * @generated from field: string ticker = 2; + */ + ticker = ""; + + /** + * type of coin to use as the base currency + * + * @generated from field: string base_denom = 3; + */ + baseDenom = ""; + + /** + * type of coin to use as the quote currency + * + * @generated from field: string quote_denom = 4; + */ + quoteDenom = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price (in + * human readable format) + * + * @generated from field: string min_price_tick_size = 5; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 6; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 7; + */ + minNotional = ""; + + /** + * base token decimals + * + * @generated from field: uint32 base_decimals = 8; + */ + baseDecimals = 0; + + /** + * quote token decimals + * + * @generated from field: uint32 quote_decimals = 9; + */ + quoteDecimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantSpotMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 9, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantSpotMarketLaunch { + return new MsgInstantSpotMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantSpotMarketLaunch { + return new MsgInstantSpotMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantSpotMarketLaunch { + return new MsgInstantSpotMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantSpotMarketLaunch | PlainMessage | undefined, b: MsgInstantSpotMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantSpotMarketLaunch, a, b); + } +} + +/** + * MsgInstantSpotMarketLaunchResponse defines the Msg/InstantSpotMarketLaunch + * response type. + * + * @generated from message injective.exchange.v2.MsgInstantSpotMarketLaunchResponse + */ +export class MsgInstantSpotMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantSpotMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantSpotMarketLaunchResponse { + return new MsgInstantSpotMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantSpotMarketLaunchResponse { + return new MsgInstantSpotMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantSpotMarketLaunchResponse { + return new MsgInstantSpotMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantSpotMarketLaunchResponse | PlainMessage | undefined, b: MsgInstantSpotMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantSpotMarketLaunchResponse, a, b); + } +} + +/** + * MsgInstantPerpetualMarketLaunch defines a SDK message for creating a new + * perpetual futures market by paying listing fee without governance + * + * @generated from message injective.exchange.v2.MsgInstantPerpetualMarketLaunch + */ +export class MsgInstantPerpetualMarketLaunch extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Ticker for the derivative market. + * + * @generated from field: string ticker = 2; + */ + ticker = ""; + + /** + * type of coin to use as the base currency + * + * @generated from field: string quote_denom = 3; + */ + quoteDenom = ""; + + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 4; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 5; + */ + oracleQuote = ""; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 6; + */ + oracleScaleFactor = 0; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 7; + */ + oracleType = OracleType.Unspecified; + + /** + * maker_fee_rate defines the trade fee rate for makers on the perpetual + * market + * + * @generated from field: string maker_fee_rate = 8; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the trade fee rate for takers on the perpetual + * market + * + * @generated from field: string taker_fee_rate = 9; + */ + takerFeeRate = ""; + + /** + * initial_margin_ratio defines the initial margin ratio for the perpetual + * market + * + * @generated from field: string initial_margin_ratio = 10; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio for the + * perpetual market + * + * @generated from field: string maintenance_margin_ratio = 11; + */ + maintenanceMarginRatio = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin (in human readable format) + * + * @generated from field: string min_price_tick_size = 12; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 13; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 14; + */ + minNotional = ""; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 15; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the cap on the open notional + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 16; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantPerpetualMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 8, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantPerpetualMarketLaunch { + return new MsgInstantPerpetualMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantPerpetualMarketLaunch { + return new MsgInstantPerpetualMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantPerpetualMarketLaunch { + return new MsgInstantPerpetualMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantPerpetualMarketLaunch | PlainMessage | undefined, b: MsgInstantPerpetualMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantPerpetualMarketLaunch, a, b); + } +} + +/** + * MsgInstantPerpetualMarketLaunchResponse defines the + * Msg/InstantPerpetualMarketLaunchResponse response type. + * + * @generated from message injective.exchange.v2.MsgInstantPerpetualMarketLaunchResponse + */ +export class MsgInstantPerpetualMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantPerpetualMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantPerpetualMarketLaunchResponse { + return new MsgInstantPerpetualMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantPerpetualMarketLaunchResponse { + return new MsgInstantPerpetualMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantPerpetualMarketLaunchResponse { + return new MsgInstantPerpetualMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantPerpetualMarketLaunchResponse | PlainMessage | undefined, b: MsgInstantPerpetualMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantPerpetualMarketLaunchResponse, a, b); + } +} + +/** + * MsgInstantBinaryOptionsMarketLaunch defines a SDK message for creating a new + * perpetual futures market by paying listing fee without governance + * + * @generated from message injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch + */ +export class MsgInstantBinaryOptionsMarketLaunch extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Ticker for the derivative contract. + * + * @generated from field: string ticker = 2; + */ + ticker = ""; + + /** + * Oracle symbol + * + * @generated from field: string oracle_symbol = 3; + */ + oracleSymbol = ""; + + /** + * Oracle Provider + * + * @generated from field: string oracle_provider = 4; + */ + oracleProvider = ""; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 5; + */ + oracleType = OracleType.Unspecified; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 6; + */ + oracleScaleFactor = 0; + + /** + * maker_fee_rate defines the trade fee rate for makers on the perpetual + * market + * + * @generated from field: string maker_fee_rate = 7; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the trade fee rate for takers on the perpetual + * market + * + * @generated from field: string taker_fee_rate = 8; + */ + takerFeeRate = ""; + + /** + * expiration timestamp + * + * @generated from field: int64 expiration_timestamp = 9; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration timestamp + * + * @generated from field: int64 settlement_timestamp = 10; + */ + settlementTimestamp = protoInt64.zero; + + /** + * admin of the market + * + * @generated from field: string admin = 11; + */ + admin = ""; + + /** + * Address of the quote currency denomination for the binary options contract + * + * @generated from field: string quote_denom = 12; + */ + quoteDenom = ""; + + /** + * min_price_tick_size defines the minimum tick size that the price and margin + * required for orders in the market (in human readable format) + * + * @generated from field: string min_price_tick_size = 13; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the quantity + * required for orders in the market (in human readable format) + * + * @generated from field: string min_quantity_tick_size = 14; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market (in human readable format) + * + * @generated from field: string min_notional = 15; + */ + minNotional = ""; + + /** + * open_notional_cap defines the cap on the open notional + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 16; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oracle_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 6, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 7, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "settlement_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 11, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantBinaryOptionsMarketLaunch { + return new MsgInstantBinaryOptionsMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantBinaryOptionsMarketLaunch { + return new MsgInstantBinaryOptionsMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantBinaryOptionsMarketLaunch { + return new MsgInstantBinaryOptionsMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantBinaryOptionsMarketLaunch | PlainMessage | undefined, b: MsgInstantBinaryOptionsMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantBinaryOptionsMarketLaunch, a, b); + } +} + +/** + * MsgInstantBinaryOptionsMarketLaunchResponse defines the + * Msg/InstantBinaryOptionsMarketLaunchResponse response type. + * + * @generated from message injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunchResponse + */ +export class MsgInstantBinaryOptionsMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantBinaryOptionsMarketLaunchResponse { + return new MsgInstantBinaryOptionsMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantBinaryOptionsMarketLaunchResponse { + return new MsgInstantBinaryOptionsMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantBinaryOptionsMarketLaunchResponse { + return new MsgInstantBinaryOptionsMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantBinaryOptionsMarketLaunchResponse | PlainMessage | undefined, b: MsgInstantBinaryOptionsMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantBinaryOptionsMarketLaunchResponse, a, b); + } +} + +/** + * MsgInstantExpiryFuturesMarketLaunch defines a SDK message for creating a new + * expiry futures market by paying listing fee without governance + * + * @generated from message injective.exchange.v2.MsgInstantExpiryFuturesMarketLaunch + */ +export class MsgInstantExpiryFuturesMarketLaunch extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Ticker for the derivative market. + * + * @generated from field: string ticker = 2; + */ + ticker = ""; + + /** + * type of coin to use as the quote currency + * + * @generated from field: string quote_denom = 3; + */ + quoteDenom = ""; + + /** + * Oracle base currency + * + * @generated from field: string oracle_base = 4; + */ + oracleBase = ""; + + /** + * Oracle quote currency + * + * @generated from field: string oracle_quote = 5; + */ + oracleQuote = ""; + + /** + * Oracle type + * + * @generated from field: injective.oracle.v1beta1.OracleType oracle_type = 6; + */ + oracleType = OracleType.Unspecified; + + /** + * Scale factor for oracle prices. + * + * @generated from field: uint32 oracle_scale_factor = 7; + */ + oracleScaleFactor = 0; + + /** + * Expiration time of the market + * + * @generated from field: int64 expiry = 8; + */ + expiry = protoInt64.zero; + + /** + * maker_fee_rate defines the trade fee rate for makers on the expiry futures + * market + * + * @generated from field: string maker_fee_rate = 9; + */ + makerFeeRate = ""; + + /** + * taker_fee_rate defines the trade fee rate for takers on the expiry futures + * market + * + * @generated from field: string taker_fee_rate = 10; + */ + takerFeeRate = ""; + + /** + * initial_margin_ratio defines the initial margin ratio for the derivative + * market + * + * @generated from field: string initial_margin_ratio = 11; + */ + initialMarginRatio = ""; + + /** + * maintenance_margin_ratio defines the maintenance margin ratio for the + * derivative market + * + * @generated from field: string maintenance_margin_ratio = 12; + */ + maintenanceMarginRatio = ""; + + /** + * min_price_tick_size defines the minimum tick size of the order's price and + * margin + * + * @generated from field: string min_price_tick_size = 13; + */ + minPriceTickSize = ""; + + /** + * min_quantity_tick_size defines the minimum tick size of the order's + * quantity + * + * @generated from field: string min_quantity_tick_size = 14; + */ + minQuantityTickSize = ""; + + /** + * min_notional defines the minimum notional (in quote asset) required for + * orders in the market + * + * @generated from field: string min_notional = 15; + */ + minNotional = ""; + + /** + * reduce_margin_ratio defines the ratio of the margin that is reduced + * + * @generated from field: string reduce_margin_ratio = 16; + */ + reduceMarginRatio = ""; + + /** + * open_notional_cap defines the cap on the open notional + * + * @generated from field: injective.exchange.v2.OpenNotionalCap open_notional_cap = 17; + */ + openNotionalCap?: OpenNotionalCap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantExpiryFuturesMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracle_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, + { no: 7, name: "oracle_scale_factor", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 8, name: "expiry", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "maker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "taker_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "initial_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "maintenance_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "min_price_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "min_quantity_tick_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "min_notional", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "reduce_margin_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "open_notional_cap", kind: "message", T: OpenNotionalCap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantExpiryFuturesMarketLaunch { + return new MsgInstantExpiryFuturesMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantExpiryFuturesMarketLaunch { + return new MsgInstantExpiryFuturesMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantExpiryFuturesMarketLaunch { + return new MsgInstantExpiryFuturesMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantExpiryFuturesMarketLaunch | PlainMessage | undefined, b: MsgInstantExpiryFuturesMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantExpiryFuturesMarketLaunch, a, b); + } +} + +/** + * MsgInstantExpiryFuturesMarketLaunchResponse defines the + * Msg/InstantExpiryFuturesMarketLaunch response type. + * + * @generated from message injective.exchange.v2.MsgInstantExpiryFuturesMarketLaunchResponse + */ +export class MsgInstantExpiryFuturesMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgInstantExpiryFuturesMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantExpiryFuturesMarketLaunchResponse { + return new MsgInstantExpiryFuturesMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantExpiryFuturesMarketLaunchResponse { + return new MsgInstantExpiryFuturesMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantExpiryFuturesMarketLaunchResponse { + return new MsgInstantExpiryFuturesMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantExpiryFuturesMarketLaunchResponse | PlainMessage | undefined, b: MsgInstantExpiryFuturesMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantExpiryFuturesMarketLaunchResponse, a, b); + } +} + +/** + * MsgCreateSpotMarketOrder defines a SDK message for creating a new spot market + * order. + * + * @generated from message injective.exchange.v2.MsgCreateSpotMarketOrder + */ +export class MsgCreateSpotMarketOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.SpotOrder order = 2; + */ + order?: SpotOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateSpotMarketOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: SpotOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotMarketOrder { + return new MsgCreateSpotMarketOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotMarketOrder { + return new MsgCreateSpotMarketOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotMarketOrder { + return new MsgCreateSpotMarketOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotMarketOrder | PlainMessage | undefined, b: MsgCreateSpotMarketOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotMarketOrder, a, b); + } +} + +/** + * MsgCreateSpotMarketOrderResponse defines the Msg/CreateSpotMarketLimitOrder + * response type. + * + * @generated from message injective.exchange.v2.MsgCreateSpotMarketOrderResponse + */ +export class MsgCreateSpotMarketOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: injective.exchange.v2.SpotMarketOrderResults results = 2; + */ + results?: SpotMarketOrderResults; + + /** + * @generated from field: string cid = 3; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateSpotMarketOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "results", kind: "message", T: SpotMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateSpotMarketOrderResponse { + return new MsgCreateSpotMarketOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateSpotMarketOrderResponse { + return new MsgCreateSpotMarketOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateSpotMarketOrderResponse { + return new MsgCreateSpotMarketOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateSpotMarketOrderResponse | PlainMessage | undefined, b: MsgCreateSpotMarketOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateSpotMarketOrderResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.SpotMarketOrderResults + */ +export class SpotMarketOrderResults extends Message { + /** + * @generated from field: string quantity = 1; + */ + quantity = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: string fee = 3; + */ + fee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.SpotMarketOrderResults"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotMarketOrderResults { + return new SpotMarketOrderResults().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotMarketOrderResults { + return new SpotMarketOrderResults().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotMarketOrderResults { + return new SpotMarketOrderResults().fromJsonString(jsonString, options); + } + + static equals(a: SpotMarketOrderResults | PlainMessage | undefined, b: SpotMarketOrderResults | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotMarketOrderResults, a, b); + } +} + +/** + * A Cosmos-SDK MsgCreateDerivativeLimitOrder + * + * @generated from message injective.exchange.v2.MsgCreateDerivativeLimitOrder + */ +export class MsgCreateDerivativeLimitOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.DerivativeOrder order = 2; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateDerivativeLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeLimitOrder { + return new MsgCreateDerivativeLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDerivativeLimitOrder { + return new MsgCreateDerivativeLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDerivativeLimitOrder { + return new MsgCreateDerivativeLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDerivativeLimitOrder | PlainMessage | undefined, b: MsgCreateDerivativeLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDerivativeLimitOrder, a, b); + } +} + +/** + * MsgCreateDerivativeLimitOrderResponse defines the + * Msg/CreateDerivativeMarketOrder response type. + * + * @generated from message injective.exchange.v2.MsgCreateDerivativeLimitOrderResponse + */ +export class MsgCreateDerivativeLimitOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: string cid = 2; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateDerivativeLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeLimitOrderResponse { + return new MsgCreateDerivativeLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDerivativeLimitOrderResponse { + return new MsgCreateDerivativeLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDerivativeLimitOrderResponse { + return new MsgCreateDerivativeLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDerivativeLimitOrderResponse | PlainMessage | undefined, b: MsgCreateDerivativeLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDerivativeLimitOrderResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgCreateBinaryOptionsLimitOrder + * + * @generated from message injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder + */ +export class MsgCreateBinaryOptionsLimitOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.DerivativeOrder order = 2; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsLimitOrder { + return new MsgCreateBinaryOptionsLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBinaryOptionsLimitOrder { + return new MsgCreateBinaryOptionsLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateBinaryOptionsLimitOrder { + return new MsgCreateBinaryOptionsLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateBinaryOptionsLimitOrder | PlainMessage | undefined, b: MsgCreateBinaryOptionsLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateBinaryOptionsLimitOrder, a, b); + } +} + +/** + * MsgCreateBinaryOptionsLimitOrderResponse defines the + * Msg/CreateBinaryOptionsLimitOrder response type. + * + * @generated from message injective.exchange.v2.MsgCreateBinaryOptionsLimitOrderResponse + */ +export class MsgCreateBinaryOptionsLimitOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: string cid = 2; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateBinaryOptionsLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsLimitOrderResponse { + return new MsgCreateBinaryOptionsLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBinaryOptionsLimitOrderResponse { + return new MsgCreateBinaryOptionsLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateBinaryOptionsLimitOrderResponse { + return new MsgCreateBinaryOptionsLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateBinaryOptionsLimitOrderResponse | PlainMessage | undefined, b: MsgCreateBinaryOptionsLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateBinaryOptionsLimitOrderResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgBatchCreateDerivativeLimitOrders + * + * @generated from message injective.exchange.v2.MsgBatchCreateDerivativeLimitOrders + */ +export class MsgBatchCreateDerivativeLimitOrders extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the orders to create + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrder orders = 2; + */ + orders: DerivativeOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCreateDerivativeLimitOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "orders", kind: "message", T: DerivativeOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateDerivativeLimitOrders { + return new MsgBatchCreateDerivativeLimitOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCreateDerivativeLimitOrders { + return new MsgBatchCreateDerivativeLimitOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCreateDerivativeLimitOrders { + return new MsgBatchCreateDerivativeLimitOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCreateDerivativeLimitOrders | PlainMessage | undefined, b: MsgBatchCreateDerivativeLimitOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCreateDerivativeLimitOrders, a, b); + } +} + +/** + * MsgBatchCreateDerivativeLimitOrdersResponse defines the + * Msg/BatchCreateDerivativeLimitOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchCreateDerivativeLimitOrdersResponse + */ +export class MsgBatchCreateDerivativeLimitOrdersResponse extends Message { + /** + * @generated from field: repeated string order_hashes = 1; + */ + orderHashes: string[] = []; + + /** + * @generated from field: repeated string created_orders_cids = 2; + */ + createdOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_orders_cids = 3; + */ + failedOrdersCids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCreateDerivativeLimitOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "created_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "failed_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCreateDerivativeLimitOrdersResponse { + return new MsgBatchCreateDerivativeLimitOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCreateDerivativeLimitOrdersResponse { + return new MsgBatchCreateDerivativeLimitOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCreateDerivativeLimitOrdersResponse { + return new MsgBatchCreateDerivativeLimitOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCreateDerivativeLimitOrdersResponse | PlainMessage | undefined, b: MsgBatchCreateDerivativeLimitOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCreateDerivativeLimitOrdersResponse, a, b); + } +} + +/** + * MsgCancelSpotOrder defines the Msg/CancelSpotOrder response type. + * + * @generated from message injective.exchange.v2.MsgCancelSpotOrder + */ +export class MsgCancelSpotOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 3; + */ + subaccountId = ""; + + /** + * the order hash (optional) + * + * @generated from field: string order_hash = 4; + */ + orderHash = ""; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 5; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelSpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrder { + return new MsgCancelSpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrder | PlainMessage | undefined, b: MsgCancelSpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrder, a, b); + } +} + +/** + * MsgCancelSpotOrderResponse defines the Msg/CancelSpotOrder response type. + * + * @generated from message injective.exchange.v2.MsgCancelSpotOrderResponse + */ +export class MsgCancelSpotOrderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelSpotOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelSpotOrderResponse { + return new MsgCancelSpotOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelSpotOrderResponse | PlainMessage | undefined, b: MsgCancelSpotOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelSpotOrderResponse, a, b); + } +} + +/** + * MsgBatchCancelSpotOrders defines the Msg/BatchCancelSpotOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelSpotOrders + */ +export class MsgBatchCancelSpotOrders extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.exchange.v2.OrderData data = 2; + */ + data: OrderData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelSpotOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "message", T: OrderData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelSpotOrders { + return new MsgBatchCancelSpotOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelSpotOrders { + return new MsgBatchCancelSpotOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelSpotOrders { + return new MsgBatchCancelSpotOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelSpotOrders | PlainMessage | undefined, b: MsgBatchCancelSpotOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelSpotOrders, a, b); + } +} + +/** + * MsgBatchCancelSpotOrdersResponse defines the Msg/BatchCancelSpotOrders + * response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelSpotOrdersResponse + */ +export class MsgBatchCancelSpotOrdersResponse extends Message { + /** + * @generated from field: repeated bool success = 1; + */ + success: boolean[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelSpotOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelSpotOrdersResponse { + return new MsgBatchCancelSpotOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelSpotOrdersResponse { + return new MsgBatchCancelSpotOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelSpotOrdersResponse { + return new MsgBatchCancelSpotOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelSpotOrdersResponse | PlainMessage | undefined, b: MsgBatchCancelSpotOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelSpotOrdersResponse, a, b); + } +} + +/** + * MsgBatchCancelBinaryOptionsOrders defines the + * Msg/BatchCancelBinaryOptionsOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders + */ +export class MsgBatchCancelBinaryOptionsOrders extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.exchange.v2.OrderData data = 2; + */ + data: OrderData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "message", T: OrderData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelBinaryOptionsOrders { + return new MsgBatchCancelBinaryOptionsOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelBinaryOptionsOrders { + return new MsgBatchCancelBinaryOptionsOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelBinaryOptionsOrders { + return new MsgBatchCancelBinaryOptionsOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelBinaryOptionsOrders | PlainMessage | undefined, b: MsgBatchCancelBinaryOptionsOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelBinaryOptionsOrders, a, b); + } +} + +/** + * BatchCancelBinaryOptionsOrdersResponse defines the + * Msg/BatchCancelBinaryOptionsOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelBinaryOptionsOrdersResponse + */ +export class MsgBatchCancelBinaryOptionsOrdersResponse extends Message { + /** + * @generated from field: repeated bool success = 1; + */ + success: boolean[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelBinaryOptionsOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelBinaryOptionsOrdersResponse { + return new MsgBatchCancelBinaryOptionsOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelBinaryOptionsOrdersResponse { + return new MsgBatchCancelBinaryOptionsOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelBinaryOptionsOrdersResponse { + return new MsgBatchCancelBinaryOptionsOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelBinaryOptionsOrdersResponse | PlainMessage | undefined, b: MsgBatchCancelBinaryOptionsOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelBinaryOptionsOrdersResponse, a, b); + } +} + +/** + * MsgBatchUpdateOrders defines the Msg/BatchUpdateOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchUpdateOrders + */ +export class MsgBatchUpdateOrders extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * subaccount_id only used for the spot_market_ids_to_cancel_all and + * derivative_market_ids_to_cancel_all (optional) + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the market IDs to cancel all spot orders for (optional) + * + * @generated from field: repeated string spot_market_ids_to_cancel_all = 3; + */ + spotMarketIdsToCancelAll: string[] = []; + + /** + * the market IDs to cancel all derivative orders for (optional) + * + * @generated from field: repeated string derivative_market_ids_to_cancel_all = 4; + */ + derivativeMarketIdsToCancelAll: string[] = []; + + /** + * the spot orders to cancel + * + * @generated from field: repeated injective.exchange.v2.OrderData spot_orders_to_cancel = 5; + */ + spotOrdersToCancel: OrderData[] = []; + + /** + * the derivative orders to cancel + * + * @generated from field: repeated injective.exchange.v2.OrderData derivative_orders_to_cancel = 6; + */ + derivativeOrdersToCancel: OrderData[] = []; + + /** + * the spot orders to create + * + * @generated from field: repeated injective.exchange.v2.SpotOrder spot_orders_to_create = 7; + */ + spotOrdersToCreate: SpotOrder[] = []; + + /** + * the derivative orders to create + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrder derivative_orders_to_create = 8; + */ + derivativeOrdersToCreate: DerivativeOrder[] = []; + + /** + * the binary options orders to cancel + * + * @generated from field: repeated injective.exchange.v2.OrderData binary_options_orders_to_cancel = 9; + */ + binaryOptionsOrdersToCancel: OrderData[] = []; + + /** + * the market IDs to cancel all binary options orders for (optional) + * + * @generated from field: repeated string binary_options_market_ids_to_cancel_all = 10; + */ + binaryOptionsMarketIdsToCancelAll: string[] = []; + + /** + * the binary options orders to create + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrder binary_options_orders_to_create = 11; + */ + binaryOptionsOrdersToCreate: DerivativeOrder[] = []; + + /** + * the spot market orders to create + * + * @generated from field: repeated injective.exchange.v2.SpotOrder spot_market_orders_to_create = 12; + */ + spotMarketOrdersToCreate: SpotOrder[] = []; + + /** + * the derivative market orders to create + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrder derivative_market_orders_to_create = 13; + */ + derivativeMarketOrdersToCreate: DerivativeOrder[] = []; + + /** + * the binary options market orders to create + * + * @generated from field: repeated injective.exchange.v2.DerivativeOrder binary_options_market_orders_to_create = 14; + */ + binaryOptionsMarketOrdersToCreate: DerivativeOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchUpdateOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "spot_market_ids_to_cancel_all", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "derivative_market_ids_to_cancel_all", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "spot_orders_to_cancel", kind: "message", T: OrderData, repeated: true }, + { no: 6, name: "derivative_orders_to_cancel", kind: "message", T: OrderData, repeated: true }, + { no: 7, name: "spot_orders_to_create", kind: "message", T: SpotOrder, repeated: true }, + { no: 8, name: "derivative_orders_to_create", kind: "message", T: DerivativeOrder, repeated: true }, + { no: 9, name: "binary_options_orders_to_cancel", kind: "message", T: OrderData, repeated: true }, + { no: 10, name: "binary_options_market_ids_to_cancel_all", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 11, name: "binary_options_orders_to_create", kind: "message", T: DerivativeOrder, repeated: true }, + { no: 12, name: "spot_market_orders_to_create", kind: "message", T: SpotOrder, repeated: true }, + { no: 13, name: "derivative_market_orders_to_create", kind: "message", T: DerivativeOrder, repeated: true }, + { no: 14, name: "binary_options_market_orders_to_create", kind: "message", T: DerivativeOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchUpdateOrders { + return new MsgBatchUpdateOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchUpdateOrders { + return new MsgBatchUpdateOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchUpdateOrders { + return new MsgBatchUpdateOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchUpdateOrders | PlainMessage | undefined, b: MsgBatchUpdateOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchUpdateOrders, a, b); + } +} + +/** + * MsgBatchUpdateOrdersResponse defines the Msg/BatchUpdateOrders response type. + * + * @generated from message injective.exchange.v2.MsgBatchUpdateOrdersResponse + */ +export class MsgBatchUpdateOrdersResponse extends Message { + /** + * @generated from field: repeated bool spot_cancel_success = 1; + */ + spotCancelSuccess: boolean[] = []; + + /** + * @generated from field: repeated bool derivative_cancel_success = 2; + */ + derivativeCancelSuccess: boolean[] = []; + + /** + * @generated from field: repeated string spot_order_hashes = 3; + */ + spotOrderHashes: string[] = []; + + /** + * @generated from field: repeated string derivative_order_hashes = 4; + */ + derivativeOrderHashes: string[] = []; + + /** + * @generated from field: repeated bool binary_options_cancel_success = 5; + */ + binaryOptionsCancelSuccess: boolean[] = []; + + /** + * @generated from field: repeated string binary_options_order_hashes = 6; + */ + binaryOptionsOrderHashes: string[] = []; + + /** + * @generated from field: repeated string created_spot_orders_cids = 7; + */ + createdSpotOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_spot_orders_cids = 8; + */ + failedSpotOrdersCids: string[] = []; + + /** + * @generated from field: repeated string created_derivative_orders_cids = 9; + */ + createdDerivativeOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_derivative_orders_cids = 10; + */ + failedDerivativeOrdersCids: string[] = []; + + /** + * @generated from field: repeated string created_binary_options_orders_cids = 11; + */ + createdBinaryOptionsOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_binary_options_orders_cids = 12; + */ + failedBinaryOptionsOrdersCids: string[] = []; + + /** + * @generated from field: repeated string spot_market_order_hashes = 13; + */ + spotMarketOrderHashes: string[] = []; + + /** + * @generated from field: repeated string created_spot_market_orders_cids = 14; + */ + createdSpotMarketOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_spot_market_orders_cids = 15; + */ + failedSpotMarketOrdersCids: string[] = []; + + /** + * @generated from field: repeated string derivative_market_order_hashes = 16; + */ + derivativeMarketOrderHashes: string[] = []; + + /** + * @generated from field: repeated string created_derivative_market_orders_cids = 17; + */ + createdDerivativeMarketOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_derivative_market_orders_cids = 18; + */ + failedDerivativeMarketOrdersCids: string[] = []; + + /** + * @generated from field: repeated string binary_options_market_order_hashes = 19; + */ + binaryOptionsMarketOrderHashes: string[] = []; + + /** + * @generated from field: repeated string created_binary_options_market_orders_cids = 20; + */ + createdBinaryOptionsMarketOrdersCids: string[] = []; + + /** + * @generated from field: repeated string failed_binary_options_market_orders_cids = 21; + */ + failedBinaryOptionsMarketOrdersCids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchUpdateOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_cancel_success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + { no: 2, name: "derivative_cancel_success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + { no: 3, name: "spot_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "derivative_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "binary_options_cancel_success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + { no: 6, name: "binary_options_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 7, name: "created_spot_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "failed_spot_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "created_derivative_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "failed_derivative_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 11, name: "created_binary_options_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 12, name: "failed_binary_options_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 13, name: "spot_market_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 14, name: "created_spot_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 15, name: "failed_spot_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 16, name: "derivative_market_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 17, name: "created_derivative_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 18, name: "failed_derivative_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 19, name: "binary_options_market_order_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 20, name: "created_binary_options_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 21, name: "failed_binary_options_market_orders_cids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchUpdateOrdersResponse { + return new MsgBatchUpdateOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchUpdateOrdersResponse { + return new MsgBatchUpdateOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchUpdateOrdersResponse { + return new MsgBatchUpdateOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchUpdateOrdersResponse | PlainMessage | undefined, b: MsgBatchUpdateOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchUpdateOrdersResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgCreateDerivativeMarketOrder + * + * @generated from message injective.exchange.v2.MsgCreateDerivativeMarketOrder + */ +export class MsgCreateDerivativeMarketOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.DerivativeOrder order = 2; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateDerivativeMarketOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeMarketOrder { + return new MsgCreateDerivativeMarketOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDerivativeMarketOrder { + return new MsgCreateDerivativeMarketOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDerivativeMarketOrder { + return new MsgCreateDerivativeMarketOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDerivativeMarketOrder | PlainMessage | undefined, b: MsgCreateDerivativeMarketOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDerivativeMarketOrder, a, b); + } +} + +/** + * MsgCreateDerivativeMarketOrderResponse defines the + * Msg/CreateDerivativeMarketOrder response type. + * + * @generated from message injective.exchange.v2.MsgCreateDerivativeMarketOrderResponse + */ +export class MsgCreateDerivativeMarketOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: injective.exchange.v2.DerivativeMarketOrderResults results = 2; + */ + results?: DerivativeMarketOrderResults; + + /** + * @generated from field: string cid = 3; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateDerivativeMarketOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "results", kind: "message", T: DerivativeMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDerivativeMarketOrderResponse { + return new MsgCreateDerivativeMarketOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDerivativeMarketOrderResponse { + return new MsgCreateDerivativeMarketOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDerivativeMarketOrderResponse { + return new MsgCreateDerivativeMarketOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDerivativeMarketOrderResponse | PlainMessage | undefined, b: MsgCreateDerivativeMarketOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDerivativeMarketOrderResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.DerivativeMarketOrderResults + */ +export class DerivativeMarketOrderResults extends Message { + /** + * @generated from field: string quantity = 1; + */ + quantity = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: string fee = 3; + */ + fee = ""; + + /** + * @generated from field: injective.exchange.v2.PositionDelta position_delta = 4; + */ + positionDelta?: PositionDelta; + + /** + * @generated from field: string payout = 5; + */ + payout = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.DerivativeMarketOrderResults"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "position_delta", kind: "message", T: PositionDelta }, + { no: 5, name: "payout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketOrderResults { + return new DerivativeMarketOrderResults().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketOrderResults { + return new DerivativeMarketOrderResults().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketOrderResults { + return new DerivativeMarketOrderResults().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeMarketOrderResults | PlainMessage | undefined, b: DerivativeMarketOrderResults | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeMarketOrderResults, a, b); + } +} + +/** + * A Cosmos-SDK MsgCreateBinaryOptionsMarketOrder + * + * @generated from message injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder + */ +export class MsgCreateBinaryOptionsMarketOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.DerivativeOrder order = 2; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsMarketOrder { + return new MsgCreateBinaryOptionsMarketOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBinaryOptionsMarketOrder { + return new MsgCreateBinaryOptionsMarketOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateBinaryOptionsMarketOrder { + return new MsgCreateBinaryOptionsMarketOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateBinaryOptionsMarketOrder | PlainMessage | undefined, b: MsgCreateBinaryOptionsMarketOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateBinaryOptionsMarketOrder, a, b); + } +} + +/** + * MsgCreateBinaryOptionsMarketOrderResponse defines the + * Msg/CreateBinaryOptionsMarketOrder response type. + * + * @generated from message injective.exchange.v2.MsgCreateBinaryOptionsMarketOrderResponse + */ +export class MsgCreateBinaryOptionsMarketOrderResponse extends Message { + /** + * @generated from field: string order_hash = 1; + */ + orderHash = ""; + + /** + * @generated from field: injective.exchange.v2.DerivativeMarketOrderResults results = 2; + */ + results?: DerivativeMarketOrderResults; + + /** + * @generated from field: string cid = 3; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCreateBinaryOptionsMarketOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "results", kind: "message", T: DerivativeMarketOrderResults }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBinaryOptionsMarketOrderResponse { + return new MsgCreateBinaryOptionsMarketOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBinaryOptionsMarketOrderResponse { + return new MsgCreateBinaryOptionsMarketOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateBinaryOptionsMarketOrderResponse { + return new MsgCreateBinaryOptionsMarketOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateBinaryOptionsMarketOrderResponse | PlainMessage | undefined, b: MsgCreateBinaryOptionsMarketOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateBinaryOptionsMarketOrderResponse, a, b); + } +} + +/** + * MsgCancelDerivativeOrder defines the Msg/CancelDerivativeOrder response type. + * + * @generated from message injective.exchange.v2.MsgCancelDerivativeOrder + */ +export class MsgCancelDerivativeOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 3; + */ + subaccountId = ""; + + /** + * the order hash (optional) + * + * @generated from field: string order_hash = 4; + */ + orderHash = ""; + + /** + * the order mask (bitwise combination of OrderMask enum values) (optional) + * + * @generated from field: int32 order_mask = 5; + */ + orderMask = 0; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 6; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelDerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_mask", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelDerivativeOrder { + return new MsgCancelDerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelDerivativeOrder { + return new MsgCancelDerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelDerivativeOrder { + return new MsgCancelDerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelDerivativeOrder | PlainMessage | undefined, b: MsgCancelDerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelDerivativeOrder, a, b); + } +} + +/** + * MsgCancelDerivativeOrderResponse defines the + * Msg/CancelDerivativeOrderResponse response type. + * + * @generated from message injective.exchange.v2.MsgCancelDerivativeOrderResponse + */ +export class MsgCancelDerivativeOrderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelDerivativeOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelDerivativeOrderResponse { + return new MsgCancelDerivativeOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelDerivativeOrderResponse { + return new MsgCancelDerivativeOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelDerivativeOrderResponse { + return new MsgCancelDerivativeOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelDerivativeOrderResponse | PlainMessage | undefined, b: MsgCancelDerivativeOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelDerivativeOrderResponse, a, b); + } +} + +/** + * MsgCancelBinaryOptionsOrder defines the Msg/CancelBinaryOptionsOrder response + * type. + * + * @generated from message injective.exchange.v2.MsgCancelBinaryOptionsOrder + */ +export class MsgCancelBinaryOptionsOrder extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 3; + */ + subaccountId = ""; + + /** + * the order hash (optional) + * + * @generated from field: string order_hash = 4; + */ + orderHash = ""; + + /** + * the order mask (bitwise combination of OrderMask enum values) (optional) + * + * @generated from field: int32 order_mask = 5; + */ + orderMask = 0; + + /** + * the client order ID (optional) + * + * @generated from field: string cid = 6; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelBinaryOptionsOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "order_mask", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 6, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelBinaryOptionsOrder { + return new MsgCancelBinaryOptionsOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelBinaryOptionsOrder { + return new MsgCancelBinaryOptionsOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelBinaryOptionsOrder { + return new MsgCancelBinaryOptionsOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelBinaryOptionsOrder | PlainMessage | undefined, b: MsgCancelBinaryOptionsOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelBinaryOptionsOrder, a, b); + } +} + +/** + * MsgCancelBinaryOptionsOrderResponse defines the + * Msg/CancelBinaryOptionsOrderResponse response type. + * + * @generated from message injective.exchange.v2.MsgCancelBinaryOptionsOrderResponse + */ +export class MsgCancelBinaryOptionsOrderResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelBinaryOptionsOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelBinaryOptionsOrderResponse { + return new MsgCancelBinaryOptionsOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelBinaryOptionsOrderResponse { + return new MsgCancelBinaryOptionsOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelBinaryOptionsOrderResponse { + return new MsgCancelBinaryOptionsOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelBinaryOptionsOrderResponse | PlainMessage | undefined, b: MsgCancelBinaryOptionsOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelBinaryOptionsOrderResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.OrderData + */ +export class OrderData extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the order hash (optional - either the order_hash or the cid should be + * provided) + * + * @generated from field: string order_hash = 3; + */ + orderHash = ""; + + /** + * the order mask (bitwise combination of OrderMask enum values) + * + * @generated from field: int32 order_mask = 4; + */ + orderMask = 0; + + /** + * the client order ID (optional - either the order_hash or the cid should be + * provided) + * + * @generated from field: string cid = 5; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.OrderData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_mask", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderData { + return new OrderData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderData { + return new OrderData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderData { + return new OrderData().fromJsonString(jsonString, options); + } + + static equals(a: OrderData | PlainMessage | undefined, b: OrderData | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderData, a, b); + } +} + +/** + * MsgBatchCancelDerivativeOrders defines the Msg/CancelDerivativeOrders + * response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelDerivativeOrders + */ +export class MsgBatchCancelDerivativeOrders extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.exchange.v2.OrderData data = 2; + */ + data: OrderData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelDerivativeOrders"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "message", T: OrderData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelDerivativeOrders { + return new MsgBatchCancelDerivativeOrders().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelDerivativeOrders { + return new MsgBatchCancelDerivativeOrders().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelDerivativeOrders { + return new MsgBatchCancelDerivativeOrders().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelDerivativeOrders | PlainMessage | undefined, b: MsgBatchCancelDerivativeOrders | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelDerivativeOrders, a, b); + } +} + +/** + * MsgBatchCancelDerivativeOrdersResponse defines the + * Msg/CancelDerivativeOrderResponse response type. + * + * @generated from message injective.exchange.v2.MsgBatchCancelDerivativeOrdersResponse + */ +export class MsgBatchCancelDerivativeOrdersResponse extends Message { + /** + * @generated from field: repeated bool success = 1; + */ + success: boolean[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCancelDerivativeOrdersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCancelDerivativeOrdersResponse { + return new MsgBatchCancelDerivativeOrdersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCancelDerivativeOrdersResponse { + return new MsgBatchCancelDerivativeOrdersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCancelDerivativeOrdersResponse { + return new MsgBatchCancelDerivativeOrdersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCancelDerivativeOrdersResponse | PlainMessage | undefined, b: MsgBatchCancelDerivativeOrdersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCancelDerivativeOrdersResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgSubaccountTransfer + * + * @generated from message injective.exchange.v2.MsgSubaccountTransfer + */ +export class MsgSubaccountTransfer extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the source subaccount ID + * + * @generated from field: string source_subaccount_id = 2; + */ + sourceSubaccountId = ""; + + /** + * the destination subaccount ID + * + * @generated from field: string destination_subaccount_id = 3; + */ + destinationSubaccountId = ""; + + /** + * the amount to transfer (in chain format) + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSubaccountTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubaccountTransfer { + return new MsgSubaccountTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubaccountTransfer { + return new MsgSubaccountTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubaccountTransfer { + return new MsgSubaccountTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubaccountTransfer | PlainMessage | undefined, b: MsgSubaccountTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubaccountTransfer, a, b); + } +} + +/** + * MsgSubaccountTransferResponse defines the Msg/SubaccountTransfer response + * type. + * + * @generated from message injective.exchange.v2.MsgSubaccountTransferResponse + */ +export class MsgSubaccountTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSubaccountTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubaccountTransferResponse { + return new MsgSubaccountTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubaccountTransferResponse { + return new MsgSubaccountTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubaccountTransferResponse { + return new MsgSubaccountTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubaccountTransferResponse | PlainMessage | undefined, b: MsgSubaccountTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubaccountTransferResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgExternalTransfer + * + * @generated from message injective.exchange.v2.MsgExternalTransfer + */ +export class MsgExternalTransfer extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the source subaccount ID + * + * @generated from field: string source_subaccount_id = 2; + */ + sourceSubaccountId = ""; + + /** + * the destination subaccount ID + * + * @generated from field: string destination_subaccount_id = 3; + */ + destinationSubaccountId = ""; + + /** + * the amount to transfer (in chain format) + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExternalTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExternalTransfer { + return new MsgExternalTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExternalTransfer { + return new MsgExternalTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExternalTransfer { + return new MsgExternalTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgExternalTransfer | PlainMessage | undefined, b: MsgExternalTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExternalTransfer, a, b); + } +} + +/** + * MsgExternalTransferResponse defines the Msg/ExternalTransfer response type. + * + * @generated from message injective.exchange.v2.MsgExternalTransferResponse + */ +export class MsgExternalTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExternalTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExternalTransferResponse { + return new MsgExternalTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExternalTransferResponse { + return new MsgExternalTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExternalTransferResponse { + return new MsgExternalTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExternalTransferResponse | PlainMessage | undefined, b: MsgExternalTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExternalTransferResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgLiquidatePosition + * + * @generated from message injective.exchange.v2.MsgLiquidatePosition + */ +export class MsgLiquidatePosition extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID the position belongs to + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the position's market ID + * + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * optional order to provide for liquidation + * + * @generated from field: injective.exchange.v2.DerivativeOrder order = 4; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgLiquidatePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidatePosition { + return new MsgLiquidatePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidatePosition { + return new MsgLiquidatePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidatePosition { + return new MsgLiquidatePosition().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidatePosition | PlainMessage | undefined, b: MsgLiquidatePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidatePosition, a, b); + } +} + +/** + * MsgLiquidatePositionResponse defines the Msg/LiquidatePosition response type. + * + * @generated from message injective.exchange.v2.MsgLiquidatePositionResponse + */ +export class MsgLiquidatePositionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgLiquidatePositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidatePositionResponse { + return new MsgLiquidatePositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidatePositionResponse { + return new MsgLiquidatePositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidatePositionResponse { + return new MsgLiquidatePositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidatePositionResponse | PlainMessage | undefined, b: MsgLiquidatePositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidatePositionResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgOffsetPosition + * + * @generated from message injective.exchange.v2.MsgOffsetPosition + */ +export class MsgOffsetPosition extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * @generated from field: string market_id = 3; + */ + marketId = ""; + + /** + * @generated from field: repeated string offsetting_subaccount_ids = 4; + */ + offsettingSubaccountIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgOffsetPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "offsetting_subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOffsetPosition { + return new MsgOffsetPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOffsetPosition { + return new MsgOffsetPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOffsetPosition { + return new MsgOffsetPosition().fromJsonString(jsonString, options); + } + + static equals(a: MsgOffsetPosition | PlainMessage | undefined, b: MsgOffsetPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOffsetPosition, a, b); + } +} + +/** + * MsgOffsetPositionResponse defines the Msg/OffsetPosition + * response type. + * + * @generated from message injective.exchange.v2.MsgOffsetPositionResponse + */ +export class MsgOffsetPositionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgOffsetPositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgOffsetPositionResponse { + return new MsgOffsetPositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgOffsetPositionResponse { + return new MsgOffsetPositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgOffsetPositionResponse { + return new MsgOffsetPositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgOffsetPositionResponse | PlainMessage | undefined, b: MsgOffsetPositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgOffsetPositionResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgEmergencySettleMarket + * + * @generated from message injective.exchange.v2.MsgEmergencySettleMarket + */ +export class MsgEmergencySettleMarket extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 3; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgEmergencySettleMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmergencySettleMarket { + return new MsgEmergencySettleMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmergencySettleMarket { + return new MsgEmergencySettleMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEmergencySettleMarket { + return new MsgEmergencySettleMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgEmergencySettleMarket | PlainMessage | undefined, b: MsgEmergencySettleMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEmergencySettleMarket, a, b); + } +} + +/** + * MsgEmergencySettleMarketResponse defines the Msg/EmergencySettleMarket + * response type. + * + * @generated from message injective.exchange.v2.MsgEmergencySettleMarketResponse + */ +export class MsgEmergencySettleMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgEmergencySettleMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmergencySettleMarketResponse { + return new MsgEmergencySettleMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmergencySettleMarketResponse { + return new MsgEmergencySettleMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEmergencySettleMarketResponse { + return new MsgEmergencySettleMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEmergencySettleMarketResponse | PlainMessage | undefined, b: MsgEmergencySettleMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEmergencySettleMarketResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgIncreasePositionMargin + * + * @generated from message injective.exchange.v2.MsgIncreasePositionMargin + */ +export class MsgIncreasePositionMargin extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID sending the funds + * + * @generated from field: string source_subaccount_id = 2; + */ + sourceSubaccountId = ""; + + /** + * the subaccount ID the position belongs to + * + * @generated from field: string destination_subaccount_id = 3; + */ + destinationSubaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 4; + */ + marketId = ""; + + /** + * amount defines the amount of margin to add to the position (in human + * readable format) + * + * @generated from field: string amount = 5; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgIncreasePositionMargin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncreasePositionMargin { + return new MsgIncreasePositionMargin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncreasePositionMargin { + return new MsgIncreasePositionMargin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncreasePositionMargin { + return new MsgIncreasePositionMargin().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncreasePositionMargin | PlainMessage | undefined, b: MsgIncreasePositionMargin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncreasePositionMargin, a, b); + } +} + +/** + * MsgIncreasePositionMarginResponse defines the Msg/IncreasePositionMargin + * response type. + * + * @generated from message injective.exchange.v2.MsgIncreasePositionMarginResponse + */ +export class MsgIncreasePositionMarginResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgIncreasePositionMarginResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncreasePositionMarginResponse { + return new MsgIncreasePositionMarginResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncreasePositionMarginResponse { + return new MsgIncreasePositionMarginResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncreasePositionMarginResponse { + return new MsgIncreasePositionMarginResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncreasePositionMarginResponse | PlainMessage | undefined, b: MsgIncreasePositionMarginResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncreasePositionMarginResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgDecreasePositionMargin + * + * @generated from message injective.exchange.v2.MsgDecreasePositionMargin + */ +export class MsgDecreasePositionMargin extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * the subaccount ID the position belongs to + * + * @generated from field: string source_subaccount_id = 2; + */ + sourceSubaccountId = ""; + + /** + * the destination subaccount ID + * + * @generated from field: string destination_subaccount_id = 3; + */ + destinationSubaccountId = ""; + + /** + * the market ID + * + * @generated from field: string market_id = 4; + */ + marketId = ""; + + /** + * amount defines the amount of margin to withdraw from the position (in human + * readable format) + * + * @generated from field: string amount = 5; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDecreasePositionMargin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreasePositionMargin { + return new MsgDecreasePositionMargin().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreasePositionMargin | PlainMessage | undefined, b: MsgDecreasePositionMargin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreasePositionMargin, a, b); + } +} + +/** + * MsgDecreasePositionMarginResponse defines the Msg/MsgDecreasePositionMargin + * response type. + * + * @generated from message injective.exchange.v2.MsgDecreasePositionMarginResponse + */ +export class MsgDecreasePositionMarginResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDecreasePositionMarginResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreasePositionMarginResponse { + return new MsgDecreasePositionMarginResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreasePositionMarginResponse | PlainMessage | undefined, b: MsgDecreasePositionMarginResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreasePositionMarginResponse, a, b); + } +} + +/** + * MsgPrivilegedExecuteContract defines the Msg/Exec message type + * + * @generated from message injective.exchange.v2.MsgPrivilegedExecuteContract + */ +export class MsgPrivilegedExecuteContract extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * funds defines the user's bank coins used to fund the execution (e.g. + * 100inj). + * + * @generated from field: string funds = 2; + */ + funds = ""; + + /** + * contract_address defines the contract address to execute + * + * @generated from field: string contract_address = 3; + */ + contractAddress = ""; + + /** + * data defines the call data used when executing the contract + * + * @generated from field: string data = 4; + */ + data = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgPrivilegedExecuteContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "funds", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPrivilegedExecuteContract { + return new MsgPrivilegedExecuteContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPrivilegedExecuteContract { + return new MsgPrivilegedExecuteContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPrivilegedExecuteContract { + return new MsgPrivilegedExecuteContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgPrivilegedExecuteContract | PlainMessage | undefined, b: MsgPrivilegedExecuteContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPrivilegedExecuteContract, a, b); + } +} + +/** + * MsgPrivilegedExecuteContractResponse defines the Msg/Exec response type. + * + * @generated from message injective.exchange.v2.MsgPrivilegedExecuteContractResponse + */ +export class MsgPrivilegedExecuteContractResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin funds_diff = 1; + */ + fundsDiff: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgPrivilegedExecuteContractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "funds_diff", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPrivilegedExecuteContractResponse { + return new MsgPrivilegedExecuteContractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPrivilegedExecuteContractResponse { + return new MsgPrivilegedExecuteContractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPrivilegedExecuteContractResponse { + return new MsgPrivilegedExecuteContractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPrivilegedExecuteContractResponse | PlainMessage | undefined, b: MsgPrivilegedExecuteContractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPrivilegedExecuteContractResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgRewardsOptOut + * + * @generated from message injective.exchange.v2.MsgRewardsOptOut + */ +export class MsgRewardsOptOut extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgRewardsOptOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRewardsOptOut { + return new MsgRewardsOptOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRewardsOptOut { + return new MsgRewardsOptOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRewardsOptOut { + return new MsgRewardsOptOut().fromJsonString(jsonString, options); + } + + static equals(a: MsgRewardsOptOut | PlainMessage | undefined, b: MsgRewardsOptOut | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRewardsOptOut, a, b); + } +} + +/** + * MsgRewardsOptOutResponse defines the Msg/RewardsOptOut response type. + * + * @generated from message injective.exchange.v2.MsgRewardsOptOutResponse + */ +export class MsgRewardsOptOutResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgRewardsOptOutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRewardsOptOutResponse { + return new MsgRewardsOptOutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRewardsOptOutResponse { + return new MsgRewardsOptOutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRewardsOptOutResponse { + return new MsgRewardsOptOutResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRewardsOptOutResponse | PlainMessage | undefined, b: MsgRewardsOptOutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRewardsOptOutResponse, a, b); + } +} + +/** + * A Cosmos-SDK MsgReclaimLockedFunds + * + * @generated from message injective.exchange.v2.MsgReclaimLockedFunds + */ +export class MsgReclaimLockedFunds extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: bytes lockedAccountPubKey = 2; + */ + lockedAccountPubKey = new Uint8Array(0); + + /** + * @generated from field: bytes signature = 3; + */ + signature = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgReclaimLockedFunds"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockedAccountPubKey", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgReclaimLockedFunds { + return new MsgReclaimLockedFunds().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgReclaimLockedFunds { + return new MsgReclaimLockedFunds().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgReclaimLockedFunds { + return new MsgReclaimLockedFunds().fromJsonString(jsonString, options); + } + + static equals(a: MsgReclaimLockedFunds | PlainMessage | undefined, b: MsgReclaimLockedFunds | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgReclaimLockedFunds, a, b); + } +} + +/** + * MsgReclaimLockedFundsResponse defines the Msg/ReclaimLockedFunds response + * type. + * + * @generated from message injective.exchange.v2.MsgReclaimLockedFundsResponse + */ +export class MsgReclaimLockedFundsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgReclaimLockedFundsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgReclaimLockedFundsResponse { + return new MsgReclaimLockedFundsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgReclaimLockedFundsResponse { + return new MsgReclaimLockedFundsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgReclaimLockedFundsResponse { + return new MsgReclaimLockedFundsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgReclaimLockedFundsResponse | PlainMessage | undefined, b: MsgReclaimLockedFundsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgReclaimLockedFundsResponse, a, b); + } +} + +/** + * MsgSignData defines an arbitrary, general-purpose, off-chain message + * + * @generated from message injective.exchange.v2.MsgSignData + */ +export class MsgSignData extends Message { + /** + * Signer is the sdk.AccAddress of the message signer + * + * @generated from field: bytes Signer = 1; + */ + Signer = new Uint8Array(0); + + /** + * Data represents the raw bytes of the content that is signed (text, json, + * etc) + * + * @generated from field: bytes Data = 2; + */ + Data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSignData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Signer", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "Data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSignData { + return new MsgSignData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSignData { + return new MsgSignData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSignData { + return new MsgSignData().fromJsonString(jsonString, options); + } + + static equals(a: MsgSignData | PlainMessage | undefined, b: MsgSignData | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSignData, a, b); + } +} + +/** + * MsgSignDoc defines an arbitrary, general-purpose, off-chain message + * + * @generated from message injective.exchange.v2.MsgSignDoc + */ +export class MsgSignDoc extends Message { + /** + * @generated from field: string sign_type = 1; + */ + signType = ""; + + /** + * @generated from field: injective.exchange.v2.MsgSignData value = 2; + */ + value?: MsgSignData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSignDoc"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sign_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "message", T: MsgSignData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSignDoc { + return new MsgSignDoc().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSignDoc { + return new MsgSignDoc().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSignDoc { + return new MsgSignDoc().fromJsonString(jsonString, options); + } + + static equals(a: MsgSignDoc | PlainMessage | undefined, b: MsgSignDoc | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSignDoc, a, b); + } +} + +/** + * MsgAdminUpdateBinaryOptionsMarket is used by the market Admin to operate the + * market + * + * @generated from message injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket + */ +export class MsgAdminUpdateBinaryOptionsMarket extends Message { + /** + * The sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * The market ID + * + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * new price at which market will be settled + * + * @generated from field: string settlement_price = 3; + */ + settlementPrice = ""; + + /** + * expiration timestamp + * + * @generated from field: int64 expiration_timestamp = 4; + */ + expirationTimestamp = protoInt64.zero; + + /** + * expiration timestamp + * + * @generated from field: int64 settlement_timestamp = 5; + */ + settlementTimestamp = protoInt64.zero; + + /** + * Status of the market + * + * @generated from field: injective.exchange.v2.MarketStatus status = 6; + */ + status = MarketStatus.Unspecified; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "settlement_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expiration_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "settlement_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(MarketStatus) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAdminUpdateBinaryOptionsMarket { + return new MsgAdminUpdateBinaryOptionsMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAdminUpdateBinaryOptionsMarket { + return new MsgAdminUpdateBinaryOptionsMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAdminUpdateBinaryOptionsMarket { + return new MsgAdminUpdateBinaryOptionsMarket().fromJsonString(jsonString, options); + } + + static equals(a: MsgAdminUpdateBinaryOptionsMarket | PlainMessage | undefined, b: MsgAdminUpdateBinaryOptionsMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAdminUpdateBinaryOptionsMarket, a, b); + } +} + +/** + * MsgAdminUpdateBinaryOptionsMarketResponse is the response for + * AdminUpdateBinaryOptionsMarket rpc method + * + * @generated from message injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarketResponse + */ +export class MsgAdminUpdateBinaryOptionsMarketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAdminUpdateBinaryOptionsMarketResponse { + return new MsgAdminUpdateBinaryOptionsMarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAdminUpdateBinaryOptionsMarketResponse { + return new MsgAdminUpdateBinaryOptionsMarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAdminUpdateBinaryOptionsMarketResponse { + return new MsgAdminUpdateBinaryOptionsMarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAdminUpdateBinaryOptionsMarketResponse | PlainMessage | undefined, b: MsgAdminUpdateBinaryOptionsMarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAdminUpdateBinaryOptionsMarketResponse, a, b); + } +} + +/** + * MsgAuthorizeStakeGrants grants stakes to grantees. + * + * @generated from message injective.exchange.v2.MsgAuthorizeStakeGrants + */ +export class MsgAuthorizeStakeGrants extends Message { + /** + * Injective address of the stake granter + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * list of stake grants to authorize (mandatory) + * + * @generated from field: repeated injective.exchange.v2.GrantAuthorization grants = 2; + */ + grants: GrantAuthorization[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAuthorizeStakeGrants"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeStakeGrants { + return new MsgAuthorizeStakeGrants().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeStakeGrants | PlainMessage | undefined, b: MsgAuthorizeStakeGrants | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeStakeGrants, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgAuthorizeStakeGrantsResponse + */ +export class MsgAuthorizeStakeGrantsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAuthorizeStakeGrantsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeStakeGrantsResponse { + return new MsgAuthorizeStakeGrantsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAuthorizeStakeGrantsResponse | PlainMessage | undefined, b: MsgAuthorizeStakeGrantsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAuthorizeStakeGrantsResponse, a, b); + } +} + +/** + * MsgActivateStakeGrant allows a grantee to activate a stake grant. + * + * @generated from message injective.exchange.v2.MsgActivateStakeGrant + */ +export class MsgActivateStakeGrant extends Message { + /** + * Injective address of the stake grantee + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Injective address of the stake granter + * + * @generated from field: string granter = 2; + */ + granter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgActivateStakeGrant"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateStakeGrant { + return new MsgActivateStakeGrant().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateStakeGrant | PlainMessage | undefined, b: MsgActivateStakeGrant | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateStakeGrant, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgActivateStakeGrantResponse + */ +export class MsgActivateStakeGrantResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgActivateStakeGrantResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateStakeGrantResponse { + return new MsgActivateStakeGrantResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateStakeGrantResponse | PlainMessage | undefined, b: MsgActivateStakeGrantResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateStakeGrantResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBatchExchangeModification + */ +export class MsgBatchExchangeModification extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.BatchExchangeModificationProposal proposal = 2; + */ + proposal?: BatchExchangeModificationProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchExchangeModification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: BatchExchangeModificationProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchExchangeModification { + return new MsgBatchExchangeModification().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchExchangeModification | PlainMessage | undefined, b: MsgBatchExchangeModification | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchExchangeModification, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBatchExchangeModificationResponse + */ +export class MsgBatchExchangeModificationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchExchangeModificationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchExchangeModificationResponse { + return new MsgBatchExchangeModificationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchExchangeModificationResponse | PlainMessage | undefined, b: MsgBatchExchangeModificationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchExchangeModificationResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgSpotMarketLaunch + */ +export class MsgSpotMarketLaunch extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.SpotMarketLaunchProposal proposal = 2; + */ + proposal?: SpotMarketLaunchProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSpotMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: SpotMarketLaunchProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSpotMarketLaunch { + return new MsgSpotMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSpotMarketLaunch { + return new MsgSpotMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSpotMarketLaunch { + return new MsgSpotMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgSpotMarketLaunch | PlainMessage | undefined, b: MsgSpotMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSpotMarketLaunch, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgSpotMarketLaunchResponse + */ +export class MsgSpotMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSpotMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSpotMarketLaunchResponse { + return new MsgSpotMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSpotMarketLaunchResponse { + return new MsgSpotMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSpotMarketLaunchResponse { + return new MsgSpotMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSpotMarketLaunchResponse | PlainMessage | undefined, b: MsgSpotMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSpotMarketLaunchResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgPerpetualMarketLaunch + */ +export class MsgPerpetualMarketLaunch extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.PerpetualMarketLaunchProposal proposal = 2; + */ + proposal?: PerpetualMarketLaunchProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgPerpetualMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: PerpetualMarketLaunchProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerpetualMarketLaunch { + return new MsgPerpetualMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerpetualMarketLaunch { + return new MsgPerpetualMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerpetualMarketLaunch { + return new MsgPerpetualMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerpetualMarketLaunch | PlainMessage | undefined, b: MsgPerpetualMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerpetualMarketLaunch, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgPerpetualMarketLaunchResponse + */ +export class MsgPerpetualMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgPerpetualMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPerpetualMarketLaunchResponse { + return new MsgPerpetualMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPerpetualMarketLaunchResponse { + return new MsgPerpetualMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPerpetualMarketLaunchResponse { + return new MsgPerpetualMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPerpetualMarketLaunchResponse | PlainMessage | undefined, b: MsgPerpetualMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPerpetualMarketLaunchResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgExpiryFuturesMarketLaunch + */ +export class MsgExpiryFuturesMarketLaunch extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.ExpiryFuturesMarketLaunchProposal proposal = 2; + */ + proposal?: ExpiryFuturesMarketLaunchProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExpiryFuturesMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: ExpiryFuturesMarketLaunchProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExpiryFuturesMarketLaunch { + return new MsgExpiryFuturesMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExpiryFuturesMarketLaunch { + return new MsgExpiryFuturesMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExpiryFuturesMarketLaunch { + return new MsgExpiryFuturesMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgExpiryFuturesMarketLaunch | PlainMessage | undefined, b: MsgExpiryFuturesMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExpiryFuturesMarketLaunch, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgExpiryFuturesMarketLaunchResponse + */ +export class MsgExpiryFuturesMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExpiryFuturesMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExpiryFuturesMarketLaunchResponse { + return new MsgExpiryFuturesMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExpiryFuturesMarketLaunchResponse { + return new MsgExpiryFuturesMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExpiryFuturesMarketLaunchResponse { + return new MsgExpiryFuturesMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExpiryFuturesMarketLaunchResponse | PlainMessage | undefined, b: MsgExpiryFuturesMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExpiryFuturesMarketLaunchResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBinaryOptionsMarketLaunch + */ +export class MsgBinaryOptionsMarketLaunch extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.BinaryOptionsMarketLaunchProposal proposal = 2; + */ + proposal?: BinaryOptionsMarketLaunchProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBinaryOptionsMarketLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: BinaryOptionsMarketLaunchProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBinaryOptionsMarketLaunch { + return new MsgBinaryOptionsMarketLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBinaryOptionsMarketLaunch { + return new MsgBinaryOptionsMarketLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBinaryOptionsMarketLaunch { + return new MsgBinaryOptionsMarketLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgBinaryOptionsMarketLaunch | PlainMessage | undefined, b: MsgBinaryOptionsMarketLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBinaryOptionsMarketLaunch, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBinaryOptionsMarketLaunchResponse + */ +export class MsgBinaryOptionsMarketLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBinaryOptionsMarketLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBinaryOptionsMarketLaunchResponse { + return new MsgBinaryOptionsMarketLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBinaryOptionsMarketLaunchResponse { + return new MsgBinaryOptionsMarketLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBinaryOptionsMarketLaunchResponse { + return new MsgBinaryOptionsMarketLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBinaryOptionsMarketLaunchResponse | PlainMessage | undefined, b: MsgBinaryOptionsMarketLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBinaryOptionsMarketLaunchResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBatchCommunityPoolSpend + */ +export class MsgBatchCommunityPoolSpend extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.BatchCommunityPoolSpendProposal proposal = 2; + */ + proposal?: BatchCommunityPoolSpendProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCommunityPoolSpend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: BatchCommunityPoolSpendProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCommunityPoolSpend { + return new MsgBatchCommunityPoolSpend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCommunityPoolSpend { + return new MsgBatchCommunityPoolSpend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCommunityPoolSpend { + return new MsgBatchCommunityPoolSpend().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCommunityPoolSpend | PlainMessage | undefined, b: MsgBatchCommunityPoolSpend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCommunityPoolSpend, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBatchCommunityPoolSpendResponse + */ +export class MsgBatchCommunityPoolSpendResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBatchCommunityPoolSpendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchCommunityPoolSpendResponse { + return new MsgBatchCommunityPoolSpendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchCommunityPoolSpendResponse { + return new MsgBatchCommunityPoolSpendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchCommunityPoolSpendResponse { + return new MsgBatchCommunityPoolSpendResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchCommunityPoolSpendResponse | PlainMessage | undefined, b: MsgBatchCommunityPoolSpendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchCommunityPoolSpendResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgSpotMarketParamUpdate + */ +export class MsgSpotMarketParamUpdate extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.SpotMarketParamUpdateProposal proposal = 2; + */ + proposal?: SpotMarketParamUpdateProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSpotMarketParamUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: SpotMarketParamUpdateProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSpotMarketParamUpdate { + return new MsgSpotMarketParamUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSpotMarketParamUpdate { + return new MsgSpotMarketParamUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSpotMarketParamUpdate { + return new MsgSpotMarketParamUpdate().fromJsonString(jsonString, options); + } + + static equals(a: MsgSpotMarketParamUpdate | PlainMessage | undefined, b: MsgSpotMarketParamUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSpotMarketParamUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgSpotMarketParamUpdateResponse + */ +export class MsgSpotMarketParamUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgSpotMarketParamUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSpotMarketParamUpdateResponse { + return new MsgSpotMarketParamUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSpotMarketParamUpdateResponse { + return new MsgSpotMarketParamUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSpotMarketParamUpdateResponse { + return new MsgSpotMarketParamUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSpotMarketParamUpdateResponse | PlainMessage | undefined, b: MsgSpotMarketParamUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSpotMarketParamUpdateResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgDerivativeMarketParamUpdate + */ +export class MsgDerivativeMarketParamUpdate extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.DerivativeMarketParamUpdateProposal proposal = 2; + */ + proposal?: DerivativeMarketParamUpdateProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDerivativeMarketParamUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: DerivativeMarketParamUpdateProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDerivativeMarketParamUpdate { + return new MsgDerivativeMarketParamUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDerivativeMarketParamUpdate { + return new MsgDerivativeMarketParamUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDerivativeMarketParamUpdate { + return new MsgDerivativeMarketParamUpdate().fromJsonString(jsonString, options); + } + + static equals(a: MsgDerivativeMarketParamUpdate | PlainMessage | undefined, b: MsgDerivativeMarketParamUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDerivativeMarketParamUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgDerivativeMarketParamUpdateResponse + */ +export class MsgDerivativeMarketParamUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgDerivativeMarketParamUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDerivativeMarketParamUpdateResponse { + return new MsgDerivativeMarketParamUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDerivativeMarketParamUpdateResponse { + return new MsgDerivativeMarketParamUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDerivativeMarketParamUpdateResponse { + return new MsgDerivativeMarketParamUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDerivativeMarketParamUpdateResponse | PlainMessage | undefined, b: MsgDerivativeMarketParamUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDerivativeMarketParamUpdateResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBinaryOptionsMarketParamUpdate + */ +export class MsgBinaryOptionsMarketParamUpdate extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.BinaryOptionsMarketParamUpdateProposal proposal = 2; + */ + proposal?: BinaryOptionsMarketParamUpdateProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBinaryOptionsMarketParamUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: BinaryOptionsMarketParamUpdateProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBinaryOptionsMarketParamUpdate { + return new MsgBinaryOptionsMarketParamUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBinaryOptionsMarketParamUpdate { + return new MsgBinaryOptionsMarketParamUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBinaryOptionsMarketParamUpdate { + return new MsgBinaryOptionsMarketParamUpdate().fromJsonString(jsonString, options); + } + + static equals(a: MsgBinaryOptionsMarketParamUpdate | PlainMessage | undefined, b: MsgBinaryOptionsMarketParamUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBinaryOptionsMarketParamUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgBinaryOptionsMarketParamUpdateResponse + */ +export class MsgBinaryOptionsMarketParamUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgBinaryOptionsMarketParamUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBinaryOptionsMarketParamUpdateResponse { + return new MsgBinaryOptionsMarketParamUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBinaryOptionsMarketParamUpdateResponse { + return new MsgBinaryOptionsMarketParamUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBinaryOptionsMarketParamUpdateResponse { + return new MsgBinaryOptionsMarketParamUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBinaryOptionsMarketParamUpdateResponse | PlainMessage | undefined, b: MsgBinaryOptionsMarketParamUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBinaryOptionsMarketParamUpdateResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgMarketForcedSettlement + */ +export class MsgMarketForcedSettlement extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.MarketForcedSettlementProposal proposal = 2; + */ + proposal?: MarketForcedSettlementProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgMarketForcedSettlement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: MarketForcedSettlementProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMarketForcedSettlement { + return new MsgMarketForcedSettlement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMarketForcedSettlement { + return new MsgMarketForcedSettlement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMarketForcedSettlement { + return new MsgMarketForcedSettlement().fromJsonString(jsonString, options); + } + + static equals(a: MsgMarketForcedSettlement | PlainMessage | undefined, b: MsgMarketForcedSettlement | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMarketForcedSettlement, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgMarketForcedSettlementResponse + */ +export class MsgMarketForcedSettlementResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgMarketForcedSettlementResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMarketForcedSettlementResponse { + return new MsgMarketForcedSettlementResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMarketForcedSettlementResponse { + return new MsgMarketForcedSettlementResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMarketForcedSettlementResponse { + return new MsgMarketForcedSettlementResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMarketForcedSettlementResponse | PlainMessage | undefined, b: MsgMarketForcedSettlementResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMarketForcedSettlementResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardCampaignLaunch + */ +export class MsgTradingRewardCampaignLaunch extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignLaunchProposal proposal = 2; + */ + proposal?: TradingRewardCampaignLaunchProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardCampaignLaunch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: TradingRewardCampaignLaunchProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardCampaignLaunch { + return new MsgTradingRewardCampaignLaunch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardCampaignLaunch { + return new MsgTradingRewardCampaignLaunch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardCampaignLaunch { + return new MsgTradingRewardCampaignLaunch().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardCampaignLaunch | PlainMessage | undefined, b: MsgTradingRewardCampaignLaunch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardCampaignLaunch, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardCampaignLaunchResponse + */ +export class MsgTradingRewardCampaignLaunchResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardCampaignLaunchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardCampaignLaunchResponse { + return new MsgTradingRewardCampaignLaunchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardCampaignLaunchResponse { + return new MsgTradingRewardCampaignLaunchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardCampaignLaunchResponse { + return new MsgTradingRewardCampaignLaunchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardCampaignLaunchResponse | PlainMessage | undefined, b: MsgTradingRewardCampaignLaunchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardCampaignLaunchResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgExchangeEnable + */ +export class MsgExchangeEnable extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.ExchangeEnableProposal proposal = 2; + */ + proposal?: ExchangeEnableProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExchangeEnable"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: ExchangeEnableProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExchangeEnable { + return new MsgExchangeEnable().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExchangeEnable { + return new MsgExchangeEnable().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExchangeEnable { + return new MsgExchangeEnable().fromJsonString(jsonString, options); + } + + static equals(a: MsgExchangeEnable | PlainMessage | undefined, b: MsgExchangeEnable | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExchangeEnable, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgExchangeEnableResponse + */ +export class MsgExchangeEnableResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgExchangeEnableResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExchangeEnableResponse { + return new MsgExchangeEnableResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExchangeEnableResponse { + return new MsgExchangeEnableResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExchangeEnableResponse { + return new MsgExchangeEnableResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExchangeEnableResponse | PlainMessage | undefined, b: MsgExchangeEnableResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExchangeEnableResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardCampaignUpdate + */ +export class MsgTradingRewardCampaignUpdate extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.TradingRewardCampaignUpdateProposal proposal = 2; + */ + proposal?: TradingRewardCampaignUpdateProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardCampaignUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: TradingRewardCampaignUpdateProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardCampaignUpdate { + return new MsgTradingRewardCampaignUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardCampaignUpdate { + return new MsgTradingRewardCampaignUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardCampaignUpdate { + return new MsgTradingRewardCampaignUpdate().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardCampaignUpdate | PlainMessage | undefined, b: MsgTradingRewardCampaignUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardCampaignUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardCampaignUpdateResponse + */ +export class MsgTradingRewardCampaignUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardCampaignUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardCampaignUpdateResponse { + return new MsgTradingRewardCampaignUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardCampaignUpdateResponse { + return new MsgTradingRewardCampaignUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardCampaignUpdateResponse { + return new MsgTradingRewardCampaignUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardCampaignUpdateResponse | PlainMessage | undefined, b: MsgTradingRewardCampaignUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardCampaignUpdateResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardPendingPointsUpdate + */ +export class MsgTradingRewardPendingPointsUpdate extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.TradingRewardPendingPointsUpdateProposal proposal = 2; + */ + proposal?: TradingRewardPendingPointsUpdateProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardPendingPointsUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: TradingRewardPendingPointsUpdateProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardPendingPointsUpdate { + return new MsgTradingRewardPendingPointsUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardPendingPointsUpdate { + return new MsgTradingRewardPendingPointsUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardPendingPointsUpdate { + return new MsgTradingRewardPendingPointsUpdate().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardPendingPointsUpdate | PlainMessage | undefined, b: MsgTradingRewardPendingPointsUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardPendingPointsUpdate, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgTradingRewardPendingPointsUpdateResponse + */ +export class MsgTradingRewardPendingPointsUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgTradingRewardPendingPointsUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTradingRewardPendingPointsUpdateResponse { + return new MsgTradingRewardPendingPointsUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTradingRewardPendingPointsUpdateResponse { + return new MsgTradingRewardPendingPointsUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTradingRewardPendingPointsUpdateResponse { + return new MsgTradingRewardPendingPointsUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTradingRewardPendingPointsUpdateResponse | PlainMessage | undefined, b: MsgTradingRewardPendingPointsUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTradingRewardPendingPointsUpdateResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgFeeDiscount + */ +export class MsgFeeDiscount extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.FeeDiscountProposal proposal = 2; + */ + proposal?: FeeDiscountProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgFeeDiscount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: FeeDiscountProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeeDiscount { + return new MsgFeeDiscount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeeDiscount { + return new MsgFeeDiscount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeeDiscount { + return new MsgFeeDiscount().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeeDiscount | PlainMessage | undefined, b: MsgFeeDiscount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeeDiscount, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgFeeDiscountResponse + */ +export class MsgFeeDiscountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgFeeDiscountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFeeDiscountResponse { + return new MsgFeeDiscountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFeeDiscountResponse { + return new MsgFeeDiscountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFeeDiscountResponse { + return new MsgFeeDiscountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFeeDiscountResponse | PlainMessage | undefined, b: MsgFeeDiscountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFeeDiscountResponse, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgAtomicMarketOrderFeeMultiplierSchedule + */ +export class MsgAtomicMarketOrderFeeMultiplierSchedule extends Message { + /** + * message sender, that is also the TX signer + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: injective.exchange.v2.AtomicMarketOrderFeeMultiplierScheduleProposal proposal = 2; + */ + proposal?: AtomicMarketOrderFeeMultiplierScheduleProposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAtomicMarketOrderFeeMultiplierSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "message", T: AtomicMarketOrderFeeMultiplierScheduleProposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAtomicMarketOrderFeeMultiplierSchedule { + return new MsgAtomicMarketOrderFeeMultiplierSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAtomicMarketOrderFeeMultiplierSchedule { + return new MsgAtomicMarketOrderFeeMultiplierSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAtomicMarketOrderFeeMultiplierSchedule { + return new MsgAtomicMarketOrderFeeMultiplierSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MsgAtomicMarketOrderFeeMultiplierSchedule | PlainMessage | undefined, b: MsgAtomicMarketOrderFeeMultiplierSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAtomicMarketOrderFeeMultiplierSchedule, a, b); + } +} + +/** + * @generated from message injective.exchange.v2.MsgAtomicMarketOrderFeeMultiplierScheduleResponse + */ +export class MsgAtomicMarketOrderFeeMultiplierScheduleResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgAtomicMarketOrderFeeMultiplierScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAtomicMarketOrderFeeMultiplierScheduleResponse { + return new MsgAtomicMarketOrderFeeMultiplierScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAtomicMarketOrderFeeMultiplierScheduleResponse { + return new MsgAtomicMarketOrderFeeMultiplierScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAtomicMarketOrderFeeMultiplierScheduleResponse { + return new MsgAtomicMarketOrderFeeMultiplierScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAtomicMarketOrderFeeMultiplierScheduleResponse | PlainMessage | undefined, b: MsgAtomicMarketOrderFeeMultiplierScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAtomicMarketOrderFeeMultiplierScheduleResponse, a, b); + } +} + +/** + * MsgCancelPostOnlyMode defines a message for canceling post-only mode + * + * @generated from message injective.exchange.v2.MsgCancelPostOnlyMode + */ +export class MsgCancelPostOnlyMode extends Message { + /** + * the sender's Injective address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelPostOnlyMode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPostOnlyMode { + return new MsgCancelPostOnlyMode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPostOnlyMode { + return new MsgCancelPostOnlyMode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPostOnlyMode { + return new MsgCancelPostOnlyMode().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPostOnlyMode | PlainMessage | undefined, b: MsgCancelPostOnlyMode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPostOnlyMode, a, b); + } +} + +/** + * MsgCancelPostOnlyModeResponse defines the response for MsgCancelPostOnlyMode + * + * @generated from message injective.exchange.v2.MsgCancelPostOnlyModeResponse + */ +export class MsgCancelPostOnlyModeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.exchange.v2.MsgCancelPostOnlyModeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPostOnlyModeResponse { + return new MsgCancelPostOnlyModeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPostOnlyModeResponse { + return new MsgCancelPostOnlyModeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPostOnlyModeResponse { + return new MsgCancelPostOnlyModeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPostOnlyModeResponse | PlainMessage | undefined, b: MsgCancelPostOnlyModeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPostOnlyModeResponse, a, b); + } +} + diff --git a/src/protobufs/injective/oracle/v1beta1/events_pb.ts b/src/protobufs/injective/oracle/v1beta1/events_pb.ts index 4a868853..6394e7ac 100644 --- a/src/protobufs/injective/oracle/v1beta1/events_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/events_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PythPriceState } from "./oracle_pb.js"; +import { PythPriceState, StorkPriceState } from "./oracle_pb.js"; /** * @generated from message injective.oracle.v1beta1.SetChainlinkPriceEvent @@ -470,6 +470,43 @@ export class SetCoinbasePriceEvent extends Message { } } +/** + * @generated from message injective.oracle.v1beta1.EventSetStorkPrices + */ +export class EventSetStorkPrices extends Message { + /** + * @generated from field: repeated injective.oracle.v1beta1.StorkPriceState prices = 1; + */ + prices: StorkPriceState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.EventSetStorkPrices"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "prices", kind: "message", T: StorkPriceState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetStorkPrices { + return new EventSetStorkPrices().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetStorkPrices { + return new EventSetStorkPrices().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetStorkPrices { + return new EventSetStorkPrices().fromJsonString(jsonString, options); + } + + static equals(a: EventSetStorkPrices | PlainMessage | undefined, b: EventSetStorkPrices | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetStorkPrices, a, b); + } +} + /** * @generated from message injective.oracle.v1beta1.EventSetPythPrices */ diff --git a/src/protobufs/injective/oracle/v1beta1/genesis_pb.ts b/src/protobufs/injective/oracle/v1beta1/genesis_pb.ts index 58aebac4..affb3f48 100644 --- a/src/protobufs/injective/oracle/v1beta1/genesis_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/genesis_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BandIBCParams, BandOracleRequest, BandPriceState, ChainlinkPriceState, CoinbasePriceState, Params, PriceFeedState, PriceRecords, ProviderState, PythPriceState } from "./oracle_pb.js"; +import { BandIBCParams, BandOracleRequest, BandPriceState, ChainlinkPriceState, CoinbasePriceState, Params, PriceFeedState, PriceRecords, ProviderState, PythPriceState, StorkPriceState } from "./oracle_pb.js"; /** * GenesisState defines the oracle module's genesis state. @@ -90,6 +90,16 @@ export class GenesisState extends Message { */ pythPriceStates: PythPriceState[] = []; + /** + * @generated from field: repeated injective.oracle.v1beta1.StorkPriceState stork_price_states = 16; + */ + storkPriceStates: StorkPriceState[] = []; + + /** + * @generated from field: repeated string stork_publishers = 17; + */ + storkPublishers: string[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -113,6 +123,8 @@ export class GenesisState extends Message { { no: 13, name: "historical_price_records", kind: "message", T: PriceRecords, repeated: true }, { no: 14, name: "provider_states", kind: "message", T: ProviderState, repeated: true }, { no: 15, name: "pyth_price_states", kind: "message", T: PythPriceState, repeated: true }, + { no: 16, name: "stork_price_states", kind: "message", T: StorkPriceState, repeated: true }, + { no: 17, name: "stork_publishers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/injective/oracle/v1beta1/oracle_pb.ts b/src/protobufs/injective/oracle/v1beta1/oracle_pb.ts index 7ac1ddde..dd16a85b 100644 --- a/src/protobufs/injective/oracle/v1beta1/oracle_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/oracle_pb.ts @@ -70,6 +70,11 @@ export enum OracleType { * @generated from enum value: Provider = 11; */ Provider = 11, + + /** + * @generated from enum value: Stork = 12; + */ + Stork = 12, } // Retrieve enum metadata with: proto3.getEnumType(OracleType) proto3.util.setEnumType(OracleType, "injective.oracle.v1beta1.OracleType", [ @@ -85,6 +90,7 @@ proto3.util.setEnumType(OracleType, "injective.oracle.v1beta1.OracleType", [ { no: 9, name: "Pyth" }, { no: 10, name: "BandIBC" }, { no: 11, name: "Provider" }, + { no: 12, name: "Stork" }, ]); /** @@ -618,6 +624,69 @@ export class CoinbasePriceState extends Message { } } +/** + * @generated from message injective.oracle.v1beta1.StorkPriceState + */ +export class StorkPriceState extends Message { + /** + * timestamp of the when the price was signed by stork + * + * @generated from field: uint64 timestamp = 1; + */ + timestamp = protoInt64.zero; + + /** + * the symbol of the price, e.g. BTC + * + * @generated from field: string symbol = 2; + */ + symbol = ""; + + /** + * the value of the price scaled by 1e18 + * + * @generated from field: string value = 3; + */ + value = ""; + + /** + * the price state + * + * @generated from field: injective.oracle.v1beta1.PriceState price_state = 5; + */ + priceState?: PriceState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.StorkPriceState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "price_state", kind: "message", T: PriceState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StorkPriceState { + return new StorkPriceState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StorkPriceState { + return new StorkPriceState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StorkPriceState { + return new StorkPriceState().fromJsonString(jsonString, options); + } + + static equals(a: StorkPriceState | PlainMessage | undefined, b: StorkPriceState | PlainMessage | undefined): boolean { + return proto3.util.equals(StorkPriceState, a, b); + } +} + /** * @generated from message injective.oracle.v1beta1.PriceState */ @@ -1292,3 +1361,101 @@ export class PriceAttestation extends Message { } } +/** + * @generated from message injective.oracle.v1beta1.AssetPair + */ +export class AssetPair extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: repeated injective.oracle.v1beta1.SignedPriceOfAssetPair signed_prices = 2; + */ + signedPrices: SignedPriceOfAssetPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.AssetPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "signed_prices", kind: "message", T: SignedPriceOfAssetPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetPair { + return new AssetPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetPair { + return new AssetPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetPair { + return new AssetPair().fromJsonString(jsonString, options); + } + + static equals(a: AssetPair | PlainMessage | undefined, b: AssetPair | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetPair, a, b); + } +} + +/** + * @generated from message injective.oracle.v1beta1.SignedPriceOfAssetPair + */ +export class SignedPriceOfAssetPair extends Message { + /** + * @generated from field: string publisher_key = 1; + */ + publisherKey = ""; + + /** + * @generated from field: uint64 timestamp = 2; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: bytes signature = 4; + */ + signature = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.SignedPriceOfAssetPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "publisher_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignedPriceOfAssetPair { + return new SignedPriceOfAssetPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignedPriceOfAssetPair { + return new SignedPriceOfAssetPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignedPriceOfAssetPair { + return new SignedPriceOfAssetPair().fromJsonString(jsonString, options); + } + + static equals(a: SignedPriceOfAssetPair | PlainMessage | undefined, b: SignedPriceOfAssetPair | PlainMessage | undefined): boolean { + return proto3.util.equals(SignedPriceOfAssetPair, a, b); + } +} + diff --git a/src/protobufs/injective/oracle/v1beta1/proposal_pb.ts b/src/protobufs/injective/oracle/v1beta1/proposal_pb.ts index 880737dd..a9f81a75 100644 --- a/src/protobufs/injective/oracle/v1beta1/proposal_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/proposal_pb.ts @@ -490,3 +490,101 @@ export class EnableBandIBCProposal extends Message { } } +/** + * @generated from message injective.oracle.v1beta1.GrantStorkPublisherPrivilegeProposal + */ +export class GrantStorkPublisherPrivilegeProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated string stork_publishers = 3; + */ + storkPublishers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.GrantStorkPublisherPrivilegeProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "stork_publishers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GrantStorkPublisherPrivilegeProposal { + return new GrantStorkPublisherPrivilegeProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GrantStorkPublisherPrivilegeProposal { + return new GrantStorkPublisherPrivilegeProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GrantStorkPublisherPrivilegeProposal { + return new GrantStorkPublisherPrivilegeProposal().fromJsonString(jsonString, options); + } + + static equals(a: GrantStorkPublisherPrivilegeProposal | PlainMessage | undefined, b: GrantStorkPublisherPrivilegeProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(GrantStorkPublisherPrivilegeProposal, a, b); + } +} + +/** + * @generated from message injective.oracle.v1beta1.RevokeStorkPublisherPrivilegeProposal + */ +export class RevokeStorkPublisherPrivilegeProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated string stork_publishers = 3; + */ + storkPublishers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.RevokeStorkPublisherPrivilegeProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "stork_publishers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RevokeStorkPublisherPrivilegeProposal { + return new RevokeStorkPublisherPrivilegeProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RevokeStorkPublisherPrivilegeProposal { + return new RevokeStorkPublisherPrivilegeProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RevokeStorkPublisherPrivilegeProposal { + return new RevokeStorkPublisherPrivilegeProposal().fromJsonString(jsonString, options); + } + + static equals(a: RevokeStorkPublisherPrivilegeProposal | PlainMessage | undefined, b: RevokeStorkPublisherPrivilegeProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(RevokeStorkPublisherPrivilegeProposal, a, b); + } +} + diff --git a/src/protobufs/injective/oracle/v1beta1/query_cosmes.ts b/src/protobufs/injective/oracle/v1beta1/query_cosmes.ts index 36a0a6c9..d9dd2bd8 100644 --- a/src/protobufs/injective/oracle/v1beta1/query_cosmes.ts +++ b/src/protobufs/injective/oracle/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryBandIBCPriceStatesRequest, QueryBandIBCPriceStatesResponse, QueryBandPriceStatesRequest, QueryBandPriceStatesResponse, QueryBandRelayersRequest, QueryBandRelayersResponse, QueryCoinbasePriceStatesRequest, QueryCoinbasePriceStatesResponse, QueryHistoricalPriceRecordsRequest, QueryHistoricalPriceRecordsResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryOraclePriceRequest, QueryOraclePriceResponse, QueryOracleProviderPricesRequest, QueryOracleProviderPricesResponse, QueryOracleProvidersInfoRequest, QueryOracleProvidersInfoResponse, QueryOracleVolatilityRequest, QueryOracleVolatilityResponse, QueryParamsRequest, QueryParamsResponse, QueryPriceFeedPriceStatesRequest, QueryPriceFeedPriceStatesResponse, QueryProviderPriceStateRequest, QueryProviderPriceStateResponse, QueryPythPriceRequest, QueryPythPriceResponse, QueryPythPriceStatesRequest, QueryPythPriceStatesResponse } from "./query_pb.js"; +import { QueryBandIBCPriceStatesRequest, QueryBandIBCPriceStatesResponse, QueryBandPriceStatesRequest, QueryBandPriceStatesResponse, QueryBandRelayersRequest, QueryBandRelayersResponse, QueryCoinbasePriceStatesRequest, QueryCoinbasePriceStatesResponse, QueryHistoricalPriceRecordsRequest, QueryHistoricalPriceRecordsResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryOraclePriceRequest, QueryOraclePriceResponse, QueryOracleProviderPricesRequest, QueryOracleProviderPricesResponse, QueryOracleProvidersInfoRequest, QueryOracleProvidersInfoResponse, QueryOracleVolatilityRequest, QueryOracleVolatilityResponse, QueryParamsRequest, QueryParamsResponse, QueryPriceFeedPriceStatesRequest, QueryPriceFeedPriceStatesResponse, QueryProviderPriceStateRequest, QueryProviderPriceStateResponse, QueryPythPriceRequest, QueryPythPriceResponse, QueryPythPriceStatesRequest, QueryPythPriceStatesResponse, QueryStorkPriceStatesRequest, QueryStorkPriceStatesResponse, QueryStorkPublishersRequest, QueryStorkPublishersResponse } from "./query_pb.js"; const TYPE_NAME = "injective.oracle.v1beta1.Query"; @@ -91,6 +91,30 @@ export const QueryPythPriceStatesService = { Response: QueryPythPriceStatesResponse, } as const; +/** + * Retrieves the state for all stork price feeds + * + * @generated from rpc injective.oracle.v1beta1.Query.StorkPriceStates + */ +export const QueryStorkPriceStatesService = { + typeName: TYPE_NAME, + method: "StorkPriceStates", + Request: QueryStorkPriceStatesRequest, + Response: QueryStorkPriceStatesResponse, +} as const; + +/** + * Retrieves all stork publishers + * + * @generated from rpc injective.oracle.v1beta1.Query.StorkPublishers + */ +export const QueryStorkPublishersService = { + typeName: TYPE_NAME, + method: "StorkPublishers", + Request: QueryStorkPublishersRequest, + Response: QueryStorkPublishersResponse, +} as const; + /** * Retrieves the state for all provider price feeds * diff --git a/src/protobufs/injective/oracle/v1beta1/query_pb.ts b/src/protobufs/injective/oracle/v1beta1/query_pb.ts index 2e2900c6..a73ba068 100644 --- a/src/protobufs/injective/oracle/v1beta1/query_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/query_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BandPriceState, CoinbasePriceState, MetadataStatistics, OracleInfo, OracleType, Params, PriceFeedState, PriceRecord, PriceRecords, PriceState, ProviderInfo, ProviderState, PythPriceState } from "./oracle_pb.js"; +import { BandPriceState, CoinbasePriceState, MetadataStatistics, OracleInfo, OracleType, Params, PriceFeedState, PriceRecord, PriceRecords, PriceState, ProviderInfo, ProviderState, PythPriceState, StorkPriceState } from "./oracle_pb.js"; import { GenesisState } from "./genesis_pb.js"; /** @@ -600,6 +600,154 @@ export class QueryPythPriceStatesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.QueryStorkPriceStatesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorkPriceStatesRequest { + return new QueryStorkPriceStatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorkPriceStatesRequest { + return new QueryStorkPriceStatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorkPriceStatesRequest { + return new QueryStorkPriceStatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorkPriceStatesRequest | PlainMessage | undefined, b: QueryStorkPriceStatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorkPriceStatesRequest, a, b); + } +} + +/** + * QueryStorkPriceStatesResponse is the response type for the + * Query/StorkPriceStates RPC method. + * + * @generated from message injective.oracle.v1beta1.QueryStorkPriceStatesResponse + */ +export class QueryStorkPriceStatesResponse extends Message { + /** + * @generated from field: repeated injective.oracle.v1beta1.StorkPriceState price_states = 1; + */ + priceStates: StorkPriceState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.QueryStorkPriceStatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price_states", kind: "message", T: StorkPriceState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorkPriceStatesResponse { + return new QueryStorkPriceStatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorkPriceStatesResponse { + return new QueryStorkPriceStatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorkPriceStatesResponse { + return new QueryStorkPriceStatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorkPriceStatesResponse | PlainMessage | undefined, b: QueryStorkPriceStatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorkPriceStatesResponse, a, b); + } +} + +/** + * QueryStorkPublishersRequest is the request type for the + * Query/StorkPublishers RPC method. + * + * @generated from message injective.oracle.v1beta1.QueryStorkPublishersRequest + */ +export class QueryStorkPublishersRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.QueryStorkPublishersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorkPublishersRequest { + return new QueryStorkPublishersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorkPublishersRequest { + return new QueryStorkPublishersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorkPublishersRequest { + return new QueryStorkPublishersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorkPublishersRequest | PlainMessage | undefined, b: QueryStorkPublishersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorkPublishersRequest, a, b); + } +} + +/** + * QueryStorkPublishersResponse is the response type for the + * Query/StorkPublishers RPC method. + * + * @generated from message injective.oracle.v1beta1.QueryStorkPublishersResponse + */ +export class QueryStorkPublishersResponse extends Message { + /** + * @generated from field: repeated string publishers = 1; + */ + publishers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.QueryStorkPublishersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "publishers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorkPublishersResponse { + return new QueryStorkPublishersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorkPublishersResponse { + return new QueryStorkPublishersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStorkPublishersResponse { + return new QueryStorkPublishersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStorkPublishersResponse | PlainMessage | undefined, b: QueryStorkPublishersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStorkPublishersResponse, a, b); + } +} + /** * QueryProviderPriceStateRequest is the request type for the * Query/ProviderPriceState RPC method. @@ -1145,6 +1293,53 @@ export class QueryOracleProviderPricesResponse extends Message { + /** + * @generated from field: uint32 base_decimals = 1; + */ + baseDecimals = 0; + + /** + * @generated from field: uint32 quote_decimals = 2; + */ + quoteDecimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.ScalingOptions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "quote_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ScalingOptions { + return new ScalingOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ScalingOptions { + return new ScalingOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ScalingOptions { + return new ScalingOptions().fromJsonString(jsonString, options); + } + + static equals(a: ScalingOptions | PlainMessage | undefined, b: ScalingOptions | PlainMessage | undefined): boolean { + return proto3.util.equals(ScalingOptions, a, b); + } +} + /** * QueryOraclePriceRequest is the request type for the Query/OraclePrice RPC * method. @@ -1167,6 +1362,11 @@ export class QueryOraclePriceRequest extends Message { */ quote = ""; + /** + * @generated from field: injective.oracle.v1beta1.ScalingOptions scaling_options = 4; + */ + scalingOptions?: ScalingOptions; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1178,6 +1378,7 @@ export class QueryOraclePriceRequest extends Message { { no: 1, name: "oracle_type", kind: "enum", T: proto3.getEnumType(OracleType) }, { no: 2, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "scaling_options", kind: "message", T: ScalingOptions }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryOraclePriceRequest { diff --git a/src/protobufs/injective/oracle/v1beta1/tx_cosmes.ts b/src/protobufs/injective/oracle/v1beta1/tx_cosmes.ts index caa4db7e..ef5fe11b 100644 --- a/src/protobufs/injective/oracle/v1beta1/tx_cosmes.ts +++ b/src/protobufs/injective/oracle/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgRelayBandRates, MsgRelayBandRatesResponse, MsgRelayCoinbaseMessages, MsgRelayCoinbaseMessagesResponse, MsgRelayPriceFeedPrice, MsgRelayPriceFeedPriceResponse, MsgRelayProviderPrices, MsgRelayProviderPricesResponse, MsgRelayPythPrices, MsgRelayPythPricesResponse, MsgRequestBandIBCRates, MsgRequestBandIBCRatesResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; +import { MsgRelayBandRates, MsgRelayBandRatesResponse, MsgRelayCoinbaseMessages, MsgRelayCoinbaseMessagesResponse, MsgRelayPriceFeedPrice, MsgRelayPriceFeedPriceResponse, MsgRelayProviderPrices, MsgRelayProviderPricesResponse, MsgRelayPythPrices, MsgRelayPythPricesResponse, MsgRelayStorkPrices, MsgRelayStorkPricesResponse, MsgRequestBandIBCRates, MsgRequestBandIBCRatesResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "injective.oracle.v1beta1.Msg"; @@ -70,6 +70,19 @@ export const MsgRelayCoinbaseMessagesService = { Response: MsgRelayCoinbaseMessagesResponse, } as const; +/** + * RelayStorkMessage defines a method for relaying price message from + * Stork API + * + * @generated from rpc injective.oracle.v1beta1.Msg.RelayStorkMessage + */ +export const MsgRelayStorkMessageService = { + typeName: TYPE_NAME, + method: "RelayStorkMessage", + Request: MsgRelayStorkPrices, + Response: MsgRelayStorkPricesResponse, +} as const; + /** * RelayPythPrices defines a method for relaying rates from the Pyth contract * diff --git a/src/protobufs/injective/oracle/v1beta1/tx_pb.ts b/src/protobufs/injective/oracle/v1beta1/tx_pb.ts index a932a7f6..fa106443 100644 --- a/src/protobufs/injective/oracle/v1beta1/tx_pb.ts +++ b/src/protobufs/injective/oracle/v1beta1/tx_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params, PriceAttestation } from "./oracle_pb.js"; +import { AssetPair, Params, PriceAttestation } from "./oracle_pb.js"; /** * MsgRelayProviderPrice defines a SDK message for setting a price through the @@ -362,6 +362,83 @@ export class MsgRelayCoinbaseMessagesResponse extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated injective.oracle.v1beta1.AssetPair asset_pairs = 2; + */ + assetPairs: AssetPair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.MsgRelayStorkPrices"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_pairs", kind: "message", T: AssetPair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRelayStorkPrices { + return new MsgRelayStorkPrices().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRelayStorkPrices { + return new MsgRelayStorkPrices().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRelayStorkPrices { + return new MsgRelayStorkPrices().fromJsonString(jsonString, options); + } + + static equals(a: MsgRelayStorkPrices | PlainMessage | undefined, b: MsgRelayStorkPrices | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRelayStorkPrices, a, b); + } +} + +/** + * @generated from message injective.oracle.v1beta1.MsgRelayStorkPricesResponse + */ +export class MsgRelayStorkPricesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.oracle.v1beta1.MsgRelayStorkPricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRelayStorkPricesResponse { + return new MsgRelayStorkPricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRelayStorkPricesResponse { + return new MsgRelayStorkPricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRelayStorkPricesResponse { + return new MsgRelayStorkPricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRelayStorkPricesResponse | PlainMessage | undefined, b: MsgRelayStorkPricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRelayStorkPricesResponse, a, b); + } +} + /** * MsgRequestBandIBCRates defines a SDK message for requesting data from * BandChain using IBC. diff --git a/src/protobufs/injective/peggy/v1/events_pb.ts b/src/protobufs/injective/peggy/v1/events_pb.ts index 446747bc..ad0c3eab 100644 --- a/src/protobufs/injective/peggy/v1/events_pb.ts +++ b/src/protobufs/injective/peggy/v1/events_pb.ts @@ -8,6 +8,26 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { ClaimType } from "./attestation_pb.js"; import { BridgeValidator } from "./types_pb.js"; +/** + * @generated from enum injective.peggy.v1.JailReason + */ +export enum JailReason { + /** + * @generated from enum value: MissingValsetConfirm = 0; + */ + MissingValsetConfirm = 0, + + /** + * @generated from enum value: MissingBatchConfirm = 1; + */ + MissingBatchConfirm = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(JailReason) +proto3.util.setEnumType(JailReason, "injective.peggy.v1.JailReason", [ + { no: 0, name: "MissingValsetConfirm" }, + { no: 1, name: "MissingBatchConfirm" }, +]); + /** * @generated from message injective.peggy.v1.EventAttestationObserved */ @@ -991,3 +1011,221 @@ export class EventValidatorSlash extends Message { } } +/** + * @generated from message injective.peggy.v1.EventDepositReceived + */ +export class EventDepositReceived extends Message { + /** + * Ethereum sender address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Injective receiver address + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * Coin deposited to Injective + * + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.EventDepositReceived"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDepositReceived { + return new EventDepositReceived().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDepositReceived { + return new EventDepositReceived().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDepositReceived { + return new EventDepositReceived().fromJsonString(jsonString, options); + } + + static equals(a: EventDepositReceived | PlainMessage | undefined, b: EventDepositReceived | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDepositReceived, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.EventWithdrawalsCompleted + */ +export class EventWithdrawalsCompleted extends Message { + /** + * token denom of each withdrawal + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * individual withdrawals + * + * @generated from field: repeated injective.peggy.v1.Withdrawal withdrawals = 2; + */ + withdrawals: Withdrawal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.EventWithdrawalsCompleted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "withdrawals", kind: "message", T: Withdrawal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventWithdrawalsCompleted { + return new EventWithdrawalsCompleted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventWithdrawalsCompleted { + return new EventWithdrawalsCompleted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventWithdrawalsCompleted { + return new EventWithdrawalsCompleted().fromJsonString(jsonString, options); + } + + static equals(a: EventWithdrawalsCompleted | PlainMessage | undefined, b: EventWithdrawalsCompleted | PlainMessage | undefined): boolean { + return proto3.util.equals(EventWithdrawalsCompleted, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.Withdrawal + */ +export class Withdrawal extends Message { + /** + * Injective sender address + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Ethereum receiver address + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * Amount of tokens withdrawn to Ethereum + * + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.Withdrawal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Withdrawal { + return new Withdrawal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Withdrawal { + return new Withdrawal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Withdrawal { + return new Withdrawal().fromJsonString(jsonString, options); + } + + static equals(a: Withdrawal | PlainMessage | undefined, b: Withdrawal | PlainMessage | undefined): boolean { + return proto3.util.equals(Withdrawal, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.EventValidatorJailed + */ +export class EventValidatorJailed extends Message { + /** + * @generated from field: injective.peggy.v1.JailReason reason = 1; + */ + reason = JailReason.MissingValsetConfirm; + + /** + * @generated from field: int64 power = 2; + */ + power = protoInt64.zero; + + /** + * @generated from field: string consensus_address = 3; + */ + consensusAddress = ""; + + /** + * @generated from field: string operator_address = 4; + */ + operatorAddress = ""; + + /** + * @generated from field: string moniker = 5; + */ + moniker = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.EventValidatorJailed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reason", kind: "enum", T: proto3.getEnumType(JailReason) }, + { no: 2, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "consensus_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "operator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventValidatorJailed { + return new EventValidatorJailed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventValidatorJailed { + return new EventValidatorJailed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventValidatorJailed { + return new EventValidatorJailed().fromJsonString(jsonString, options); + } + + static equals(a: EventValidatorJailed | PlainMessage | undefined, b: EventValidatorJailed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventValidatorJailed, a, b); + } +} + diff --git a/src/protobufs/injective/peggy/v1/genesis_pb.ts b/src/protobufs/injective/peggy/v1/genesis_pb.ts index 0a25a849..560d6727 100644 --- a/src/protobufs/injective/peggy/v1/genesis_pb.ts +++ b/src/protobufs/injective/peggy/v1/genesis_pb.ts @@ -10,6 +10,7 @@ import { ERC20ToDenom, Valset } from "./types_pb.js"; import { MsgConfirmBatch, MsgSetOrchestratorAddresses, MsgValsetConfirm } from "./msgs_pb.js"; import { OutgoingTransferTx, OutgoingTxBatch } from "./batch_pb.js"; import { Attestation } from "./attestation_pb.js"; +import { RateLimit } from "./rate_limit_pb.js"; /** * GenesisState struct @@ -92,6 +93,11 @@ export class GenesisState extends Message { */ ethereumBlacklist: string[] = []; + /** + * @generated from field: repeated injective.peggy.v1.RateLimit rate_limits = 16; + */ + rateLimits: RateLimit[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -115,6 +121,7 @@ export class GenesisState extends Message { { no: 13, name: "last_outgoing_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 14, name: "last_observed_valset", kind: "message", T: Valset }, { no: 15, name: "ethereum_blacklist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 16, name: "rate_limits", kind: "message", T: RateLimit, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/injective/peggy/v1/msgs_cosmes.ts b/src/protobufs/injective/peggy/v1/msgs_cosmes.ts index deb27b04..4fd8164e 100644 --- a/src/protobufs/injective/peggy/v1/msgs_cosmes.ts +++ b/src/protobufs/injective/peggy/v1/msgs_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgCancelSendToEth, MsgCancelSendToEthResponse, MsgConfirmBatch, MsgConfirmBatchResponse, MsgDepositClaim, MsgDepositClaimResponse, MsgERC20DeployedClaim, MsgERC20DeployedClaimResponse, MsgRequestBatch, MsgRequestBatchResponse, MsgSendToEth, MsgSendToEthResponse, MsgSetOrchestratorAddresses, MsgSetOrchestratorAddressesResponse, MsgSubmitBadSignatureEvidence, MsgSubmitBadSignatureEvidenceResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgValsetConfirm, MsgValsetConfirmResponse, MsgValsetUpdatedClaim, MsgValsetUpdatedClaimResponse, MsgWithdrawClaim, MsgWithdrawClaimResponse } from "./msgs_pb.js"; +import { MsgBlacklistEthereumAddresses, MsgBlacklistEthereumAddressesResponse, MsgCancelSendToEth, MsgCancelSendToEthResponse, MsgConfirmBatch, MsgConfirmBatchResponse, MsgCreateRateLimit, MsgCreateRateLimitResponse, MsgDepositClaim, MsgDepositClaimResponse, MsgERC20DeployedClaim, MsgERC20DeployedClaimResponse, MsgRemoveRateLimit, MsgRemoveRateLimitResponse, MsgRequestBatch, MsgRequestBatchResponse, MsgRevokeEthereumBlacklist, MsgRevokeEthereumBlacklistResponse, MsgSendToEth, MsgSendToEthResponse, MsgSetOrchestratorAddresses, MsgSetOrchestratorAddressesResponse, MsgSubmitBadSignatureEvidence, MsgSubmitBadSignatureEvidenceResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateRateLimit, MsgUpdateRateLimitResponse, MsgValsetConfirm, MsgValsetConfirmResponse, MsgValsetUpdatedClaim, MsgValsetUpdatedClaimResponse, MsgWithdrawClaim, MsgWithdrawClaimResponse } from "./msgs_pb.js"; const TYPE_NAME = "injective.peggy.v1.Msg"; @@ -127,3 +127,66 @@ export const MsgUpdateParamsService = { Response: MsgUpdateParamsResponse, } as const; +/** + * BlacklistEthereumAddresses adds Ethereum addresses to the peggy blacklist. + * + * @generated from rpc injective.peggy.v1.Msg.BlacklistEthereumAddresses + */ +export const MsgBlacklistEthereumAddressesService = { + typeName: TYPE_NAME, + method: "BlacklistEthereumAddresses", + Request: MsgBlacklistEthereumAddresses, + Response: MsgBlacklistEthereumAddressesResponse, +} as const; + +/** + * RevokeEthereumBlacklist removes Ethereum addresses from the peggy + * blacklist. + * + * @generated from rpc injective.peggy.v1.Msg.RevokeEthereumBlacklist + */ +export const MsgRevokeEthereumBlacklistService = { + typeName: TYPE_NAME, + method: "RevokeEthereumBlacklist", + Request: MsgRevokeEthereumBlacklist, + Response: MsgRevokeEthereumBlacklistResponse, +} as const; + +/** + * CreateRateLimit imposes a (notional) limit on withdrawals for a particular + * Peggy asset + * + * @generated from rpc injective.peggy.v1.Msg.CreateRateLimit + */ +export const MsgCreateRateLimitService = { + typeName: TYPE_NAME, + method: "CreateRateLimit", + Request: MsgCreateRateLimit, + Response: MsgCreateRateLimitResponse, +} as const; + +/** + * UpdateRateLimit updates the rate limit's metadata for a particular Peggy + * asset + * + * @generated from rpc injective.peggy.v1.Msg.UpdateRateLimit + */ +export const MsgUpdateRateLimitService = { + typeName: TYPE_NAME, + method: "UpdateRateLimit", + Request: MsgUpdateRateLimit, + Response: MsgUpdateRateLimitResponse, +} as const; + +/** + * RemoveRateLimit lifts the rate limit for a particular Peggy asset + * + * @generated from rpc injective.peggy.v1.Msg.RemoveRateLimit + */ +export const MsgRemoveRateLimitService = { + typeName: TYPE_NAME, + method: "RemoveRateLimit", + Request: MsgRemoveRateLimit, + Response: MsgRemoveRateLimitResponse, +} as const; + diff --git a/src/protobufs/injective/peggy/v1/msgs_pb.ts b/src/protobufs/injective/peggy/v1/msgs_pb.ts index 2b6ba4a5..aec94a38 100644 --- a/src/protobufs/injective/peggy/v1/msgs_pb.ts +++ b/src/protobufs/injective/peggy/v1/msgs_pb.ts @@ -223,21 +223,31 @@ export class MsgValsetConfirmResponse extends Message */ export class MsgSendToEth extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The Ethereum address to send the tokens to + * * @generated from field: string eth_dest = 2; */ ethDest = ""; /** + * The amount of tokens to send + * * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; /** + * The fee paid for the bridge, distinct from the fee paid to the chain to + * actually send this message in the first place. So a successful send has + * two layers of fees for the user + * * @generated from field: cosmos.base.v1beta1.Coin bridge_fee = 4; */ bridgeFee?: Coin; @@ -1163,3 +1173,473 @@ export class MsgUpdateParamsResponse extends Message { } } +/** + * MsgBlacklistEthereumAddresses defines the message used to add Ethereum + * addresses to peggy blacklist. + * + * @generated from message injective.peggy.v1.MsgBlacklistEthereumAddresses + */ +export class MsgBlacklistEthereumAddresses extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * Ethereum addresses to include in the blacklist + * + * @generated from field: repeated string blacklist_addresses = 2; + */ + blacklistAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgBlacklistEthereumAddresses"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "blacklist_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBlacklistEthereumAddresses { + return new MsgBlacklistEthereumAddresses().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBlacklistEthereumAddresses { + return new MsgBlacklistEthereumAddresses().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBlacklistEthereumAddresses { + return new MsgBlacklistEthereumAddresses().fromJsonString(jsonString, options); + } + + static equals(a: MsgBlacklistEthereumAddresses | PlainMessage | undefined, b: MsgBlacklistEthereumAddresses | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBlacklistEthereumAddresses, a, b); + } +} + +/** + * MsgBlacklistEthereumAddressesResponse defines the + * MsgBlacklistEthereumAddresses response type. + * + * @generated from message injective.peggy.v1.MsgBlacklistEthereumAddressesResponse + */ +export class MsgBlacklistEthereumAddressesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgBlacklistEthereumAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBlacklistEthereumAddressesResponse { + return new MsgBlacklistEthereumAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBlacklistEthereumAddressesResponse { + return new MsgBlacklistEthereumAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBlacklistEthereumAddressesResponse { + return new MsgBlacklistEthereumAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBlacklistEthereumAddressesResponse | PlainMessage | undefined, b: MsgBlacklistEthereumAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBlacklistEthereumAddressesResponse, a, b); + } +} + +/** + * MsgRevokeEthereumBlacklist defines the message used to remove Ethereum + * addresses from peggy blacklist. + * + * @generated from message injective.peggy.v1.MsgRevokeEthereumBlacklist + */ +export class MsgRevokeEthereumBlacklist extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * Ethereum addresses to include in the blacklist + * + * @generated from field: repeated string blacklist_addresses = 2; + */ + blacklistAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgRevokeEthereumBlacklist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "blacklist_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeEthereumBlacklist { + return new MsgRevokeEthereumBlacklist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeEthereumBlacklist { + return new MsgRevokeEthereumBlacklist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRevokeEthereumBlacklist { + return new MsgRevokeEthereumBlacklist().fromJsonString(jsonString, options); + } + + static equals(a: MsgRevokeEthereumBlacklist | PlainMessage | undefined, b: MsgRevokeEthereumBlacklist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRevokeEthereumBlacklist, a, b); + } +} + +/** + * MsgRevokeEthereumBlacklistResponse defines the MsgRevokeEthereumBlacklist + * response type. + * + * @generated from message injective.peggy.v1.MsgRevokeEthereumBlacklistResponse + */ +export class MsgRevokeEthereumBlacklistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgRevokeEthereumBlacklistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeEthereumBlacklistResponse { + return new MsgRevokeEthereumBlacklistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeEthereumBlacklistResponse { + return new MsgRevokeEthereumBlacklistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRevokeEthereumBlacklistResponse { + return new MsgRevokeEthereumBlacklistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRevokeEthereumBlacklistResponse | PlainMessage | undefined, b: MsgRevokeEthereumBlacklistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRevokeEthereumBlacklistResponse, a, b); + } +} + +/** + * MsgCreateRateLimit is used to impose a (withdrawal) limit for specific ERC20 + * token within a sliding window + * + * @generated from message injective.peggy.v1.MsgCreateRateLimit + */ +export class MsgCreateRateLimit extends Message { + /** + * address of peggy admin or governance account + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * address of the ERC20 token + * + * @generated from field: string token_address = 2; + */ + tokenAddress = ""; + + /** + * decimals of the ERC20 token + * + * @generated from field: uint32 token_decimals = 3; + */ + tokenDecimals = 0; + + /** + * a Pyth-specific ID used to obtain USD price of the ERC20 token + * + * @generated from field: string token_price_id = 4; + */ + tokenPriceId = ""; + + /** + * the notional USD limit imposed on all outgoing traffic (per token) + * + * @generated from field: string rate_limit_usd = 5; + */ + rateLimitUsd = ""; + + /** + * the absolute amount of tokens that can be minted on Injective + * + * @generated from field: string absolute_mint_limit = 6; + */ + absoluteMintLimit = ""; + + /** + * length of the sliding window in which inbound (outbound) traffic is + * measured + * + * @generated from field: uint64 rate_limit_window = 7; + */ + rateLimitWindow = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgCreateRateLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "token_price_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "rate_limit_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "absolute_mint_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "rate_limit_window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateRateLimit { + return new MsgCreateRateLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateRateLimit { + return new MsgCreateRateLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateRateLimit { + return new MsgCreateRateLimit().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateRateLimit | PlainMessage | undefined, b: MsgCreateRateLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateRateLimit, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.MsgCreateRateLimitResponse + */ +export class MsgCreateRateLimitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgCreateRateLimitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateRateLimitResponse { + return new MsgCreateRateLimitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateRateLimitResponse { + return new MsgCreateRateLimitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateRateLimitResponse { + return new MsgCreateRateLimitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateRateLimitResponse | PlainMessage | undefined, b: MsgCreateRateLimitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateRateLimitResponse, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.MsgUpdateRateLimit + */ +export class MsgUpdateRateLimit extends Message { + /** + * authority is the address of peggy admin or governance account + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * token_address is the address of rate limited token + * + * @generated from field: string token_address = 2; + */ + tokenAddress = ""; + + /** + * new_token_price_id is the new Pyth price ID of the rate limited token + * + * @generated from field: string new_token_price_id = 3; + */ + newTokenPriceId = ""; + + /** + * new_rate_limit_usd is the new notional limit (on withdrawals) in USD + * + * @generated from field: string new_rate_limit_usd = 4; + */ + newRateLimitUsd = ""; + + /** + * new_rate_limit_window is the new length of the sliding window + * + * @generated from field: uint64 new_rate_limit_window = 5; + */ + newRateLimitWindow = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgUpdateRateLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_token_price_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_rate_limit_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_rate_limit_window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRateLimit { + return new MsgUpdateRateLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRateLimit { + return new MsgUpdateRateLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRateLimit { + return new MsgUpdateRateLimit().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRateLimit | PlainMessage | undefined, b: MsgUpdateRateLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRateLimit, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.MsgUpdateRateLimitResponse + */ +export class MsgUpdateRateLimitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgUpdateRateLimitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRateLimitResponse { + return new MsgUpdateRateLimitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRateLimitResponse { + return new MsgUpdateRateLimitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRateLimitResponse { + return new MsgUpdateRateLimitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRateLimitResponse | PlainMessage | undefined, b: MsgUpdateRateLimitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRateLimitResponse, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.MsgRemoveRateLimit + */ +export class MsgRemoveRateLimit extends Message { + /** + * authority is the address of peggy admin or governance account + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * token_address is the address of rate limited token + * + * @generated from field: string token_address = 2; + */ + tokenAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgRemoveRateLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveRateLimit { + return new MsgRemoveRateLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveRateLimit { + return new MsgRemoveRateLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveRateLimit { + return new MsgRemoveRateLimit().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveRateLimit | PlainMessage | undefined, b: MsgRemoveRateLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveRateLimit, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.MsgRemoveRateLimitResponse + */ +export class MsgRemoveRateLimitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.MsgRemoveRateLimitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveRateLimitResponse { + return new MsgRemoveRateLimitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveRateLimitResponse { + return new MsgRemoveRateLimitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveRateLimitResponse { + return new MsgRemoveRateLimitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveRateLimitResponse | PlainMessage | undefined, b: MsgRemoveRateLimitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveRateLimitResponse, a, b); + } +} + diff --git a/src/protobufs/injective/peggy/v1/params_pb.ts b/src/protobufs/injective/peggy/v1/params_pb.ts index 59797bba..c6613b28 100644 --- a/src/protobufs/injective/peggy/v1/params_pb.ts +++ b/src/protobufs/injective/peggy/v1/params_pb.ts @@ -116,6 +116,18 @@ export class Params extends Message { */ valsetReward?: Coin; + /** + * @generated from field: repeated string admins = 22; + */ + admins: string[] = []; + + /** + * address for receiving Peggy Deposits from sanctioned Ethereum addresses + * + * @generated from field: string segregated_wallet_address = 23; + */ + segregatedWalletAddress = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -145,6 +157,8 @@ export class Params extends Message { { no: 19, name: "claim_slashing_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 20, name: "bridge_contract_start_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 21, name: "valset_reward", kind: "message", T: Coin }, + { no: 22, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 23, name: "segregated_wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/injective/peggy/v1/proposal_pb.ts b/src/protobufs/injective/peggy/v1/proposal_pb.ts deleted file mode 100644 index 5c5a0cdd..00000000 --- a/src/protobufs/injective/peggy/v1/proposal_pb.ts +++ /dev/null @@ -1,106 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file injective/peggy/v1/proposal.proto (package injective.peggy.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message injective.peggy.v1.BlacklistEthereumAddressesProposal - */ -export class BlacklistEthereumAddressesProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated string blacklist_addresses = 3; - */ - blacklistAddresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.peggy.v1.BlacklistEthereumAddressesProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "blacklist_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlacklistEthereumAddressesProposal { - return new BlacklistEthereumAddressesProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlacklistEthereumAddressesProposal { - return new BlacklistEthereumAddressesProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlacklistEthereumAddressesProposal { - return new BlacklistEthereumAddressesProposal().fromJsonString(jsonString, options); - } - - static equals(a: BlacklistEthereumAddressesProposal | PlainMessage | undefined, b: BlacklistEthereumAddressesProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(BlacklistEthereumAddressesProposal, a, b); - } -} - -/** - * @generated from message injective.peggy.v1.RevokeEthereumBlacklistProposal - */ -export class RevokeEthereumBlacklistProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated string blacklist_addresses = 3; - */ - blacklistAddresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.peggy.v1.RevokeEthereumBlacklistProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "blacklist_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RevokeEthereumBlacklistProposal { - return new RevokeEthereumBlacklistProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RevokeEthereumBlacklistProposal { - return new RevokeEthereumBlacklistProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RevokeEthereumBlacklistProposal { - return new RevokeEthereumBlacklistProposal().fromJsonString(jsonString, options); - } - - static equals(a: RevokeEthereumBlacklistProposal | PlainMessage | undefined, b: RevokeEthereumBlacklistProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(RevokeEthereumBlacklistProposal, a, b); - } -} - diff --git a/src/protobufs/injective/peggy/v1/rate_limit_pb.ts b/src/protobufs/injective/peggy/v1/rate_limit_pb.ts new file mode 100644 index 00000000..31ebc735 --- /dev/null +++ b/src/protobufs/injective/peggy/v1/rate_limit_pb.ts @@ -0,0 +1,151 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/peggy/v1/rate_limit.proto (package injective.peggy.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message injective.peggy.v1.RateLimit + */ +export class RateLimit extends Message { + /** + * address of the ERC20 token + * + * @generated from field: string token_address = 1; + */ + tokenAddress = ""; + + /** + * decimals of the ERC20 token + * + * @generated from field: uint32 token_decimals = 2; + */ + tokenDecimals = 0; + + /** + * a Pyth-specific ID used to obtain USD price of the ERC20 token + * + * @generated from field: string token_price_id = 3; + */ + tokenPriceId = ""; + + /** + * length of the sliding window in which inbound (outbound) traffic is + * measured + * + * @generated from field: uint64 rate_limit_window = 4; + */ + rateLimitWindow = protoInt64.zero; + + /** + * the notional USD limit imposed on all outgoing traffic (per token) + * + * @generated from field: string rate_limit_usd = 5; + */ + rateLimitUsd = ""; + + /** + * the absolute amount of tokens that can be minted on Injective + * + * @generated from field: string absolute_mint_limit = 6; + */ + absoluteMintLimit = ""; + + /** + * transfers that occurred within the sliding window + * + * @generated from field: repeated injective.peggy.v1.BridgeTransfer transfers = 7; + */ + transfers: BridgeTransfer[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.RateLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token_price_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "rate_limit_window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "rate_limit_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "absolute_mint_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "transfers", kind: "message", T: BridgeTransfer, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RateLimit { + return new RateLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RateLimit { + return new RateLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RateLimit { + return new RateLimit().fromJsonString(jsonString, options); + } + + static equals(a: RateLimit | PlainMessage | undefined, b: RateLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(RateLimit, a, b); + } +} + +/** + * @generated from message injective.peggy.v1.BridgeTransfer + */ +export class BridgeTransfer extends Message { + /** + * quantity that was bridged (chain format) + * + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * the Injective block at which this amount was bridged + * + * @generated from field: uint64 block_number = 2; + */ + blockNumber = protoInt64.zero; + + /** + * type of transfer (withdrawal/deposit) + * + * @generated from field: bool is_deposit = 3; + */ + isDeposit = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.peggy.v1.BridgeTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "is_deposit", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BridgeTransfer { + return new BridgeTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BridgeTransfer { + return new BridgeTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BridgeTransfer { + return new BridgeTransfer().fromJsonString(jsonString, options); + } + + static equals(a: BridgeTransfer | PlainMessage | undefined, b: BridgeTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(BridgeTransfer, a, b); + } +} + diff --git a/src/protobufs/injective/permissions/v1beta1/events_pb.ts b/src/protobufs/injective/permissions/v1beta1/events_pb.ts new file mode 100644 index 00000000..1fd23c1c --- /dev/null +++ b/src/protobufs/injective/permissions/v1beta1/events_pb.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/permissions/v1beta1/events.proto (package injective.permissions.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message injective.permissions.v1beta1.EventSetVoucher + */ +export class EventSetVoucher extends Message { + /** + * @generated from field: string addr = 1; + */ + addr = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin voucher = 2; + */ + voucher?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.EventSetVoucher"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "voucher", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetVoucher { + return new EventSetVoucher().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetVoucher { + return new EventSetVoucher().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetVoucher { + return new EventSetVoucher().fromJsonString(jsonString, options); + } + + static equals(a: EventSetVoucher | PlainMessage | undefined, b: EventSetVoucher | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetVoucher, a, b); + } +} + diff --git a/src/protobufs/injective/permissions/v1beta1/genesis_pb.ts b/src/protobufs/injective/permissions/v1beta1/genesis_pb.ts index 4ff5e15a..3d0a5bf1 100644 --- a/src/protobufs/injective/permissions/v1beta1/genesis_pb.ts +++ b/src/protobufs/injective/permissions/v1beta1/genesis_pb.ts @@ -6,7 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; -import { Namespace } from "./permissions_pb.js"; +import { AddressVoucher, Namespace } from "./permissions_pb.js"; /** * GenesisState defines the permissions module's genesis state. @@ -15,17 +15,26 @@ import { Namespace } from "./permissions_pb.js"; */ export class GenesisState extends Message { /** - * params defines the parameters of the module. + * params defines the parameters of the module * * @generated from field: injective.permissions.v1beta1.Params params = 1; */ params?: Params; /** + * namespaces defines the namespaces of the module + * * @generated from field: repeated injective.permissions.v1beta1.Namespace namespaces = 2; */ namespaces: Namespace[] = []; + /** + * vouchers defines the vouchers of the module + * + * @generated from field: repeated injective.permissions.v1beta1.AddressVoucher vouchers = 3; + */ + vouchers: AddressVoucher[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -36,6 +45,7 @@ export class GenesisState extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "namespaces", kind: "message", T: Namespace, repeated: true }, + { no: 3, name: "vouchers", kind: "message", T: AddressVoucher, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/injective/permissions/v1beta1/params_pb.ts b/src/protobufs/injective/permissions/v1beta1/params_pb.ts index d1dae3c5..61365c79 100644 --- a/src/protobufs/injective/permissions/v1beta1/params_pb.ts +++ b/src/protobufs/injective/permissions/v1beta1/params_pb.ts @@ -4,7 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; /** * Params defines the parameters for the permissions module. @@ -12,6 +12,13 @@ import { Message, proto3 } from "@bufbuild/protobuf"; * @generated from message injective.permissions.v1beta1.Params */ export class Params extends Message { + /** + * Max amount of gas allowed for wasm hook queries + * + * @generated from field: uint64 wasm_hook_query_max_gas = 1; + */ + wasmHookQueryMaxGas = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -20,6 +27,7 @@ export class Params extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.permissions.v1beta1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "wasm_hook_query_max_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/injective/permissions/v1beta1/permissions_pb.ts b/src/protobufs/injective/permissions/v1beta1/permissions_pb.ts index 184eee92..26162491 100644 --- a/src/protobufs/injective/permissions/v1beta1/permissions_pb.ts +++ b/src/protobufs/injective/permissions/v1beta1/permissions_pb.ts @@ -14,24 +14,82 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; */ export enum Action { /** + * 0 is reserved for ACTION_UNSPECIFIED + * * @generated from enum value: UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** + * 1 is reserved for MINT + * * @generated from enum value: MINT = 1; */ MINT = 1, /** + * 2 is reserved for RECEIVE + * * @generated from enum value: RECEIVE = 2; */ RECEIVE = 2, /** + * 4 is reserved for BURN + * * @generated from enum value: BURN = 4; */ BURN = 4, + + /** + * 8 is reserved for SEND + * + * @generated from enum value: SEND = 8; + */ + SEND = 8, + + /** + * 16 is reserved for SUPER_BURN + * + * @generated from enum value: SUPER_BURN = 16; + */ + SUPER_BURN = 16, + + /** + * 2^27 is reserved for MODIFY_POLICY_MANAGERS + * + * 2^27 or 134217728 + * + * @generated from enum value: MODIFY_POLICY_MANAGERS = 134217728; + */ + MODIFY_POLICY_MANAGERS = 134217728, + + /** + * 2^28 is reserved for MODIFY_CONTRACT_HOOK + * + * 2^28 or 268435456 + * + * @generated from enum value: MODIFY_CONTRACT_HOOK = 268435456; + */ + MODIFY_CONTRACT_HOOK = 268435456, + + /** + * 2^29 is reserved for MODIFY_ROLE_PERMISSIONS + * + * 2^29 or 536870912 + * + * @generated from enum value: MODIFY_ROLE_PERMISSIONS = 536870912; + */ + MODIFY_ROLE_PERMISSIONS = 536870912, + + /** + * 2^30 is reserved for MODIFY_ROLE_MANAGERS + * + * 2^30 or 1073741824 + * + * @generated from enum value: MODIFY_ROLE_MANAGERS = 1073741824; + */ + MODIFY_ROLE_MANAGERS = 1073741824, } // Retrieve enum metadata with: proto3.getEnumType(Action) proto3.util.setEnumType(Action, "injective.permissions.v1beta1.Action", [ @@ -39,6 +97,12 @@ proto3.util.setEnumType(Action, "injective.permissions.v1beta1.Action", [ { no: 1, name: "MINT" }, { no: 2, name: "RECEIVE" }, { no: 4, name: "BURN" }, + { no: 8, name: "SEND" }, + { no: 16, name: "SUPER_BURN" }, + { no: 134217728, name: "MODIFY_POLICY_MANAGERS" }, + { no: 268435456, name: "MODIFY_CONTRACT_HOOK" }, + { no: 536870912, name: "MODIFY_ROLE_PERMISSIONS" }, + { no: 1073741824, name: "MODIFY_ROLE_MANAGERS" }, ]); /** @@ -48,45 +112,53 @@ proto3.util.setEnumType(Action, "injective.permissions.v1beta1.Action", [ */ export class Namespace extends Message { /** - * tokenfactory denom to which this namespace applies to + * The tokenfactory denom to which this namespace applies to * * @generated from field: string denom = 1; */ denom = ""; /** - * address of smart contract to apply code-based restrictions + * The address of smart contract to apply code-based restrictions * - * @generated from field: string wasm_hook = 2; + * @generated from field: string contract_hook = 2; */ - wasmHook = ""; + contractHook = ""; /** - * @generated from field: bool mints_paused = 3; + * permissions for each role + * + * @generated from field: repeated injective.permissions.v1beta1.Role role_permissions = 3; */ - mintsPaused = false; + rolePermissions: Role[] = []; /** - * @generated from field: bool sends_paused = 4; + * roles for each actor + * + * @generated from field: repeated injective.permissions.v1beta1.ActorRoles actor_roles = 4; */ - sendsPaused = false; + actorRoles: ActorRoles[] = []; /** - * @generated from field: bool burns_paused = 5; + * managers for each role + * + * @generated from field: repeated injective.permissions.v1beta1.RoleManager role_managers = 5; */ - burnsPaused = false; + roleManagers: RoleManager[] = []; /** - * permissions for each role + * status for each policy * - * @generated from field: map role_permissions = 6; + * @generated from field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 6; */ - rolePermissions: { [key: string]: number } = {}; + policyStatuses: PolicyStatus[] = []; /** - * @generated from field: map address_roles = 7; + * capabilities for each manager for each policy + * + * @generated from field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 7; */ - addressRoles: { [key: string]: Roles } = {}; + policyManagerCapabilities: PolicyManagerCapability[] = []; constructor(data?: PartialMessage) { super(); @@ -97,12 +169,12 @@ export class Namespace extends Message { static readonly typeName = "injective.permissions.v1beta1.Namespace"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wasm_hook", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "mints_paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "sends_paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "burns_paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "role_permissions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} }, - { no: 7, name: "address_roles", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Roles} }, + { no: 2, name: "contract_hook", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "role_permissions", kind: "message", T: Role, repeated: true }, + { no: 4, name: "actor_roles", kind: "message", T: ActorRoles, repeated: true }, + { no: 5, name: "role_managers", kind: "message", T: RoleManager, repeated: true }, + { no: 6, name: "policy_statuses", kind: "message", T: PolicyStatus, repeated: true }, + { no: 7, name: "policy_manager_capabilities", kind: "message", T: PolicyManagerCapability, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Namespace { @@ -122,6 +194,210 @@ export class Namespace extends Message { } } +/** + * AddressRoles defines roles for an actor + * + * @generated from message injective.permissions.v1beta1.ActorRoles + */ +export class ActorRoles extends Message { + /** + * The actor name + * + * @generated from field: string actor = 1; + */ + actor = ""; + + /** + * The roles for the actor + * + * @generated from field: repeated string roles = 2; + */ + roles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.ActorRoles"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActorRoles { + return new ActorRoles().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActorRoles { + return new ActorRoles().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActorRoles { + return new ActorRoles().fromJsonString(jsonString, options); + } + + static equals(a: ActorRoles | PlainMessage | undefined, b: ActorRoles | PlainMessage | undefined): boolean { + return proto3.util.equals(ActorRoles, a, b); + } +} + +/** + * RoleActors defines actors for a role + * + * @generated from message injective.permissions.v1beta1.RoleActors + */ +export class RoleActors extends Message { + /** + * The role name + * + * @generated from field: string role = 1; + */ + role = ""; + + /** + * List of actor names associated with the role + * + * @generated from field: repeated string actors = 2; + */ + actors: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.RoleActors"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "actors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoleActors { + return new RoleActors().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoleActors { + return new RoleActors().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoleActors { + return new RoleActors().fromJsonString(jsonString, options); + } + + static equals(a: RoleActors | PlainMessage | undefined, b: RoleActors | PlainMessage | undefined): boolean { + return proto3.util.equals(RoleActors, a, b); + } +} + +/** + * RoleManager defines roles for a manager address + * + * @generated from message injective.permissions.v1beta1.RoleManager + */ +export class RoleManager extends Message { + /** + * The manager name + * + * @generated from field: string manager = 1; + */ + manager = ""; + + /** + * List of roles associated with the manager + * + * @generated from field: repeated string roles = 2; + */ + roles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.RoleManager"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoleManager { + return new RoleManager().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoleManager { + return new RoleManager().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoleManager { + return new RoleManager().fromJsonString(jsonString, options); + } + + static equals(a: RoleManager | PlainMessage | undefined, b: RoleManager | PlainMessage | undefined): boolean { + return proto3.util.equals(RoleManager, a, b); + } +} + +/** + * PolicyStatus defines the status of a policy + * + * @generated from message injective.permissions.v1beta1.PolicyStatus + */ +export class PolicyStatus extends Message { + /** + * The action code number + * + * @generated from field: injective.permissions.v1beta1.Action action = 1; + */ + action = Action.UNSPECIFIED; + + /** + * Whether the policy is disabled + * + * @generated from field: bool is_disabled = 2; + */ + isDisabled = false; + + /** + * Whether the policy is sealed + * + * @generated from field: bool is_sealed = 3; + */ + isSealed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.PolicyStatus"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action", kind: "enum", T: proto3.getEnumType(Action) }, + { no: 2, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "is_sealed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PolicyStatus { + return new PolicyStatus().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PolicyStatus { + return new PolicyStatus().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PolicyStatus { + return new PolicyStatus().fromJsonString(jsonString, options); + } + + static equals(a: PolicyStatus | PlainMessage | undefined, b: PolicyStatus | PlainMessage | undefined): boolean { + return proto3.util.equals(PolicyStatus, a, b); + } +} + /** * Role is only used for storage * @@ -129,12 +405,24 @@ export class Namespace extends Message { */ export class Role extends Message { /** + * The role name + * * @generated from field: string name = 1; */ name = ""; /** - * @generated from field: uint32 permissions = 2; + * The role ID + * + * @generated from field: uint32 role_id = 2; + */ + roleId = 0; + + /** + * Integer representing the bitwise combination of all actions assigned to the + * role + * + * @generated from field: uint32 permissions = 3; */ permissions = 0; @@ -147,7 +435,8 @@ export class Role extends Message { static readonly typeName = "injective.permissions.v1beta1.Role"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "role_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "permissions", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Role { @@ -168,39 +457,67 @@ export class Role extends Message { } /** - * @generated from message injective.permissions.v1beta1.Roles + * PolicyManagerCapability defines the capabilities of a manager for a policy + * + * @generated from message injective.permissions.v1beta1.PolicyManagerCapability */ -export class Roles extends Message { +export class PolicyManagerCapability extends Message { /** - * @generated from field: repeated string roles = 1; + * The manager name + * + * @generated from field: string manager = 1; */ - roles: string[] = []; + manager = ""; + + /** + * The action code number + * + * @generated from field: injective.permissions.v1beta1.Action action = 2; + */ + action = Action.UNSPECIFIED; + + /** + * Whether the manager can disable the policy + * + * @generated from field: bool can_disable = 3; + */ + canDisable = false; + + /** + * Whether the manager can seal the policy + * + * @generated from field: bool can_seal = 4; + */ + canSeal = false; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.Roles"; + static readonly typeName = "injective.permissions.v1beta1.PolicyManagerCapability"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 1, name: "manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "action", kind: "enum", T: proto3.getEnumType(Action) }, + { no: 3, name: "can_disable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "can_seal", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): Roles { - return new Roles().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): PolicyManagerCapability { + return new PolicyManagerCapability().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): Roles { - return new Roles().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): PolicyManagerCapability { + return new PolicyManagerCapability().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): Roles { - return new Roles().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): PolicyManagerCapability { + return new PolicyManagerCapability().fromJsonString(jsonString, options); } - static equals(a: Roles | PlainMessage | undefined, b: Roles | PlainMessage | undefined): boolean { - return proto3.util.equals(Roles, a, b); + static equals(a: PolicyManagerCapability | PlainMessage | undefined, b: PolicyManagerCapability | PlainMessage | undefined): boolean { + return proto3.util.equals(PolicyManagerCapability, a, b); } } @@ -244,39 +561,51 @@ export class RoleIDs extends Message { } /** - * @generated from message injective.permissions.v1beta1.Voucher + * AddressVoucher is used to represent a voucher for a specific address + * + * @generated from message injective.permissions.v1beta1.AddressVoucher */ -export class Voucher extends Message { +export class AddressVoucher extends Message { /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; + * The Injective address that the voucher is for + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * The voucher amount + * + * @generated from field: cosmos.base.v1beta1.Coin voucher = 2; */ - coins: Coin[] = []; + voucher?: Coin; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.Voucher"; + static readonly typeName = "injective.permissions.v1beta1.AddressVoucher"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "voucher", kind: "message", T: Coin }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): Voucher { - return new Voucher().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): AddressVoucher { + return new AddressVoucher().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): Voucher { - return new Voucher().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): AddressVoucher { + return new AddressVoucher().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): Voucher { - return new Voucher().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): AddressVoucher { + return new AddressVoucher().fromJsonString(jsonString, options); } - static equals(a: Voucher | PlainMessage | undefined, b: Voucher | PlainMessage | undefined): boolean { - return proto3.util.equals(Voucher, a, b); + static equals(a: AddressVoucher | PlainMessage | undefined, b: AddressVoucher | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressVoucher, a, b); } } diff --git a/src/protobufs/injective/permissions/v1beta1/query_cosmes.ts b/src/protobufs/injective/permissions/v1beta1/query_cosmes.ts index a7e4f923..de76dd63 100644 --- a/src/protobufs/injective/permissions/v1beta1/query_cosmes.ts +++ b/src/protobufs/injective/permissions/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryAddressesByRoleRequest, QueryAddressesByRoleResponse, QueryAddressRolesRequest, QueryAddressRolesResponse, QueryAllNamespacesRequest, QueryAllNamespacesResponse, QueryNamespaceByDenomRequest, QueryNamespaceByDenomResponse, QueryParamsRequest, QueryParamsResponse, QueryVouchersForAddressRequest, QueryVouchersForAddressResponse } from "./query_pb.js"; +import { QueryActorsByRoleRequest, QueryActorsByRoleResponse, QueryModuleStateRequest, QueryModuleStateResponse, QueryNamespaceDenomsRequest, QueryNamespaceDenomsResponse, QueryNamespaceRequest, QueryNamespaceResponse, QueryNamespacesRequest, QueryNamespacesResponse, QueryParamsRequest, QueryParamsResponse, QueryPolicyManagerCapabilitiesRequest, QueryPolicyManagerCapabilitiesResponse, QueryPolicyStatusesRequest, QueryPolicyStatusesResponse, QueryRoleManagerRequest, QueryRoleManagerResponse, QueryRoleManagersRequest, QueryRoleManagersResponse, QueryRolesByActorRequest, QueryRolesByActorResponse, QueryVoucherRequest, QueryVoucherResponse, QueryVouchersRequest, QueryVouchersResponse } from "./query_pb.js"; const TYPE_NAME = "injective.permissions.v1beta1.Query"; @@ -21,68 +21,156 @@ export const QueryParamsService = { } as const; /** - * AllNamespaces defines a gRPC query method that returns the permissions + * NamespaceDenoms defines a gRPC query method that returns the denoms for + * which a namespace exists + * + * @generated from rpc injective.permissions.v1beta1.Query.NamespaceDenoms + */ +export const QueryNamespaceDenomsService = { + typeName: TYPE_NAME, + method: "NamespaceDenoms", + Request: QueryNamespaceDenomsRequest, + Response: QueryNamespaceDenomsResponse, +} as const; + +/** + * Namespaces defines a gRPC query method that returns the permissions * module's created namespaces. * - * @generated from rpc injective.permissions.v1beta1.Query.AllNamespaces + * @generated from rpc injective.permissions.v1beta1.Query.Namespaces */ -export const QueryAllNamespacesService = { +export const QueryNamespacesService = { typeName: TYPE_NAME, - method: "AllNamespaces", - Request: QueryAllNamespacesRequest, - Response: QueryAllNamespacesResponse, + method: "Namespaces", + Request: QueryNamespacesRequest, + Response: QueryNamespacesResponse, } as const; /** - * NamespaceByDenom defines a gRPC query method that returns the permissions + * Namespace defines a gRPC query method that returns the permissions * module's namespace associated with the provided denom. * - * @generated from rpc injective.permissions.v1beta1.Query.NamespaceByDenom + * @generated from rpc injective.permissions.v1beta1.Query.Namespace + */ +export const QueryNamespaceService = { + typeName: TYPE_NAME, + method: "Namespace", + Request: QueryNamespaceRequest, + Response: QueryNamespaceResponse, +} as const; + +/** + * RolesByActor defines a gRPC query method that returns roles for the actor + * in the namespace + * + * @generated from rpc injective.permissions.v1beta1.Query.RolesByActor + */ +export const QueryRolesByActorService = { + typeName: TYPE_NAME, + method: "RolesByActor", + Request: QueryRolesByActorRequest, + Response: QueryRolesByActorResponse, +} as const; + +/** + * ActorsByRole defines a gRPC query method that returns a namespace's roles + * associated with the provided actor. + * + * @generated from rpc injective.permissions.v1beta1.Query.ActorsByRole + */ +export const QueryActorsByRoleService = { + typeName: TYPE_NAME, + method: "ActorsByRole", + Request: QueryActorsByRoleRequest, + Response: QueryActorsByRoleResponse, +} as const; + +/** + * RoleManagers defines a gRPC query method that returns a namespace's role + * managers + * + * @generated from rpc injective.permissions.v1beta1.Query.RoleManagers + */ +export const QueryRoleManagersService = { + typeName: TYPE_NAME, + method: "RoleManagers", + Request: QueryRoleManagersRequest, + Response: QueryRoleManagersResponse, +} as const; + +/** + * RoleManager defines a gRPC query method that returns the roles a given role + * manager manages for a given namespace + * + * @generated from rpc injective.permissions.v1beta1.Query.RoleManager + */ +export const QueryRoleManagerService = { + typeName: TYPE_NAME, + method: "RoleManager", + Request: QueryRoleManagerRequest, + Response: QueryRoleManagerResponse, +} as const; + +/** + * PolicyStatuses defines a gRPC query method that returns a namespace's + * policy statuses + * + * @generated from rpc injective.permissions.v1beta1.Query.PolicyStatuses + */ +export const QueryPolicyStatusesService = { + typeName: TYPE_NAME, + method: "PolicyStatuses", + Request: QueryPolicyStatusesRequest, + Response: QueryPolicyStatusesResponse, +} as const; + +/** + * PolicyManagerCapabilities defines a gRPC query method that returns a + * namespace's policy manager capabilities + * + * @generated from rpc injective.permissions.v1beta1.Query.PolicyManagerCapabilities */ -export const QueryNamespaceByDenomService = { +export const QueryPolicyManagerCapabilitiesService = { typeName: TYPE_NAME, - method: "NamespaceByDenom", - Request: QueryNamespaceByDenomRequest, - Response: QueryNamespaceByDenomResponse, + method: "PolicyManagerCapabilities", + Request: QueryPolicyManagerCapabilitiesRequest, + Response: QueryPolicyManagerCapabilitiesResponse, } as const; /** - * AddressRoles defines a gRPC query method that returns address roles in the - * namespace + * Vouchers defines a gRPC query method for the vouchers for a given denom * - * @generated from rpc injective.permissions.v1beta1.Query.AddressRoles + * @generated from rpc injective.permissions.v1beta1.Query.Vouchers */ -export const QueryAddressRolesService = { +export const QueryVouchersService = { typeName: TYPE_NAME, - method: "AddressRoles", - Request: QueryAddressRolesRequest, - Response: QueryAddressRolesResponse, + method: "Vouchers", + Request: QueryVouchersRequest, + Response: QueryVouchersResponse, } as const; /** - * AddressesByRole defines a gRPC query method that returns a namespace's - * roles associated with the provided address. + * Voucher defines a gRPC query method for the vouchers for a given denom and + * address * - * @generated from rpc injective.permissions.v1beta1.Query.AddressesByRole + * @generated from rpc injective.permissions.v1beta1.Query.Voucher */ -export const QueryAddressesByRoleService = { +export const QueryVoucherService = { typeName: TYPE_NAME, - method: "AddressesByRole", - Request: QueryAddressesByRoleRequest, - Response: QueryAddressesByRoleResponse, + method: "Voucher", + Request: QueryVoucherRequest, + Response: QueryVoucherResponse, } as const; /** - * VouchersForAddress defines a gRPC query method that returns a map of - * vouchers that are held by permissions module for this address, keyed by the - * originator address + * Retrieves the entire permissions module's state * - * @generated from rpc injective.permissions.v1beta1.Query.VouchersForAddress + * @generated from rpc injective.permissions.v1beta1.Query.PermissionsModuleState */ -export const QueryVouchersForAddressService = { +export const QueryPermissionsModuleStateService = { typeName: TYPE_NAME, - method: "VouchersForAddress", - Request: QueryVouchersForAddressRequest, - Response: QueryVouchersForAddressResponse, + method: "PermissionsModuleState", + Request: QueryModuleStateRequest, + Response: QueryModuleStateResponse, } as const; diff --git a/src/protobufs/injective/permissions/v1beta1/query_pb.ts b/src/protobufs/injective/permissions/v1beta1/query_pb.ts index 74dd7de9..7c42ce5b 100644 --- a/src/protobufs/injective/permissions/v1beta1/query_pb.ts +++ b/src/protobufs/injective/permissions/v1beta1/query_pb.ts @@ -6,7 +6,9 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; -import { Namespace, Voucher } from "./permissions_pb.js"; +import { AddressVoucher, Namespace, PolicyManagerCapability, PolicyStatus, RoleManager } from "./permissions_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { GenesisState } from "./genesis_pb.js"; /** * QueryParamsRequest is the request type for the Query/Params RPC method. @@ -83,162 +85,238 @@ export class QueryParamsResponse extends Message { } /** - * QueryAllNamespacesRequest is the request type for the Query/AllNamespaces RPC + * QueryNamespaceDenomsRequest is the request type for the Query/NamespaceDenoms + * RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryNamespaceDenomsRequest + */ +export class QueryNamespaceDenomsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceDenomsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceDenomsRequest { + return new QueryNamespaceDenomsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceDenomsRequest { + return new QueryNamespaceDenomsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceDenomsRequest { + return new QueryNamespaceDenomsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNamespaceDenomsRequest | PlainMessage | undefined, b: QueryNamespaceDenomsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespaceDenomsRequest, a, b); + } +} + +/** + * QueryNamespaceDenomsResponse is the response type for the + * Query/NamespaceDenoms RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryNamespaceDenomsResponse + */ +export class QueryNamespaceDenomsResponse extends Message { + /** + * List of denoms + * + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceDenomsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceDenomsResponse { + return new QueryNamespaceDenomsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceDenomsResponse { + return new QueryNamespaceDenomsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceDenomsResponse { + return new QueryNamespaceDenomsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNamespaceDenomsResponse | PlainMessage | undefined, b: QueryNamespaceDenomsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespaceDenomsResponse, a, b); + } +} + +/** + * QueryNamespacesRequest is the request type for the Query/Namespaces RPC * method. * - * @generated from message injective.permissions.v1beta1.QueryAllNamespacesRequest + * @generated from message injective.permissions.v1beta1.QueryNamespacesRequest */ -export class QueryAllNamespacesRequest extends Message { - constructor(data?: PartialMessage) { +export class QueryNamespacesRequest extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAllNamespacesRequest"; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespacesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllNamespacesRequest { - return new QueryAllNamespacesRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespacesRequest { + return new QueryNamespacesRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllNamespacesRequest { - return new QueryAllNamespacesRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespacesRequest { + return new QueryNamespacesRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAllNamespacesRequest { - return new QueryAllNamespacesRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryNamespacesRequest { + return new QueryNamespacesRequest().fromJsonString(jsonString, options); } - static equals(a: QueryAllNamespacesRequest | PlainMessage | undefined, b: QueryAllNamespacesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllNamespacesRequest, a, b); + static equals(a: QueryNamespacesRequest | PlainMessage | undefined, b: QueryNamespacesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespacesRequest, a, b); } } /** - * QueryAllNamespacesResponse is the response type for the Query/AllNamespaces + * QueryNamespacesResponse is the response type for the Query/Namespaces * RPC method. * - * @generated from message injective.permissions.v1beta1.QueryAllNamespacesResponse + * @generated from message injective.permissions.v1beta1.QueryNamespacesResponse */ -export class QueryAllNamespacesResponse extends Message { +export class QueryNamespacesResponse extends Message { /** + * List of namespaces + * * @generated from field: repeated injective.permissions.v1beta1.Namespace namespaces = 1; */ namespaces: Namespace[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAllNamespacesResponse"; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespacesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "namespaces", kind: "message", T: Namespace, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllNamespacesResponse { - return new QueryAllNamespacesResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespacesResponse { + return new QueryNamespacesResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllNamespacesResponse { - return new QueryAllNamespacesResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespacesResponse { + return new QueryNamespacesResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAllNamespacesResponse { - return new QueryAllNamespacesResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryNamespacesResponse { + return new QueryNamespacesResponse().fromJsonString(jsonString, options); } - static equals(a: QueryAllNamespacesResponse | PlainMessage | undefined, b: QueryAllNamespacesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllNamespacesResponse, a, b); + static equals(a: QueryNamespacesResponse | PlainMessage | undefined, b: QueryNamespacesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespacesResponse, a, b); } } /** - * QueryNamespaceByDenomRequest is the request type for the - * Query/NamespaceByDenom RPC method. + * QueryNamespaceRequest is the request type for the + * Query/Namespace RPC method. * - * @generated from message injective.permissions.v1beta1.QueryNamespaceByDenomRequest + * @generated from message injective.permissions.v1beta1.QueryNamespaceRequest */ -export class QueryNamespaceByDenomRequest extends Message { +export class QueryNamespaceRequest extends Message { /** + * The token denom + * * @generated from field: string denom = 1; */ denom = ""; - /** - * @generated from field: bool include_roles = 2; - */ - includeRoles = false; - - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceByDenomRequest"; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "include_roles", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceByDenomRequest { - return new QueryNamespaceByDenomRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceRequest { + return new QueryNamespaceRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceByDenomRequest { - return new QueryNamespaceByDenomRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceRequest { + return new QueryNamespaceRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceByDenomRequest { - return new QueryNamespaceByDenomRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceRequest { + return new QueryNamespaceRequest().fromJsonString(jsonString, options); } - static equals(a: QueryNamespaceByDenomRequest | PlainMessage | undefined, b: QueryNamespaceByDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNamespaceByDenomRequest, a, b); + static equals(a: QueryNamespaceRequest | PlainMessage | undefined, b: QueryNamespaceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespaceRequest, a, b); } } /** - * QueryNamespaceByDenomResponse is the response type for the + * QueryNamespaceResponse is the response type for the * Query/NamespaceByDenom RPC method. * - * @generated from message injective.permissions.v1beta1.QueryNamespaceByDenomResponse + * @generated from message injective.permissions.v1beta1.QueryNamespaceResponse */ -export class QueryNamespaceByDenomResponse extends Message { +export class QueryNamespaceResponse extends Message { /** + * The namespace details + * * @generated from field: injective.permissions.v1beta1.Namespace namespace = 1; */ namespace?: Namespace; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceByDenomResponse"; + static readonly typeName = "injective.permissions.v1beta1.QueryNamespaceResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "namespace", kind: "message", T: Namespace }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceByDenomResponse { - return new QueryNamespaceByDenomResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNamespaceResponse { + return new QueryNamespaceResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceByDenomResponse { - return new QueryNamespaceByDenomResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNamespaceResponse { + return new QueryNamespaceResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceByDenomResponse { - return new QueryNamespaceByDenomResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryNamespaceResponse { + return new QueryNamespaceResponse().fromJsonString(jsonString, options); } - static equals(a: QueryNamespaceByDenomResponse | PlainMessage | undefined, b: QueryNamespaceByDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNamespaceByDenomResponse, a, b); + static equals(a: QueryNamespaceResponse | PlainMessage | undefined, b: QueryNamespaceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNamespaceResponse, a, b); } } @@ -246,45 +324,49 @@ export class QueryNamespaceByDenomResponse extends Message { +export class QueryActorsByRoleRequest extends Message { /** + * The token denom + * * @generated from field: string denom = 1; */ denom = ""; /** + * The role to query actors for + * * @generated from field: string role = 2; */ role = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAddressesByRoleRequest"; + static readonly typeName = "injective.permissions.v1beta1.QueryActorsByRoleRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressesByRoleRequest { - return new QueryAddressesByRoleRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActorsByRoleRequest { + return new QueryActorsByRoleRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressesByRoleRequest { - return new QueryAddressesByRoleRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActorsByRoleRequest { + return new QueryActorsByRoleRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAddressesByRoleRequest { - return new QueryAddressesByRoleRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryActorsByRoleRequest { + return new QueryActorsByRoleRequest().fromJsonString(jsonString, options); } - static equals(a: QueryAddressesByRoleRequest | PlainMessage | undefined, b: QueryAddressesByRoleRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAddressesByRoleRequest, a, b); + static equals(a: QueryActorsByRoleRequest | PlainMessage | undefined, b: QueryActorsByRoleRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActorsByRoleRequest, a, b); } } @@ -292,193 +374,717 @@ export class QueryAddressesByRoleRequest extends Message { +export class QueryActorsByRoleResponse extends Message { /** - * @generated from field: repeated string addresses = 1; + * List of actors' Injective addresses + * + * @generated from field: repeated string actors = 1; */ - addresses: string[] = []; + actors: string[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAddressesByRoleResponse"; + static readonly typeName = "injective.permissions.v1beta1.QueryActorsByRoleResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 1, name: "actors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressesByRoleResponse { - return new QueryAddressesByRoleResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActorsByRoleResponse { + return new QueryActorsByRoleResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressesByRoleResponse { - return new QueryAddressesByRoleResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActorsByRoleResponse { + return new QueryActorsByRoleResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAddressesByRoleResponse { - return new QueryAddressesByRoleResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryActorsByRoleResponse { + return new QueryActorsByRoleResponse().fromJsonString(jsonString, options); } - static equals(a: QueryAddressesByRoleResponse | PlainMessage | undefined, b: QueryAddressesByRoleResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAddressesByRoleResponse, a, b); + static equals(a: QueryActorsByRoleResponse | PlainMessage | undefined, b: QueryActorsByRoleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActorsByRoleResponse, a, b); } } /** - * @generated from message injective.permissions.v1beta1.QueryAddressRolesRequest + * QueryRolesByActorRequest is the request type for the + * Query/RolesByActor RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRolesByActorRequest */ -export class QueryAddressRolesRequest extends Message { +export class QueryRolesByActorRequest extends Message { /** + * The token denom + * * @generated from field: string denom = 1; */ denom = ""; /** - * @generated from field: string address = 2; + * The actor's Injective address + * + * @generated from field: string actor = 2; */ - address = ""; + actor = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAddressRolesRequest"; + static readonly typeName = "injective.permissions.v1beta1.QueryRolesByActorRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "actor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressRolesRequest { - return new QueryAddressRolesRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRolesByActorRequest { + return new QueryRolesByActorRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressRolesRequest { - return new QueryAddressRolesRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRolesByActorRequest { + return new QueryRolesByActorRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAddressRolesRequest { - return new QueryAddressRolesRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryRolesByActorRequest { + return new QueryRolesByActorRequest().fromJsonString(jsonString, options); } - static equals(a: QueryAddressRolesRequest | PlainMessage | undefined, b: QueryAddressRolesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAddressRolesRequest, a, b); + static equals(a: QueryRolesByActorRequest | PlainMessage | undefined, b: QueryRolesByActorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRolesByActorRequest, a, b); } } /** - * @generated from message injective.permissions.v1beta1.QueryAddressRolesResponse + * QueryRolesByActorResponse is the response type for the + * Query/RolesByActor RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRolesByActorResponse */ -export class QueryAddressRolesResponse extends Message { +export class QueryRolesByActorResponse extends Message { /** + * List of roles + * * @generated from field: repeated string roles = 1; */ roles: string[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryAddressRolesResponse"; + static readonly typeName = "injective.permissions.v1beta1.QueryRolesByActorResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "roles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressRolesResponse { - return new QueryAddressRolesResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRolesByActorResponse { + return new QueryRolesByActorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRolesByActorResponse { + return new QueryRolesByActorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRolesByActorResponse { + return new QueryRolesByActorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRolesByActorResponse | PlainMessage | undefined, b: QueryRolesByActorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRolesByActorResponse, a, b); + } +} + +/** + * QueryRoleManagersRequest is the request type for the Query/RoleManagers + * RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRoleManagersRequest + */ +export class QueryRoleManagersRequest extends Message { + /** + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryRoleManagersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRoleManagersRequest { + return new QueryRoleManagersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRoleManagersRequest { + return new QueryRoleManagersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRoleManagersRequest { + return new QueryRoleManagersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRoleManagersRequest | PlainMessage | undefined, b: QueryRoleManagersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRoleManagersRequest, a, b); + } +} + +/** + * QueryRoleManagersResponse is the response type for the + * Query/RoleManagers RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRoleManagersResponse + */ +export class QueryRoleManagersResponse extends Message { + /** + * List of role managers + * + * @generated from field: repeated injective.permissions.v1beta1.RoleManager role_managers = 1; + */ + roleManagers: RoleManager[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryRoleManagersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "role_managers", kind: "message", T: RoleManager, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRoleManagersResponse { + return new QueryRoleManagersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRoleManagersResponse { + return new QueryRoleManagersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRoleManagersResponse { + return new QueryRoleManagersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRoleManagersResponse | PlainMessage | undefined, b: QueryRoleManagersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRoleManagersResponse, a, b); + } +} + +/** + * QueryRoleManagerRequest is the request type for the Query/RoleManager + * RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRoleManagerRequest + */ +export class QueryRoleManagerRequest extends Message { + /** + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * The manager Injective address + * + * @generated from field: string manager = 2; + */ + manager = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryRoleManagerRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "manager", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRoleManagerRequest { + return new QueryRoleManagerRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRoleManagerRequest { + return new QueryRoleManagerRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRoleManagerRequest { + return new QueryRoleManagerRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRoleManagerRequest | PlainMessage | undefined, b: QueryRoleManagerRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRoleManagerRequest, a, b); + } +} + +/** + * QueryRoleManagerResponse is the response type for the + * Query/RoleManager RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryRoleManagerResponse + */ +export class QueryRoleManagerResponse extends Message { + /** + * The role manager details + * + * @generated from field: injective.permissions.v1beta1.RoleManager role_manager = 1; + */ + roleManager?: RoleManager; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryRoleManagerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "role_manager", kind: "message", T: RoleManager }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRoleManagerResponse { + return new QueryRoleManagerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRoleManagerResponse { + return new QueryRoleManagerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRoleManagerResponse { + return new QueryRoleManagerResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRoleManagerResponse | PlainMessage | undefined, b: QueryRoleManagerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRoleManagerResponse, a, b); + } +} + +/** + * QueryPolicyStatusesRequest is the request type for the Query/PolicyStatuses + * RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryPolicyStatusesRequest + */ +export class QueryPolicyStatusesRequest extends Message { + /** + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryPolicyStatusesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPolicyStatusesRequest { + return new QueryPolicyStatusesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPolicyStatusesRequest { + return new QueryPolicyStatusesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPolicyStatusesRequest { + return new QueryPolicyStatusesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPolicyStatusesRequest | PlainMessage | undefined, b: QueryPolicyStatusesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPolicyStatusesRequest, a, b); + } +} + +/** + * QueryRoleManagerResponse is the response type for the + * Query/RoleManager RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryPolicyStatusesResponse + */ +export class QueryPolicyStatusesResponse extends Message { + /** + * List of policy statuses + * + * @generated from field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 1; + */ + policyStatuses: PolicyStatus[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryPolicyStatusesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "policy_statuses", kind: "message", T: PolicyStatus, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPolicyStatusesResponse { + return new QueryPolicyStatusesResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressRolesResponse { - return new QueryAddressRolesResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPolicyStatusesResponse { + return new QueryPolicyStatusesResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryAddressRolesResponse { - return new QueryAddressRolesResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryPolicyStatusesResponse { + return new QueryPolicyStatusesResponse().fromJsonString(jsonString, options); } - static equals(a: QueryAddressRolesResponse | PlainMessage | undefined, b: QueryAddressRolesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAddressRolesResponse, a, b); + static equals(a: QueryPolicyStatusesResponse | PlainMessage | undefined, b: QueryPolicyStatusesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPolicyStatusesResponse, a, b); } } /** - * @generated from message injective.permissions.v1beta1.QueryVouchersForAddressRequest + * QueryPolicyManagerCapabilitiesRequest is the request type for the + * Query/PolicyManagerCapabilities RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesRequest */ -export class QueryVouchersForAddressRequest extends Message { +export class QueryPolicyManagerCapabilitiesRequest extends Message { /** - * @generated from field: string address = 1; + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPolicyManagerCapabilitiesRequest { + return new QueryPolicyManagerCapabilitiesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPolicyManagerCapabilitiesRequest { + return new QueryPolicyManagerCapabilitiesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPolicyManagerCapabilitiesRequest { + return new QueryPolicyManagerCapabilitiesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPolicyManagerCapabilitiesRequest | PlainMessage | undefined, b: QueryPolicyManagerCapabilitiesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPolicyManagerCapabilitiesRequest, a, b); + } +} + +/** + * QueryPolicyManagerCapabilitiesResponse is the response type for the + * Query/PolicyManagerCapabilities RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse + */ +export class QueryPolicyManagerCapabilitiesResponse extends Message { + /** + * List of policy manager capabilities + * + * @generated from field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 1; + */ + policyManagerCapabilities: PolicyManagerCapability[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "policy_manager_capabilities", kind: "message", T: PolicyManagerCapability, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPolicyManagerCapabilitiesResponse { + return new QueryPolicyManagerCapabilitiesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPolicyManagerCapabilitiesResponse { + return new QueryPolicyManagerCapabilitiesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPolicyManagerCapabilitiesResponse { + return new QueryPolicyManagerCapabilitiesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPolicyManagerCapabilitiesResponse | PlainMessage | undefined, b: QueryPolicyManagerCapabilitiesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPolicyManagerCapabilitiesResponse, a, b); + } +} + +/** + * @generated from message injective.permissions.v1beta1.QueryVouchersRequest + */ +export class QueryVouchersRequest extends Message { + /** + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryVouchersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVouchersRequest { + return new QueryVouchersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVouchersRequest { + return new QueryVouchersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVouchersRequest { + return new QueryVouchersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVouchersRequest | PlainMessage | undefined, b: QueryVouchersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVouchersRequest, a, b); + } +} + +/** + * @generated from message injective.permissions.v1beta1.QueryVouchersResponse + */ +export class QueryVouchersResponse extends Message { + /** + * List of vouchers + * + * @generated from field: repeated injective.permissions.v1beta1.AddressVoucher vouchers = 1; + */ + vouchers: AddressVoucher[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryVouchersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vouchers", kind: "message", T: AddressVoucher, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVouchersResponse { + return new QueryVouchersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVouchersResponse { + return new QueryVouchersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVouchersResponse { + return new QueryVouchersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVouchersResponse | PlainMessage | undefined, b: QueryVouchersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVouchersResponse, a, b); + } +} + +/** + * @generated from message injective.permissions.v1beta1.QueryVoucherRequest + */ +export class QueryVoucherRequest extends Message { + /** + * The token denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * The Injective address of the receiver + * + * @generated from field: string address = 2; */ address = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryVouchersForAddressRequest"; + static readonly typeName = "injective.permissions.v1beta1.QueryVoucherRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVouchersForAddressRequest { - return new QueryVouchersForAddressRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoucherRequest { + return new QueryVoucherRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVouchersForAddressRequest { - return new QueryVouchersForAddressRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoucherRequest { + return new QueryVoucherRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryVouchersForAddressRequest { - return new QueryVouchersForAddressRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryVoucherRequest { + return new QueryVoucherRequest().fromJsonString(jsonString, options); } - static equals(a: QueryVouchersForAddressRequest | PlainMessage | undefined, b: QueryVouchersForAddressRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVouchersForAddressRequest, a, b); + static equals(a: QueryVoucherRequest | PlainMessage | undefined, b: QueryVoucherRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoucherRequest, a, b); } } /** - * @generated from message injective.permissions.v1beta1.QueryVouchersForAddressResponse + * @generated from message injective.permissions.v1beta1.QueryVoucherResponse */ -export class QueryVouchersForAddressResponse extends Message { +export class QueryVoucherResponse extends Message { /** - * @generated from field: map vouchers = 1; + * The voucher amount + * + * @generated from field: cosmos.base.v1beta1.Coin voucher = 1; + */ + voucher?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryVoucherResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voucher", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoucherResponse { + return new QueryVoucherResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoucherResponse { + return new QueryVoucherResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoucherResponse { + return new QueryVoucherResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoucherResponse | PlainMessage | undefined, b: QueryVoucherResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoucherResponse, a, b); + } +} + +/** + * QueryModuleStateRequest is the request type for the + * Query/PermissionsModuleState RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryModuleStateRequest + */ +export class QueryModuleStateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.permissions.v1beta1.QueryModuleStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryModuleStateRequest { + return new QueryModuleStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryModuleStateRequest | PlainMessage | undefined, b: QueryModuleStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryModuleStateRequest, a, b); + } +} + +/** + * QueryModuleStateResponse is the response type for the + * Query/PermissionsModuleState RPC method. + * + * @generated from message injective.permissions.v1beta1.QueryModuleStateResponse + */ +export class QueryModuleStateResponse extends Message { + /** + * The module state + * + * @generated from field: injective.permissions.v1beta1.GenesisState state = 1; */ - vouchers: { [key: string]: Voucher } = {}; + state?: GenesisState; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.QueryVouchersForAddressResponse"; + static readonly typeName = "injective.permissions.v1beta1.QueryModuleStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vouchers", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Voucher} }, + { no: 1, name: "state", kind: "message", T: GenesisState }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVouchersForAddressResponse { - return new QueryVouchersForAddressResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVouchersForAddressResponse { - return new QueryVouchersForAddressResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): QueryVouchersForAddressResponse { - return new QueryVouchersForAddressResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): QueryModuleStateResponse { + return new QueryModuleStateResponse().fromJsonString(jsonString, options); } - static equals(a: QueryVouchersForAddressResponse | PlainMessage | undefined, b: QueryVouchersForAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVouchersForAddressResponse, a, b); + static equals(a: QueryModuleStateResponse | PlainMessage | undefined, b: QueryModuleStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryModuleStateResponse, a, b); } } diff --git a/src/protobufs/injective/permissions/v1beta1/tx_cosmes.ts b/src/protobufs/injective/permissions/v1beta1/tx_cosmes.ts index 981996fd..8ffdb852 100644 --- a/src/protobufs/injective/permissions/v1beta1/tx_cosmes.ts +++ b/src/protobufs/injective/permissions/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgClaimVoucher, MsgClaimVoucherResponse, MsgCreateNamespace, MsgCreateNamespaceResponse, MsgDeleteNamespace, MsgDeleteNamespaceResponse, MsgRevokeNamespaceRoles, MsgRevokeNamespaceRolesResponse, MsgUpdateNamespace, MsgUpdateNamespaceResponse, MsgUpdateNamespaceRoles, MsgUpdateNamespaceRolesResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; +import { MsgClaimVoucher, MsgClaimVoucherResponse, MsgCreateNamespace, MsgCreateNamespaceResponse, MsgUpdateActorRoles, MsgUpdateActorRolesResponse, MsgUpdateNamespace, MsgUpdateNamespaceResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; const TYPE_NAME = "injective.permissions.v1beta1.Msg"; @@ -27,16 +27,6 @@ export const MsgCreateNamespaceService = { Response: MsgCreateNamespaceResponse, } as const; -/** - * @generated from rpc injective.permissions.v1beta1.Msg.DeleteNamespace - */ -export const MsgDeleteNamespaceService = { - typeName: TYPE_NAME, - method: "DeleteNamespace", - Request: MsgDeleteNamespace, - Response: MsgDeleteNamespaceResponse, -} as const; - /** * @generated from rpc injective.permissions.v1beta1.Msg.UpdateNamespace */ @@ -48,23 +38,13 @@ export const MsgUpdateNamespaceService = { } as const; /** - * @generated from rpc injective.permissions.v1beta1.Msg.UpdateNamespaceRoles - */ -export const MsgUpdateNamespaceRolesService = { - typeName: TYPE_NAME, - method: "UpdateNamespaceRoles", - Request: MsgUpdateNamespaceRoles, - Response: MsgUpdateNamespaceRolesResponse, -} as const; - -/** - * @generated from rpc injective.permissions.v1beta1.Msg.RevokeNamespaceRoles + * @generated from rpc injective.permissions.v1beta1.Msg.UpdateActorRoles */ -export const MsgRevokeNamespaceRolesService = { +export const MsgUpdateActorRolesService = { typeName: TYPE_NAME, - method: "RevokeNamespaceRoles", - Request: MsgRevokeNamespaceRoles, - Response: MsgRevokeNamespaceRolesResponse, + method: "UpdateActorRoles", + Request: MsgUpdateActorRoles, + Response: MsgUpdateActorRolesResponse, } as const; /** diff --git a/src/protobufs/injective/permissions/v1beta1/tx_pb.ts b/src/protobufs/injective/permissions/v1beta1/tx_pb.ts index d4172398..7bf034fd 100644 --- a/src/protobufs/injective/permissions/v1beta1/tx_pb.ts +++ b/src/protobufs/injective/permissions/v1beta1/tx_pb.ts @@ -6,7 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; -import { Namespace, Roles } from "./permissions_pb.js"; +import { Namespace, PolicyManagerCapability, PolicyStatus, Role, RoleActors, RoleManager } from "./permissions_pb.js"; /** * @generated from message injective.permissions.v1beta1.MsgUpdateParams @@ -93,11 +93,15 @@ export class MsgUpdateParamsResponse extends Message { */ export class MsgCreateNamespace extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The namespace information + * * @generated from field: injective.permissions.v1beta1.Namespace namespace = 2; */ namespace?: Namespace; @@ -162,117 +166,58 @@ export class MsgCreateNamespaceResponse extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: string namespace_denom = 2; - */ - namespaceDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgDeleteNamespace"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteNamespace { - return new MsgDeleteNamespace().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteNamespace { - return new MsgDeleteNamespace().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDeleteNamespace { - return new MsgDeleteNamespace().fromJsonString(jsonString, options); - } - - static equals(a: MsgDeleteNamespace | PlainMessage | undefined, b: MsgDeleteNamespace | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDeleteNamespace, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgDeleteNamespaceResponse - */ -export class MsgDeleteNamespaceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgDeleteNamespaceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteNamespaceResponse { - return new MsgDeleteNamespaceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteNamespaceResponse { - return new MsgDeleteNamespaceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDeleteNamespaceResponse { - return new MsgDeleteNamespaceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDeleteNamespaceResponse | PlainMessage | undefined, b: MsgDeleteNamespaceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDeleteNamespaceResponse, a, b); - } -} - /** * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace */ export class MsgUpdateNamespace extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * namespace denom to which this updates are applied + * denom whose namespace updates are to be applied * - * @generated from field: string namespace_denom = 2; + * @generated from field: string denom = 2; */ - namespaceDenom = ""; + denom = ""; /** * address of smart contract to apply code-based restrictions * - * @generated from field: injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetWasmHook wasm_hook = 3; + * @generated from field: injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook contract_hook = 3; */ - wasmHook?: MsgUpdateNamespace_MsgSetWasmHook; + contractHook?: MsgUpdateNamespace_SetContractHook; /** - * @generated from field: injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetMintsPaused mints_paused = 4; + * role permissions to update + * + * @generated from field: repeated injective.permissions.v1beta1.Role role_permissions = 4; */ - mintsPaused?: MsgUpdateNamespace_MsgSetMintsPaused; + rolePermissions: Role[] = []; /** - * @generated from field: injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetSendsPaused sends_paused = 5; + * role managers to update + * + * @generated from field: repeated injective.permissions.v1beta1.RoleManager role_managers = 5; + */ + roleManagers: RoleManager[] = []; + + /** + * policy statuses to update + * + * @generated from field: repeated injective.permissions.v1beta1.PolicyStatus policy_statuses = 6; */ - sendsPaused?: MsgUpdateNamespace_MsgSetSendsPaused; + policyStatuses: PolicyStatus[] = []; /** - * @generated from field: injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetBurnsPaused burns_paused = 6; + * policy manager capabilities to update + * + * @generated from field: repeated injective.permissions.v1beta1.PolicyManagerCapability policy_manager_capabilities = 7; */ - burnsPaused?: MsgUpdateNamespace_MsgSetBurnsPaused; + policyManagerCapabilities: PolicyManagerCapability[] = []; constructor(data?: PartialMessage) { super(); @@ -283,11 +228,12 @@ export class MsgUpdateNamespace extends Message { static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "wasm_hook", kind: "message", T: MsgUpdateNamespace_MsgSetWasmHook }, - { no: 4, name: "mints_paused", kind: "message", T: MsgUpdateNamespace_MsgSetMintsPaused }, - { no: 5, name: "sends_paused", kind: "message", T: MsgUpdateNamespace_MsgSetSendsPaused }, - { no: 6, name: "burns_paused", kind: "message", T: MsgUpdateNamespace_MsgSetBurnsPaused }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract_hook", kind: "message", T: MsgUpdateNamespace_SetContractHook }, + { no: 4, name: "role_permissions", kind: "message", T: Role, repeated: true }, + { no: 5, name: "role_managers", kind: "message", T: RoleManager, repeated: true }, + { no: 6, name: "policy_statuses", kind: "message", T: PolicyStatus, repeated: true }, + { no: 7, name: "policy_manager_capabilities", kind: "message", T: PolicyManagerCapability, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace { @@ -308,150 +254,39 @@ export class MsgUpdateNamespace extends Message { } /** - * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetWasmHook + * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook */ -export class MsgUpdateNamespace_MsgSetWasmHook extends Message { +export class MsgUpdateNamespace_SetContractHook extends Message { /** * @generated from field: string new_value = 1; */ newValue = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetWasmHook"; + static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace.SetContractHook"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "new_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace_MsgSetWasmHook { - return new MsgUpdateNamespace_MsgSetWasmHook().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespace_MsgSetWasmHook { - return new MsgUpdateNamespace_MsgSetWasmHook().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespace_MsgSetWasmHook { - return new MsgUpdateNamespace_MsgSetWasmHook().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateNamespace_MsgSetWasmHook | PlainMessage | undefined, b: MsgUpdateNamespace_MsgSetWasmHook | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespace_MsgSetWasmHook, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetMintsPaused - */ -export class MsgUpdateNamespace_MsgSetMintsPaused extends Message { - /** - * @generated from field: bool new_value = 1; - */ - newValue = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetMintsPaused"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_value", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace_MsgSetMintsPaused { - return new MsgUpdateNamespace_MsgSetMintsPaused().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace_SetContractHook { + return new MsgUpdateNamespace_SetContractHook().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespace_MsgSetMintsPaused { - return new MsgUpdateNamespace_MsgSetMintsPaused().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespace_SetContractHook { + return new MsgUpdateNamespace_SetContractHook().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespace_MsgSetMintsPaused { - return new MsgUpdateNamespace_MsgSetMintsPaused().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespace_SetContractHook { + return new MsgUpdateNamespace_SetContractHook().fromJsonString(jsonString, options); } - static equals(a: MsgUpdateNamespace_MsgSetMintsPaused | PlainMessage | undefined, b: MsgUpdateNamespace_MsgSetMintsPaused | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespace_MsgSetMintsPaused, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetSendsPaused - */ -export class MsgUpdateNamespace_MsgSetSendsPaused extends Message { - /** - * @generated from field: bool new_value = 1; - */ - newValue = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetSendsPaused"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_value", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace_MsgSetSendsPaused { - return new MsgUpdateNamespace_MsgSetSendsPaused().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespace_MsgSetSendsPaused { - return new MsgUpdateNamespace_MsgSetSendsPaused().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespace_MsgSetSendsPaused { - return new MsgUpdateNamespace_MsgSetSendsPaused().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateNamespace_MsgSetSendsPaused | PlainMessage | undefined, b: MsgUpdateNamespace_MsgSetSendsPaused | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespace_MsgSetSendsPaused, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetBurnsPaused - */ -export class MsgUpdateNamespace_MsgSetBurnsPaused extends Message { - /** - * @generated from field: bool new_value = 1; - */ - newValue = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespace.MsgSetBurnsPaused"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_value", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespace_MsgSetBurnsPaused { - return new MsgUpdateNamespace_MsgSetBurnsPaused().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespace_MsgSetBurnsPaused { - return new MsgUpdateNamespace_MsgSetBurnsPaused().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespace_MsgSetBurnsPaused { - return new MsgUpdateNamespace_MsgSetBurnsPaused().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateNamespace_MsgSetBurnsPaused | PlainMessage | undefined, b: MsgUpdateNamespace_MsgSetBurnsPaused | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespace_MsgSetBurnsPaused, a, b); + static equals(a: MsgUpdateNamespace_SetContractHook | PlainMessage | undefined, b: MsgUpdateNamespace_SetContractHook | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateNamespace_SetContractHook, a, b); } } @@ -487,178 +322,96 @@ export class MsgUpdateNamespaceResponse extends Message { +export class MsgUpdateActorRoles extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * namespace denom to which this updates are applied - * - * @generated from field: string namespace_denom = 2; - */ - namespaceDenom = ""; - - /** - * new role definitions or updated permissions for existing roles + * The namespace denom to which this updates are applied * - * @generated from field: map role_permissions = 3; - */ - rolePermissions: { [key: string]: number } = {}; - - /** - * new addresses to add or new roles for existing addresses to - * - * @generated from field: map address_roles = 4; - */ - addressRoles: { [key: string]: Roles } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespaceRoles"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "role_permissions", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} }, - { no: 4, name: "address_roles", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Roles} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespaceRoles { - return new MsgUpdateNamespaceRoles().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespaceRoles { - return new MsgUpdateNamespaceRoles().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespaceRoles { - return new MsgUpdateNamespaceRoles().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateNamespaceRoles | PlainMessage | undefined, b: MsgUpdateNamespaceRoles | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespaceRoles, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgUpdateNamespaceRolesResponse - */ -export class MsgUpdateNamespaceRolesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgUpdateNamespaceRolesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateNamespaceRolesResponse { - return new MsgUpdateNamespaceRolesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateNamespaceRolesResponse { - return new MsgUpdateNamespaceRolesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateNamespaceRolesResponse { - return new MsgUpdateNamespaceRolesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateNamespaceRolesResponse | PlainMessage | undefined, b: MsgUpdateNamespaceRolesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateNamespaceRolesResponse, a, b); - } -} - -/** - * @generated from message injective.permissions.v1beta1.MsgRevokeNamespaceRoles - */ -export class MsgRevokeNamespaceRoles extends Message { - /** - * @generated from field: string sender = 1; + * @generated from field: string denom = 2; */ - sender = ""; + denom = ""; /** - * namespace denom to which this updates are applied + * The roles to add for given actors * - * @generated from field: string namespace_denom = 2; + * @generated from field: repeated injective.permissions.v1beta1.RoleActors role_actors_to_add = 3; */ - namespaceDenom = ""; + roleActorsToAdd: RoleActors[] = []; /** - * map of {"address" => array of roles to revoke from this address} + * The roles to revoke from given actors * - * @generated from field: map address_roles_to_revoke = 3; + * @generated from field: repeated injective.permissions.v1beta1.RoleActors role_actors_to_revoke = 5; */ - addressRolesToRevoke: { [key: string]: Roles } = {}; + roleActorsToRevoke: RoleActors[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgRevokeNamespaceRoles"; + static readonly typeName = "injective.permissions.v1beta1.MsgUpdateActorRoles"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "address_roles_to_revoke", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Roles} }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "role_actors_to_add", kind: "message", T: RoleActors, repeated: true }, + { no: 5, name: "role_actors_to_revoke", kind: "message", T: RoleActors, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeNamespaceRoles { - return new MsgRevokeNamespaceRoles().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateActorRoles { + return new MsgUpdateActorRoles().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeNamespaceRoles { - return new MsgRevokeNamespaceRoles().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateActorRoles { + return new MsgUpdateActorRoles().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgRevokeNamespaceRoles { - return new MsgRevokeNamespaceRoles().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateActorRoles { + return new MsgUpdateActorRoles().fromJsonString(jsonString, options); } - static equals(a: MsgRevokeNamespaceRoles | PlainMessage | undefined, b: MsgRevokeNamespaceRoles | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevokeNamespaceRoles, a, b); + static equals(a: MsgUpdateActorRoles | PlainMessage | undefined, b: MsgUpdateActorRoles | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateActorRoles, a, b); } } /** - * @generated from message injective.permissions.v1beta1.MsgRevokeNamespaceRolesResponse + * @generated from message injective.permissions.v1beta1.MsgUpdateActorRolesResponse */ -export class MsgRevokeNamespaceRolesResponse extends Message { - constructor(data?: PartialMessage) { +export class MsgUpdateActorRolesResponse extends Message { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.permissions.v1beta1.MsgRevokeNamespaceRolesResponse"; + static readonly typeName = "injective.permissions.v1beta1.MsgUpdateActorRolesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeNamespaceRolesResponse { - return new MsgRevokeNamespaceRolesResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateActorRolesResponse { + return new MsgUpdateActorRolesResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeNamespaceRolesResponse { - return new MsgRevokeNamespaceRolesResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateActorRolesResponse { + return new MsgUpdateActorRolesResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): MsgRevokeNamespaceRolesResponse { - return new MsgRevokeNamespaceRolesResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateActorRolesResponse { + return new MsgUpdateActorRolesResponse().fromJsonString(jsonString, options); } - static equals(a: MsgRevokeNamespaceRolesResponse | PlainMessage | undefined, b: MsgRevokeNamespaceRolesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevokeNamespaceRolesResponse, a, b); + static equals(a: MsgUpdateActorRolesResponse | PlainMessage | undefined, b: MsgUpdateActorRolesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateActorRolesResponse, a, b); } } @@ -667,16 +420,18 @@ export class MsgRevokeNamespaceRolesResponse extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** - * address of the original voucher sender (typically a module address, + * The token denom of the voucher to claim * - * @generated from field: string originator = 2; + * @generated from field: string denom = 2; */ - originator = ""; + denom = ""; constructor(data?: PartialMessage) { super(); @@ -687,7 +442,7 @@ export class MsgClaimVoucher extends Message { static readonly typeName = "injective.permissions.v1beta1.MsgClaimVoucher"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "originator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimVoucher { diff --git a/src/protobufs/injective/stream/v1beta1/query_pb.ts b/src/protobufs/injective/stream/v1beta1/query_pb.ts index badaa0e2..2bb625f5 100644 --- a/src/protobufs/injective/stream/v1beta1/query_pb.ts +++ b/src/protobufs/injective/stream/v1beta1/query_pb.ts @@ -45,51 +45,71 @@ proto3.util.setEnumType(OrderUpdateStatus, "injective.stream.v1beta1.OrderUpdate */ export class StreamRequest extends Message { /** + * filter for bank balances events + * * @generated from field: injective.stream.v1beta1.BankBalancesFilter bank_balances_filter = 1; */ bankBalancesFilter?: BankBalancesFilter; /** + * filter for subaccount deposits events + * * @generated from field: injective.stream.v1beta1.SubaccountDepositsFilter subaccount_deposits_filter = 2; */ subaccountDepositsFilter?: SubaccountDepositsFilter; /** + * filter for spot trades events + * * @generated from field: injective.stream.v1beta1.TradesFilter spot_trades_filter = 3; */ spotTradesFilter?: TradesFilter; /** + * filter for derivative trades events + * * @generated from field: injective.stream.v1beta1.TradesFilter derivative_trades_filter = 4; */ derivativeTradesFilter?: TradesFilter; /** + * filter for spot orders events + * * @generated from field: injective.stream.v1beta1.OrdersFilter spot_orders_filter = 5; */ spotOrdersFilter?: OrdersFilter; /** + * filter for derivative orders events + * * @generated from field: injective.stream.v1beta1.OrdersFilter derivative_orders_filter = 6; */ derivativeOrdersFilter?: OrdersFilter; /** + * filter for spot orderbooks events + * * @generated from field: injective.stream.v1beta1.OrderbookFilter spot_orderbooks_filter = 7; */ spotOrderbooksFilter?: OrderbookFilter; /** + * filter for derivative orderbooks events + * * @generated from field: injective.stream.v1beta1.OrderbookFilter derivative_orderbooks_filter = 8; */ derivativeOrderbooksFilter?: OrderbookFilter; /** + * filter for positions events + * * @generated from field: injective.stream.v1beta1.PositionsFilter positions_filter = 9; */ positionsFilter?: PositionsFilter; /** + * filter for oracle prices events + * * @generated from field: injective.stream.v1beta1.OraclePriceFilter oracle_price_filter = 10; */ oraclePriceFilter?: OraclePriceFilter; @@ -374,11 +394,15 @@ export class BankBalance extends Message { */ export class SubaccountDeposits extends Message { /** + * the subaccount ID + * * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** + * the deposits details + * * @generated from field: repeated injective.stream.v1beta1.SubaccountDeposit deposits = 2; */ deposits: SubaccountDeposit[] = []; @@ -465,9 +489,9 @@ export class SpotOrderUpdate extends Message { status = OrderUpdateStatus.Unspecified; /** - * @generated from field: bytes order_hash = 2; + * @generated from field: string order_hash = 2; */ - orderHash = new Uint8Array(0); + orderHash = ""; /** * @generated from field: string cid = 3; @@ -488,7 +512,7 @@ export class SpotOrderUpdate extends Message { static readonly typeName = "injective.stream.v1beta1.SpotOrderUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(OrderUpdateStatus) }, - { no: 2, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "order", kind: "message", T: SpotOrder }, ]); @@ -563,9 +587,9 @@ export class DerivativeOrderUpdate extends Message { status = OrderUpdateStatus.Unspecified; /** - * @generated from field: bytes order_hash = 2; + * @generated from field: string order_hash = 2; */ - orderHash = new Uint8Array(0); + orderHash = ""; /** * @generated from field: string cid = 3; @@ -586,7 +610,7 @@ export class DerivativeOrderUpdate extends Message { static readonly typeName = "injective.stream.v1beta1.DerivativeOrderUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(OrderUpdateStatus) }, - { no: 2, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "order", kind: "message", T: DerivativeOrder }, ]); @@ -613,16 +637,22 @@ export class DerivativeOrderUpdate extends Message { */ export class DerivativeOrder extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; /** + * the derivative order details + * * @generated from field: injective.exchange.v1beta1.DerivativeLimitOrder order = 2; */ order?: DerivativeLimitOrder; /** + * whether the order is a market order + * * @generated from field: bool is_market = 3; */ isMarket = false; @@ -662,36 +692,50 @@ export class DerivativeOrder extends Message { */ export class Position extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 2; */ subaccountId = ""; /** + * whether the position is long or short + * * @generated from field: bool isLong = 3; */ isLong = false; /** + * the quantity of the position + * * @generated from field: string quantity = 4; */ quantity = ""; /** + * the entry price of the position + * * @generated from field: string entry_price = 5; */ entryPrice = ""; /** + * the margin of the position + * * @generated from field: string margin = 6; */ margin = ""; /** + * the cumulative funding entry of the position + * * @generated from field: string cumulative_funding_entry = 7; */ cumulativeFundingEntry = ""; @@ -784,58 +828,78 @@ export class OraclePrice extends Message { */ export class SpotTrade extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; /** + * whether the trade is a buy or sell + * * @generated from field: bool is_buy = 2; */ isBuy = false; /** + * the execution type + * * @generated from field: string executionType = 3; */ executionType = ""; /** + * the quantity of the trade + * * @generated from field: string quantity = 4; */ quantity = ""; /** + * the price of the trade + * * @generated from field: string price = 5; */ price = ""; /** - * bytes32 subaccount ID that executed the trade + * the subaccount ID that executed the trade * * @generated from field: string subaccount_id = 6; */ subaccountId = ""; /** + * the fee of the trade + * * @generated from field: string fee = 7; */ fee = ""; /** - * @generated from field: bytes order_hash = 8; + * the order hash + * + * @generated from field: string order_hash = 8; */ - orderHash = new Uint8Array(0); + orderHash = ""; /** + * the fee recipient address + * * @generated from field: string fee_recipient_address = 9; */ feeRecipientAddress = ""; /** + * the client order ID + * * @generated from field: string cid = 10; */ cid = ""; /** + * the trade ID + * * @generated from field: string trade_id = 11; */ tradeId = ""; @@ -855,7 +919,7 @@ export class SpotTrade extends Message { { no: 5, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "fee_recipient_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "trade_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, @@ -883,56 +947,78 @@ export class SpotTrade extends Message { */ export class DerivativeTrade extends Message { /** + * the market ID + * * @generated from field: string market_id = 1; */ marketId = ""; /** + * whether the trade is a buy or sell + * * @generated from field: bool is_buy = 2; */ isBuy = false; /** + * the execution type + * * @generated from field: string executionType = 3; */ executionType = ""; /** + * the subaccount ID + * * @generated from field: string subaccount_id = 4; */ subaccountId = ""; /** + * the position delta of the trade + * * @generated from field: injective.exchange.v1beta1.PositionDelta position_delta = 5; */ positionDelta?: PositionDelta; /** + * the payout of the trade + * * @generated from field: string payout = 6; */ payout = ""; /** + * the fee of the trade + * * @generated from field: string fee = 7; */ fee = ""; /** + * the order hash + * * @generated from field: string order_hash = 8; */ orderHash = ""; /** + * the fee recipient address + * * @generated from field: string fee_recipient_address = 9; */ feeRecipientAddress = ""; /** + * the client order ID + * * @generated from field: string cid = 10; */ cid = ""; /** + * the trade ID + * * @generated from field: string trade_id = 11; */ tradeId = ""; diff --git a/src/protobufs/injective/stream/v2/query_cosmes.ts b/src/protobufs/injective/stream/v2/query_cosmes.ts new file mode 100644 index 00000000..123c39ac --- /dev/null +++ b/src/protobufs/injective/stream/v2/query_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/stream/v2/query.proto (package injective.stream.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { StreamRequest, StreamResponse } from "./query_pb.js"; + +const TYPE_NAME = "injective.stream.v2.Stream"; + +/** + * @generated from rpc injective.stream.v2.Stream.StreamV2 + */ +export const StreamStreamV2Service = { + typeName: TYPE_NAME, + method: "StreamV2", + Request: StreamRequest, + Response: StreamResponse, +} as const; + diff --git a/src/protobufs/injective/stream/v2/query_pb.ts b/src/protobufs/injective/stream/v2/query_pb.ts new file mode 100644 index 00000000..3104681a --- /dev/null +++ b/src/protobufs/injective/stream/v2/query_pb.ts @@ -0,0 +1,1693 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/stream/v2/query.proto (package injective.stream.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, Level, PositionDelta } from "../../exchange/v2/exchange_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { DerivativeLimitOrder, SpotLimitOrder } from "../../exchange/v2/order_pb.js"; + +/** + * @generated from enum injective.stream.v2.OrderUpdateStatus + */ +export enum OrderUpdateStatus { + /** + * @generated from enum value: Unspecified = 0; + */ + Unspecified = 0, + + /** + * @generated from enum value: Booked = 1; + */ + Booked = 1, + + /** + * @generated from enum value: Matched = 2; + */ + Matched = 2, + + /** + * @generated from enum value: Cancelled = 3; + */ + Cancelled = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(OrderUpdateStatus) +proto3.util.setEnumType(OrderUpdateStatus, "injective.stream.v2.OrderUpdateStatus", [ + { no: 0, name: "Unspecified" }, + { no: 1, name: "Booked" }, + { no: 2, name: "Matched" }, + { no: 3, name: "Cancelled" }, +]); + +/** + * @generated from message injective.stream.v2.StreamRequest + */ +export class StreamRequest extends Message { + /** + * filter for bank balances events + * + * @generated from field: injective.stream.v2.BankBalancesFilter bank_balances_filter = 1; + */ + bankBalancesFilter?: BankBalancesFilter; + + /** + * filter for subaccount deposits events + * + * @generated from field: injective.stream.v2.SubaccountDepositsFilter subaccount_deposits_filter = 2; + */ + subaccountDepositsFilter?: SubaccountDepositsFilter; + + /** + * filter for spot trades events + * + * @generated from field: injective.stream.v2.TradesFilter spot_trades_filter = 3; + */ + spotTradesFilter?: TradesFilter; + + /** + * filter for derivative trades events + * + * @generated from field: injective.stream.v2.TradesFilter derivative_trades_filter = 4; + */ + derivativeTradesFilter?: TradesFilter; + + /** + * filter for spot orders events + * + * @generated from field: injective.stream.v2.OrdersFilter spot_orders_filter = 5; + */ + spotOrdersFilter?: OrdersFilter; + + /** + * filter for derivative orders events + * + * @generated from field: injective.stream.v2.OrdersFilter derivative_orders_filter = 6; + */ + derivativeOrdersFilter?: OrdersFilter; + + /** + * filter for spot orderbooks events + * + * @generated from field: injective.stream.v2.OrderbookFilter spot_orderbooks_filter = 7; + */ + spotOrderbooksFilter?: OrderbookFilter; + + /** + * filter for derivative orderbooks events + * + * @generated from field: injective.stream.v2.OrderbookFilter derivative_orderbooks_filter = 8; + */ + derivativeOrderbooksFilter?: OrderbookFilter; + + /** + * filter for positions events + * + * @generated from field: injective.stream.v2.PositionsFilter positions_filter = 9; + */ + positionsFilter?: PositionsFilter; + + /** + * filter for oracle prices events + * + * @generated from field: injective.stream.v2.OraclePriceFilter oracle_price_filter = 10; + */ + oraclePriceFilter?: OraclePriceFilter; + + /** + * filter for order failures events + * + * @generated from field: injective.stream.v2.OrderFailuresFilter order_failures_filter = 11; + */ + orderFailuresFilter?: OrderFailuresFilter; + + /** + * filter for conditional order trigger failures events + * + * @generated from field: injective.stream.v2.ConditionalOrderTriggerFailuresFilter conditional_order_trigger_failures_filter = 12; + */ + conditionalOrderTriggerFailuresFilter?: ConditionalOrderTriggerFailuresFilter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.StreamRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bank_balances_filter", kind: "message", T: BankBalancesFilter }, + { no: 2, name: "subaccount_deposits_filter", kind: "message", T: SubaccountDepositsFilter }, + { no: 3, name: "spot_trades_filter", kind: "message", T: TradesFilter }, + { no: 4, name: "derivative_trades_filter", kind: "message", T: TradesFilter }, + { no: 5, name: "spot_orders_filter", kind: "message", T: OrdersFilter }, + { no: 6, name: "derivative_orders_filter", kind: "message", T: OrdersFilter }, + { no: 7, name: "spot_orderbooks_filter", kind: "message", T: OrderbookFilter }, + { no: 8, name: "derivative_orderbooks_filter", kind: "message", T: OrderbookFilter }, + { no: 9, name: "positions_filter", kind: "message", T: PositionsFilter }, + { no: 10, name: "oracle_price_filter", kind: "message", T: OraclePriceFilter }, + { no: 11, name: "order_failures_filter", kind: "message", T: OrderFailuresFilter }, + { no: 12, name: "conditional_order_trigger_failures_filter", kind: "message", T: ConditionalOrderTriggerFailuresFilter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamRequest { + return new StreamRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamRequest { + return new StreamRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamRequest { + return new StreamRequest().fromJsonString(jsonString, options); + } + + static equals(a: StreamRequest | PlainMessage | undefined, b: StreamRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(StreamRequest, a, b); + } +} + +/** + * @generated from message injective.stream.v2.StreamResponse + */ +export class StreamResponse extends Message { + /** + * the block height + * + * @generated from field: uint64 block_height = 1; + */ + blockHeight = protoInt64.zero; + + /** + * the block time + * + * @generated from field: int64 block_time = 2; + */ + blockTime = protoInt64.zero; + + /** + * list of bank balances updates + * + * @generated from field: repeated injective.stream.v2.BankBalance bank_balances = 3; + */ + bankBalances: BankBalance[] = []; + + /** + * list of subaccount deposits updates + * + * @generated from field: repeated injective.stream.v2.SubaccountDeposits subaccount_deposits = 4; + */ + subaccountDeposits: SubaccountDeposits[] = []; + + /** + * list of spot trades updates + * + * @generated from field: repeated injective.stream.v2.SpotTrade spot_trades = 5; + */ + spotTrades: SpotTrade[] = []; + + /** + * list of derivative trades updates + * + * @generated from field: repeated injective.stream.v2.DerivativeTrade derivative_trades = 6; + */ + derivativeTrades: DerivativeTrade[] = []; + + /** + * list of spot orders updates + * + * @generated from field: repeated injective.stream.v2.SpotOrderUpdate spot_orders = 7; + */ + spotOrders: SpotOrderUpdate[] = []; + + /** + * list of derivative orders updates + * + * @generated from field: repeated injective.stream.v2.DerivativeOrderUpdate derivative_orders = 8; + */ + derivativeOrders: DerivativeOrderUpdate[] = []; + + /** + * list of spot orderbook updates + * + * @generated from field: repeated injective.stream.v2.OrderbookUpdate spot_orderbook_updates = 9; + */ + spotOrderbookUpdates: OrderbookUpdate[] = []; + + /** + * list of derivative orderbook updates + * + * @generated from field: repeated injective.stream.v2.OrderbookUpdate derivative_orderbook_updates = 10; + */ + derivativeOrderbookUpdates: OrderbookUpdate[] = []; + + /** + * list of positions updates + * + * @generated from field: repeated injective.stream.v2.Position positions = 11; + */ + positions: Position[] = []; + + /** + * list of oracle prices updates + * + * @generated from field: repeated injective.stream.v2.OraclePrice oracle_prices = 12; + */ + oraclePrices: OraclePrice[] = []; + + /** + * the current gas price when the block was processed (in chain format) + * + * @generated from field: string gas_price = 13; + */ + gasPrice = ""; + + /** + * list of order failures updates + * + * @generated from field: repeated injective.stream.v2.OrderFailureUpdate order_failures = 14; + */ + orderFailures: OrderFailureUpdate[] = []; + + /** + * list of conditional order trigger failures updates + * + * @generated from field: repeated injective.stream.v2.ConditionalOrderTriggerFailureUpdate conditional_order_trigger_failures = 15; + */ + conditionalOrderTriggerFailures: ConditionalOrderTriggerFailureUpdate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.StreamResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "block_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "bank_balances", kind: "message", T: BankBalance, repeated: true }, + { no: 4, name: "subaccount_deposits", kind: "message", T: SubaccountDeposits, repeated: true }, + { no: 5, name: "spot_trades", kind: "message", T: SpotTrade, repeated: true }, + { no: 6, name: "derivative_trades", kind: "message", T: DerivativeTrade, repeated: true }, + { no: 7, name: "spot_orders", kind: "message", T: SpotOrderUpdate, repeated: true }, + { no: 8, name: "derivative_orders", kind: "message", T: DerivativeOrderUpdate, repeated: true }, + { no: 9, name: "spot_orderbook_updates", kind: "message", T: OrderbookUpdate, repeated: true }, + { no: 10, name: "derivative_orderbook_updates", kind: "message", T: OrderbookUpdate, repeated: true }, + { no: 11, name: "positions", kind: "message", T: Position, repeated: true }, + { no: 12, name: "oracle_prices", kind: "message", T: OraclePrice, repeated: true }, + { no: 13, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "order_failures", kind: "message", T: OrderFailureUpdate, repeated: true }, + { no: 15, name: "conditional_order_trigger_failures", kind: "message", T: ConditionalOrderTriggerFailureUpdate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StreamResponse { + return new StreamResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StreamResponse { + return new StreamResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StreamResponse { + return new StreamResponse().fromJsonString(jsonString, options); + } + + static equals(a: StreamResponse | PlainMessage | undefined, b: StreamResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(StreamResponse, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OrderbookUpdate + */ +export class OrderbookUpdate extends Message { + /** + * the sequence number of the orderbook update + * + * @generated from field: uint64 seq = 1; + */ + seq = protoInt64.zero; + + /** + * the orderbook details + * + * @generated from field: injective.stream.v2.Orderbook orderbook = 2; + */ + orderbook?: Orderbook; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OrderbookUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "orderbook", kind: "message", T: Orderbook }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderbookUpdate { + return new OrderbookUpdate().fromJsonString(jsonString, options); + } + + static equals(a: OrderbookUpdate | PlainMessage | undefined, b: OrderbookUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderbookUpdate, a, b); + } +} + +/** + * @generated from message injective.stream.v2.Orderbook + */ +export class Orderbook extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * list of buy levels + * + * @generated from field: repeated injective.exchange.v2.Level buy_levels = 2; + */ + buyLevels: Level[] = []; + + /** + * list of sell levels + * + * @generated from field: repeated injective.exchange.v2.Level sell_levels = 3; + */ + sellLevels: Level[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.Orderbook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "buy_levels", kind: "message", T: Level, repeated: true }, + { no: 3, name: "sell_levels", kind: "message", T: Level, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Orderbook { + return new Orderbook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Orderbook { + return new Orderbook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Orderbook { + return new Orderbook().fromJsonString(jsonString, options); + } + + static equals(a: Orderbook | PlainMessage | undefined, b: Orderbook | PlainMessage | undefined): boolean { + return proto3.util.equals(Orderbook, a, b); + } +} + +/** + * @generated from message injective.stream.v2.BankBalance + */ +export class BankBalance extends Message { + /** + * the account address + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * list of account balances + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balances = 2; + */ + balances: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.BankBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balances", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BankBalance { + return new BankBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BankBalance { + return new BankBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BankBalance { + return new BankBalance().fromJsonString(jsonString, options); + } + + static equals(a: BankBalance | PlainMessage | undefined, b: BankBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(BankBalance, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SubaccountDeposits + */ +export class SubaccountDeposits extends Message { + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 1; + */ + subaccountId = ""; + + /** + * the deposits details + * + * @generated from field: repeated injective.stream.v2.SubaccountDeposit deposits = 2; + */ + deposits: SubaccountDeposit[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SubaccountDeposits"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deposits", kind: "message", T: SubaccountDeposit, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountDeposits { + return new SubaccountDeposits().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountDeposits { + return new SubaccountDeposits().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountDeposits { + return new SubaccountDeposits().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountDeposits | PlainMessage | undefined, b: SubaccountDeposits | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountDeposits, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SubaccountDeposit + */ +export class SubaccountDeposit extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: injective.exchange.v2.Deposit deposit = 2; + */ + deposit?: Deposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SubaccountDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deposit", kind: "message", T: Deposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountDeposit { + return new SubaccountDeposit().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountDeposit | PlainMessage | undefined, b: SubaccountDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountDeposit, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SpotOrderUpdate + */ +export class SpotOrderUpdate extends Message { + /** + * the status of the order + * + * @generated from field: injective.stream.v2.OrderUpdateStatus status = 1; + */ + status = OrderUpdateStatus.Unspecified; + + /** + * the order hash + * + * @generated from field: string order_hash = 2; + */ + orderHash = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 3; + */ + cid = ""; + + /** + * the order details + * + * @generated from field: injective.stream.v2.SpotOrder order = 4; + */ + order?: SpotOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SpotOrderUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(OrderUpdateStatus) }, + { no: 2, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order", kind: "message", T: SpotOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrderUpdate { + return new SpotOrderUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrderUpdate { + return new SpotOrderUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrderUpdate { + return new SpotOrderUpdate().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrderUpdate | PlainMessage | undefined, b: SpotOrderUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrderUpdate, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SpotOrder + */ +export class SpotOrder extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.SpotLimitOrder order = 2; + */ + order?: SpotLimitOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SpotOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: SpotLimitOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotOrder { + return new SpotOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotOrder { + return new SpotOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotOrder { + return new SpotOrder().fromJsonString(jsonString, options); + } + + static equals(a: SpotOrder | PlainMessage | undefined, b: SpotOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotOrder, a, b); + } +} + +/** + * @generated from message injective.stream.v2.DerivativeOrderUpdate + */ +export class DerivativeOrderUpdate extends Message { + /** + * the status of the order + * + * @generated from field: injective.stream.v2.OrderUpdateStatus status = 1; + */ + status = OrderUpdateStatus.Unspecified; + + /** + * the order hash + * + * @generated from field: string order_hash = 2; + */ + orderHash = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 3; + */ + cid = ""; + + /** + * the order details + * + * @generated from field: injective.stream.v2.DerivativeOrder order = 4; + */ + order?: DerivativeOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.DerivativeOrderUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(OrderUpdateStatus) }, + { no: 2, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order", kind: "message", T: DerivativeOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeOrderUpdate { + return new DerivativeOrderUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeOrderUpdate { + return new DerivativeOrderUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeOrderUpdate { + return new DerivativeOrderUpdate().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeOrderUpdate | PlainMessage | undefined, b: DerivativeOrderUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeOrderUpdate, a, b); + } +} + +/** + * @generated from message injective.stream.v2.DerivativeOrder + */ +export class DerivativeOrder extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the order details + * + * @generated from field: injective.exchange.v2.DerivativeLimitOrder order = 2; + */ + order?: DerivativeLimitOrder; + + /** + * whether the order is a market order + * + * @generated from field: bool is_market = 3; + */ + isMarket = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.DerivativeOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order", kind: "message", T: DerivativeLimitOrder }, + { no: 3, name: "is_market", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeOrder { + return new DerivativeOrder().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeOrder | PlainMessage | undefined, b: DerivativeOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeOrder, a, b); + } +} + +/** + * @generated from message injective.stream.v2.Position + */ +export class Position extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * whether the position is long or short + * + * @generated from field: bool isLong = 3; + */ + isLong = false; + + /** + * the quantity of the position (in human readable format) + * + * @generated from field: string quantity = 4; + */ + quantity = ""; + + /** + * the entry price of the position (in human readable format) + * + * @generated from field: string entry_price = 5; + */ + entryPrice = ""; + + /** + * the margin of the position (in human readable format) + * + * @generated from field: string margin = 6; + */ + margin = ""; + + /** + * the cumulative funding entry of the position (in human readable format) + * + * @generated from field: string cumulative_funding_entry = 7; + */ + cumulativeFundingEntry = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "isLong", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "entry_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "margin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "cumulative_funding_entry", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OraclePrice + */ +export class OraclePrice extends Message { + /** + * the symbol of the oracle price + * + * @generated from field: string symbol = 1; + */ + symbol = ""; + + /** + * the updated price + * + * @generated from field: string price = 2; + */ + price = ""; + + /** + * the oracle type + * + * @generated from field: string type = 3; + */ + type = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OraclePrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePrice { + return new OraclePrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePrice { + return new OraclePrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePrice { + return new OraclePrice().fromJsonString(jsonString, options); + } + + static equals(a: OraclePrice | PlainMessage | undefined, b: OraclePrice | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePrice, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SpotTrade + */ +export class SpotTrade extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * whether the trade is a buy or sell + * + * @generated from field: bool is_buy = 2; + */ + isBuy = false; + + /** + * the execution type + * + * @generated from field: string executionType = 3; + */ + executionType = ""; + + /** + * the quantity of the trade (in human readable format) + * + * @generated from field: string quantity = 4; + */ + quantity = ""; + + /** + * the price of the trade (in human readable format) + * + * @generated from field: string price = 5; + */ + price = ""; + + /** + * the subaccount ID that executed the trade + * + * @generated from field: string subaccount_id = 6; + */ + subaccountId = ""; + + /** + * the fee of the trade (in human readable format) + * + * @generated from field: string fee = 7; + */ + fee = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 8; + */ + orderHash = ""; + + /** + * the fee recipient address + * + * @generated from field: string fee_recipient_address = 9; + */ + feeRecipientAddress = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 10; + */ + cid = ""; + + /** + * the trade ID + * + * @generated from field: string trade_id = 11; + */ + tradeId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SpotTrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "executionType", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "fee_recipient_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "trade_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SpotTrade { + return new SpotTrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SpotTrade { + return new SpotTrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SpotTrade { + return new SpotTrade().fromJsonString(jsonString, options); + } + + static equals(a: SpotTrade | PlainMessage | undefined, b: SpotTrade | PlainMessage | undefined): boolean { + return proto3.util.equals(SpotTrade, a, b); + } +} + +/** + * @generated from message injective.stream.v2.DerivativeTrade + */ +export class DerivativeTrade extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * whether the trade is a buy or sell + * + * @generated from field: bool is_buy = 2; + */ + isBuy = false; + + /** + * the execution type + * + * @generated from field: string executionType = 3; + */ + executionType = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 4; + */ + subaccountId = ""; + + /** + * the position delta of the trade (in human readable format) + * + * @generated from field: injective.exchange.v2.PositionDelta position_delta = 5; + */ + positionDelta?: PositionDelta; + + /** + * the payout of the trade (in human readable format) + * + * @generated from field: string payout = 6; + */ + payout = ""; + + /** + * the fee of the trade (in human readable format) + * + * @generated from field: string fee = 7; + */ + fee = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 8; + */ + orderHash = ""; + + /** + * the fee recipient address + * + * @generated from field: string fee_recipient_address = 9; + */ + feeRecipientAddress = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 10; + */ + cid = ""; + + /** + * the trade ID + * + * @generated from field: string trade_id = 11; + */ + tradeId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.DerivativeTrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "executionType", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "position_delta", kind: "message", T: PositionDelta }, + { no: 6, name: "payout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "fee_recipient_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "trade_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeTrade { + return new DerivativeTrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeTrade { + return new DerivativeTrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DerivativeTrade { + return new DerivativeTrade().fromJsonString(jsonString, options); + } + + static equals(a: DerivativeTrade | PlainMessage | undefined, b: DerivativeTrade | PlainMessage | undefined): boolean { + return proto3.util.equals(DerivativeTrade, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OrderFailureUpdate + */ +export class OrderFailureUpdate extends Message { + /** + * the account address + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 2; + */ + orderHash = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 3; + */ + cid = ""; + + /** + * the error code + * + * @generated from field: uint32 error_code = 4; + */ + errorCode = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OrderFailureUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "error_code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderFailureUpdate { + return new OrderFailureUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderFailureUpdate { + return new OrderFailureUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderFailureUpdate { + return new OrderFailureUpdate().fromJsonString(jsonString, options); + } + + static equals(a: OrderFailureUpdate | PlainMessage | undefined, b: OrderFailureUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderFailureUpdate, a, b); + } +} + +/** + * @generated from message injective.stream.v2.ConditionalOrderTriggerFailureUpdate + */ +export class ConditionalOrderTriggerFailureUpdate extends Message { + /** + * the market ID + * + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * the subaccount ID + * + * @generated from field: string subaccount_id = 2; + */ + subaccountId = ""; + + /** + * the mark price + * + * @generated from field: string mark_price = 3; + */ + markPrice = ""; + + /** + * the order hash + * + * @generated from field: string order_hash = 4; + */ + orderHash = ""; + + /** + * the client order ID + * + * @generated from field: string cid = 5; + */ + cid = ""; + + /** + * the error code + * + * @generated from field: string error_description = 6; + */ + errorDescription = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.ConditionalOrderTriggerFailureUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "error_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConditionalOrderTriggerFailureUpdate { + return new ConditionalOrderTriggerFailureUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConditionalOrderTriggerFailureUpdate { + return new ConditionalOrderTriggerFailureUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConditionalOrderTriggerFailureUpdate { + return new ConditionalOrderTriggerFailureUpdate().fromJsonString(jsonString, options); + } + + static equals(a: ConditionalOrderTriggerFailureUpdate | PlainMessage | undefined, b: ConditionalOrderTriggerFailureUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(ConditionalOrderTriggerFailureUpdate, a, b); + } +} + +/** + * @generated from message injective.stream.v2.TradesFilter + */ +export class TradesFilter extends Message { + /** + * list of subaccount IDs to filter by + * + * @generated from field: repeated string subaccount_ids = 1; + */ + subaccountIds: string[] = []; + + /** + * list of market IDs to filter by + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.TradesFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradesFilter { + return new TradesFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradesFilter { + return new TradesFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradesFilter { + return new TradesFilter().fromJsonString(jsonString, options); + } + + static equals(a: TradesFilter | PlainMessage | undefined, b: TradesFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(TradesFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.PositionsFilter + */ +export class PositionsFilter extends Message { + /** + * list of subaccount IDs to filter by + * + * @generated from field: repeated string subaccount_ids = 1; + */ + subaccountIds: string[] = []; + + /** + * list of market IDs to filter by + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.PositionsFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionsFilter { + return new PositionsFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionsFilter { + return new PositionsFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionsFilter { + return new PositionsFilter().fromJsonString(jsonString, options); + } + + static equals(a: PositionsFilter | PlainMessage | undefined, b: PositionsFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionsFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OrdersFilter + */ +export class OrdersFilter extends Message { + /** + * list of subaccount IDs to filter by + * + * @generated from field: repeated string subaccount_ids = 1; + */ + subaccountIds: string[] = []; + + /** + * list of market IDs to filter by + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OrdersFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrdersFilter { + return new OrdersFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrdersFilter { + return new OrdersFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrdersFilter { + return new OrdersFilter().fromJsonString(jsonString, options); + } + + static equals(a: OrdersFilter | PlainMessage | undefined, b: OrdersFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(OrdersFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OrderbookFilter + */ +export class OrderbookFilter extends Message { + /** + * list of market IDs to filter by + * + * @generated from field: repeated string market_ids = 1; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OrderbookFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderbookFilter { + return new OrderbookFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderbookFilter { + return new OrderbookFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderbookFilter { + return new OrderbookFilter().fromJsonString(jsonString, options); + } + + static equals(a: OrderbookFilter | PlainMessage | undefined, b: OrderbookFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderbookFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.BankBalancesFilter + */ +export class BankBalancesFilter extends Message { + /** + * list of account addresses to filter by + * + * @generated from field: repeated string accounts = 1; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.BankBalancesFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BankBalancesFilter { + return new BankBalancesFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BankBalancesFilter { + return new BankBalancesFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BankBalancesFilter { + return new BankBalancesFilter().fromJsonString(jsonString, options); + } + + static equals(a: BankBalancesFilter | PlainMessage | undefined, b: BankBalancesFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(BankBalancesFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.SubaccountDepositsFilter + */ +export class SubaccountDepositsFilter extends Message { + /** + * list of subaccount IDs to filter by + * + * @generated from field: repeated string subaccount_ids = 1; + */ + subaccountIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.SubaccountDepositsFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubaccountDepositsFilter { + return new SubaccountDepositsFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubaccountDepositsFilter { + return new SubaccountDepositsFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubaccountDepositsFilter { + return new SubaccountDepositsFilter().fromJsonString(jsonString, options); + } + + static equals(a: SubaccountDepositsFilter | PlainMessage | undefined, b: SubaccountDepositsFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(SubaccountDepositsFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OraclePriceFilter + */ +export class OraclePriceFilter extends Message { + /** + * list of symbols to filter by + * + * @generated from field: repeated string symbol = 1; + */ + symbol: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OraclePriceFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePriceFilter { + return new OraclePriceFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePriceFilter { + return new OraclePriceFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePriceFilter { + return new OraclePriceFilter().fromJsonString(jsonString, options); + } + + static equals(a: OraclePriceFilter | PlainMessage | undefined, b: OraclePriceFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePriceFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.OrderFailuresFilter + */ +export class OrderFailuresFilter extends Message { + /** + * list of account addresses to filter by + * + * @generated from field: repeated string accounts = 1; + */ + accounts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.OrderFailuresFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderFailuresFilter { + return new OrderFailuresFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderFailuresFilter { + return new OrderFailuresFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderFailuresFilter { + return new OrderFailuresFilter().fromJsonString(jsonString, options); + } + + static equals(a: OrderFailuresFilter | PlainMessage | undefined, b: OrderFailuresFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderFailuresFilter, a, b); + } +} + +/** + * @generated from message injective.stream.v2.ConditionalOrderTriggerFailuresFilter + */ +export class ConditionalOrderTriggerFailuresFilter extends Message { + /** + * list of subaccount IDs to filter by + * + * @generated from field: repeated string subaccount_ids = 1; + */ + subaccountIds: string[] = []; + + /** + * list of market IDs to filter by + * + * @generated from field: repeated string market_ids = 2; + */ + marketIds: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.stream.v2.ConditionalOrderTriggerFailuresFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subaccount_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConditionalOrderTriggerFailuresFilter { + return new ConditionalOrderTriggerFailuresFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConditionalOrderTriggerFailuresFilter { + return new ConditionalOrderTriggerFailuresFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConditionalOrderTriggerFailuresFilter { + return new ConditionalOrderTriggerFailuresFilter().fromJsonString(jsonString, options); + } + + static equals(a: ConditionalOrderTriggerFailuresFilter | PlainMessage | undefined, b: ConditionalOrderTriggerFailuresFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(ConditionalOrderTriggerFailuresFilter, a, b); + } +} + diff --git a/src/protobufs/injective/tokenfactory/v1beta1/authorityMetadata_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/authorityMetadata_pb.ts index cb45edb3..19c244a4 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/authorityMetadata_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/authorityMetadata_pb.ts @@ -21,6 +21,13 @@ export class DenomAuthorityMetadata extends Message { */ admin = ""; + /** + * true if the admin can burn tokens from other addresses + * + * @generated from field: bool admin_burn_allowed = 2; + */ + adminBurnAllowed = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -30,6 +37,7 @@ export class DenomAuthorityMetadata extends Message { static readonly typeName = "injective.tokenfactory.v1beta1.DenomAuthorityMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "admin_burn_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DenomAuthorityMetadata { diff --git a/src/protobufs/injective/tokenfactory/v1beta1/events_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/events_pb.ts index ecd716d1..73b80ea0 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/events_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/events_pb.ts @@ -9,9 +9,9 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; /** - * @generated from message injective.tokenfactory.v1beta1.EventCreateTFDenom + * @generated from message injective.tokenfactory.v1beta1.EventCreateDenom */ -export class EventCreateTFDenom extends Message { +export class EventCreateDenom extends Message { /** * @generated from field: string account = 1; */ @@ -22,125 +22,137 @@ export class EventCreateTFDenom extends Message { */ denom = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.tokenfactory.v1beta1.EventCreateTFDenom"; + static readonly typeName = "injective.tokenfactory.v1beta1.EventCreateDenom"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateTFDenom { - return new EventCreateTFDenom().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateTFDenom { - return new EventCreateTFDenom().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): EventCreateTFDenom { - return new EventCreateTFDenom().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromJsonString(jsonString, options); } - static equals(a: EventCreateTFDenom | PlainMessage | undefined, b: EventCreateTFDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCreateTFDenom, a, b); + static equals(a: EventCreateDenom | PlainMessage | undefined, b: EventCreateDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreateDenom, a, b); } } /** - * @generated from message injective.tokenfactory.v1beta1.EventMintTFDenom + * @generated from message injective.tokenfactory.v1beta1.EventMint */ -export class EventMintTFDenom extends Message { +export class EventMint extends Message { /** - * @generated from field: string recipient_address = 1; + * @generated from field: string minter = 1; */ - recipientAddress = ""; + minter = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; - constructor(data?: PartialMessage) { + /** + * @generated from field: string receiver = 3; + */ + receiver = ""; + + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.tokenfactory.v1beta1.EventMintTFDenom"; + static readonly typeName = "injective.tokenfactory.v1beta1.EventMint"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recipient_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "minter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): EventMintTFDenom { - return new EventMintTFDenom().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): EventMint { + return new EventMint().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): EventMintTFDenom { - return new EventMintTFDenom().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): EventMint { + return new EventMint().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): EventMintTFDenom { - return new EventMintTFDenom().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): EventMint { + return new EventMint().fromJsonString(jsonString, options); } - static equals(a: EventMintTFDenom | PlainMessage | undefined, b: EventMintTFDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(EventMintTFDenom, a, b); + static equals(a: EventMint | PlainMessage | undefined, b: EventMint | PlainMessage | undefined): boolean { + return proto3.util.equals(EventMint, a, b); } } /** - * @generated from message injective.tokenfactory.v1beta1.EventBurnDenom + * @generated from message injective.tokenfactory.v1beta1.EventBurn */ -export class EventBurnDenom extends Message { +export class EventBurn extends Message { /** - * @generated from field: string burner_address = 1; + * @generated from field: string burner = 1; */ - burnerAddress = ""; + burner = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; - constructor(data?: PartialMessage) { + /** + * @generated from field: string burn_from = 3; + */ + burnFrom = ""; + + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.tokenfactory.v1beta1.EventBurnDenom"; + static readonly typeName = "injective.tokenfactory.v1beta1.EventBurn"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "burner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "burner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "burn_from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): EventBurnDenom { - return new EventBurnDenom().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): EventBurn { + return new EventBurn().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): EventBurnDenom { - return new EventBurnDenom().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): EventBurn { + return new EventBurn().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): EventBurnDenom { - return new EventBurnDenom().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): EventBurn { + return new EventBurn().fromJsonString(jsonString, options); } - static equals(a: EventBurnDenom | PlainMessage | undefined, b: EventBurnDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBurnDenom, a, b); + static equals(a: EventBurn | PlainMessage | undefined, b: EventBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBurn, a, b); } } /** - * @generated from message injective.tokenfactory.v1beta1.EventChangeTFAdmin + * @generated from message injective.tokenfactory.v1beta1.EventChangeAdmin */ -export class EventChangeTFAdmin extends Message { +export class EventChangeAdmin extends Message { /** * @generated from field: string denom = 1; */ @@ -151,39 +163,39 @@ export class EventChangeTFAdmin extends Message { */ newAdminAddress = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.tokenfactory.v1beta1.EventChangeTFAdmin"; + static readonly typeName = "injective.tokenfactory.v1beta1.EventChangeAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "new_admin_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): EventChangeTFAdmin { - return new EventChangeTFAdmin().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): EventChangeTFAdmin { - return new EventChangeTFAdmin().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): EventChangeTFAdmin { - return new EventChangeTFAdmin().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromJsonString(jsonString, options); } - static equals(a: EventChangeTFAdmin | PlainMessage | undefined, b: EventChangeTFAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(EventChangeTFAdmin, a, b); + static equals(a: EventChangeAdmin | PlainMessage | undefined, b: EventChangeAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(EventChangeAdmin, a, b); } } /** - * @generated from message injective.tokenfactory.v1beta1.EventSetTFDenomMetadata + * @generated from message injective.tokenfactory.v1beta1.EventSetDenomMetadata */ -export class EventSetTFDenomMetadata extends Message { +export class EventSetDenomMetadata extends Message { /** * @generated from field: string denom = 1; */ @@ -194,32 +206,32 @@ export class EventSetTFDenomMetadata extends Message { */ metadata?: Metadata; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "injective.tokenfactory.v1beta1.EventSetTFDenomMetadata"; + static readonly typeName = "injective.tokenfactory.v1beta1.EventSetDenomMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "metadata", kind: "message", T: Metadata }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): EventSetTFDenomMetadata { - return new EventSetTFDenomMetadata().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): EventSetTFDenomMetadata { - return new EventSetTFDenomMetadata().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): EventSetTFDenomMetadata { - return new EventSetTFDenomMetadata().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromJsonString(jsonString, options); } - static equals(a: EventSetTFDenomMetadata | PlainMessage | undefined, b: EventSetTFDenomMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSetTFDenomMetadata, a, b); + static equals(a: EventSetDenomMetadata | PlainMessage | undefined, b: EventSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetDenomMetadata, a, b); } } diff --git a/src/protobufs/injective/tokenfactory/v1beta1/genesis_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/genesis_pb.ts index 9b3d3402..c9354961 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/genesis_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/genesis_pb.ts @@ -64,25 +64,40 @@ export class GenesisState extends Message { */ export class GenesisDenom extends Message { /** + * The denom + * * @generated from field: string denom = 1; */ denom = ""; /** + * The authority metadata + * * @generated from field: injective.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 2; */ authorityMetadata?: DenomAuthorityMetadata; /** + * The name + * * @generated from field: string name = 3; */ name = ""; /** + * The symbol + * * @generated from field: string symbol = 4; */ symbol = ""; + /** + * The number of decimals + * + * @generated from field: uint32 decimals = 5; + */ + decimals = 0; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -95,6 +110,7 @@ export class GenesisDenom extends Message { { no: 2, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDenom { diff --git a/src/protobufs/injective/tokenfactory/v1beta1/params_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/params_pb.ts index 1bb23a39..cdba4a9a 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/params_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/params_pb.ts @@ -14,6 +14,8 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; */ export class Params extends Message { /** + * The denom creation fee + * * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; */ denomCreationFee: Coin[] = []; diff --git a/src/protobufs/injective/tokenfactory/v1beta1/query_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/query_pb.ts index 9f51b0b0..693499b4 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/query_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/query_pb.ts @@ -91,11 +91,15 @@ export class QueryParamsResponse extends Message { */ export class QueryDenomAuthorityMetadataRequest extends Message { /** + * The creator's Injective address + * * @generated from field: string creator = 1; */ creator = ""; /** + * The sub-denom + * * @generated from field: string sub_denom = 2; */ subDenom = ""; @@ -137,6 +141,8 @@ export class QueryDenomAuthorityMetadataRequest extends Message { /** + * The authority metadata + * * @generated from field: injective.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 1; */ authorityMetadata?: DenomAuthorityMetadata; @@ -177,6 +183,8 @@ export class QueryDenomAuthorityMetadataResponse extends Message { /** + * The creator's Injective address + * * @generated from field: string creator = 1; */ creator = ""; @@ -217,6 +225,8 @@ export class QueryDenomsFromCreatorRequest extends Message { /** + * The list of denoms + * * @generated from field: repeated string denoms = 1; */ denoms: string[] = []; @@ -291,6 +301,8 @@ export class QueryModuleStateRequest extends Message { */ export class QueryModuleStateResponse extends Message { /** + * The module state + * * @generated from field: injective.tokenfactory.v1beta1.GenesisState state = 1; */ state?: GenesisState; diff --git a/src/protobufs/injective/tokenfactory/v1beta1/tx_pb.ts b/src/protobufs/injective/tokenfactory/v1beta1/tx_pb.ts index af9056e0..614a143f 100644 --- a/src/protobufs/injective/tokenfactory/v1beta1/tx_pb.ts +++ b/src/protobufs/injective/tokenfactory/v1beta1/tx_pb.ts @@ -24,6 +24,8 @@ import { Params } from "./params_pb.js"; */ export class MsgCreateDenom extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; @@ -36,15 +38,33 @@ export class MsgCreateDenom extends Message { subdenom = ""; /** + * The name + * * @generated from field: string name = 3; */ name = ""; /** + * The symbol + * * @generated from field: string symbol = 4; */ symbol = ""; + /** + * The number of decimals + * + * @generated from field: uint32 decimals = 5; + */ + decimals = 0; + + /** + * true if admins are allowed to burn tokens from other addresses + * + * @generated from field: bool allow_admin_burn = 6; + */ + allowAdminBurn = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -57,6 +77,8 @@ export class MsgCreateDenom extends Message { { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "allow_admin_burn", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { @@ -117,22 +139,33 @@ export class MsgCreateDenomResponse extends Message { } /** - * MsgMint is the sdk.Msg type for allowing an admin account to mint - * more of a token. For now, we only support minting to the sender account + * MsgMint is the sdk.Msg type for allowing an admin account or other permitted + * accounts to mint more of a token. * * @generated from message injective.tokenfactory.v1beta1.MsgMint */ export class MsgMint extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The amount of tokens to mint + * * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; + /** + * The Injective address to receive the tokens + * + * @generated from field: string receiver = 3; + */ + receiver = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -143,6 +176,7 @@ export class MsgMint extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { @@ -195,21 +229,32 @@ export class MsgMintResponse extends Message { /** * MsgBurn is the sdk.Msg type for allowing an admin account to burn - * a token. For now, we only support burning from the sender account. + * a token. * * @generated from message injective.tokenfactory.v1beta1.MsgBurn */ export class MsgBurn extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The amount of tokens to burn + * * @generated from field: cosmos.base.v1beta1.Coin amount = 2; */ amount?: Coin; + /** + * The Injective address to burn the tokens from + * + * @generated from field: string burnFromAddress = 3; + */ + burnFromAddress = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -220,6 +265,7 @@ export class MsgBurn extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "burnFromAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { @@ -278,16 +324,22 @@ export class MsgBurnResponse extends Message { */ export class MsgChangeAdmin extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The denom + * * @generated from field: string denom = 2; */ denom = ""; /** + * The new admin's Injective address + * * @generated from field: string new_admin = 3; */ newAdmin = ""; @@ -364,15 +416,24 @@ export class MsgChangeAdminResponse extends Message { */ export class MsgSetDenomMetadata extends Message { /** + * The sender's Injective address + * * @generated from field: string sender = 1; */ sender = ""; /** + * The metadata + * * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; */ metadata?: Metadata; + /** + * @generated from field: injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled admin_burn_disabled = 3; + */ + adminBurnDisabled?: MsgSetDenomMetadata_AdminBurnDisabled; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -383,6 +444,7 @@ export class MsgSetDenomMetadata extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "metadata", kind: "message", T: Metadata }, + { no: 3, name: "admin_burn_disabled", kind: "message", T: MsgSetDenomMetadata_AdminBurnDisabled }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { @@ -402,6 +464,45 @@ export class MsgSetDenomMetadata extends Message { } } +/** + * @generated from message injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled + */ +export class MsgSetDenomMetadata_AdminBurnDisabled extends Message { + /** + * true if the admin burn capability should be disabled + * + * @generated from field: bool should_disable = 1; + */ + shouldDisable = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.tokenfactory.v1beta1.MsgSetDenomMetadata.AdminBurnDisabled"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "should_disable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata_AdminBurnDisabled { + return new MsgSetDenomMetadata_AdminBurnDisabled().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata_AdminBurnDisabled { + return new MsgSetDenomMetadata_AdminBurnDisabled().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata_AdminBurnDisabled { + return new MsgSetDenomMetadata_AdminBurnDisabled().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadata_AdminBurnDisabled | PlainMessage | undefined, b: MsgSetDenomMetadata_AdminBurnDisabled | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadata_AdminBurnDisabled, a, b); + } +} + /** * MsgSetDenomMetadataResponse defines the response structure for an executed * MsgSetDenomMetadata message. diff --git a/src/protobufs/injective/txfees/v1beta1/genesis_pb.ts b/src/protobufs/injective/txfees/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..5a8007c6 --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/genesis_pb.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/genesis.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./txfees_pb.js"; + +/** + * @generated from message injective.txfees.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: injective.txfees.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/injective/txfees/v1beta1/query_cosmes.ts b/src/protobufs/injective/txfees/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..1ac139b8 --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/query_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/query.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryEipBaseFeeRequest, QueryEipBaseFeeResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "injective.txfees.v1beta1.Query"; + +/** + * Params defines a gRPC query method that returns the tokenfactory module's + * parameters. + * + * @generated from rpc injective.txfees.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Returns the current fee market EIP fee. + * + * @generated from rpc injective.txfees.v1beta1.Query.GetEipBaseFee + */ +export const QueryGetEipBaseFeeService = { + typeName: TYPE_NAME, + method: "GetEipBaseFee", + Request: QueryEipBaseFeeRequest, + Response: QueryEipBaseFeeResponse, +} as const; + diff --git a/src/protobufs/injective/txfees/v1beta1/query_pb.ts b/src/protobufs/injective/txfees/v1beta1/query_pb.ts new file mode 100644 index 00000000..21f79442 --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/query_pb.ts @@ -0,0 +1,190 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/query.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./txfees_pb.js"; + +/** + * @generated from message injective.txfees.v1beta1.EipBaseFee + */ +export class EipBaseFee extends Message { + /** + * The current chain gas price + * + * @generated from field: string base_fee = 1; + */ + baseFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.EipBaseFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EipBaseFee { + return new EipBaseFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EipBaseFee { + return new EipBaseFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EipBaseFee { + return new EipBaseFee().fromJsonString(jsonString, options); + } + + static equals(a: EipBaseFee | PlainMessage | undefined, b: EipBaseFee | PlainMessage | undefined): boolean { + return proto3.util.equals(EipBaseFee, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message injective.txfees.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message injective.txfees.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: injective.txfees.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message injective.txfees.v1beta1.QueryEipBaseFeeRequest + */ +export class QueryEipBaseFeeRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.QueryEipBaseFeeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEipBaseFeeRequest { + return new QueryEipBaseFeeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEipBaseFeeRequest { + return new QueryEipBaseFeeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEipBaseFeeRequest { + return new QueryEipBaseFeeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEipBaseFeeRequest | PlainMessage | undefined, b: QueryEipBaseFeeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEipBaseFeeRequest, a, b); + } +} + +/** + * @generated from message injective.txfees.v1beta1.QueryEipBaseFeeResponse + */ +export class QueryEipBaseFeeResponse extends Message { + /** + * @generated from field: injective.txfees.v1beta1.EipBaseFee base_fee = 1; + */ + baseFee?: EipBaseFee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.QueryEipBaseFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_fee", kind: "message", T: EipBaseFee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEipBaseFeeResponse { + return new QueryEipBaseFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEipBaseFeeResponse { + return new QueryEipBaseFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEipBaseFeeResponse { + return new QueryEipBaseFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEipBaseFeeResponse | PlainMessage | undefined, b: QueryEipBaseFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEipBaseFeeResponse, a, b); + } +} + diff --git a/src/protobufs/injective/txfees/v1beta1/tx_cosmes.ts b/src/protobufs/injective/txfees/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..f3e90273 --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/tx.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "injective.txfees.v1beta1.Msg"; + +/** + * @generated from rpc injective.txfees.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/injective/txfees/v1beta1/tx_pb.ts b/src/protobufs/injective/txfees/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a19c3ecc --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/tx_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/tx.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./txfees_pb.js"; + +/** + * @generated from message injective.txfees.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the ocr parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: injective.txfees.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message injective.txfees.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/injective/txfees/v1beta1/txfees_pb.ts b/src/protobufs/injective/txfees/v1beta1/txfees_pb.ts new file mode 100644 index 00000000..c26f33d9 --- /dev/null +++ b/src/protobufs/injective/txfees/v1beta1/txfees_pb.ts @@ -0,0 +1,117 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/txfees/v1beta1/txfees.proto (package injective.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message injective.txfees.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: uint64 max_gas_wanted_per_tx = 1; + */ + maxGasWantedPerTx = protoInt64.zero; + + /** + * @generated from field: uint64 high_gas_tx_threshold = 2; + */ + highGasTxThreshold = protoInt64.zero; + + /** + * @generated from field: string min_gas_price_for_high_gas_tx = 3; + */ + minGasPriceForHighGasTx = ""; + + /** + * @generated from field: bool mempool1559_enabled = 4; + */ + mempool1559Enabled = false; + + /** + * @generated from field: string min_gas_price = 5; + */ + minGasPrice = ""; + + /** + * @generated from field: string default_base_fee_multiplier = 6; + */ + defaultBaseFeeMultiplier = ""; + + /** + * @generated from field: string max_base_fee_multiplier = 7; + */ + maxBaseFeeMultiplier = ""; + + /** + * @generated from field: int64 reset_interval = 8; + */ + resetInterval = protoInt64.zero; + + /** + * @generated from field: string max_block_change_rate = 9; + */ + maxBlockChangeRate = ""; + + /** + * @generated from field: string target_block_space_percent_rate = 10; + */ + targetBlockSpacePercentRate = ""; + + /** + * @generated from field: string recheck_fee_low_base_fee = 11; + */ + recheckFeeLowBaseFee = ""; + + /** + * @generated from field: string recheck_fee_high_base_fee = 12; + */ + recheckFeeHighBaseFee = ""; + + /** + * @generated from field: string recheck_fee_base_fee_threshold_multiplier = 13; + */ + recheckFeeBaseFeeThresholdMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.txfees.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_gas_wanted_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "high_gas_tx_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "min_gas_price_for_high_gas_tx", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "mempool1559_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "min_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "default_base_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "max_base_fee_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "reset_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "max_block_change_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "target_block_space_percent_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "recheck_fee_low_base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "recheck_fee_high_base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "recheck_fee_base_fee_threshold_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/injective/types/v1beta1/indexer_pb.ts b/src/protobufs/injective/types/v1beta1/indexer_pb.ts new file mode 100644 index 00000000..38b0e599 --- /dev/null +++ b/src/protobufs/injective/types/v1beta1/indexer_pb.ts @@ -0,0 +1,100 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/types/v1beta1/indexer.proto (package injective.types.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * TxResult is the value stored in eth tx indexer + * + * @generated from message injective.types.v1beta1.TxResult + */ +export class TxResult extends Message { + /** + * height of the blockchain + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * tx_index of the cosmos transaction + * + * @generated from field: uint32 tx_index = 2; + */ + txIndex = 0; + + /** + * msg_index in a batch transaction + * + * @generated from field: uint32 msg_index = 3; + */ + msgIndex = 0; + + /** + * eth_tx_index is the index in the list of valid eth tx in the block, + * aka. the transaction list returned by eth_getBlock api. + * + * @generated from field: int32 eth_tx_index = 4; + */ + ethTxIndex = 0; + + /** + * failed is true if the eth transaction did not go succeed + * + * @generated from field: bool failed = 5; + */ + failed = false; + + /** + * gas_used by the transaction. If it exceeds the block gas limit, + * it's set to gas limit, which is what's actually deducted by ante handler. + * + * @generated from field: uint64 gas_used = 6; + */ + gasUsed = protoInt64.zero; + + /** + * cumulative_gas_used specifies the cumulated amount of gas used for all + * processed messages within the current batch transaction. + * + * @generated from field: uint64 cumulative_gas_used = 7; + */ + cumulativeGasUsed = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.types.v1beta1.TxResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "msg_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "eth_tx_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "cumulative_gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { + return new TxResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { + return new TxResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxResult { + return new TxResult().fromJsonString(jsonString, options); + } + + static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { + return proto3.util.equals(TxResult, a, b); + } +} + diff --git a/src/protobufs/injective/wasmx/v1/authz_pb.ts b/src/protobufs/injective/wasmx/v1/authz_pb.ts new file mode 100644 index 00000000..80551199 --- /dev/null +++ b/src/protobufs/injective/wasmx/v1/authz_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file injective/wasmx/v1/authz.proto (package injective.wasmx.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ContractGrant } from "../../../cosmwasm/wasm/v1/authz_pb.js"; + +/** + * ContractExecutionAuthorization defines authorization for wasm execute. + * Since: wasmd 0.30 + * + * @generated from message injective.wasmx.v1.ContractExecutionCompatAuthorization + */ +export class ContractExecutionCompatAuthorization extends Message { + /** + * Grants for contract executions + * + * @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1; + */ + grants: ContractGrant[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "injective.wasmx.v1.ContractExecutionCompatAuthorization"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContractExecutionCompatAuthorization { + return new ContractExecutionCompatAuthorization().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContractExecutionCompatAuthorization { + return new ContractExecutionCompatAuthorization().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContractExecutionCompatAuthorization { + return new ContractExecutionCompatAuthorization().fromJsonString(jsonString, options); + } + + static equals(a: ContractExecutionCompatAuthorization | PlainMessage | undefined, b: ContractExecutionCompatAuthorization | PlainMessage | undefined): boolean { + return proto3.util.equals(ContractExecutionCompatAuthorization, a, b); + } +} + diff --git a/src/protobufs/injective/wasmx/v1/wasmx_pb.ts b/src/protobufs/injective/wasmx/v1/wasmx_pb.ts index 1e7828a4..3001945c 100644 --- a/src/protobufs/injective/wasmx/v1/wasmx_pb.ts +++ b/src/protobufs/injective/wasmx/v1/wasmx_pb.ts @@ -5,6 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccessConfig } from "../../../cosmwasm/wasm/v1/types_pb.js"; import { FundingMode } from "./proposal_pb.js"; /** @@ -43,6 +44,11 @@ export class Params extends Message { */ minGasPrice = protoInt64.zero; + /** + * @generated from field: cosmwasm.wasm.v1.AccessConfig register_contract_access = 5; + */ + registerContractAccess?: AccessConfig; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -55,6 +61,7 @@ export class Params extends Message { { no: 2, name: "max_begin_block_total_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "max_contract_gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "min_gas_price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "register_contract_access", kind: "message", T: AccessConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/kava/auction/v1beta1/auction_pb.ts b/src/protobufs/kava/auction/v1beta1/auction_pb.ts new file mode 100644 index 00000000..0a9f8977 --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/auction_pb.ts @@ -0,0 +1,283 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/auction.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * BaseAuction defines common attributes of all auctions + * + * @generated from message kava.auction.v1beta1.BaseAuction + */ +export class BaseAuction extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string initiator = 2; + */ + initiator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin lot = 3; + */ + lot?: Coin; + + /** + * @generated from field: bytes bidder = 4; + */ + bidder = new Uint8Array(0); + + /** + * @generated from field: cosmos.base.v1beta1.Coin bid = 5; + */ + bid?: Coin; + + /** + * @generated from field: bool has_received_bids = 6; + */ + hasReceivedBids = false; + + /** + * @generated from field: google.protobuf.Timestamp end_time = 7; + */ + endTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp max_end_time = 8; + */ + maxEndTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.BaseAuction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "initiator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lot", kind: "message", T: Coin }, + { no: 4, name: "bidder", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "bid", kind: "message", T: Coin }, + { no: 6, name: "has_received_bids", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "end_time", kind: "message", T: Timestamp }, + { no: 8, name: "max_end_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BaseAuction { + return new BaseAuction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BaseAuction { + return new BaseAuction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BaseAuction { + return new BaseAuction().fromJsonString(jsonString, options); + } + + static equals(a: BaseAuction | PlainMessage | undefined, b: BaseAuction | PlainMessage | undefined): boolean { + return proto3.util.equals(BaseAuction, a, b); + } +} + +/** + * SurplusAuction is a forward auction that burns what it receives from bids. + * It is normally used to sell off excess pegged asset acquired by the CDP system. + * + * @generated from message kava.auction.v1beta1.SurplusAuction + */ +export class SurplusAuction extends Message { + /** + * @generated from field: kava.auction.v1beta1.BaseAuction base_auction = 1; + */ + baseAuction?: BaseAuction; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.SurplusAuction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_auction", kind: "message", T: BaseAuction }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SurplusAuction { + return new SurplusAuction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SurplusAuction { + return new SurplusAuction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SurplusAuction { + return new SurplusAuction().fromJsonString(jsonString, options); + } + + static equals(a: SurplusAuction | PlainMessage | undefined, b: SurplusAuction | PlainMessage | undefined): boolean { + return proto3.util.equals(SurplusAuction, a, b); + } +} + +/** + * DebtAuction is a reverse auction that mints what it pays out. + * It is normally used to acquire pegged asset to cover the CDP system's debts that were not covered by selling + * collateral. + * + * @generated from message kava.auction.v1beta1.DebtAuction + */ +export class DebtAuction extends Message { + /** + * @generated from field: kava.auction.v1beta1.BaseAuction base_auction = 1; + */ + baseAuction?: BaseAuction; + + /** + * @generated from field: cosmos.base.v1beta1.Coin corresponding_debt = 2; + */ + correspondingDebt?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.DebtAuction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_auction", kind: "message", T: BaseAuction }, + { no: 2, name: "corresponding_debt", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DebtAuction { + return new DebtAuction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DebtAuction { + return new DebtAuction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DebtAuction { + return new DebtAuction().fromJsonString(jsonString, options); + } + + static equals(a: DebtAuction | PlainMessage | undefined, b: DebtAuction | PlainMessage | undefined): boolean { + return proto3.util.equals(DebtAuction, a, b); + } +} + +/** + * CollateralAuction is a two phase auction. + * Initially, in forward auction phase, bids can be placed up to a max bid. + * Then it switches to a reverse auction phase, where the initial amount up for auction is bid down. + * Unsold Lot is sent to LotReturns, being divided among the addresses by weight. + * Collateral auctions are normally used to sell off collateral seized from CDPs. + * + * @generated from message kava.auction.v1beta1.CollateralAuction + */ +export class CollateralAuction extends Message { + /** + * @generated from field: kava.auction.v1beta1.BaseAuction base_auction = 1; + */ + baseAuction?: BaseAuction; + + /** + * @generated from field: cosmos.base.v1beta1.Coin corresponding_debt = 2; + */ + correspondingDebt?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin max_bid = 3; + */ + maxBid?: Coin; + + /** + * @generated from field: kava.auction.v1beta1.WeightedAddresses lot_returns = 4; + */ + lotReturns?: WeightedAddresses; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.CollateralAuction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_auction", kind: "message", T: BaseAuction }, + { no: 2, name: "corresponding_debt", kind: "message", T: Coin }, + { no: 3, name: "max_bid", kind: "message", T: Coin }, + { no: 4, name: "lot_returns", kind: "message", T: WeightedAddresses }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CollateralAuction { + return new CollateralAuction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CollateralAuction { + return new CollateralAuction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CollateralAuction { + return new CollateralAuction().fromJsonString(jsonString, options); + } + + static equals(a: CollateralAuction | PlainMessage | undefined, b: CollateralAuction | PlainMessage | undefined): boolean { + return proto3.util.equals(CollateralAuction, a, b); + } +} + +/** + * WeightedAddresses is a type for storing some addresses and associated weights. + * + * @generated from message kava.auction.v1beta1.WeightedAddresses + */ +export class WeightedAddresses extends Message { + /** + * @generated from field: repeated bytes addresses = 1; + */ + addresses: Uint8Array[] = []; + + /** + * @generated from field: repeated bytes weights = 2; + */ + weights: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.WeightedAddresses"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "addresses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 2, name: "weights", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedAddresses { + return new WeightedAddresses().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedAddresses { + return new WeightedAddresses().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedAddresses { + return new WeightedAddresses().fromJsonString(jsonString, options); + } + + static equals(a: WeightedAddresses | PlainMessage | undefined, b: WeightedAddresses | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedAddresses, a, b); + } +} + diff --git a/src/protobufs/kava/auction/v1beta1/genesis_pb.ts b/src/protobufs/kava/auction/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..dec7e2d6 --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/genesis_pb.ts @@ -0,0 +1,130 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/genesis.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the auction module's genesis state. + * + * @generated from message kava.auction.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: uint64 next_auction_id = 1; + */ + nextAuctionId = protoInt64.zero; + + /** + * @generated from field: kava.auction.v1beta1.Params params = 2; + */ + params?: Params; + + /** + * Genesis auctions + * + * @generated from field: repeated google.protobuf.Any auctions = 3; + */ + auctions: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_auction_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "params", kind: "message", T: Params }, + { no: 3, name: "auctions", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params defines the parameters for the issuance module. + * + * @generated from message kava.auction.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: google.protobuf.Duration max_auction_duration = 1; + */ + maxAuctionDuration?: Duration; + + /** + * @generated from field: google.protobuf.Duration forward_bid_duration = 6; + */ + forwardBidDuration?: Duration; + + /** + * @generated from field: google.protobuf.Duration reverse_bid_duration = 7; + */ + reverseBidDuration?: Duration; + + /** + * @generated from field: bytes increment_surplus = 3; + */ + incrementSurplus = new Uint8Array(0); + + /** + * @generated from field: bytes increment_debt = 4; + */ + incrementDebt = new Uint8Array(0); + + /** + * @generated from field: bytes increment_collateral = 5; + */ + incrementCollateral = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_auction_duration", kind: "message", T: Duration }, + { no: 6, name: "forward_bid_duration", kind: "message", T: Duration }, + { no: 7, name: "reverse_bid_duration", kind: "message", T: Duration }, + { no: 3, name: "increment_surplus", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "increment_debt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "increment_collateral", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/kava/auction/v1beta1/query_cosmes.ts b/src/protobufs/kava/auction/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..2f34073c --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/query.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAuctionRequest, QueryAuctionResponse, QueryAuctionsRequest, QueryAuctionsResponse, QueryNextAuctionIDRequest, QueryNextAuctionIDResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.auction.v1beta1.Query"; + +/** + * Params queries all parameters of the auction module. + * + * @generated from rpc kava.auction.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Auction queries an individual Auction by auction ID + * + * @generated from rpc kava.auction.v1beta1.Query.Auction + */ +export const QueryAuctionService = { + typeName: TYPE_NAME, + method: "Auction", + Request: QueryAuctionRequest, + Response: QueryAuctionResponse, +} as const; + +/** + * Auctions queries auctions filtered by asset denom, owner address, phase, and auction type + * + * @generated from rpc kava.auction.v1beta1.Query.Auctions + */ +export const QueryAuctionsService = { + typeName: TYPE_NAME, + method: "Auctions", + Request: QueryAuctionsRequest, + Response: QueryAuctionsResponse, +} as const; + +/** + * NextAuctionID queries the next auction ID + * + * @generated from rpc kava.auction.v1beta1.Query.NextAuctionID + */ +export const QueryNextAuctionIDService = { + typeName: TYPE_NAME, + method: "NextAuctionID", + Request: QueryNextAuctionIDRequest, + Response: QueryNextAuctionIDResponse, +} as const; + diff --git a/src/protobufs/kava/auction/v1beta1/query_pb.ts b/src/protobufs/kava/auction/v1beta1/query_pb.ts new file mode 100644 index 00000000..341e935b --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/query_pb.ts @@ -0,0 +1,344 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/query.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./genesis_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/auction parameters. + * + * @generated from message kava.auction.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/auction parameters. + * + * @generated from message kava.auction.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.auction.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryAuctionRequest is the request type for the Query/Auction RPC method. + * + * @generated from message kava.auction.v1beta1.QueryAuctionRequest + */ +export class QueryAuctionRequest extends Message { + /** + * @generated from field: uint64 auction_id = 1; + */ + auctionId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryAuctionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "auction_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionRequest { + return new QueryAuctionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionRequest { + return new QueryAuctionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionRequest { + return new QueryAuctionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionRequest | PlainMessage | undefined, b: QueryAuctionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionRequest, a, b); + } +} + +/** + * QueryAuctionResponse is the response type for the Query/Auction RPC method. + * + * @generated from message kava.auction.v1beta1.QueryAuctionResponse + */ +export class QueryAuctionResponse extends Message { + /** + * @generated from field: google.protobuf.Any auction = 1; + */ + auction?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryAuctionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "auction", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionResponse { + return new QueryAuctionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionResponse { + return new QueryAuctionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionResponse { + return new QueryAuctionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionResponse | PlainMessage | undefined, b: QueryAuctionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionResponse, a, b); + } +} + +/** + * QueryAuctionsRequest is the request type for the Query/Auctions RPC method. + * + * @generated from message kava.auction.v1beta1.QueryAuctionsRequest + */ +export class QueryAuctionsRequest extends Message { + /** + * @generated from field: string type = 1; + */ + type = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + /** + * @generated from field: string phase = 4; + */ + phase = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 5; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryAuctionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "phase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionsRequest { + return new QueryAuctionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionsRequest { + return new QueryAuctionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionsRequest { + return new QueryAuctionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionsRequest | PlainMessage | undefined, b: QueryAuctionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionsRequest, a, b); + } +} + +/** + * QueryAuctionsResponse is the response type for the Query/Auctions RPC method. + * + * @generated from message kava.auction.v1beta1.QueryAuctionsResponse + */ +export class QueryAuctionsResponse extends Message { + /** + * @generated from field: repeated google.protobuf.Any auctions = 1; + */ + auctions: Any[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryAuctionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "auctions", kind: "message", T: Any, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuctionsResponse { + return new QueryAuctionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuctionsResponse { + return new QueryAuctionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAuctionsResponse { + return new QueryAuctionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAuctionsResponse | PlainMessage | undefined, b: QueryAuctionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAuctionsResponse, a, b); + } +} + +/** + * QueryNextAuctionIDRequest defines the request type for querying x/auction next auction ID. + * + * @generated from message kava.auction.v1beta1.QueryNextAuctionIDRequest + */ +export class QueryNextAuctionIDRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryNextAuctionIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextAuctionIDRequest { + return new QueryNextAuctionIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextAuctionIDRequest { + return new QueryNextAuctionIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextAuctionIDRequest { + return new QueryNextAuctionIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextAuctionIDRequest | PlainMessage | undefined, b: QueryNextAuctionIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextAuctionIDRequest, a, b); + } +} + +/** + * QueryNextAuctionIDResponse defines the response type for querying x/auction next auction ID. + * + * @generated from message kava.auction.v1beta1.QueryNextAuctionIDResponse + */ +export class QueryNextAuctionIDResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.QueryNextAuctionIDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextAuctionIDResponse { + return new QueryNextAuctionIDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextAuctionIDResponse { + return new QueryNextAuctionIDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextAuctionIDResponse { + return new QueryNextAuctionIDResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextAuctionIDResponse | PlainMessage | undefined, b: QueryNextAuctionIDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextAuctionIDResponse, a, b); + } +} + diff --git a/src/protobufs/kava/auction/v1beta1/tx_cosmes.ts b/src/protobufs/kava/auction/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..1597c186 --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/tx.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgPlaceBid, MsgPlaceBidResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.auction.v1beta1.Msg"; + +/** + * PlaceBid message type used by bidders to place bids on auctions + * + * @generated from rpc kava.auction.v1beta1.Msg.PlaceBid + */ +export const MsgPlaceBidService = { + typeName: TYPE_NAME, + method: "PlaceBid", + Request: MsgPlaceBid, + Response: MsgPlaceBidResponse, +} as const; + diff --git a/src/protobufs/kava/auction/v1beta1/tx_pb.ts b/src/protobufs/kava/auction/v1beta1/tx_pb.ts new file mode 100644 index 00000000..1b01c4ed --- /dev/null +++ b/src/protobufs/kava/auction/v1beta1/tx_pb.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/auction/v1beta1/tx.proto (package kava.auction.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgPlaceBid represents a message used by bidders to place bids on auctions + * + * @generated from message kava.auction.v1beta1.MsgPlaceBid + */ +export class MsgPlaceBid extends Message { + /** + * @generated from field: uint64 auction_id = 1; + */ + auctionId = protoInt64.zero; + + /** + * @generated from field: string bidder = 2; + */ + bidder = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.MsgPlaceBid"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "auction_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "bidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPlaceBid { + return new MsgPlaceBid().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPlaceBid { + return new MsgPlaceBid().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPlaceBid { + return new MsgPlaceBid().fromJsonString(jsonString, options); + } + + static equals(a: MsgPlaceBid | PlainMessage | undefined, b: MsgPlaceBid | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPlaceBid, a, b); + } +} + +/** + * MsgPlaceBidResponse defines the Msg/PlaceBid response type. + * + * @generated from message kava.auction.v1beta1.MsgPlaceBidResponse + */ +export class MsgPlaceBidResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.auction.v1beta1.MsgPlaceBidResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPlaceBidResponse { + return new MsgPlaceBidResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPlaceBidResponse { + return new MsgPlaceBidResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPlaceBidResponse { + return new MsgPlaceBidResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPlaceBidResponse | PlainMessage | undefined, b: MsgPlaceBidResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPlaceBidResponse, a, b); + } +} + diff --git a/src/protobufs/kava/bep3/v1beta1/bep3_pb.ts b/src/protobufs/kava/bep3/v1beta1/bep3_pb.ts new file mode 100644 index 00000000..4967b971 --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/bep3_pb.ts @@ -0,0 +1,506 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/bep3.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * SwapStatus is the status of an AtomicSwap + * + * @generated from enum kava.bep3.v1beta1.SwapStatus + */ +export enum SwapStatus { + /** + * SWAP_STATUS_UNSPECIFIED represents an unspecified status + * + * @generated from enum value: SWAP_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * SWAP_STATUS_OPEN represents an open swap + * + * @generated from enum value: SWAP_STATUS_OPEN = 1; + */ + OPEN = 1, + + /** + * SWAP_STATUS_COMPLETED represents a completed swap + * + * @generated from enum value: SWAP_STATUS_COMPLETED = 2; + */ + COMPLETED = 2, + + /** + * SWAP_STATUS_EXPIRED represents an expired swap + * + * @generated from enum value: SWAP_STATUS_EXPIRED = 3; + */ + EXPIRED = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(SwapStatus) +proto3.util.setEnumType(SwapStatus, "kava.bep3.v1beta1.SwapStatus", [ + { no: 0, name: "SWAP_STATUS_UNSPECIFIED" }, + { no: 1, name: "SWAP_STATUS_OPEN" }, + { no: 2, name: "SWAP_STATUS_COMPLETED" }, + { no: 3, name: "SWAP_STATUS_EXPIRED" }, +]); + +/** + * SwapDirection is the direction of an AtomicSwap + * + * @generated from enum kava.bep3.v1beta1.SwapDirection + */ +export enum SwapDirection { + /** + * SWAP_DIRECTION_UNSPECIFIED represents unspecified or invalid swap direcation + * + * @generated from enum value: SWAP_DIRECTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * SWAP_DIRECTION_INCOMING represents is incoming swap (to the kava chain) + * + * @generated from enum value: SWAP_DIRECTION_INCOMING = 1; + */ + INCOMING = 1, + + /** + * SWAP_DIRECTION_OUTGOING represents an outgoing swap (from the kava chain) + * + * @generated from enum value: SWAP_DIRECTION_OUTGOING = 2; + */ + OUTGOING = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(SwapDirection) +proto3.util.setEnumType(SwapDirection, "kava.bep3.v1beta1.SwapDirection", [ + { no: 0, name: "SWAP_DIRECTION_UNSPECIFIED" }, + { no: 1, name: "SWAP_DIRECTION_INCOMING" }, + { no: 2, name: "SWAP_DIRECTION_OUTGOING" }, +]); + +/** + * Params defines the parameters for the bep3 module. + * + * @generated from message kava.bep3.v1beta1.Params + */ +export class Params extends Message { + /** + * asset_params define the parameters for each bep3 asset + * + * @generated from field: repeated kava.bep3.v1beta1.AssetParam asset_params = 1; + */ + assetParams: AssetParam[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_params", kind: "message", T: AssetParam, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * AssetParam defines parameters for each bep3 asset. + * + * @generated from message kava.bep3.v1beta1.AssetParam + */ +export class AssetParam extends Message { + /** + * denom represents the denominatin for this asset + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * coin_id represents the registered coin type to use (https://github.com/satoshilabs/slips/blob/master/slip-0044.md) + * + * @generated from field: int64 coin_id = 2; + */ + coinId = protoInt64.zero; + + /** + * supply_limit defines the maximum supply allowed for the asset - a total or time based rate limit + * + * @generated from field: kava.bep3.v1beta1.SupplyLimit supply_limit = 3; + */ + supplyLimit?: SupplyLimit; + + /** + * active specifies if the asset is live or paused + * + * @generated from field: bool active = 4; + */ + active = false; + + /** + * deputy_address the kava address of the deputy + * + * @generated from field: bytes deputy_address = 5; + */ + deputyAddress = new Uint8Array(0); + + /** + * fixed_fee defines the fee for incoming swaps + * + * @generated from field: string fixed_fee = 6; + */ + fixedFee = ""; + + /** + * min_swap_amount defines the minimum amount able to be swapped in a single message + * + * @generated from field: string min_swap_amount = 7; + */ + minSwapAmount = ""; + + /** + * max_swap_amount defines the maximum amount able to be swapped in a single message + * + * @generated from field: string max_swap_amount = 8; + */ + maxSwapAmount = ""; + + /** + * min_block_lock defined the minimum blocks to lock + * + * @generated from field: uint64 min_block_lock = 9; + */ + minBlockLock = protoInt64.zero; + + /** + * min_block_lock defined the maximum blocks to lock + * + * @generated from field: uint64 max_block_lock = 10; + */ + maxBlockLock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.AssetParam"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "supply_limit", kind: "message", T: SupplyLimit }, + { no: 4, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "deputy_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "fixed_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "min_swap_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "max_swap_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "min_block_lock", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "max_block_lock", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetParam { + return new AssetParam().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetParam { + return new AssetParam().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetParam { + return new AssetParam().fromJsonString(jsonString, options); + } + + static equals(a: AssetParam | PlainMessage | undefined, b: AssetParam | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetParam, a, b); + } +} + +/** + * SupplyLimit define the absolute and time-based limits for an assets's supply. + * + * @generated from message kava.bep3.v1beta1.SupplyLimit + */ +export class SupplyLimit extends Message { + /** + * limit defines the total supply allowed + * + * @generated from field: string limit = 1; + */ + limit = ""; + + /** + * time_limited enables or disables time based supply limiting + * + * @generated from field: bool time_limited = 2; + */ + timeLimited = false; + + /** + * time_period specifies the duration that time_based_limit is evalulated + * + * @generated from field: google.protobuf.Duration time_period = 3; + */ + timePeriod?: Duration; + + /** + * time_based_limit defines the maximum supply that can be swapped within time_period + * + * @generated from field: string time_based_limit = 4; + */ + timeBasedLimit = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.SupplyLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "time_limited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "time_period", kind: "message", T: Duration }, + { no: 4, name: "time_based_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SupplyLimit { + return new SupplyLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SupplyLimit { + return new SupplyLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SupplyLimit { + return new SupplyLimit().fromJsonString(jsonString, options); + } + + static equals(a: SupplyLimit | PlainMessage | undefined, b: SupplyLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(SupplyLimit, a, b); + } +} + +/** + * AtomicSwap defines an atomic swap between chains for the pricefeed module. + * + * @generated from message kava.bep3.v1beta1.AtomicSwap + */ +export class AtomicSwap extends Message { + /** + * amount represents the amount being swapped + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + /** + * random_number_hash represents the hash of the random number + * + * @generated from field: bytes random_number_hash = 2; + */ + randomNumberHash = new Uint8Array(0); + + /** + * expire_height represents the height when the swap expires + * + * @generated from field: uint64 expire_height = 3; + */ + expireHeight = protoInt64.zero; + + /** + * timestamp represents the timestamp of the swap + * + * @generated from field: int64 timestamp = 4; + */ + timestamp = protoInt64.zero; + + /** + * sender is the kava chain sender of the swap + * + * @generated from field: bytes sender = 5; + */ + sender = new Uint8Array(0); + + /** + * recipient is the kava chain recipient of the swap + * + * @generated from field: bytes recipient = 6; + */ + recipient = new Uint8Array(0); + + /** + * sender_other_chain is the sender on the other chain + * + * @generated from field: string sender_other_chain = 7; + */ + senderOtherChain = ""; + + /** + * recipient_other_chain is the recipient on the other chain + * + * @generated from field: string recipient_other_chain = 8; + */ + recipientOtherChain = ""; + + /** + * closed_block is the block when the swap is closed + * + * @generated from field: int64 closed_block = 9; + */ + closedBlock = protoInt64.zero; + + /** + * status represents the current status of the swap + * + * @generated from field: kava.bep3.v1beta1.SwapStatus status = 10; + */ + status = SwapStatus.UNSPECIFIED; + + /** + * cross_chain identifies whether the atomic swap is cross chain + * + * @generated from field: bool cross_chain = 11; + */ + crossChain = false; + + /** + * direction identifies if the swap is incoming or outgoing + * + * @generated from field: kava.bep3.v1beta1.SwapDirection direction = 12; + */ + direction = SwapDirection.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.AtomicSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "random_number_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "expire_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "sender", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "recipient", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 7, name: "sender_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "recipient_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "closed_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "status", kind: "enum", T: proto3.getEnumType(SwapStatus) }, + { no: 11, name: "cross_chain", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "direction", kind: "enum", T: proto3.getEnumType(SwapDirection) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AtomicSwap { + return new AtomicSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AtomicSwap { + return new AtomicSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AtomicSwap { + return new AtomicSwap().fromJsonString(jsonString, options); + } + + static equals(a: AtomicSwap | PlainMessage | undefined, b: AtomicSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(AtomicSwap, a, b); + } +} + +/** + * AssetSupply defines information about an asset's supply. + * + * @generated from message kava.bep3.v1beta1.AssetSupply + */ +export class AssetSupply extends Message { + /** + * incoming_supply represents the incoming supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin incoming_supply = 1; + */ + incomingSupply?: Coin; + + /** + * outgoing_supply represents the outgoing supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin outgoing_supply = 2; + */ + outgoingSupply?: Coin; + + /** + * current_supply represents the current on-chain supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin current_supply = 3; + */ + currentSupply?: Coin; + + /** + * time_limited_current_supply represents the time limited current supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin time_limited_current_supply = 4; + */ + timeLimitedCurrentSupply?: Coin; + + /** + * time_elapsed represents the time elapsed + * + * @generated from field: google.protobuf.Duration time_elapsed = 5; + */ + timeElapsed?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.AssetSupply"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "incoming_supply", kind: "message", T: Coin }, + { no: 2, name: "outgoing_supply", kind: "message", T: Coin }, + { no: 3, name: "current_supply", kind: "message", T: Coin }, + { no: 4, name: "time_limited_current_supply", kind: "message", T: Coin }, + { no: 5, name: "time_elapsed", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetSupply { + return new AssetSupply().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetSupply { + return new AssetSupply().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetSupply { + return new AssetSupply().fromJsonString(jsonString, options); + } + + static equals(a: AssetSupply | PlainMessage | undefined, b: AssetSupply | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetSupply, a, b); + } +} + diff --git a/src/protobufs/kava/bep3/v1beta1/genesis_pb.ts b/src/protobufs/kava/bep3/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..2113218c --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/genesis_pb.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/genesis.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { AssetSupply, AtomicSwap, Params } from "./bep3_pb.js"; + +/** + * GenesisState defines the pricefeed module's genesis state. + * + * @generated from message kava.bep3.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: kava.bep3.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * atomic_swaps represents the state of stored atomic swaps + * + * @generated from field: repeated kava.bep3.v1beta1.AtomicSwap atomic_swaps = 2; + */ + atomicSwaps: AtomicSwap[] = []; + + /** + * supplies represents the supply information of each atomic swap + * + * @generated from field: repeated kava.bep3.v1beta1.AssetSupply supplies = 3; + */ + supplies: AssetSupply[] = []; + + /** + * previous_block_time represents the time of the previous block + * + * @generated from field: google.protobuf.Timestamp previous_block_time = 4; + */ + previousBlockTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "atomic_swaps", kind: "message", T: AtomicSwap, repeated: true }, + { no: 3, name: "supplies", kind: "message", T: AssetSupply, repeated: true }, + { no: 4, name: "previous_block_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/bep3/v1beta1/query_cosmes.ts b/src/protobufs/kava/bep3/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..54575e1b --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/query_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/query.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAssetSuppliesRequest, QueryAssetSuppliesResponse, QueryAssetSupplyRequest, QueryAssetSupplyResponse, QueryAtomicSwapRequest, QueryAtomicSwapResponse, QueryAtomicSwapsRequest, QueryAtomicSwapsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.bep3.v1beta1.Query"; + +/** + * Params queries module params + * + * @generated from rpc kava.bep3.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * AssetSupply queries info about an asset's supply + * + * @generated from rpc kava.bep3.v1beta1.Query.AssetSupply + */ +export const QueryAssetSupplyService = { + typeName: TYPE_NAME, + method: "AssetSupply", + Request: QueryAssetSupplyRequest, + Response: QueryAssetSupplyResponse, +} as const; + +/** + * AssetSupplies queries a list of asset supplies + * + * @generated from rpc kava.bep3.v1beta1.Query.AssetSupplies + */ +export const QueryAssetSuppliesService = { + typeName: TYPE_NAME, + method: "AssetSupplies", + Request: QueryAssetSuppliesRequest, + Response: QueryAssetSuppliesResponse, +} as const; + +/** + * AtomicSwap queries info about an atomic swap + * + * @generated from rpc kava.bep3.v1beta1.Query.AtomicSwap + */ +export const QueryAtomicSwapService = { + typeName: TYPE_NAME, + method: "AtomicSwap", + Request: QueryAtomicSwapRequest, + Response: QueryAtomicSwapResponse, +} as const; + +/** + * AtomicSwaps queries a list of atomic swaps + * + * @generated from rpc kava.bep3.v1beta1.Query.AtomicSwaps + */ +export const QueryAtomicSwapsService = { + typeName: TYPE_NAME, + method: "AtomicSwaps", + Request: QueryAtomicSwapsRequest, + Response: QueryAtomicSwapsResponse, +} as const; + diff --git a/src/protobufs/kava/bep3/v1beta1/query_pb.ts b/src/protobufs/kava/bep3/v1beta1/query_pb.ts new file mode 100644 index 00000000..2c48e2fa --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/query_pb.ts @@ -0,0 +1,649 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/query.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params, SwapDirection, SwapStatus } from "./bep3_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/bep3 parameters. + * + * @generated from message kava.bep3.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/bep3 parameters. + * + * @generated from message kava.bep3.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params represents the parameters of the module + * + * @generated from field: kava.bep3.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryAssetSupplyRequest is the request type for the Query/AssetSupply RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAssetSupplyRequest + */ +export class QueryAssetSupplyRequest extends Message { + /** + * denom filters the asset response for the specified denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAssetSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetSupplyRequest { + return new QueryAssetSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetSupplyRequest { + return new QueryAssetSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetSupplyRequest { + return new QueryAssetSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetSupplyRequest | PlainMessage | undefined, b: QueryAssetSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetSupplyRequest, a, b); + } +} + +/** + * AssetSupplyResponse defines information about an asset's supply. + * + * @generated from message kava.bep3.v1beta1.AssetSupplyResponse + */ +export class AssetSupplyResponse extends Message { + /** + * incoming_supply represents the incoming supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin incoming_supply = 1; + */ + incomingSupply?: Coin; + + /** + * outgoing_supply represents the outgoing supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin outgoing_supply = 2; + */ + outgoingSupply?: Coin; + + /** + * current_supply represents the current on-chain supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin current_supply = 3; + */ + currentSupply?: Coin; + + /** + * time_limited_current_supply represents the time limited current supply of an asset + * + * @generated from field: cosmos.base.v1beta1.Coin time_limited_current_supply = 4; + */ + timeLimitedCurrentSupply?: Coin; + + /** + * time_elapsed represents the time elapsed + * + * @generated from field: google.protobuf.Duration time_elapsed = 5; + */ + timeElapsed?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.AssetSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "incoming_supply", kind: "message", T: Coin }, + { no: 2, name: "outgoing_supply", kind: "message", T: Coin }, + { no: 3, name: "current_supply", kind: "message", T: Coin }, + { no: 4, name: "time_limited_current_supply", kind: "message", T: Coin }, + { no: 5, name: "time_elapsed", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetSupplyResponse { + return new AssetSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetSupplyResponse { + return new AssetSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetSupplyResponse { + return new AssetSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: AssetSupplyResponse | PlainMessage | undefined, b: AssetSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetSupplyResponse, a, b); + } +} + +/** + * QueryAssetSupplyResponse is the response type for the Query/AssetSupply RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAssetSupplyResponse + */ +export class QueryAssetSupplyResponse extends Message { + /** + * asset_supply represents the supply of the asset + * + * @generated from field: kava.bep3.v1beta1.AssetSupplyResponse asset_supply = 1; + */ + assetSupply?: AssetSupplyResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAssetSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_supply", kind: "message", T: AssetSupplyResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetSupplyResponse { + return new QueryAssetSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetSupplyResponse { + return new QueryAssetSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetSupplyResponse { + return new QueryAssetSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetSupplyResponse | PlainMessage | undefined, b: QueryAssetSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetSupplyResponse, a, b); + } +} + +/** + * QueryAssetSuppliesRequest is the request type for the Query/AssetSupplies RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAssetSuppliesRequest + */ +export class QueryAssetSuppliesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAssetSuppliesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetSuppliesRequest { + return new QueryAssetSuppliesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetSuppliesRequest { + return new QueryAssetSuppliesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetSuppliesRequest { + return new QueryAssetSuppliesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetSuppliesRequest | PlainMessage | undefined, b: QueryAssetSuppliesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetSuppliesRequest, a, b); + } +} + +/** + * QueryAssetSuppliesResponse is the response type for the Query/AssetSupplies RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAssetSuppliesResponse + */ +export class QueryAssetSuppliesResponse extends Message { + /** + * asset_supplies represents the supplies of returned assets + * + * @generated from field: repeated kava.bep3.v1beta1.AssetSupplyResponse asset_supplies = 1; + */ + assetSupplies: AssetSupplyResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAssetSuppliesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_supplies", kind: "message", T: AssetSupplyResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetSuppliesResponse { + return new QueryAssetSuppliesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetSuppliesResponse { + return new QueryAssetSuppliesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetSuppliesResponse { + return new QueryAssetSuppliesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetSuppliesResponse | PlainMessage | undefined, b: QueryAssetSuppliesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetSuppliesResponse, a, b); + } +} + +/** + * QueryAtomicSwapRequest is the request type for the Query/AtomicSwap RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAtomicSwapRequest + */ +export class QueryAtomicSwapRequest extends Message { + /** + * swap_id represents the id of the swap to query + * + * @generated from field: string swap_id = 1; + */ + swapId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAtomicSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAtomicSwapRequest { + return new QueryAtomicSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAtomicSwapRequest { + return new QueryAtomicSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAtomicSwapRequest { + return new QueryAtomicSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAtomicSwapRequest | PlainMessage | undefined, b: QueryAtomicSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAtomicSwapRequest, a, b); + } +} + +/** + * QueryAtomicSwapResponse is the response type for the Query/AtomicSwap RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAtomicSwapResponse + */ +export class QueryAtomicSwapResponse extends Message { + /** + * @generated from field: kava.bep3.v1beta1.AtomicSwapResponse atomic_swap = 2; + */ + atomicSwap?: AtomicSwapResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAtomicSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "atomic_swap", kind: "message", T: AtomicSwapResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAtomicSwapResponse { + return new QueryAtomicSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAtomicSwapResponse { + return new QueryAtomicSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAtomicSwapResponse { + return new QueryAtomicSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAtomicSwapResponse | PlainMessage | undefined, b: QueryAtomicSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAtomicSwapResponse, a, b); + } +} + +/** + * AtomicSwapResponse represents the returned atomic swap properties + * + * @generated from message kava.bep3.v1beta1.AtomicSwapResponse + */ +export class AtomicSwapResponse extends Message { + /** + * id represents the id of the atomic swap + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * amount represents the amount being swapped + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * random_number_hash represents the hash of the random number + * + * @generated from field: string random_number_hash = 3; + */ + randomNumberHash = ""; + + /** + * expire_height represents the height when the swap expires + * + * @generated from field: uint64 expire_height = 4; + */ + expireHeight = protoInt64.zero; + + /** + * timestamp represents the timestamp of the swap + * + * @generated from field: int64 timestamp = 5; + */ + timestamp = protoInt64.zero; + + /** + * sender is the kava chain sender of the swap + * + * @generated from field: string sender = 6; + */ + sender = ""; + + /** + * recipient is the kava chain recipient of the swap + * + * @generated from field: string recipient = 7; + */ + recipient = ""; + + /** + * sender_other_chain is the sender on the other chain + * + * @generated from field: string sender_other_chain = 8; + */ + senderOtherChain = ""; + + /** + * recipient_other_chain is the recipient on the other chain + * + * @generated from field: string recipient_other_chain = 9; + */ + recipientOtherChain = ""; + + /** + * closed_block is the block when the swap is closed + * + * @generated from field: int64 closed_block = 10; + */ + closedBlock = protoInt64.zero; + + /** + * status represents the current status of the swap + * + * @generated from field: kava.bep3.v1beta1.SwapStatus status = 11; + */ + status = SwapStatus.UNSPECIFIED; + + /** + * cross_chain identifies whether the atomic swap is cross chain + * + * @generated from field: bool cross_chain = 12; + */ + crossChain = false; + + /** + * direction identifies if the swap is incoming or outgoing + * + * @generated from field: kava.bep3.v1beta1.SwapDirection direction = 13; + */ + direction = SwapDirection.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.AtomicSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "random_number_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expire_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "sender_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "recipient_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "closed_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 11, name: "status", kind: "enum", T: proto3.getEnumType(SwapStatus) }, + { no: 12, name: "cross_chain", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "direction", kind: "enum", T: proto3.getEnumType(SwapDirection) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AtomicSwapResponse { + return new AtomicSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AtomicSwapResponse { + return new AtomicSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AtomicSwapResponse { + return new AtomicSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: AtomicSwapResponse | PlainMessage | undefined, b: AtomicSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AtomicSwapResponse, a, b); + } +} + +/** + * QueryAtomicSwapsRequest is the request type for the Query/AtomicSwaps RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAtomicSwapsRequest + */ +export class QueryAtomicSwapsRequest extends Message { + /** + * involve filters by address + * + * @generated from field: string involve = 1; + */ + involve = ""; + + /** + * expiration filters by expiration block height + * + * @generated from field: uint64 expiration = 2; + */ + expiration = protoInt64.zero; + + /** + * status filters by swap status + * + * @generated from field: kava.bep3.v1beta1.SwapStatus status = 3; + */ + status = SwapStatus.UNSPECIFIED; + + /** + * direction fitlers by swap direction + * + * @generated from field: kava.bep3.v1beta1.SwapDirection direction = 4; + */ + direction = SwapDirection.UNSPECIFIED; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 5; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAtomicSwapsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "involve", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expiration", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(SwapStatus) }, + { no: 4, name: "direction", kind: "enum", T: proto3.getEnumType(SwapDirection) }, + { no: 5, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAtomicSwapsRequest { + return new QueryAtomicSwapsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAtomicSwapsRequest { + return new QueryAtomicSwapsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAtomicSwapsRequest { + return new QueryAtomicSwapsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAtomicSwapsRequest | PlainMessage | undefined, b: QueryAtomicSwapsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAtomicSwapsRequest, a, b); + } +} + +/** + * QueryAtomicSwapsResponse is the response type for the Query/AtomicSwaps RPC method. + * + * @generated from message kava.bep3.v1beta1.QueryAtomicSwapsResponse + */ +export class QueryAtomicSwapsResponse extends Message { + /** + * atomic_swap represents the returned atomic swaps for the request + * + * @generated from field: repeated kava.bep3.v1beta1.AtomicSwapResponse atomic_swaps = 1; + */ + atomicSwaps: AtomicSwapResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.QueryAtomicSwapsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "atomic_swaps", kind: "message", T: AtomicSwapResponse, repeated: true }, + { no: 3, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAtomicSwapsResponse { + return new QueryAtomicSwapsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAtomicSwapsResponse { + return new QueryAtomicSwapsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAtomicSwapsResponse { + return new QueryAtomicSwapsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAtomicSwapsResponse | PlainMessage | undefined, b: QueryAtomicSwapsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAtomicSwapsResponse, a, b); + } +} + diff --git a/src/protobufs/kava/bep3/v1beta1/tx_cosmes.ts b/src/protobufs/kava/bep3/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..be92d8bc --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/tx_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/tx.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimAtomicSwap, MsgClaimAtomicSwapResponse, MsgCreateAtomicSwap, MsgCreateAtomicSwapResponse, MsgRefundAtomicSwap, MsgRefundAtomicSwapResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.bep3.v1beta1.Msg"; + +/** + * CreateAtomicSwap defines a method for creating an atomic swap + * + * @generated from rpc kava.bep3.v1beta1.Msg.CreateAtomicSwap + */ +export const MsgCreateAtomicSwapService = { + typeName: TYPE_NAME, + method: "CreateAtomicSwap", + Request: MsgCreateAtomicSwap, + Response: MsgCreateAtomicSwapResponse, +} as const; + +/** + * ClaimAtomicSwap defines a method for claiming an atomic swap + * + * @generated from rpc kava.bep3.v1beta1.Msg.ClaimAtomicSwap + */ +export const MsgClaimAtomicSwapService = { + typeName: TYPE_NAME, + method: "ClaimAtomicSwap", + Request: MsgClaimAtomicSwap, + Response: MsgClaimAtomicSwapResponse, +} as const; + +/** + * RefundAtomicSwap defines a method for refunding an atomic swap + * + * @generated from rpc kava.bep3.v1beta1.Msg.RefundAtomicSwap + */ +export const MsgRefundAtomicSwapService = { + typeName: TYPE_NAME, + method: "RefundAtomicSwap", + Request: MsgRefundAtomicSwap, + Response: MsgRefundAtomicSwapResponse, +} as const; + diff --git a/src/protobufs/kava/bep3/v1beta1/tx_pb.ts b/src/protobufs/kava/bep3/v1beta1/tx_pb.ts new file mode 100644 index 00000000..eb92d3fb --- /dev/null +++ b/src/protobufs/kava/bep3/v1beta1/tx_pb.ts @@ -0,0 +1,285 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/bep3/v1beta1/tx.proto (package kava.bep3.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgCreateAtomicSwap defines the Msg/CreateAtomicSwap request type. + * + * @generated from message kava.bep3.v1beta1.MsgCreateAtomicSwap + */ +export class MsgCreateAtomicSwap extends Message { + /** + * @generated from field: string from = 1; + */ + from = ""; + + /** + * @generated from field: string to = 2; + */ + to = ""; + + /** + * @generated from field: string recipient_other_chain = 3; + */ + recipientOtherChain = ""; + + /** + * @generated from field: string sender_other_chain = 4; + */ + senderOtherChain = ""; + + /** + * @generated from field: string random_number_hash = 5; + */ + randomNumberHash = ""; + + /** + * @generated from field: int64 timestamp = 6; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 7; + */ + amount: Coin[] = []; + + /** + * @generated from field: uint64 height_span = 8; + */ + heightSpan = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgCreateAtomicSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "recipient_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender_other_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "random_number_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "height_span", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAtomicSwap { + return new MsgCreateAtomicSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAtomicSwap { + return new MsgCreateAtomicSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAtomicSwap { + return new MsgCreateAtomicSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAtomicSwap | PlainMessage | undefined, b: MsgCreateAtomicSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAtomicSwap, a, b); + } +} + +/** + * MsgCreateAtomicSwapResponse defines the Msg/CreateAtomicSwap response type. + * + * @generated from message kava.bep3.v1beta1.MsgCreateAtomicSwapResponse + */ +export class MsgCreateAtomicSwapResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgCreateAtomicSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateAtomicSwapResponse { + return new MsgCreateAtomicSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateAtomicSwapResponse { + return new MsgCreateAtomicSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateAtomicSwapResponse { + return new MsgCreateAtomicSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateAtomicSwapResponse | PlainMessage | undefined, b: MsgCreateAtomicSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateAtomicSwapResponse, a, b); + } +} + +/** + * MsgClaimAtomicSwap defines the Msg/ClaimAtomicSwap request type. + * + * @generated from message kava.bep3.v1beta1.MsgClaimAtomicSwap + */ +export class MsgClaimAtomicSwap extends Message { + /** + * @generated from field: string from = 1; + */ + from = ""; + + /** + * @generated from field: string swap_id = 2; + */ + swapId = ""; + + /** + * @generated from field: string random_number = 3; + */ + randomNumber = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgClaimAtomicSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "random_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAtomicSwap { + return new MsgClaimAtomicSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAtomicSwap { + return new MsgClaimAtomicSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAtomicSwap { + return new MsgClaimAtomicSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAtomicSwap | PlainMessage | undefined, b: MsgClaimAtomicSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAtomicSwap, a, b); + } +} + +/** + * MsgClaimAtomicSwapResponse defines the Msg/ClaimAtomicSwap response type. + * + * @generated from message kava.bep3.v1beta1.MsgClaimAtomicSwapResponse + */ +export class MsgClaimAtomicSwapResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgClaimAtomicSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimAtomicSwapResponse { + return new MsgClaimAtomicSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimAtomicSwapResponse { + return new MsgClaimAtomicSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimAtomicSwapResponse { + return new MsgClaimAtomicSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimAtomicSwapResponse | PlainMessage | undefined, b: MsgClaimAtomicSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimAtomicSwapResponse, a, b); + } +} + +/** + * MsgRefundAtomicSwap defines the Msg/RefundAtomicSwap request type. + * + * @generated from message kava.bep3.v1beta1.MsgRefundAtomicSwap + */ +export class MsgRefundAtomicSwap extends Message { + /** + * @generated from field: string from = 1; + */ + from = ""; + + /** + * @generated from field: string swap_id = 2; + */ + swapId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgRefundAtomicSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRefundAtomicSwap { + return new MsgRefundAtomicSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRefundAtomicSwap { + return new MsgRefundAtomicSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRefundAtomicSwap { + return new MsgRefundAtomicSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgRefundAtomicSwap | PlainMessage | undefined, b: MsgRefundAtomicSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRefundAtomicSwap, a, b); + } +} + +/** + * MsgRefundAtomicSwapResponse defines the Msg/RefundAtomicSwap response type. + * + * @generated from message kava.bep3.v1beta1.MsgRefundAtomicSwapResponse + */ +export class MsgRefundAtomicSwapResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.bep3.v1beta1.MsgRefundAtomicSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRefundAtomicSwapResponse { + return new MsgRefundAtomicSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRefundAtomicSwapResponse { + return new MsgRefundAtomicSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRefundAtomicSwapResponse { + return new MsgRefundAtomicSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRefundAtomicSwapResponse | PlainMessage | undefined, b: MsgRefundAtomicSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRefundAtomicSwapResponse, a, b); + } +} + diff --git a/src/protobufs/kava/cdp/v1beta1/cdp_pb.ts b/src/protobufs/kava/cdp/v1beta1/cdp_pb.ts new file mode 100644 index 00000000..44a64b69 --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/cdp_pb.ts @@ -0,0 +1,270 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/cdp.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * CDP defines the state of a single collateralized debt position. + * + * @generated from message kava.cdp.v1beta1.CDP + */ +export class CDP extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: bytes owner = 2; + */ + owner = new Uint8Array(0); + + /** + * @generated from field: string type = 3; + */ + type = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 4; + */ + collateral?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin principal = 5; + */ + principal?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accumulated_fees = 6; + */ + accumulatedFees?: Coin; + + /** + * @generated from field: google.protobuf.Timestamp fees_updated = 7; + */ + feesUpdated?: Timestamp; + + /** + * @generated from field: string interest_factor = 8; + */ + interestFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.CDP"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "message", T: Coin }, + { no: 5, name: "principal", kind: "message", T: Coin }, + { no: 6, name: "accumulated_fees", kind: "message", T: Coin }, + { no: 7, name: "fees_updated", kind: "message", T: Timestamp }, + { no: 8, name: "interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CDP { + return new CDP().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CDP { + return new CDP().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CDP { + return new CDP().fromJsonString(jsonString, options); + } + + static equals(a: CDP | PlainMessage | undefined, b: CDP | PlainMessage | undefined): boolean { + return proto3.util.equals(CDP, a, b); + } +} + +/** + * Deposit defines an amount of coins deposited by an account to a cdp + * + * @generated from message kava.cdp.v1beta1.Deposit + */ +export class Deposit extends Message { + /** + * @generated from field: uint64 cdp_id = 1; + */ + cdpId = protoInt64.zero; + + /** + * @generated from field: string depositor = 2; + */ + depositor = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cdp_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + +/** + * TotalPrincipal defines the total principal of a given collateral type + * + * @generated from message kava.cdp.v1beta1.TotalPrincipal + */ +export class TotalPrincipal extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.TotalPrincipal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalPrincipal { + return new TotalPrincipal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalPrincipal { + return new TotalPrincipal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalPrincipal { + return new TotalPrincipal().fromJsonString(jsonString, options); + } + + static equals(a: TotalPrincipal | PlainMessage | undefined, b: TotalPrincipal | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalPrincipal, a, b); + } +} + +/** + * TotalCollateral defines the total collateral of a given collateral type + * + * @generated from message kava.cdp.v1beta1.TotalCollateral + */ +export class TotalCollateral extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.TotalCollateral"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalCollateral { + return new TotalCollateral().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalCollateral { + return new TotalCollateral().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalCollateral { + return new TotalCollateral().fromJsonString(jsonString, options); + } + + static equals(a: TotalCollateral | PlainMessage | undefined, b: TotalCollateral | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalCollateral, a, b); + } +} + +/** + * OwnerCDPIndex defines the cdp ids for a single cdp owner + * + * @generated from message kava.cdp.v1beta1.OwnerCDPIndex + */ +export class OwnerCDPIndex extends Message { + /** + * @generated from field: repeated uint64 cdp_ids = 1; + */ + cdpIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.OwnerCDPIndex"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cdp_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnerCDPIndex { + return new OwnerCDPIndex().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnerCDPIndex { + return new OwnerCDPIndex().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnerCDPIndex { + return new OwnerCDPIndex().fromJsonString(jsonString, options); + } + + static equals(a: OwnerCDPIndex | PlainMessage | undefined, b: OwnerCDPIndex | PlainMessage | undefined): boolean { + return proto3.util.equals(OwnerCDPIndex, a, b); + } +} + diff --git a/src/protobufs/kava/cdp/v1beta1/genesis_pb.ts b/src/protobufs/kava/cdp/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..368cb41c --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/genesis_pb.ts @@ -0,0 +1,438 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/genesis.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { CDP, Deposit } from "./cdp_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the cdp module's genesis state. + * + * @generated from message kava.cdp.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: kava.cdp.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated kava.cdp.v1beta1.CDP cdps = 2; + */ + cdps: CDP[] = []; + + /** + * @generated from field: repeated kava.cdp.v1beta1.Deposit deposits = 3; + */ + deposits: Deposit[] = []; + + /** + * @generated from field: uint64 starting_cdp_id = 4; + */ + startingCdpId = protoInt64.zero; + + /** + * @generated from field: string debt_denom = 5; + */ + debtDenom = ""; + + /** + * @generated from field: string gov_denom = 6; + */ + govDenom = ""; + + /** + * @generated from field: repeated kava.cdp.v1beta1.GenesisAccumulationTime previous_accumulation_times = 7; + */ + previousAccumulationTimes: GenesisAccumulationTime[] = []; + + /** + * @generated from field: repeated kava.cdp.v1beta1.GenesisTotalPrincipal total_principals = 8; + */ + totalPrincipals: GenesisTotalPrincipal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "cdps", kind: "message", T: CDP, repeated: true }, + { no: 3, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 4, name: "starting_cdp_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "debt_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "gov_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "previous_accumulation_times", kind: "message", T: GenesisAccumulationTime, repeated: true }, + { no: 8, name: "total_principals", kind: "message", T: GenesisTotalPrincipal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params defines the parameters for the cdp module. + * + * @generated from message kava.cdp.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.cdp.v1beta1.CollateralParam collateral_params = 1; + */ + collateralParams: CollateralParam[] = []; + + /** + * @generated from field: kava.cdp.v1beta1.DebtParam debt_param = 2; + */ + debtParam?: DebtParam; + + /** + * @generated from field: cosmos.base.v1beta1.Coin global_debt_limit = 3; + */ + globalDebtLimit?: Coin; + + /** + * @generated from field: string surplus_auction_threshold = 4; + */ + surplusAuctionThreshold = ""; + + /** + * @generated from field: string surplus_auction_lot = 5; + */ + surplusAuctionLot = ""; + + /** + * @generated from field: string debt_auction_threshold = 6; + */ + debtAuctionThreshold = ""; + + /** + * @generated from field: string debt_auction_lot = 7; + */ + debtAuctionLot = ""; + + /** + * @generated from field: bool circuit_breaker = 8; + */ + circuitBreaker = false; + + /** + * @generated from field: int64 liquidation_block_interval = 9; + */ + liquidationBlockInterval = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_params", kind: "message", T: CollateralParam, repeated: true }, + { no: 2, name: "debt_param", kind: "message", T: DebtParam }, + { no: 3, name: "global_debt_limit", kind: "message", T: Coin }, + { no: 4, name: "surplus_auction_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "surplus_auction_lot", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "debt_auction_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "debt_auction_lot", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "circuit_breaker", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "liquidation_block_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * DebtParam defines governance params for debt assets + * + * @generated from message kava.cdp.v1beta1.DebtParam + */ +export class DebtParam extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string reference_asset = 2; + */ + referenceAsset = ""; + + /** + * @generated from field: string conversion_factor = 3; + */ + conversionFactor = ""; + + /** + * @generated from field: string debt_floor = 4; + */ + debtFloor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.DebtParam"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reference_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "conversion_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "debt_floor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DebtParam { + return new DebtParam().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DebtParam { + return new DebtParam().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DebtParam { + return new DebtParam().fromJsonString(jsonString, options); + } + + static equals(a: DebtParam | PlainMessage | undefined, b: DebtParam | PlainMessage | undefined): boolean { + return proto3.util.equals(DebtParam, a, b); + } +} + +/** + * CollateralParam defines governance parameters for each collateral type within the cdp module + * + * @generated from message kava.cdp.v1beta1.CollateralParam + */ +export class CollateralParam extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string type = 2; + */ + type = ""; + + /** + * @generated from field: string liquidation_ratio = 3; + */ + liquidationRatio = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin debt_limit = 4; + */ + debtLimit?: Coin; + + /** + * @generated from field: string stability_fee = 5; + */ + stabilityFee = ""; + + /** + * @generated from field: string auction_size = 6; + */ + auctionSize = ""; + + /** + * @generated from field: string liquidation_penalty = 7; + */ + liquidationPenalty = ""; + + /** + * @generated from field: string spot_market_id = 8; + */ + spotMarketId = ""; + + /** + * @generated from field: string liquidation_market_id = 9; + */ + liquidationMarketId = ""; + + /** + * @generated from field: string keeper_reward_percentage = 10; + */ + keeperRewardPercentage = ""; + + /** + * @generated from field: string check_collateralization_index_count = 11; + */ + checkCollateralizationIndexCount = ""; + + /** + * @generated from field: string conversion_factor = 12; + */ + conversionFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.CollateralParam"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "liquidation_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "debt_limit", kind: "message", T: Coin }, + { no: 5, name: "stability_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "auction_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "liquidation_penalty", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "spot_market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "liquidation_market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "keeper_reward_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "check_collateralization_index_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "conversion_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CollateralParam { + return new CollateralParam().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CollateralParam { + return new CollateralParam().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CollateralParam { + return new CollateralParam().fromJsonString(jsonString, options); + } + + static equals(a: CollateralParam | PlainMessage | undefined, b: CollateralParam | PlainMessage | undefined): boolean { + return proto3.util.equals(CollateralParam, a, b); + } +} + +/** + * GenesisAccumulationTime defines the previous distribution time and its corresponding denom + * + * @generated from message kava.cdp.v1beta1.GenesisAccumulationTime + */ +export class GenesisAccumulationTime extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: google.protobuf.Timestamp previous_accumulation_time = 2; + */ + previousAccumulationTime?: Timestamp; + + /** + * @generated from field: string interest_factor = 3; + */ + interestFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.GenesisAccumulationTime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_accumulation_time", kind: "message", T: Timestamp }, + { no: 3, name: "interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccumulationTime | PlainMessage | undefined, b: GenesisAccumulationTime | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccumulationTime, a, b); + } +} + +/** + * GenesisTotalPrincipal defines the total principal and its corresponding collateral type + * + * @generated from message kava.cdp.v1beta1.GenesisTotalPrincipal + */ +export class GenesisTotalPrincipal extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: string total_principal = 2; + */ + totalPrincipal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.GenesisTotalPrincipal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisTotalPrincipal { + return new GenesisTotalPrincipal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisTotalPrincipal { + return new GenesisTotalPrincipal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisTotalPrincipal { + return new GenesisTotalPrincipal().fromJsonString(jsonString, options); + } + + static equals(a: GenesisTotalPrincipal | PlainMessage | undefined, b: GenesisTotalPrincipal | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisTotalPrincipal, a, b); + } +} + diff --git a/src/protobufs/kava/cdp/v1beta1/query_cosmes.ts b/src/protobufs/kava/cdp/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..8b017206 --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/query.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAccountsRequest, QueryAccountsResponse, QueryCdpRequest, QueryCdpResponse, QueryCdpsRequest, QueryCdpsResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalCollateralRequest, QueryTotalCollateralResponse, QueryTotalPrincipalRequest, QueryTotalPrincipalResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.cdp.v1beta1.Query"; + +/** + * Params queries all parameters of the cdp module. + * + * @generated from rpc kava.cdp.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Accounts queries the CDP module accounts. + * + * @generated from rpc kava.cdp.v1beta1.Query.Accounts + */ +export const QueryAccountsService = { + typeName: TYPE_NAME, + method: "Accounts", + Request: QueryAccountsRequest, + Response: QueryAccountsResponse, +} as const; + +/** + * TotalPrincipal queries the total principal of a given collateral type. + * + * @generated from rpc kava.cdp.v1beta1.Query.TotalPrincipal + */ +export const QueryTotalPrincipalService = { + typeName: TYPE_NAME, + method: "TotalPrincipal", + Request: QueryTotalPrincipalRequest, + Response: QueryTotalPrincipalResponse, +} as const; + +/** + * TotalCollateral queries the total collateral of a given collateral type. + * + * @generated from rpc kava.cdp.v1beta1.Query.TotalCollateral + */ +export const QueryTotalCollateralService = { + typeName: TYPE_NAME, + method: "TotalCollateral", + Request: QueryTotalCollateralRequest, + Response: QueryTotalCollateralResponse, +} as const; + +/** + * Cdps queries all active CDPs. + * + * @generated from rpc kava.cdp.v1beta1.Query.Cdps + */ +export const QueryCdpsService = { + typeName: TYPE_NAME, + method: "Cdps", + Request: QueryCdpsRequest, + Response: QueryCdpsResponse, +} as const; + +/** + * Cdp queries a CDP with the input owner address and collateral type. + * + * @generated from rpc kava.cdp.v1beta1.Query.Cdp + */ +export const QueryCdpService = { + typeName: TYPE_NAME, + method: "Cdp", + Request: QueryCdpRequest, + Response: QueryCdpResponse, +} as const; + +/** + * Deposits queries deposits associated with the CDP owned by an address for a collateral type. + * + * @generated from rpc kava.cdp.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + diff --git a/src/protobufs/kava/cdp/v1beta1/query_pb.ts b/src/protobufs/kava/cdp/v1beta1/query_pb.ts new file mode 100644 index 00000000..1e920f3f --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/query_pb.ts @@ -0,0 +1,684 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/query.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./genesis_pb.js"; +import { ModuleAccount } from "../../../cosmos/auth/v1beta1/auth_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Deposit, TotalCollateral, TotalPrincipal } from "./cdp_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for the Query/Params RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for the Query/Params RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.cdp.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryAccountsRequest defines the request type for the Query/Accounts RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryAccountsRequest + */ +export class QueryAccountsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsRequest, a, b); + } +} + +/** + * QueryAccountsResponse defines the response type for the Query/Accounts RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryAccountsResponse + */ +export class QueryAccountsResponse extends Message { + /** + * @generated from field: repeated cosmos.auth.v1beta1.ModuleAccount accounts = 1; + */ + accounts: ModuleAccount[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: ModuleAccount, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsResponse | PlainMessage | undefined, b: QueryAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsResponse, a, b); + } +} + +/** + * QueryCdpRequest defines the request type for the Query/Cdp RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryCdpRequest + */ +export class QueryCdpRequest extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryCdpRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCdpRequest { + return new QueryCdpRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCdpRequest { + return new QueryCdpRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCdpRequest { + return new QueryCdpRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCdpRequest | PlainMessage | undefined, b: QueryCdpRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCdpRequest, a, b); + } +} + +/** + * QueryCdpResponse defines the response type for the Query/Cdp RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryCdpResponse + */ +export class QueryCdpResponse extends Message { + /** + * @generated from field: kava.cdp.v1beta1.CDPResponse cdp = 1; + */ + cdp?: CDPResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryCdpResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cdp", kind: "message", T: CDPResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCdpResponse { + return new QueryCdpResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCdpResponse { + return new QueryCdpResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCdpResponse { + return new QueryCdpResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCdpResponse | PlainMessage | undefined, b: QueryCdpResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCdpResponse, a, b); + } +} + +/** + * QueryCdpsRequest is the params for a filtered CDP query, the request type for the Query/Cdps RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryCdpsRequest + */ +export class QueryCdpsRequest extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: uint64 id = 3; + */ + id = protoInt64.zero; + + /** + * sdk.Dec as a string + * + * @generated from field: string ratio = 4; + */ + ratio = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 5; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryCdpsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCdpsRequest { + return new QueryCdpsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCdpsRequest { + return new QueryCdpsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCdpsRequest { + return new QueryCdpsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCdpsRequest | PlainMessage | undefined, b: QueryCdpsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCdpsRequest, a, b); + } +} + +/** + * QueryCdpsResponse defines the response type for the Query/Cdps RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryCdpsResponse + */ +export class QueryCdpsResponse extends Message { + /** + * @generated from field: repeated kava.cdp.v1beta1.CDPResponse cdps = 1; + */ + cdps: CDPResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryCdpsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cdps", kind: "message", T: CDPResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCdpsResponse { + return new QueryCdpsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCdpsResponse { + return new QueryCdpsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCdpsResponse { + return new QueryCdpsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCdpsResponse | PlainMessage | undefined, b: QueryCdpsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCdpsResponse, a, b); + } +} + +/** + * QueryDepositsRequest defines the request type for the Query/Deposits RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse defines the response type for the Query/Deposits RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * @generated from field: repeated kava.cdp.v1beta1.Deposit deposits = 1; + */ + deposits: Deposit[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * QueryTotalPrincipalRequest defines the request type for the Query/TotalPrincipal RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryTotalPrincipalRequest + */ +export class QueryTotalPrincipalRequest extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryTotalPrincipalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPrincipalRequest { + return new QueryTotalPrincipalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPrincipalRequest { + return new QueryTotalPrincipalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalPrincipalRequest { + return new QueryTotalPrincipalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalPrincipalRequest | PlainMessage | undefined, b: QueryTotalPrincipalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalPrincipalRequest, a, b); + } +} + +/** + * QueryTotalPrincipalResponse defines the response type for the Query/TotalPrincipal RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryTotalPrincipalResponse + */ +export class QueryTotalPrincipalResponse extends Message { + /** + * @generated from field: repeated kava.cdp.v1beta1.TotalPrincipal total_principal = 1; + */ + totalPrincipal: TotalPrincipal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryTotalPrincipalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_principal", kind: "message", T: TotalPrincipal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPrincipalResponse { + return new QueryTotalPrincipalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPrincipalResponse { + return new QueryTotalPrincipalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalPrincipalResponse { + return new QueryTotalPrincipalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalPrincipalResponse | PlainMessage | undefined, b: QueryTotalPrincipalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalPrincipalResponse, a, b); + } +} + +/** + * QueryTotalCollateralRequest defines the request type for the Query/TotalCollateral RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryTotalCollateralRequest + */ +export class QueryTotalCollateralRequest extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryTotalCollateralRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalCollateralRequest { + return new QueryTotalCollateralRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalCollateralRequest { + return new QueryTotalCollateralRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalCollateralRequest { + return new QueryTotalCollateralRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalCollateralRequest | PlainMessage | undefined, b: QueryTotalCollateralRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalCollateralRequest, a, b); + } +} + +/** + * QueryTotalCollateralResponse defines the response type for the Query/TotalCollateral RPC method. + * + * @generated from message kava.cdp.v1beta1.QueryTotalCollateralResponse + */ +export class QueryTotalCollateralResponse extends Message { + /** + * @generated from field: repeated kava.cdp.v1beta1.TotalCollateral total_collateral = 1; + */ + totalCollateral: TotalCollateral[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.QueryTotalCollateralResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_collateral", kind: "message", T: TotalCollateral, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalCollateralResponse { + return new QueryTotalCollateralResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalCollateralResponse { + return new QueryTotalCollateralResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalCollateralResponse { + return new QueryTotalCollateralResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalCollateralResponse | PlainMessage | undefined, b: QueryTotalCollateralResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalCollateralResponse, a, b); + } +} + +/** + * CDPResponse defines the state of a single collateralized debt position. + * + * @generated from message kava.cdp.v1beta1.CDPResponse + */ +export class CDPResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: string type = 3; + */ + type = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 4; + */ + collateral?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin principal = 5; + */ + principal?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accumulated_fees = 6; + */ + accumulatedFees?: Coin; + + /** + * @generated from field: google.protobuf.Timestamp fees_updated = 7; + */ + feesUpdated?: Timestamp; + + /** + * @generated from field: string interest_factor = 8; + */ + interestFactor = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral_value = 9; + */ + collateralValue?: Coin; + + /** + * @generated from field: string collateralization_ratio = 10; + */ + collateralizationRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.CDPResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "message", T: Coin }, + { no: 5, name: "principal", kind: "message", T: Coin }, + { no: 6, name: "accumulated_fees", kind: "message", T: Coin }, + { no: 7, name: "fees_updated", kind: "message", T: Timestamp }, + { no: 8, name: "interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "collateral_value", kind: "message", T: Coin }, + { no: 10, name: "collateralization_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CDPResponse { + return new CDPResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CDPResponse { + return new CDPResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CDPResponse { + return new CDPResponse().fromJsonString(jsonString, options); + } + + static equals(a: CDPResponse | PlainMessage | undefined, b: CDPResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CDPResponse, a, b); + } +} + diff --git a/src/protobufs/kava/cdp/v1beta1/tx_cosmes.ts b/src/protobufs/kava/cdp/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..bc7e0ef2 --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/tx_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/tx.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCreateCDP, MsgCreateCDPResponse, MsgDeposit, MsgDepositResponse, MsgDrawDebt, MsgDrawDebtResponse, MsgLiquidate, MsgLiquidateResponse, MsgRepayDebt, MsgRepayDebtResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.cdp.v1beta1.Msg"; + +/** + * CreateCDP defines a method to create a new CDP. + * + * @generated from rpc kava.cdp.v1beta1.Msg.CreateCDP + */ +export const MsgCreateCDPService = { + typeName: TYPE_NAME, + method: "CreateCDP", + Request: MsgCreateCDP, + Response: MsgCreateCDPResponse, +} as const; + +/** + * Deposit defines a method to deposit to a CDP. + * + * @generated from rpc kava.cdp.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method to withdraw collateral from a CDP. + * + * @generated from rpc kava.cdp.v1beta1.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + +/** + * DrawDebt defines a method to draw debt from a CDP. + * + * @generated from rpc kava.cdp.v1beta1.Msg.DrawDebt + */ +export const MsgDrawDebtService = { + typeName: TYPE_NAME, + method: "DrawDebt", + Request: MsgDrawDebt, + Response: MsgDrawDebtResponse, +} as const; + +/** + * RepayDebt defines a method to repay debt from a CDP. + * + * @generated from rpc kava.cdp.v1beta1.Msg.RepayDebt + */ +export const MsgRepayDebtService = { + typeName: TYPE_NAME, + method: "RepayDebt", + Request: MsgRepayDebt, + Response: MsgRepayDebtResponse, +} as const; + +/** + * Liquidate defines a method to attempt to liquidate a CDP whos + * collateralization ratio is under its liquidation ratio. + * + * @generated from rpc kava.cdp.v1beta1.Msg.Liquidate + */ +export const MsgLiquidateService = { + typeName: TYPE_NAME, + method: "Liquidate", + Request: MsgLiquidate, + Response: MsgLiquidateResponse, +} as const; + diff --git a/src/protobufs/kava/cdp/v1beta1/tx_pb.ts b/src/protobufs/kava/cdp/v1beta1/tx_pb.ts new file mode 100644 index 00000000..c6c34e53 --- /dev/null +++ b/src/protobufs/kava/cdp/v1beta1/tx_pb.ts @@ -0,0 +1,538 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/cdp/v1beta1/tx.proto (package kava.cdp.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgCreateCDP defines a message to create a new CDP. + * + * @generated from message kava.cdp.v1beta1.MsgCreateCDP + */ +export class MsgCreateCDP extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 2; + */ + collateral?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin principal = 3; + */ + principal?: Coin; + + /** + * @generated from field: string collateral_type = 4; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgCreateCDP"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral", kind: "message", T: Coin }, + { no: 3, name: "principal", kind: "message", T: Coin }, + { no: 4, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateCDP { + return new MsgCreateCDP().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateCDP { + return new MsgCreateCDP().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateCDP { + return new MsgCreateCDP().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateCDP | PlainMessage | undefined, b: MsgCreateCDP | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateCDP, a, b); + } +} + +/** + * MsgCreateCDPResponse defines the Msg/CreateCDP response type. + * + * @generated from message kava.cdp.v1beta1.MsgCreateCDPResponse + */ +export class MsgCreateCDPResponse extends Message { + /** + * @generated from field: uint64 cdp_id = 1; + */ + cdpId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgCreateCDPResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cdp_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateCDPResponse { + return new MsgCreateCDPResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateCDPResponse { + return new MsgCreateCDPResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateCDPResponse { + return new MsgCreateCDPResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateCDPResponse | PlainMessage | undefined, b: MsgCreateCDPResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateCDPResponse, a, b); + } +} + +/** + * MsgDeposit defines a message to deposit to a CDP. + * + * @generated from message kava.cdp.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 3; + */ + collateral?: Coin; + + /** + * @generated from field: string collateral_type = 4; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral", kind: "message", T: Coin }, + { no: 4, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message kava.cdp.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw defines a message to withdraw collateral from a CDP. + * + * @generated from message kava.cdp.v1beta1.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 3; + */ + collateral?: Coin; + + /** + * @generated from field: string collateral_type = 4; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral", kind: "message", T: Coin }, + { no: 4, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the Msg/Withdraw response type. + * + * @generated from message kava.cdp.v1beta1.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + +/** + * MsgDrawDebt defines a message to draw debt from a CDP. + * + * @generated from message kava.cdp.v1beta1.MsgDrawDebt + */ +export class MsgDrawDebt extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string collateral_type = 2; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin principal = 3; + */ + principal?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgDrawDebt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "principal", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDrawDebt { + return new MsgDrawDebt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDrawDebt { + return new MsgDrawDebt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDrawDebt { + return new MsgDrawDebt().fromJsonString(jsonString, options); + } + + static equals(a: MsgDrawDebt | PlainMessage | undefined, b: MsgDrawDebt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDrawDebt, a, b); + } +} + +/** + * MsgDrawDebtResponse defines the Msg/DrawDebt response type. + * + * @generated from message kava.cdp.v1beta1.MsgDrawDebtResponse + */ +export class MsgDrawDebtResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgDrawDebtResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDrawDebtResponse { + return new MsgDrawDebtResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDrawDebtResponse { + return new MsgDrawDebtResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDrawDebtResponse { + return new MsgDrawDebtResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDrawDebtResponse | PlainMessage | undefined, b: MsgDrawDebtResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDrawDebtResponse, a, b); + } +} + +/** + * MsgRepayDebt defines a message to repay debt from a CDP. + * + * @generated from message kava.cdp.v1beta1.MsgRepayDebt + */ +export class MsgRepayDebt extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string collateral_type = 2; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin payment = 3; + */ + payment?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgRepayDebt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "payment", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRepayDebt { + return new MsgRepayDebt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRepayDebt { + return new MsgRepayDebt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRepayDebt { + return new MsgRepayDebt().fromJsonString(jsonString, options); + } + + static equals(a: MsgRepayDebt | PlainMessage | undefined, b: MsgRepayDebt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRepayDebt, a, b); + } +} + +/** + * MsgRepayDebtResponse defines the Msg/RepayDebt response type. + * + * @generated from message kava.cdp.v1beta1.MsgRepayDebtResponse + */ +export class MsgRepayDebtResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgRepayDebtResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRepayDebtResponse { + return new MsgRepayDebtResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRepayDebtResponse { + return new MsgRepayDebtResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRepayDebtResponse { + return new MsgRepayDebtResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRepayDebtResponse | PlainMessage | undefined, b: MsgRepayDebtResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRepayDebtResponse, a, b); + } +} + +/** + * MsgLiquidate defines a message to attempt to liquidate a CDP whos + * collateralization ratio is under its liquidation ratio. + * + * @generated from message kava.cdp.v1beta1.MsgLiquidate + */ +export class MsgLiquidate extends Message { + /** + * @generated from field: string keeper = 1; + */ + keeper = ""; + + /** + * @generated from field: string borrower = 2; + */ + borrower = ""; + + /** + * @generated from field: string collateral_type = 3; + */ + collateralType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgLiquidate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "keeper", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrower", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidate | PlainMessage | undefined, b: MsgLiquidate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidate, a, b); + } +} + +/** + * MsgLiquidateResponse defines the Msg/Liquidate response type. + * + * @generated from message kava.cdp.v1beta1.MsgLiquidateResponse + */ +export class MsgLiquidateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.cdp.v1beta1.MsgLiquidateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidateResponse | PlainMessage | undefined, b: MsgLiquidateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidateResponse, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/committee_pb.ts b/src/protobufs/kava/committee/v1beta1/committee_pb.ts new file mode 100644 index 00000000..406b0397 --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/committee_pb.ts @@ -0,0 +1,211 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/committee.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * TallyOption enumerates the valid types of a tally. + * + * @generated from enum kava.committee.v1beta1.TallyOption + */ +export enum TallyOption { + /** + * TALLY_OPTION_UNSPECIFIED defines a null tally option. + * + * @generated from enum value: TALLY_OPTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Votes are tallied each block and the proposal passes as soon as the vote threshold is reached + * + * @generated from enum value: TALLY_OPTION_FIRST_PAST_THE_POST = 1; + */ + FIRST_PAST_THE_POST = 1, + + /** + * Votes are tallied exactly once, when the deadline time is reached + * + * @generated from enum value: TALLY_OPTION_DEADLINE = 2; + */ + DEADLINE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(TallyOption) +proto3.util.setEnumType(TallyOption, "kava.committee.v1beta1.TallyOption", [ + { no: 0, name: "TALLY_OPTION_UNSPECIFIED" }, + { no: 1, name: "TALLY_OPTION_FIRST_PAST_THE_POST" }, + { no: 2, name: "TALLY_OPTION_DEADLINE" }, +]); + +/** + * BaseCommittee is a common type shared by all Committees + * + * @generated from message kava.committee.v1beta1.BaseCommittee + */ +export class BaseCommittee extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated bytes members = 3; + */ + members: Uint8Array[] = []; + + /** + * @generated from field: repeated google.protobuf.Any permissions = 4; + */ + permissions: Any[] = []; + + /** + * Smallest percentage that must vote for a proposal to pass + * + * @generated from field: string vote_threshold = 5; + */ + voteThreshold = ""; + + /** + * The length of time a proposal remains active for. Proposals will close earlier if they get enough votes. + * + * @generated from field: google.protobuf.Duration proposal_duration = 6; + */ + proposalDuration?: Duration; + + /** + * @generated from field: kava.committee.v1beta1.TallyOption tally_option = 7; + */ + tallyOption = TallyOption.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.BaseCommittee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "members", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 4, name: "permissions", kind: "message", T: Any, repeated: true }, + { no: 5, name: "vote_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "proposal_duration", kind: "message", T: Duration }, + { no: 7, name: "tally_option", kind: "enum", T: proto3.getEnumType(TallyOption) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BaseCommittee { + return new BaseCommittee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BaseCommittee { + return new BaseCommittee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BaseCommittee { + return new BaseCommittee().fromJsonString(jsonString, options); + } + + static equals(a: BaseCommittee | PlainMessage | undefined, b: BaseCommittee | PlainMessage | undefined): boolean { + return proto3.util.equals(BaseCommittee, a, b); + } +} + +/** + * MemberCommittee is an alias of BaseCommittee + * + * @generated from message kava.committee.v1beta1.MemberCommittee + */ +export class MemberCommittee extends Message { + /** + * @generated from field: kava.committee.v1beta1.BaseCommittee base_committee = 1; + */ + baseCommittee?: BaseCommittee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.MemberCommittee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_committee", kind: "message", T: BaseCommittee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MemberCommittee { + return new MemberCommittee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MemberCommittee { + return new MemberCommittee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MemberCommittee { + return new MemberCommittee().fromJsonString(jsonString, options); + } + + static equals(a: MemberCommittee | PlainMessage | undefined, b: MemberCommittee | PlainMessage | undefined): boolean { + return proto3.util.equals(MemberCommittee, a, b); + } +} + +/** + * TokenCommittee supports voting on proposals by token holders + * + * @generated from message kava.committee.v1beta1.TokenCommittee + */ +export class TokenCommittee extends Message { + /** + * @generated from field: kava.committee.v1beta1.BaseCommittee base_committee = 1; + */ + baseCommittee?: BaseCommittee; + + /** + * @generated from field: string quorum = 2; + */ + quorum = ""; + + /** + * @generated from field: string tally_denom = 3; + */ + tallyDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.TokenCommittee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_committee", kind: "message", T: BaseCommittee }, + { no: 2, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "tally_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenCommittee { + return new TokenCommittee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenCommittee { + return new TokenCommittee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenCommittee { + return new TokenCommittee().fromJsonString(jsonString, options); + } + + static equals(a: TokenCommittee | PlainMessage | undefined, b: TokenCommittee | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenCommittee, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/genesis_pb.ts b/src/protobufs/kava/committee/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..5840aa46 --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/genesis_pb.ts @@ -0,0 +1,215 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/genesis.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * VoteType enumerates the valid types of a vote. + * + * @generated from enum kava.committee.v1beta1.VoteType + */ +export enum VoteType { + /** + * VOTE_TYPE_UNSPECIFIED defines a no-op vote option. + * + * @generated from enum value: VOTE_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * VOTE_TYPE_YES defines a yes vote option. + * + * @generated from enum value: VOTE_TYPE_YES = 1; + */ + YES = 1, + + /** + * VOTE_TYPE_NO defines a no vote option. + * + * @generated from enum value: VOTE_TYPE_NO = 2; + */ + NO = 2, + + /** + * VOTE_TYPE_ABSTAIN defines an abstain vote option. + * + * @generated from enum value: VOTE_TYPE_ABSTAIN = 3; + */ + ABSTAIN = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(VoteType) +proto3.util.setEnumType(VoteType, "kava.committee.v1beta1.VoteType", [ + { no: 0, name: "VOTE_TYPE_UNSPECIFIED" }, + { no: 1, name: "VOTE_TYPE_YES" }, + { no: 2, name: "VOTE_TYPE_NO" }, + { no: 3, name: "VOTE_TYPE_ABSTAIN" }, +]); + +/** + * GenesisState defines the committee module's genesis state. + * + * @generated from message kava.committee.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: uint64 next_proposal_id = 1; + */ + nextProposalId = protoInt64.zero; + + /** + * @generated from field: repeated google.protobuf.Any committees = 2; + */ + committees: Any[] = []; + + /** + * @generated from field: repeated kava.committee.v1beta1.Proposal proposals = 3; + */ + proposals: Proposal[] = []; + + /** + * @generated from field: repeated kava.committee.v1beta1.Vote votes = 4; + */ + votes: Vote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "committees", kind: "message", T: Any, repeated: true }, + { no: 3, name: "proposals", kind: "message", T: Proposal, repeated: true }, + { no: 4, name: "votes", kind: "message", T: Vote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Proposal is an internal record of a governance proposal submitted to a committee. + * + * @generated from message kava.committee.v1beta1.Proposal + */ +export class Proposal extends Message { + /** + * @generated from field: google.protobuf.Any content = 1; + */ + content?: Any; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 committee_id = 3; + */ + committeeId = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Timestamp deadline = 4; + */ + deadline?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.Proposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "content", kind: "message", T: Any }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "deadline", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { + return new Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { + return new Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Proposal { + return new Proposal().fromJsonString(jsonString, options); + } + + static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(Proposal, a, b); + } +} + +/** + * Vote is an internal record of a single governance vote. + * + * @generated from message kava.committee.v1beta1.Vote + */ +export class Vote extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: bytes voter = 2; + */ + voter = new Uint8Array(0); + + /** + * @generated from field: kava.committee.v1beta1.VoteType vote_type = 3; + */ + voteType = VoteType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.Vote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vote { + return new Vote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vote { + return new Vote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vote { + return new Vote().fromJsonString(jsonString, options); + } + + static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { + return proto3.util.equals(Vote, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/permissions_pb.ts b/src/protobufs/kava/committee/v1beta1/permissions_pb.ts new file mode 100644 index 00000000..87e74c4f --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/permissions_pb.ts @@ -0,0 +1,365 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/permissions.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GodPermission allows any governance proposal. It is used mainly for testing. + * + * @generated from message kava.committee.v1beta1.GodPermission + */ +export class GodPermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.GodPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GodPermission { + return new GodPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GodPermission { + return new GodPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GodPermission { + return new GodPermission().fromJsonString(jsonString, options); + } + + static equals(a: GodPermission | PlainMessage | undefined, b: GodPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(GodPermission, a, b); + } +} + +/** + * SoftwareUpgradePermission permission type for software upgrade proposals + * + * @generated from message kava.committee.v1beta1.SoftwareUpgradePermission + */ +export class SoftwareUpgradePermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.SoftwareUpgradePermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SoftwareUpgradePermission { + return new SoftwareUpgradePermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SoftwareUpgradePermission { + return new SoftwareUpgradePermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SoftwareUpgradePermission { + return new SoftwareUpgradePermission().fromJsonString(jsonString, options); + } + + static equals(a: SoftwareUpgradePermission | PlainMessage | undefined, b: SoftwareUpgradePermission | PlainMessage | undefined): boolean { + return proto3.util.equals(SoftwareUpgradePermission, a, b); + } +} + +/** + * TextPermission allows any text governance proposal. + * + * @generated from message kava.committee.v1beta1.TextPermission + */ +export class TextPermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.TextPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TextPermission { + return new TextPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TextPermission { + return new TextPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TextPermission { + return new TextPermission().fromJsonString(jsonString, options); + } + + static equals(a: TextPermission | PlainMessage | undefined, b: TextPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(TextPermission, a, b); + } +} + +/** + * CommunityCDPRepayDebtPermission allows submission of CommunityCDPRepayDebtProposal + * + * @generated from message kava.committee.v1beta1.CommunityCDPRepayDebtPermission + */ +export class CommunityCDPRepayDebtPermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.CommunityCDPRepayDebtPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityCDPRepayDebtPermission { + return new CommunityCDPRepayDebtPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityCDPRepayDebtPermission { + return new CommunityCDPRepayDebtPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityCDPRepayDebtPermission { + return new CommunityCDPRepayDebtPermission().fromJsonString(jsonString, options); + } + + static equals(a: CommunityCDPRepayDebtPermission | PlainMessage | undefined, b: CommunityCDPRepayDebtPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityCDPRepayDebtPermission, a, b); + } +} + +/** + * CommunityCDPWithdrawCollateralPermission allows submission of CommunityCDPWithdrawCollateralProposal + * + * @generated from message kava.committee.v1beta1.CommunityCDPWithdrawCollateralPermission + */ +export class CommunityCDPWithdrawCollateralPermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.CommunityCDPWithdrawCollateralPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityCDPWithdrawCollateralPermission { + return new CommunityCDPWithdrawCollateralPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityCDPWithdrawCollateralPermission { + return new CommunityCDPWithdrawCollateralPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityCDPWithdrawCollateralPermission { + return new CommunityCDPWithdrawCollateralPermission().fromJsonString(jsonString, options); + } + + static equals(a: CommunityCDPWithdrawCollateralPermission | PlainMessage | undefined, b: CommunityCDPWithdrawCollateralPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityCDPWithdrawCollateralPermission, a, b); + } +} + +/** + * CommunityPoolLendWithdrawPermission allows submission of CommunityPoolLendWithdrawProposal + * + * @generated from message kava.committee.v1beta1.CommunityPoolLendWithdrawPermission + */ +export class CommunityPoolLendWithdrawPermission extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.CommunityPoolLendWithdrawPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolLendWithdrawPermission { + return new CommunityPoolLendWithdrawPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolLendWithdrawPermission { + return new CommunityPoolLendWithdrawPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolLendWithdrawPermission { + return new CommunityPoolLendWithdrawPermission().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolLendWithdrawPermission | PlainMessage | undefined, b: CommunityPoolLendWithdrawPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolLendWithdrawPermission, a, b); + } +} + +/** + * ParamsChangePermission allows any parameter or sub parameter change proposal. + * + * @generated from message kava.committee.v1beta1.ParamsChangePermission + */ +export class ParamsChangePermission extends Message { + /** + * @generated from field: repeated kava.committee.v1beta1.AllowedParamsChange allowed_params_changes = 1; + */ + allowedParamsChanges: AllowedParamsChange[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.ParamsChangePermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_params_changes", kind: "message", T: AllowedParamsChange, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsChangePermission { + return new ParamsChangePermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsChangePermission { + return new ParamsChangePermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsChangePermission { + return new ParamsChangePermission().fromJsonString(jsonString, options); + } + + static equals(a: ParamsChangePermission | PlainMessage | undefined, b: ParamsChangePermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsChangePermission, a, b); + } +} + +/** + * AllowedParamsChange contains data on the allowed parameter changes for subspace, key, and sub params requirements. + * + * @generated from message kava.committee.v1beta1.AllowedParamsChange + */ +export class AllowedParamsChange extends Message { + /** + * @generated from field: string subspace = 1; + */ + subspace = ""; + + /** + * @generated from field: string key = 2; + */ + key = ""; + + /** + * Requirements for when the subparam value is a single record. This contains list of allowed attribute keys that can + * be changed on the subparam record. + * + * @generated from field: repeated string single_subparam_allowed_attrs = 3; + */ + singleSubparamAllowedAttrs: string[] = []; + + /** + * Requirements for when the subparam value is a list of records. The requirements contains requirements for each + * record in the list. + * + * @generated from field: repeated kava.committee.v1beta1.SubparamRequirement multi_subparams_requirements = 4; + */ + multiSubparamsRequirements: SubparamRequirement[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.AllowedParamsChange"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "single_subparam_allowed_attrs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "multi_subparams_requirements", kind: "message", T: SubparamRequirement, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowedParamsChange { + return new AllowedParamsChange().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowedParamsChange { + return new AllowedParamsChange().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowedParamsChange { + return new AllowedParamsChange().fromJsonString(jsonString, options); + } + + static equals(a: AllowedParamsChange | PlainMessage | undefined, b: AllowedParamsChange | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowedParamsChange, a, b); + } +} + +/** + * SubparamRequirement contains requirements for a single record in a subparam value list + * + * @generated from message kava.committee.v1beta1.SubparamRequirement + */ +export class SubparamRequirement extends Message { + /** + * The required attr key of the param record. + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * The required param value for the param record key. The key and value is used to match to the target param record. + * + * @generated from field: string val = 2; + */ + val = ""; + + /** + * The sub param attrs that are allowed to be changed. + * + * @generated from field: repeated string allowed_subparam_attr_changes = 3; + */ + allowedSubparamAttrChanges: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.SubparamRequirement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allowed_subparam_attr_changes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SubparamRequirement { + return new SubparamRequirement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SubparamRequirement { + return new SubparamRequirement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SubparamRequirement { + return new SubparamRequirement().fromJsonString(jsonString, options); + } + + static equals(a: SubparamRequirement | PlainMessage | undefined, b: SubparamRequirement | PlainMessage | undefined): boolean { + return proto3.util.equals(SubparamRequirement, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/proposal_pb.ts b/src/protobufs/kava/committee/v1beta1/proposal_pb.ts new file mode 100644 index 00000000..669a999f --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/proposal_pb.ts @@ -0,0 +1,110 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/proposal.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * CommitteeChangeProposal is a gov proposal for creating a new committee or modifying an existing one. + * + * @generated from message kava.committee.v1beta1.CommitteeChangeProposal + */ +export class CommitteeChangeProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: google.protobuf.Any new_committee = 3; + */ + newCommittee?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.CommitteeChangeProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_committee", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommitteeChangeProposal { + return new CommitteeChangeProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommitteeChangeProposal { + return new CommitteeChangeProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommitteeChangeProposal { + return new CommitteeChangeProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommitteeChangeProposal | PlainMessage | undefined, b: CommitteeChangeProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommitteeChangeProposal, a, b); + } +} + +/** + * CommitteeDeleteProposal is a gov proposal for removing a committee. + * + * @generated from message kava.committee.v1beta1.CommitteeDeleteProposal + */ +export class CommitteeDeleteProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: uint64 committee_id = 3; + */ + committeeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.CommitteeDeleteProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommitteeDeleteProposal { + return new CommitteeDeleteProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommitteeDeleteProposal { + return new CommitteeDeleteProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommitteeDeleteProposal { + return new CommitteeDeleteProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommitteeDeleteProposal | PlainMessage | undefined, b: CommitteeDeleteProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommitteeDeleteProposal, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/query_cosmes.ts b/src/protobufs/kava/committee/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..62f1d31c --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/query_cosmes.ts @@ -0,0 +1,117 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/query.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCommitteeRequest, QueryCommitteeResponse, QueryCommitteesRequest, QueryCommitteesResponse, QueryNextProposalIDRequest, QueryNextProposalIDResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryRawParamsRequest, QueryRawParamsResponse, QueryTallyRequest, QueryTallyResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.committee.v1beta1.Query"; + +/** + * Committees queries all committess of the committee module. + * + * @generated from rpc kava.committee.v1beta1.Query.Committees + */ +export const QueryCommitteesService = { + typeName: TYPE_NAME, + method: "Committees", + Request: QueryCommitteesRequest, + Response: QueryCommitteesResponse, +} as const; + +/** + * Committee queries a committee based on committee ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Committee + */ +export const QueryCommitteeService = { + typeName: TYPE_NAME, + method: "Committee", + Request: QueryCommitteeRequest, + Response: QueryCommitteeResponse, +} as const; + +/** + * Proposals queries proposals based on committee ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Proposals + */ +export const QueryProposalsService = { + typeName: TYPE_NAME, + method: "Proposals", + Request: QueryProposalsRequest, + Response: QueryProposalsResponse, +} as const; + +/** + * Deposits queries a proposal based on proposal ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Proposal + */ +export const QueryProposalService = { + typeName: TYPE_NAME, + method: "Proposal", + Request: QueryProposalRequest, + Response: QueryProposalResponse, +} as const; + +/** + * NextProposalID queries the next proposal ID of the committee module. + * + * @generated from rpc kava.committee.v1beta1.Query.NextProposalID + */ +export const QueryNextProposalIDService = { + typeName: TYPE_NAME, + method: "NextProposalID", + Request: QueryNextProposalIDRequest, + Response: QueryNextProposalIDResponse, +} as const; + +/** + * Votes queries all votes for a single proposal ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Votes + */ +export const QueryVotesService = { + typeName: TYPE_NAME, + method: "Votes", + Request: QueryVotesRequest, + Response: QueryVotesResponse, +} as const; + +/** + * Vote queries the vote of a single voter for a single proposal ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Vote + */ +export const QueryVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: QueryVoteRequest, + Response: QueryVoteResponse, +} as const; + +/** + * Tally queries the tally of a single proposal ID. + * + * @generated from rpc kava.committee.v1beta1.Query.Tally + */ +export const QueryTallyService = { + typeName: TYPE_NAME, + method: "Tally", + Request: QueryTallyRequest, + Response: QueryTallyResponse, +} as const; + +/** + * RawParams queries the raw params data of any subspace and key. + * + * @generated from rpc kava.committee.v1beta1.Query.RawParams + */ +export const QueryRawParamsService = { + typeName: TYPE_NAME, + method: "RawParams", + Request: QueryRawParamsRequest, + Response: QueryRawParamsResponse, +} as const; + diff --git a/src/protobufs/kava/committee/v1beta1/query_pb.ts b/src/protobufs/kava/committee/v1beta1/query_pb.ts new file mode 100644 index 00000000..dfb49ec7 --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/query_pb.ts @@ -0,0 +1,794 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/query.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { VoteType } from "./genesis_pb.js"; + +/** + * QueryCommitteesRequest defines the request type for querying x/committee committees. + * + * @generated from message kava.committee.v1beta1.QueryCommitteesRequest + */ +export class QueryCommitteesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryCommitteesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitteesRequest { + return new QueryCommitteesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitteesRequest { + return new QueryCommitteesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitteesRequest { + return new QueryCommitteesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitteesRequest | PlainMessage | undefined, b: QueryCommitteesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitteesRequest, a, b); + } +} + +/** + * QueryCommitteesResponse defines the response type for querying x/committee committees. + * + * @generated from message kava.committee.v1beta1.QueryCommitteesResponse + */ +export class QueryCommitteesResponse extends Message { + /** + * @generated from field: repeated google.protobuf.Any committees = 1; + */ + committees: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryCommitteesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "committees", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitteesResponse { + return new QueryCommitteesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitteesResponse { + return new QueryCommitteesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitteesResponse { + return new QueryCommitteesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitteesResponse | PlainMessage | undefined, b: QueryCommitteesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitteesResponse, a, b); + } +} + +/** + * QueryCommitteeRequest defines the request type for querying x/committee committee. + * + * @generated from message kava.committee.v1beta1.QueryCommitteeRequest + */ +export class QueryCommitteeRequest extends Message { + /** + * @generated from field: uint64 committee_id = 1; + */ + committeeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryCommitteeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitteeRequest { + return new QueryCommitteeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitteeRequest { + return new QueryCommitteeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitteeRequest { + return new QueryCommitteeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitteeRequest | PlainMessage | undefined, b: QueryCommitteeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitteeRequest, a, b); + } +} + +/** + * QueryCommitteeResponse defines the response type for querying x/committee committee. + * + * @generated from message kava.committee.v1beta1.QueryCommitteeResponse + */ +export class QueryCommitteeResponse extends Message { + /** + * @generated from field: google.protobuf.Any committee = 1; + */ + committee?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryCommitteeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "committee", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommitteeResponse { + return new QueryCommitteeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommitteeResponse { + return new QueryCommitteeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCommitteeResponse { + return new QueryCommitteeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCommitteeResponse | PlainMessage | undefined, b: QueryCommitteeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCommitteeResponse, a, b); + } +} + +/** + * QueryProposalsRequest defines the request type for querying x/committee proposals. + * + * @generated from message kava.committee.v1beta1.QueryProposalsRequest + */ +export class QueryProposalsRequest extends Message { + /** + * @generated from field: uint64 committee_id = 1; + */ + committeeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryProposalsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest { + return new QueryProposalsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsRequest, a, b); + } +} + +/** + * QueryProposalsResponse defines the response type for querying x/committee proposals. + * + * @generated from message kava.committee.v1beta1.QueryProposalsResponse + */ +export class QueryProposalsResponse extends Message { + /** + * @generated from field: repeated kava.committee.v1beta1.QueryProposalResponse proposals = 1; + */ + proposals: QueryProposalResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryProposalsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposals", kind: "message", T: QueryProposalResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse { + return new QueryProposalsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalsResponse, a, b); + } +} + +/** + * QueryProposalRequest defines the request type for querying x/committee proposal. + * + * @generated from message kava.committee.v1beta1.QueryProposalRequest + */ +export class QueryProposalRequest extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryProposalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { + return new QueryProposalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalRequest, a, b); + } +} + +/** + * QueryProposalResponse defines the response type for querying x/committee proposal. + * + * @generated from message kava.committee.v1beta1.QueryProposalResponse + */ +export class QueryProposalResponse extends Message { + /** + * @generated from field: google.protobuf.Any pub_proposal = 1; + */ + pubProposal?: Any; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 committee_id = 3; + */ + committeeId = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Timestamp deadline = 4; + */ + deadline?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pub_proposal", kind: "message", T: Any }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "deadline", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { + return new QueryProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProposalResponse, a, b); + } +} + +/** + * QueryNextProposalIDRequest defines the request type for querying x/committee NextProposalID. + * + * @generated from message kava.committee.v1beta1.QueryNextProposalIDRequest + */ +export class QueryNextProposalIDRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryNextProposalIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextProposalIDRequest { + return new QueryNextProposalIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextProposalIDRequest { + return new QueryNextProposalIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextProposalIDRequest { + return new QueryNextProposalIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextProposalIDRequest | PlainMessage | undefined, b: QueryNextProposalIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextProposalIDRequest, a, b); + } +} + +/** + * QueryNextProposalIDRequest defines the response type for querying x/committee NextProposalID. + * + * @generated from message kava.committee.v1beta1.QueryNextProposalIDResponse + */ +export class QueryNextProposalIDResponse extends Message { + /** + * @generated from field: uint64 next_proposal_id = 1; + */ + nextProposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryNextProposalIDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextProposalIDResponse { + return new QueryNextProposalIDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextProposalIDResponse { + return new QueryNextProposalIDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNextProposalIDResponse { + return new QueryNextProposalIDResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNextProposalIDResponse | PlainMessage | undefined, b: QueryNextProposalIDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNextProposalIDResponse, a, b); + } +} + +/** + * QueryVotesRequest defines the request type for querying x/committee votes. + * + * @generated from message kava.committee.v1beta1.QueryVotesRequest + */ +export class QueryVotesRequest extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryVotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesRequest, a, b); + } +} + +/** + * QueryVotesResponse defines the response type for querying x/committee votes. + * + * @generated from message kava.committee.v1beta1.QueryVotesResponse + */ +export class QueryVotesResponse extends Message { + /** + * votes defined the queried votes. + * + * @generated from field: repeated kava.committee.v1beta1.QueryVoteResponse votes = 1; + */ + votes: QueryVoteResponse[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryVotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "votes", kind: "message", T: QueryVoteResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesResponse, a, b); + } +} + +/** + * QueryVoteRequest defines the request type for querying x/committee vote. + * + * @generated from message kava.committee.v1beta1.QueryVoteRequest + */ +export class QueryVoteRequest extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string voter = 2; + */ + voter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteRequest, a, b); + } +} + +/** + * QueryVoteResponse defines the response type for querying x/committee vote. + * + * @generated from message kava.committee.v1beta1.QueryVoteResponse + */ +export class QueryVoteResponse extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * @generated from field: kava.committee.v1beta1.VoteType vote_type = 3; + */ + voteType = VoteType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteResponse, a, b); + } +} + +/** + * QueryTallyRequest defines the request type for querying x/committee tally. + * + * @generated from message kava.committee.v1beta1.QueryTallyRequest + */ +export class QueryTallyRequest extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryTallyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyRequest { + return new QueryTallyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyRequest { + return new QueryTallyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyRequest { + return new QueryTallyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyRequest | PlainMessage | undefined, b: QueryTallyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyRequest, a, b); + } +} + +/** + * QueryTallyResponse defines the response type for querying x/committee tally. + * + * @generated from message kava.committee.v1beta1.QueryTallyResponse + */ +export class QueryTallyResponse extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string yes_votes = 2; + */ + yesVotes = ""; + + /** + * @generated from field: string no_votes = 3; + */ + noVotes = ""; + + /** + * @generated from field: string current_votes = 4; + */ + currentVotes = ""; + + /** + * @generated from field: string possible_votes = 5; + */ + possibleVotes = ""; + + /** + * @generated from field: string vote_threshold = 6; + */ + voteThreshold = ""; + + /** + * @generated from field: string quorum = 7; + */ + quorum = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryTallyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "yes_votes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "no_votes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "current_votes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "possible_votes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "vote_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResponse { + return new QueryTallyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResponse { + return new QueryTallyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResponse { + return new QueryTallyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResponse | PlainMessage | undefined, b: QueryTallyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResponse, a, b); + } +} + +/** + * QueryRawParamsRequest defines the request type for querying x/committee raw params. + * + * @generated from message kava.committee.v1beta1.QueryRawParamsRequest + */ +export class QueryRawParamsRequest extends Message { + /** + * @generated from field: string subspace = 1; + */ + subspace = ""; + + /** + * @generated from field: string key = 2; + */ + key = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryRawParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawParamsRequest { + return new QueryRawParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawParamsRequest { + return new QueryRawParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawParamsRequest { + return new QueryRawParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawParamsRequest | PlainMessage | undefined, b: QueryRawParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawParamsRequest, a, b); + } +} + +/** + * QueryRawParamsResponse defines the response type for querying x/committee raw params. + * + * @generated from message kava.committee.v1beta1.QueryRawParamsResponse + */ +export class QueryRawParamsResponse extends Message { + /** + * @generated from field: string raw_data = 1; + */ + rawData = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.QueryRawParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "raw_data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawParamsResponse { + return new QueryRawParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawParamsResponse { + return new QueryRawParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawParamsResponse { + return new QueryRawParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawParamsResponse | PlainMessage | undefined, b: QueryRawParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawParamsResponse, a, b); + } +} + diff --git a/src/protobufs/kava/committee/v1beta1/tx_cosmes.ts b/src/protobufs/kava/committee/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..636e62d8 --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/tx.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.committee.v1beta1.Msg"; + +/** + * SubmitProposal defines a method for submitting a committee proposal + * + * @generated from rpc kava.committee.v1beta1.Msg.SubmitProposal + */ +export const MsgSubmitProposalService = { + typeName: TYPE_NAME, + method: "SubmitProposal", + Request: MsgSubmitProposal, + Response: MsgSubmitProposalResponse, +} as const; + +/** + * Vote defines a method for voting on a proposal + * + * @generated from rpc kava.committee.v1beta1.Msg.Vote + */ +export const MsgVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: MsgVote, + Response: MsgVoteResponse, +} as const; + diff --git a/src/protobufs/kava/committee/v1beta1/tx_pb.ts b/src/protobufs/kava/committee/v1beta1/tx_pb.ts new file mode 100644 index 00000000..05c782b4 --- /dev/null +++ b/src/protobufs/kava/committee/v1beta1/tx_pb.ts @@ -0,0 +1,183 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/committee/v1beta1/tx.proto (package kava.committee.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { VoteType } from "./genesis_pb.js"; + +/** + * MsgSubmitProposal is used by committee members to create a new proposal that they can vote on. + * + * @generated from message kava.committee.v1beta1.MsgSubmitProposal + */ +export class MsgSubmitProposal extends Message { + /** + * @generated from field: google.protobuf.Any pub_proposal = 1; + */ + pubProposal?: Any; + + /** + * @generated from field: string proposer = 2; + */ + proposer = ""; + + /** + * @generated from field: uint64 committee_id = 3; + */ + committeeId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.MsgSubmitProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pub_proposal", kind: "message", T: Any }, + { no: 2, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "committee_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposal, a, b); + } +} + +/** + * MsgSubmitProposalResponse defines the SubmitProposal response type + * + * @generated from message kava.committee.v1beta1.MsgSubmitProposalResponse + */ +export class MsgSubmitProposalResponse extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.MsgSubmitProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposalResponse, a, b); + } +} + +/** + * MsgVote is submitted by committee members to vote on proposals. + * + * @generated from message kava.committee.v1beta1.MsgVote + */ +export class MsgVote extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * @generated from field: kava.committee.v1beta1.VoteType vote_type = 3; + */ + voteType = VoteType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.MsgVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { + return new MsgVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { + return new MsgVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVote { + return new MsgVote().fromJsonString(jsonString, options); + } + + static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVote, a, b); + } +} + +/** + * MsgVoteResponse defines the Vote response type + * + * @generated from message kava.committee.v1beta1.MsgVoteResponse + */ +export class MsgVoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.committee.v1beta1.MsgVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { + return new MsgVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteResponse, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/genesis_pb.ts b/src/protobufs/kava/community/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..d1c7aee5 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/genesis_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/genesis.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { StakingRewardsState } from "./staking_pb.js"; + +/** + * GenesisState defines the community module's genesis state. + * + * @generated from message kava.community.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters related to commmunity + * + * @generated from field: kava.community.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * StakingRewardsState stores the internal staking reward data required to + * track staking rewards across blocks + * + * @generated from field: kava.community.v1beta1.StakingRewardsState staking_rewards_state = 2; + */ + stakingRewardsState?: StakingRewardsState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "staking_rewards_state", kind: "message", T: StakingRewardsState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/params_pb.ts b/src/protobufs/kava/community/v1beta1/params_pb.ts new file mode 100644 index 00000000..0195fe58 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/params_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/params.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters of the community module. + * + * @generated from message kava.community.v1beta1.Params + */ +export class Params extends Message { + /** + * upgrade_time_disable_inflation is the time at which to disable mint and kavadist module inflation. + * If set to 0, inflation will be disabled from block 1. + * + * @generated from field: google.protobuf.Timestamp upgrade_time_disable_inflation = 1; + */ + upgradeTimeDisableInflation?: Timestamp; + + /** + * staking_rewards_per_second is the amount paid out to delegators each block from the community account + * + * @generated from field: string staking_rewards_per_second = 2; + */ + stakingRewardsPerSecond = ""; + + /** + * upgrade_time_set_staking_rewards_per_second is the initial staking_rewards_per_second to set + * and use when the disable inflation time is reached + * + * @generated from field: string upgrade_time_set_staking_rewards_per_second = 3; + */ + upgradeTimeSetStakingRewardsPerSecond = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "upgrade_time_disable_inflation", kind: "message", T: Timestamp }, + { no: 2, name: "staking_rewards_per_second", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "upgrade_time_set_staking_rewards_per_second", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/proposal_pb.ts b/src/protobufs/kava/community/v1beta1/proposal_pb.ts new file mode 100644 index 00000000..eb9b5006 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/proposal_pb.ts @@ -0,0 +1,227 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/proposal.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * CommunityPoolLendDepositProposal deposits from the community pool into lend + * + * @generated from message kava.community.v1beta1.CommunityPoolLendDepositProposal + */ +export class CommunityPoolLendDepositProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.CommunityPoolLendDepositProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolLendDepositProposal { + return new CommunityPoolLendDepositProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolLendDepositProposal { + return new CommunityPoolLendDepositProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolLendDepositProposal { + return new CommunityPoolLendDepositProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolLendDepositProposal | PlainMessage | undefined, b: CommunityPoolLendDepositProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolLendDepositProposal, a, b); + } +} + +/** + * CommunityPoolLendWithdrawProposal withdraws a lend position back to the community pool + * + * @generated from message kava.community.v1beta1.CommunityPoolLendWithdrawProposal + */ +export class CommunityPoolLendWithdrawProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.CommunityPoolLendWithdrawProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolLendWithdrawProposal { + return new CommunityPoolLendWithdrawProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolLendWithdrawProposal { + return new CommunityPoolLendWithdrawProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolLendWithdrawProposal { + return new CommunityPoolLendWithdrawProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolLendWithdrawProposal | PlainMessage | undefined, b: CommunityPoolLendWithdrawProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolLendWithdrawProposal, a, b); + } +} + +/** + * CommunityCDPRepayDebtProposal repays a cdp debt position owned by the community module + * This proposal exists primarily to allow committees to repay community module cdp debts. + * + * @generated from message kava.community.v1beta1.CommunityCDPRepayDebtProposal + */ +export class CommunityCDPRepayDebtProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string collateral_type = 3; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin payment = 4; + */ + payment?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.CommunityCDPRepayDebtProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "payment", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityCDPRepayDebtProposal { + return new CommunityCDPRepayDebtProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityCDPRepayDebtProposal { + return new CommunityCDPRepayDebtProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityCDPRepayDebtProposal { + return new CommunityCDPRepayDebtProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityCDPRepayDebtProposal | PlainMessage | undefined, b: CommunityCDPRepayDebtProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityCDPRepayDebtProposal, a, b); + } +} + +/** + * CommunityCDPWithdrawCollateralProposal withdraws cdp collateral owned by the community module + * This proposal exists primarily to allow committees to withdraw community module cdp collateral. + * + * @generated from message kava.community.v1beta1.CommunityCDPWithdrawCollateralProposal + */ +export class CommunityCDPWithdrawCollateralProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: string collateral_type = 3; + */ + collateralType = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin collateral = 4; + */ + collateral?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.CommunityCDPWithdrawCollateralProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "collateral", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityCDPWithdrawCollateralProposal { + return new CommunityCDPWithdrawCollateralProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityCDPWithdrawCollateralProposal { + return new CommunityCDPWithdrawCollateralProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityCDPWithdrawCollateralProposal { + return new CommunityCDPWithdrawCollateralProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityCDPWithdrawCollateralProposal | PlainMessage | undefined, b: CommunityCDPWithdrawCollateralProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityCDPWithdrawCollateralProposal, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/query_cosmes.ts b/src/protobufs/kava/community/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..b4054b67 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/community/v1beta1/query.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAnnualizedRewardsRequest, QueryAnnualizedRewardsResponse, QueryBalanceRequest, QueryBalanceResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalBalanceRequest, QueryTotalBalanceResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.community.v1beta1.Query"; + +/** + * Params queires the module params. + * + * @generated from rpc kava.community.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Balance queries the balance of all coins of x/community module. + * + * @generated from rpc kava.community.v1beta1.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + +/** + * TotalBalance queries the balance of all coins, including x/distribution, + * x/community, and supplied balances. + * + * @generated from rpc kava.community.v1beta1.Query.TotalBalance + */ +export const QueryTotalBalanceService = { + typeName: TYPE_NAME, + method: "TotalBalance", + Request: QueryTotalBalanceRequest, + Response: QueryTotalBalanceResponse, +} as const; + +/** + * AnnualizedRewards calculates and returns the current annualized reward percentages, + * like staking rewards, for the chain. + * + * @generated from rpc kava.community.v1beta1.Query.AnnualizedRewards + */ +export const QueryAnnualizedRewardsService = { + typeName: TYPE_NAME, + method: "AnnualizedRewards", + Request: QueryAnnualizedRewardsRequest, + Response: QueryAnnualizedRewardsResponse, +} as const; + diff --git a/src/protobufs/kava/community/v1beta1/query_pb.ts b/src/protobufs/kava/community/v1beta1/query_pb.ts new file mode 100644 index 00000000..aaf46c49 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/query_pb.ts @@ -0,0 +1,305 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/query.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParams defines the request type for querying x/community params. + * + * @generated from message kava.community.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/community params. + * + * @generated from message kava.community.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params represents the community module parameters + * + * @generated from field: kava.community.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryBalanceRequest defines the request type for querying x/community balance. + * + * @generated from message kava.community.v1beta1.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * QueryBalanceResponse defines the response type for querying x/community balance. + * + * @generated from message kava.community.v1beta1.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + +/** + * QueryTotalBalanceRequest defines the request type for querying total community pool balance. + * + * @generated from message kava.community.v1beta1.QueryTotalBalanceRequest + */ +export class QueryTotalBalanceRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryTotalBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBalanceRequest { + return new QueryTotalBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBalanceRequest { + return new QueryTotalBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBalanceRequest { + return new QueryTotalBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBalanceRequest | PlainMessage | undefined, b: QueryTotalBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBalanceRequest, a, b); + } +} + +/** + * QueryTotalBalanceResponse defines the response type for querying total + * community pool balance. This matches the x/distribution CommunityPool query response. + * + * @generated from message kava.community.v1beta1.QueryTotalBalanceResponse + */ +export class QueryTotalBalanceResponse extends Message { + /** + * pool defines community pool's coins. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin pool = 1; + */ + pool: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryTotalBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBalanceResponse { + return new QueryTotalBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBalanceResponse { + return new QueryTotalBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBalanceResponse { + return new QueryTotalBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBalanceResponse | PlainMessage | undefined, b: QueryTotalBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBalanceResponse, a, b); + } +} + +/** + * QueryAnnualizedRewardsRequest defines the request type for querying the annualized rewards. + * + * @generated from message kava.community.v1beta1.QueryAnnualizedRewardsRequest + */ +export class QueryAnnualizedRewardsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryAnnualizedRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAnnualizedRewardsRequest { + return new QueryAnnualizedRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAnnualizedRewardsRequest { + return new QueryAnnualizedRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAnnualizedRewardsRequest { + return new QueryAnnualizedRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAnnualizedRewardsRequest | PlainMessage | undefined, b: QueryAnnualizedRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAnnualizedRewardsRequest, a, b); + } +} + +/** + * QueryAnnualizedRewardsResponse defines the response type for querying the annualized rewards. + * + * @generated from message kava.community.v1beta1.QueryAnnualizedRewardsResponse + */ +export class QueryAnnualizedRewardsResponse extends Message { + /** + * staking_rewards is the calculated annualized staking rewards percentage rate + * + * @generated from field: string staking_rewards = 1; + */ + stakingRewards = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.QueryAnnualizedRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAnnualizedRewardsResponse { + return new QueryAnnualizedRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAnnualizedRewardsResponse { + return new QueryAnnualizedRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAnnualizedRewardsResponse { + return new QueryAnnualizedRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAnnualizedRewardsResponse | PlainMessage | undefined, b: QueryAnnualizedRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAnnualizedRewardsResponse, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/staking_pb.ts b/src/protobufs/kava/community/v1beta1/staking_pb.ts new file mode 100644 index 00000000..b47595e2 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/staking_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/staking.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * StakingRewardsState represents the state of staking reward accumulation between blocks. + * + * @generated from message kava.community.v1beta1.StakingRewardsState + */ +export class StakingRewardsState extends Message { + /** + * last_accumulation_time represents the last block time which rewards where calculated and distributed. + * This may be zero to signal accumulation should start on the next interval. + * + * @generated from field: google.protobuf.Timestamp last_accumulation_time = 1; + */ + lastAccumulationTime?: Timestamp; + + /** + * accumulated_truncation_error represents the sum of previous errors due to truncation on payout + * This value will always be on the interval [0, 1). + * + * @generated from field: string last_truncation_error = 2; + */ + lastTruncationError = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.StakingRewardsState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "last_accumulation_time", kind: "message", T: Timestamp }, + { no: 2, name: "last_truncation_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StakingRewardsState { + return new StakingRewardsState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StakingRewardsState { + return new StakingRewardsState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StakingRewardsState { + return new StakingRewardsState().fromJsonString(jsonString, options); + } + + static equals(a: StakingRewardsState | PlainMessage | undefined, b: StakingRewardsState | PlainMessage | undefined): boolean { + return proto3.util.equals(StakingRewardsState, a, b); + } +} + diff --git a/src/protobufs/kava/community/v1beta1/tx_cosmes.ts b/src/protobufs/kava/community/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..c54da675 --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/community/v1beta1/tx.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.community.v1beta1.Msg"; + +/** + * FundCommunityPool defines a method to allow an account to directly fund the community module account. + * + * @generated from rpc kava.community.v1beta1.Msg.FundCommunityPool + */ +export const MsgFundCommunityPoolService = { + typeName: TYPE_NAME, + method: "FundCommunityPool", + Request: MsgFundCommunityPool, + Response: MsgFundCommunityPoolResponse, +} as const; + +/** + * UpdateParams defines a method to allow an account to update the community module parameters. + * + * @generated from rpc kava.community.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/kava/community/v1beta1/tx_pb.ts b/src/protobufs/kava/community/v1beta1/tx_pb.ts new file mode 100644 index 00000000..1f4e62cc --- /dev/null +++ b/src/protobufs/kava/community/v1beta1/tx_pb.ts @@ -0,0 +1,170 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/community/v1beta1/tx.proto (package kava.community.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgFundCommunityPool allows an account to directly fund the community module account. + * + * @generated from message kava.community.v1beta1.MsgFundCommunityPool + */ +export class MsgFundCommunityPool extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + /** + * @generated from field: string depositor = 2; + */ + depositor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.MsgFundCommunityPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundCommunityPool { + return new MsgFundCommunityPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundCommunityPool { + return new MsgFundCommunityPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundCommunityPool { + return new MsgFundCommunityPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundCommunityPool | PlainMessage | undefined, b: MsgFundCommunityPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundCommunityPool, a, b); + } +} + +/** + * MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. + * + * @generated from message kava.community.v1beta1.MsgFundCommunityPoolResponse + */ +export class MsgFundCommunityPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.MsgFundCommunityPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundCommunityPoolResponse { + return new MsgFundCommunityPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundCommunityPoolResponse { + return new MsgFundCommunityPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundCommunityPoolResponse { + return new MsgFundCommunityPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundCommunityPoolResponse | PlainMessage | undefined, b: MsgFundCommunityPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundCommunityPoolResponse, a, b); + } +} + +/** + * MsgUpdateParams allows an account to update the community module parameters. + * + * @generated from message kava.community.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/community parameters to update. + * + * @generated from field: kava.community.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the Msg/UpdateParams response type. + * + * @generated from message kava.community.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.community.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/genesis_pb.ts b/src/protobufs/kava/earn/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..95e3b5a1 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/genesis_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/genesis.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { VaultRecord, VaultShareRecord } from "./vault_pb.js"; + +/** + * GenesisState defines the earn module's genesis state. + * + * @generated from message kava.earn.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters related to earn + * + * @generated from field: kava.earn.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * vault_records defines the available vaults + * + * @generated from field: repeated kava.earn.v1beta1.VaultRecord vault_records = 2; + */ + vaultRecords: VaultRecord[] = []; + + /** + * share_records defines the owned shares of each vault + * + * @generated from field: repeated kava.earn.v1beta1.VaultShareRecord vault_share_records = 3; + */ + vaultShareRecords: VaultShareRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "vault_records", kind: "message", T: VaultRecord, repeated: true }, + { no: 3, name: "vault_share_records", kind: "message", T: VaultShareRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/params_pb.ts b/src/protobufs/kava/earn/v1beta1/params_pb.ts new file mode 100644 index 00000000..f925be87 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/params_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/params.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AllowedVault } from "./vault_pb.js"; + +/** + * Params defines the parameters of the earn module. + * + * @generated from message kava.earn.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.earn.v1beta1.AllowedVault allowed_vaults = 1; + */ + allowedVaults: AllowedVault[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_vaults", kind: "message", T: AllowedVault, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/proposal_pb.ts b/src/protobufs/kava/earn/v1beta1/proposal_pb.ts new file mode 100644 index 00000000..a86cc18e --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/proposal_pb.ts @@ -0,0 +1,225 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/proposal.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * CommunityPoolDepositProposal deposits from the community pool into an earn vault + * + * @generated from message kava.earn.v1beta1.CommunityPoolDepositProposal + */ +export class CommunityPoolDepositProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.CommunityPoolDepositProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolDepositProposal { + return new CommunityPoolDepositProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolDepositProposal { + return new CommunityPoolDepositProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolDepositProposal { + return new CommunityPoolDepositProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolDepositProposal | PlainMessage | undefined, b: CommunityPoolDepositProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolDepositProposal, a, b); + } +} + +/** + * CommunityPoolDepositProposalJSON defines a CommunityPoolDepositProposal with a deposit + * + * @generated from message kava.earn.v1beta1.CommunityPoolDepositProposalJSON + */ +export class CommunityPoolDepositProposalJSON extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin deposit = 4; + */ + deposit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.CommunityPoolDepositProposalJSON"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "deposit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolDepositProposalJSON { + return new CommunityPoolDepositProposalJSON().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolDepositProposalJSON { + return new CommunityPoolDepositProposalJSON().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolDepositProposalJSON { + return new CommunityPoolDepositProposalJSON().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolDepositProposalJSON | PlainMessage | undefined, b: CommunityPoolDepositProposalJSON | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolDepositProposalJSON, a, b); + } +} + +/** + * CommunityPoolWithdrawProposal withdraws from an earn vault back to community pool + * + * @generated from message kava.earn.v1beta1.CommunityPoolWithdrawProposal + */ +export class CommunityPoolWithdrawProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.CommunityPoolWithdrawProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolWithdrawProposal { + return new CommunityPoolWithdrawProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolWithdrawProposal { + return new CommunityPoolWithdrawProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolWithdrawProposal { + return new CommunityPoolWithdrawProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolWithdrawProposal | PlainMessage | undefined, b: CommunityPoolWithdrawProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolWithdrawProposal, a, b); + } +} + +/** + * CommunityPoolWithdrawProposalJSON defines a CommunityPoolWithdrawProposal with a deposit + * + * @generated from message kava.earn.v1beta1.CommunityPoolWithdrawProposalJSON + */ +export class CommunityPoolWithdrawProposalJSON extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin deposit = 4; + */ + deposit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.CommunityPoolWithdrawProposalJSON"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "deposit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolWithdrawProposalJSON { + return new CommunityPoolWithdrawProposalJSON().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolWithdrawProposalJSON { + return new CommunityPoolWithdrawProposalJSON().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolWithdrawProposalJSON { + return new CommunityPoolWithdrawProposalJSON().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolWithdrawProposalJSON | PlainMessage | undefined, b: CommunityPoolWithdrawProposalJSON | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolWithdrawProposalJSON, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/query_cosmes.ts b/src/protobufs/kava/earn/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..27ff593e --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/query_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/query.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QueryVaultRequest, QueryVaultResponse, QueryVaultsRequest, QueryVaultsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.earn.v1beta1.Query"; + +/** + * Params queries all parameters of the earn module. + * + * @generated from rpc kava.earn.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Vaults queries all vaults + * + * @generated from rpc kava.earn.v1beta1.Query.Vaults + */ +export const QueryVaultsService = { + typeName: TYPE_NAME, + method: "Vaults", + Request: QueryVaultsRequest, + Response: QueryVaultsResponse, +} as const; + +/** + * Vault queries a single vault based on the vault denom + * + * @generated from rpc kava.earn.v1beta1.Query.Vault + */ +export const QueryVaultService = { + typeName: TYPE_NAME, + method: "Vault", + Request: QueryVaultRequest, + Response: QueryVaultResponse, +} as const; + +/** + * Deposits queries deposit details based on depositor address and vault + * + * @generated from rpc kava.earn.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + +/** + * TotalSupply returns the total sum of all coins currently locked into the earn module. + * + * @generated from rpc kava.earn.v1beta1.Query.TotalSupply + */ +export const QueryTotalSupplyService = { + typeName: TYPE_NAME, + method: "TotalSupply", + Request: QueryTotalSupplyRequest, + Response: QueryTotalSupplyResponse, +} as const; + diff --git a/src/protobufs/kava/earn/v1beta1/query_pb.ts b/src/protobufs/kava/earn/v1beta1/query_pb.ts new file mode 100644 index 00000000..c8f3d024 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/query_pb.ts @@ -0,0 +1,584 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/query.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { StrategyType } from "./strategy_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { VaultShare } from "./vault_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/earn parameters. + * + * @generated from message kava.earn.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/earn parameters. + * + * @generated from message kava.earn.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params represents the earn module parameters + * + * @generated from field: kava.earn.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryVaultsRequest is the request type for the Query/Vaults RPC method. + * + * @generated from message kava.earn.v1beta1.QueryVaultsRequest + */ +export class QueryVaultsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryVaultsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultsRequest { + return new QueryVaultsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultsRequest | PlainMessage | undefined, b: QueryVaultsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultsRequest, a, b); + } +} + +/** + * QueryVaultsResponse is the response type for the Query/Vaults RPC method. + * + * @generated from message kava.earn.v1beta1.QueryVaultsResponse + */ +export class QueryVaultsResponse extends Message { + /** + * vaults represents the earn module vaults + * + * @generated from field: repeated kava.earn.v1beta1.VaultResponse vaults = 1; + */ + vaults: VaultResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryVaultsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vaults", kind: "message", T: VaultResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultsResponse { + return new QueryVaultsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultsResponse | PlainMessage | undefined, b: QueryVaultsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultsResponse, a, b); + } +} + +/** + * QueryVaultRequest is the request type for the Query/Vault RPC method. + * + * @generated from message kava.earn.v1beta1.QueryVaultRequest + */ +export class QueryVaultRequest extends Message { + /** + * vault filters vault by denom + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryVaultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultRequest { + return new QueryVaultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultRequest | PlainMessage | undefined, b: QueryVaultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultRequest, a, b); + } +} + +/** + * QueryVaultResponse is the response type for the Query/Vault RPC method. + * + * @generated from message kava.earn.v1beta1.QueryVaultResponse + */ +export class QueryVaultResponse extends Message { + /** + * vault represents the queried earn module vault + * + * @generated from field: kava.earn.v1beta1.VaultResponse vault = 1; + */ + vault?: VaultResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryVaultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault", kind: "message", T: VaultResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultResponse { + return new QueryVaultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultResponse | PlainMessage | undefined, b: QueryVaultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultResponse, a, b); + } +} + +/** + * VaultResponse is the response type for a vault. + * + * @generated from message kava.earn.v1beta1.VaultResponse + */ +export class VaultResponse extends Message { + /** + * denom represents the denom of the vault + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * VaultStrategy is the strategy used for this vault. + * + * @generated from field: repeated kava.earn.v1beta1.StrategyType strategies = 2; + */ + strategies: StrategyType[] = []; + + /** + * IsPrivateVault is true if the vault only allows depositors contained in + * AllowedDepositors. + * + * @generated from field: bool is_private_vault = 3; + */ + isPrivateVault = false; + + /** + * AllowedDepositors is a list of addresses that are allowed to deposit to + * this vault if IsPrivateVault is true. Addresses not contained in this list + * are not allowed to deposit into this vault. If IsPrivateVault is false, + * this should be empty and ignored. + * + * @generated from field: repeated string allowed_depositors = 4; + */ + allowedDepositors: string[] = []; + + /** + * TotalShares is the total amount of shares issued to depositors. + * + * @generated from field: string total_shares = 5; + */ + totalShares = ""; + + /** + * TotalValue is the total value of denom coins supplied to the vault if the + * vault were to be liquidated. + * + * @generated from field: string total_value = 6; + */ + totalValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.VaultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "strategies", kind: "enum", T: proto3.getEnumType(StrategyType), repeated: true }, + { no: 3, name: "is_private_vault", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "allowed_depositors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "total_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultResponse { + return new VaultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultResponse { + return new VaultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultResponse { + return new VaultResponse().fromJsonString(jsonString, options); + } + + static equals(a: VaultResponse | PlainMessage | undefined, b: VaultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultResponse, a, b); + } +} + +/** + * QueryDepositsRequest is the request type for the Query/Deposits RPC method. + * + * @generated from message kava.earn.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * depositor optionally filters deposits by depositor + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * denom optionally filters deposits by vault denom + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * respond with vault value in ukava for bkava vaults + * + * @generated from field: bool value_in_staked_tokens = 3; + */ + valueInStakedTokens = false; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "value_in_staked_tokens", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse is the response type for the Query/Deposits RPC method. + * + * @generated from message kava.earn.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * deposits returns the deposits matching the requested parameters + * + * @generated from field: repeated kava.earn.v1beta1.DepositResponse deposits = 1; + */ + deposits: DepositResponse[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: DepositResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * DepositResponse defines a deposit query response type. + * + * @generated from message kava.earn.v1beta1.DepositResponse + */ +export class DepositResponse extends Message { + /** + * depositor represents the owner of the deposit. + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * Shares represent the issued shares from their corresponding vaults. + * + * @generated from field: repeated kava.earn.v1beta1.VaultShare shares = 2; + */ + shares: VaultShare[] = []; + + /** + * Value represents the total accumulated value of denom coins supplied to + * vaults. This may be greater than or equal to amount_supplied depending on + * the strategy. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin value = 3; + */ + value: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.DepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "shares", kind: "message", T: VaultShare, repeated: true }, + { no: 3, name: "value", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositResponse { + return new DepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositResponse { + return new DepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositResponse { + return new DepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: DepositResponse | PlainMessage | undefined, b: DepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositResponse, a, b); + } +} + +/** + * QueryTotalSupplyRequest defines the request type for Query/TotalSupply method. + * + * @generated from message kava.earn.v1beta1.QueryTotalSupplyRequest + */ +export class QueryTotalSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryTotalSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyRequest, a, b); + } +} + +/** + * TotalSupplyResponse defines the response type for the Query/TotalSupply method. + * + * @generated from message kava.earn.v1beta1.QueryTotalSupplyResponse + */ +export class QueryTotalSupplyResponse extends Message { + /** + * Height is the block height at which these totals apply + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * Result is a list of coins supplied to earn + * + * @generated from field: repeated cosmos.base.v1beta1.Coin result = 2; + */ + result: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.QueryTotalSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "result", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyResponse, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/strategy_pb.ts b/src/protobufs/kava/earn/v1beta1/strategy_pb.ts new file mode 100644 index 00000000..44b78df1 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/strategy_pb.ts @@ -0,0 +1,43 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/strategy.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * StrategyType is the type of strategy that a vault uses to optimize yields. + * + * @generated from enum kava.earn.v1beta1.StrategyType + */ +export enum StrategyType { + /** + * STRATEGY_TYPE_UNSPECIFIED represents an unspecified or invalid strategy type. + * + * @generated from enum value: STRATEGY_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * STRATEGY_TYPE_HARD represents the strategy that deposits assets in the Hard + * module. + * + * @generated from enum value: STRATEGY_TYPE_HARD = 1; + */ + HARD = 1, + + /** + * STRATEGY_TYPE_SAVINGS represents the strategy that deposits assets in the + * Savings module. + * + * @generated from enum value: STRATEGY_TYPE_SAVINGS = 2; + */ + SAVINGS = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(StrategyType) +proto3.util.setEnumType(StrategyType, "kava.earn.v1beta1.StrategyType", [ + { no: 0, name: "STRATEGY_TYPE_UNSPECIFIED" }, + { no: 1, name: "STRATEGY_TYPE_HARD" }, + { no: 2, name: "STRATEGY_TYPE_SAVINGS" }, +]); + diff --git a/src/protobufs/kava/earn/v1beta1/tx_cosmes.ts b/src/protobufs/kava/earn/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..58990eb7 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/tx.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeposit, MsgDepositResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.earn.v1beta1.Msg"; + +/** + * Deposit defines a method for depositing assets into a vault + * + * @generated from rpc kava.earn.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing assets into a vault + * + * @generated from rpc kava.earn.v1beta1.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + diff --git a/src/protobufs/kava/earn/v1beta1/tx_pb.ts b/src/protobufs/kava/earn/v1beta1/tx_pb.ts new file mode 100644 index 00000000..c2f85c9a --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/tx_pb.ts @@ -0,0 +1,205 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/tx.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { StrategyType } from "./strategy_pb.js"; +import { VaultShare } from "./vault_pb.js"; + +/** + * MsgDeposit represents a message for depositing assedts into a vault + * + * @generated from message kava.earn.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * depositor represents the address to deposit funds from + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * Amount represents the token to deposit. The vault corresponds to the denom + * of the amount coin. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * Strategy is the vault strategy to use. + * + * @generated from field: kava.earn.v1beta1.StrategyType strategy = 3; + */ + strategy = StrategyType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "strategy", kind: "enum", T: proto3.getEnumType(StrategyType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message kava.earn.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + /** + * @generated from field: kava.earn.v1beta1.VaultShare shares = 1; + */ + shares?: VaultShare; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shares", kind: "message", T: VaultShare }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw represents a message for withdrawing liquidity from a vault + * + * @generated from message kava.earn.v1beta1.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * from represents the address we are withdrawing for + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * Amount represents the token to withdraw. The vault corresponds to the denom + * of the amount coin. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * Strategy is the vault strategy to use. + * + * @generated from field: kava.earn.v1beta1.StrategyType strategy = 3; + */ + strategy = StrategyType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "strategy", kind: "enum", T: proto3.getEnumType(StrategyType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the Msg/Withdraw response type. + * + * @generated from message kava.earn.v1beta1.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + /** + * @generated from field: kava.earn.v1beta1.VaultShare shares = 1; + */ + shares?: VaultShare; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shares", kind: "message", T: VaultShare }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + diff --git a/src/protobufs/kava/earn/v1beta1/vault_pb.ts b/src/protobufs/kava/earn/v1beta1/vault_pb.ts new file mode 100644 index 00000000..ea69f159 --- /dev/null +++ b/src/protobufs/kava/earn/v1beta1/vault_pb.ts @@ -0,0 +1,214 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/earn/v1beta1/vault.proto (package kava.earn.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { StrategyType } from "./strategy_pb.js"; + +/** + * AllowedVault is a vault that is allowed to be created. These can be + * modified via parameter governance. + * + * @generated from message kava.earn.v1beta1.AllowedVault + */ +export class AllowedVault extends Message { + /** + * Denom is the only supported denomination of the vault for deposits and withdrawals. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * VaultStrategy is the strategy used for this vault. + * + * @generated from field: repeated kava.earn.v1beta1.StrategyType strategies = 2; + */ + strategies: StrategyType[] = []; + + /** + * IsPrivateVault is true if the vault only allows depositors contained in + * AllowedDepositors. + * + * @generated from field: bool is_private_vault = 3; + */ + isPrivateVault = false; + + /** + * AllowedDepositors is a list of addresses that are allowed to deposit to + * this vault if IsPrivateVault is true. Addresses not contained in this list + * are not allowed to deposit into this vault. If IsPrivateVault is false, + * this should be empty and ignored. + * + * @generated from field: repeated bytes allowed_depositors = 4; + */ + allowedDepositors: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.AllowedVault"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "strategies", kind: "enum", T: proto3.getEnumType(StrategyType), repeated: true }, + { no: 3, name: "is_private_vault", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "allowed_depositors", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowedVault { + return new AllowedVault().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowedVault { + return new AllowedVault().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowedVault { + return new AllowedVault().fromJsonString(jsonString, options); + } + + static equals(a: AllowedVault | PlainMessage | undefined, b: AllowedVault | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowedVault, a, b); + } +} + +/** + * VaultRecord is the state of a vault. + * + * @generated from message kava.earn.v1beta1.VaultRecord + */ +export class VaultRecord extends Message { + /** + * TotalShares is the total distributed number of shares in the vault. + * + * @generated from field: kava.earn.v1beta1.VaultShare total_shares = 1; + */ + totalShares?: VaultShare; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.VaultRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_shares", kind: "message", T: VaultShare }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultRecord { + return new VaultRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultRecord { + return new VaultRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultRecord { + return new VaultRecord().fromJsonString(jsonString, options); + } + + static equals(a: VaultRecord | PlainMessage | undefined, b: VaultRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultRecord, a, b); + } +} + +/** + * VaultShareRecord defines the vault shares owned by a depositor. + * + * @generated from message kava.earn.v1beta1.VaultShareRecord + */ +export class VaultShareRecord extends Message { + /** + * Depositor represents the owner of the shares + * + * @generated from field: bytes depositor = 1; + */ + depositor = new Uint8Array(0); + + /** + * Shares represent the vault shares owned by the depositor. + * + * @generated from field: repeated kava.earn.v1beta1.VaultShare shares = 2; + */ + shares: VaultShare[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.VaultShareRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "shares", kind: "message", T: VaultShare, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultShareRecord { + return new VaultShareRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultShareRecord { + return new VaultShareRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultShareRecord { + return new VaultShareRecord().fromJsonString(jsonString, options); + } + + static equals(a: VaultShareRecord | PlainMessage | undefined, b: VaultShareRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultShareRecord, a, b); + } +} + +/** + * VaultShare defines shares of a vault owned by a depositor. + * + * @generated from message kava.earn.v1beta1.VaultShare + */ +export class VaultShare extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.earn.v1beta1.VaultShare"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VaultShare { + return new VaultShare().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VaultShare { + return new VaultShare().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VaultShare { + return new VaultShare().fromJsonString(jsonString, options); + } + + static equals(a: VaultShare | PlainMessage | undefined, b: VaultShare | PlainMessage | undefined): boolean { + return proto3.util.equals(VaultShare, a, b); + } +} + diff --git a/src/protobufs/kava/evmutil/v1beta1/conversion_pair_pb.ts b/src/protobufs/kava/evmutil/v1beta1/conversion_pair_pb.ts new file mode 100644 index 00000000..de65b515 --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/conversion_pair_pb.ts @@ -0,0 +1,126 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/conversion_pair.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * ConversionPair defines a Kava ERC20 address and corresponding denom that is + * allowed to be converted between ERC20 and sdk.Coin + * + * @generated from message kava.evmutil.v1beta1.ConversionPair + */ +export class ConversionPair extends Message { + /** + * ERC20 address of the token on the Kava EVM + * + * @generated from field: bytes kava_erc20_address = 1; + */ + kavaErc20Address = new Uint8Array(0); + + /** + * Denom of the corresponding sdk.Coin + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.ConversionPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kava_erc20_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConversionPair { + return new ConversionPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConversionPair { + return new ConversionPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConversionPair { + return new ConversionPair().fromJsonString(jsonString, options); + } + + static equals(a: ConversionPair | PlainMessage | undefined, b: ConversionPair | PlainMessage | undefined): boolean { + return proto3.util.equals(ConversionPair, a, b); + } +} + +/** + * AllowedCosmosCoinERC20Token defines allowed cosmos-sdk denom & metadata + * for evm token representations of sdk assets. + * NOTE: once evm token contracts are deployed, changes to metadata for a given + * cosmos_denom will not change metadata of deployed contract. + * + * @generated from message kava.evmutil.v1beta1.AllowedCosmosCoinERC20Token + */ +export class AllowedCosmosCoinERC20Token extends Message { + /** + * Denom of the sdk.Coin + * + * @generated from field: string cosmos_denom = 1; + */ + cosmosDenom = ""; + + /** + * Name of ERC20 contract + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Symbol of ERC20 contract + * + * @generated from field: string symbol = 3; + */ + symbol = ""; + + /** + * Number of decimals ERC20 contract is deployed with. + * + * @generated from field: uint32 decimals = 4; + */ + decimals = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.AllowedCosmosCoinERC20Token"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cosmos_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowedCosmosCoinERC20Token { + return new AllowedCosmosCoinERC20Token().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowedCosmosCoinERC20Token { + return new AllowedCosmosCoinERC20Token().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowedCosmosCoinERC20Token { + return new AllowedCosmosCoinERC20Token().fromJsonString(jsonString, options); + } + + static equals(a: AllowedCosmosCoinERC20Token | PlainMessage | undefined, b: AllowedCosmosCoinERC20Token | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowedCosmosCoinERC20Token, a, b); + } +} + diff --git a/src/protobufs/kava/evmutil/v1beta1/genesis_pb.ts b/src/protobufs/kava/evmutil/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..fd9b6407 --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/genesis_pb.ts @@ -0,0 +1,154 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/genesis.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AllowedCosmosCoinERC20Token, ConversionPair } from "./conversion_pair_pb.js"; + +/** + * GenesisState defines the evmutil module's genesis state. + * + * @generated from message kava.evmutil.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated kava.evmutil.v1beta1.Account accounts = 1; + */ + accounts: Account[] = []; + + /** + * params defines all the parameters of the module. + * + * @generated from field: kava.evmutil.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: Account, repeated: true }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * BalanceAccount defines an account in the evmutil module. + * + * @generated from message kava.evmutil.v1beta1.Account + */ +export class Account extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + /** + * balance indicates the amount of akava owned by the address. + * + * @generated from field: string balance = 2; + */ + balance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.Account"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Account { + return new Account().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Account { + return new Account().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Account { + return new Account().fromJsonString(jsonString, options); + } + + static equals(a: Account | PlainMessage | undefined, b: Account | PlainMessage | undefined): boolean { + return proto3.util.equals(Account, a, b); + } +} + +/** + * Params defines the evmutil module params + * + * @generated from message kava.evmutil.v1beta1.Params + */ +export class Params extends Message { + /** + * enabled_conversion_pairs defines the list of conversion pairs allowed to be + * converted between Kava ERC20 and sdk.Coin + * + * @generated from field: repeated kava.evmutil.v1beta1.ConversionPair enabled_conversion_pairs = 4; + */ + enabledConversionPairs: ConversionPair[] = []; + + /** + * allowed_cosmos_denoms is a list of denom & erc20 token metadata pairs. + * if a denom is in the list, it is allowed to be converted to an erc20 in the evm. + * + * @generated from field: repeated kava.evmutil.v1beta1.AllowedCosmosCoinERC20Token allowed_cosmos_denoms = 1; + */ + allowedCosmosDenoms: AllowedCosmosCoinERC20Token[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 4, name: "enabled_conversion_pairs", kind: "message", T: ConversionPair, repeated: true }, + { no: 1, name: "allowed_cosmos_denoms", kind: "message", T: AllowedCosmosCoinERC20Token, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/kava/evmutil/v1beta1/query_cosmes.ts b/src/protobufs/kava/evmutil/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..1e1bd070 --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/query.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDeployedCosmosCoinContractsRequest, QueryDeployedCosmosCoinContractsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.evmutil.v1beta1.Query"; + +/** + * Params queries all parameters of the evmutil module. + * + * @generated from rpc kava.evmutil.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * DeployedCosmosCoinContracts queries a list cosmos coin denom and their deployed erc20 address + * + * @generated from rpc kava.evmutil.v1beta1.Query.DeployedCosmosCoinContracts + */ +export const QueryDeployedCosmosCoinContractsService = { + typeName: TYPE_NAME, + method: "DeployedCosmosCoinContracts", + Request: QueryDeployedCosmosCoinContractsRequest, + Response: QueryDeployedCosmosCoinContractsResponse, +} as const; + diff --git a/src/protobufs/kava/evmutil/v1beta1/query_pb.ts b/src/protobufs/kava/evmutil/v1beta1/query_pb.ts new file mode 100644 index 00000000..98e5358e --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/query_pb.ts @@ -0,0 +1,227 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/query.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./genesis_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/evmutil parameters. + * + * @generated from message kava.evmutil.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/evmutil parameters. + * + * @generated from message kava.evmutil.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.evmutil.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDeployedCosmosCoinContractsRequest defines the request type for Query/DeployedCosmosCoinContracts method. + * + * @generated from message kava.evmutil.v1beta1.QueryDeployedCosmosCoinContractsRequest + */ +export class QueryDeployedCosmosCoinContractsRequest extends Message { + /** + * optional query param to only return specific denoms in the list + * denoms that do not have deployed contracts will be omitted from the result + * must request fewer than 100 denoms at a time. + * + * @generated from field: repeated string cosmos_denoms = 1; + */ + cosmosDenoms: string[] = []; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.QueryDeployedCosmosCoinContractsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cosmos_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDeployedCosmosCoinContractsRequest { + return new QueryDeployedCosmosCoinContractsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDeployedCosmosCoinContractsRequest { + return new QueryDeployedCosmosCoinContractsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDeployedCosmosCoinContractsRequest { + return new QueryDeployedCosmosCoinContractsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDeployedCosmosCoinContractsRequest | PlainMessage | undefined, b: QueryDeployedCosmosCoinContractsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDeployedCosmosCoinContractsRequest, a, b); + } +} + +/** + * QueryDeployedCosmosCoinContractsResponse defines the response type for the Query/DeployedCosmosCoinContracts method. + * + * @generated from message kava.evmutil.v1beta1.QueryDeployedCosmosCoinContractsResponse + */ +export class QueryDeployedCosmosCoinContractsResponse extends Message { + /** + * deployed_cosmos_coin_contracts is a list of cosmos-sdk coin denom and its deployed contract address + * + * @generated from field: repeated kava.evmutil.v1beta1.DeployedCosmosCoinContract deployed_cosmos_coin_contracts = 1; + */ + deployedCosmosCoinContracts: DeployedCosmosCoinContract[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.QueryDeployedCosmosCoinContractsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deployed_cosmos_coin_contracts", kind: "message", T: DeployedCosmosCoinContract, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDeployedCosmosCoinContractsResponse { + return new QueryDeployedCosmosCoinContractsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDeployedCosmosCoinContractsResponse { + return new QueryDeployedCosmosCoinContractsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDeployedCosmosCoinContractsResponse { + return new QueryDeployedCosmosCoinContractsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDeployedCosmosCoinContractsResponse | PlainMessage | undefined, b: QueryDeployedCosmosCoinContractsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDeployedCosmosCoinContractsResponse, a, b); + } +} + +/** + * DeployedCosmosCoinContract defines a deployed token contract to the evm representing a native cosmos-sdk coin + * + * @generated from message kava.evmutil.v1beta1.DeployedCosmosCoinContract + */ +export class DeployedCosmosCoinContract extends Message { + /** + * @generated from field: string cosmos_denom = 1; + */ + cosmosDenom = ""; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.DeployedCosmosCoinContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cosmos_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeployedCosmosCoinContract { + return new DeployedCosmosCoinContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeployedCosmosCoinContract { + return new DeployedCosmosCoinContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeployedCosmosCoinContract { + return new DeployedCosmosCoinContract().fromJsonString(jsonString, options); + } + + static equals(a: DeployedCosmosCoinContract | PlainMessage | undefined, b: DeployedCosmosCoinContract | PlainMessage | undefined): boolean { + return proto3.util.equals(DeployedCosmosCoinContract, a, b); + } +} + diff --git a/src/protobufs/kava/evmutil/v1beta1/tx_cosmes.ts b/src/protobufs/kava/evmutil/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..82c5706f --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/tx_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/tx.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgConvertCoinToERC20, MsgConvertCoinToERC20Response, MsgConvertCosmosCoinFromERC20, MsgConvertCosmosCoinFromERC20Response, MsgConvertCosmosCoinToERC20, MsgConvertCosmosCoinToERC20Response, MsgConvertERC20ToCoin, MsgConvertERC20ToCoinResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.evmutil.v1beta1.Msg"; + +/** + * ConvertCoinToERC20 defines a method for converting sdk.Coin to Kava ERC20. + * + * @generated from rpc kava.evmutil.v1beta1.Msg.ConvertCoinToERC20 + */ +export const MsgConvertCoinToERC20Service = { + typeName: TYPE_NAME, + method: "ConvertCoinToERC20", + Request: MsgConvertCoinToERC20, + Response: MsgConvertCoinToERC20Response, +} as const; + +/** + * ConvertERC20ToCoin defines a method for converting Kava ERC20 to sdk.Coin. + * + * @generated from rpc kava.evmutil.v1beta1.Msg.ConvertERC20ToCoin + */ +export const MsgConvertERC20ToCoinService = { + typeName: TYPE_NAME, + method: "ConvertERC20ToCoin", + Request: MsgConvertERC20ToCoin, + Response: MsgConvertERC20ToCoinResponse, +} as const; + +/** + * ConvertCosmosCoinToERC20 defines a method for converting a cosmos sdk.Coin to an ERC20. + * + * @generated from rpc kava.evmutil.v1beta1.Msg.ConvertCosmosCoinToERC20 + */ +export const MsgConvertCosmosCoinToERC20Service = { + typeName: TYPE_NAME, + method: "ConvertCosmosCoinToERC20", + Request: MsgConvertCosmosCoinToERC20, + Response: MsgConvertCosmosCoinToERC20Response, +} as const; + +/** + * ConvertCosmosCoinFromERC20 defines a method for converting a cosmos sdk.Coin to an ERC20. + * + * @generated from rpc kava.evmutil.v1beta1.Msg.ConvertCosmosCoinFromERC20 + */ +export const MsgConvertCosmosCoinFromERC20Service = { + typeName: TYPE_NAME, + method: "ConvertCosmosCoinFromERC20", + Request: MsgConvertCosmosCoinFromERC20, + Response: MsgConvertCosmosCoinFromERC20Response, +} as const; + diff --git a/src/protobufs/kava/evmutil/v1beta1/tx_pb.ts b/src/protobufs/kava/evmutil/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a98d11ad --- /dev/null +++ b/src/protobufs/kava/evmutil/v1beta1/tx_pb.ts @@ -0,0 +1,378 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/evmutil/v1beta1/tx.proto (package kava.evmutil.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgConvertCoinToERC20 defines a conversion from sdk.Coin to Kava ERC20 for EVM-native assets. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCoinToERC20 + */ +export class MsgConvertCoinToERC20 extends Message { + /** + * Kava bech32 address initiating the conversion. + * + * @generated from field: string initiator = 1; + */ + initiator = ""; + + /** + * EVM 0x hex address that will receive the converted Kava ERC20 tokens. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * Amount is the sdk.Coin amount to convert. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCoinToERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "initiator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoinToERC20 { + return new MsgConvertCoinToERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoinToERC20 { + return new MsgConvertCoinToERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoinToERC20 { + return new MsgConvertCoinToERC20().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoinToERC20 | PlainMessage | undefined, b: MsgConvertCoinToERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoinToERC20, a, b); + } +} + +/** + * MsgConvertCoinToERC20Response defines the response value from Msg/ConvertCoinToERC20. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCoinToERC20Response + */ +export class MsgConvertCoinToERC20Response extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCoinToERC20Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCoinToERC20Response { + return new MsgConvertCoinToERC20Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCoinToERC20Response { + return new MsgConvertCoinToERC20Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCoinToERC20Response { + return new MsgConvertCoinToERC20Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCoinToERC20Response | PlainMessage | undefined, b: MsgConvertCoinToERC20Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCoinToERC20Response, a, b); + } +} + +/** + * MsgConvertERC20ToCoin defines a conversion from Kava ERC20 to sdk.Coin for EVM-native assets. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertERC20ToCoin + */ +export class MsgConvertERC20ToCoin extends Message { + /** + * EVM 0x hex address initiating the conversion. + * + * @generated from field: string initiator = 1; + */ + initiator = ""; + + /** + * Kava bech32 address that will receive the converted sdk.Coin. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * EVM 0x hex address of the ERC20 contract. + * + * @generated from field: string kava_erc20_address = 3; + */ + kavaErc20Address = ""; + + /** + * ERC20 token amount to convert. + * + * @generated from field: string amount = 4; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertERC20ToCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "initiator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "kava_erc20_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertERC20ToCoin { + return new MsgConvertERC20ToCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertERC20ToCoin { + return new MsgConvertERC20ToCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertERC20ToCoin { + return new MsgConvertERC20ToCoin().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertERC20ToCoin | PlainMessage | undefined, b: MsgConvertERC20ToCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertERC20ToCoin, a, b); + } +} + +/** + * MsgConvertERC20ToCoinResponse defines the response value from + * Msg/MsgConvertERC20ToCoin. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertERC20ToCoinResponse + */ +export class MsgConvertERC20ToCoinResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertERC20ToCoinResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertERC20ToCoinResponse { + return new MsgConvertERC20ToCoinResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertERC20ToCoinResponse { + return new MsgConvertERC20ToCoinResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertERC20ToCoinResponse { + return new MsgConvertERC20ToCoinResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertERC20ToCoinResponse | PlainMessage | undefined, b: MsgConvertERC20ToCoinResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertERC20ToCoinResponse, a, b); + } +} + +/** + * MsgConvertCosmosCoinToERC20 defines a conversion from cosmos sdk.Coin to ERC20 for cosmos-native assets. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCosmosCoinToERC20 + */ +export class MsgConvertCosmosCoinToERC20 extends Message { + /** + * Kava bech32 address initiating the conversion. + * + * @generated from field: string initiator = 1; + */ + initiator = ""; + + /** + * EVM hex address that will receive the ERC20 tokens. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * Amount is the sdk.Coin amount to convert. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCosmosCoinToERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "initiator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCosmosCoinToERC20 { + return new MsgConvertCosmosCoinToERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCosmosCoinToERC20 { + return new MsgConvertCosmosCoinToERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCosmosCoinToERC20 { + return new MsgConvertCosmosCoinToERC20().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCosmosCoinToERC20 | PlainMessage | undefined, b: MsgConvertCosmosCoinToERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCosmosCoinToERC20, a, b); + } +} + +/** + * MsgConvertCosmosCoinToERC20Response defines the response value from Msg/MsgConvertCosmosCoinToERC20. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCosmosCoinToERC20Response + */ +export class MsgConvertCosmosCoinToERC20Response extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCosmosCoinToERC20Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCosmosCoinToERC20Response { + return new MsgConvertCosmosCoinToERC20Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCosmosCoinToERC20Response { + return new MsgConvertCosmosCoinToERC20Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCosmosCoinToERC20Response { + return new MsgConvertCosmosCoinToERC20Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCosmosCoinToERC20Response | PlainMessage | undefined, b: MsgConvertCosmosCoinToERC20Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCosmosCoinToERC20Response, a, b); + } +} + +/** + * MsgConvertCosmosCoinFromERC20 defines a conversion from ERC20 to cosmos coins for cosmos-native assets. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCosmosCoinFromERC20 + */ +export class MsgConvertCosmosCoinFromERC20 extends Message { + /** + * EVM hex address initiating the conversion. + * + * @generated from field: string initiator = 1; + */ + initiator = ""; + + /** + * Kava bech32 address that will receive the cosmos coins. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * Amount is the amount to convert, expressed as a Cosmos coin. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCosmosCoinFromERC20"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "initiator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCosmosCoinFromERC20 { + return new MsgConvertCosmosCoinFromERC20().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCosmosCoinFromERC20 { + return new MsgConvertCosmosCoinFromERC20().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCosmosCoinFromERC20 { + return new MsgConvertCosmosCoinFromERC20().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCosmosCoinFromERC20 | PlainMessage | undefined, b: MsgConvertCosmosCoinFromERC20 | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCosmosCoinFromERC20, a, b); + } +} + +/** + * MsgConvertCosmosCoinFromERC20Response defines the response value from Msg/MsgConvertCosmosCoinFromERC20. + * + * @generated from message kava.evmutil.v1beta1.MsgConvertCosmosCoinFromERC20Response + */ +export class MsgConvertCosmosCoinFromERC20Response extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.evmutil.v1beta1.MsgConvertCosmosCoinFromERC20Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertCosmosCoinFromERC20Response { + return new MsgConvertCosmosCoinFromERC20Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertCosmosCoinFromERC20Response { + return new MsgConvertCosmosCoinFromERC20Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertCosmosCoinFromERC20Response { + return new MsgConvertCosmosCoinFromERC20Response().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertCosmosCoinFromERC20Response | PlainMessage | undefined, b: MsgConvertCosmosCoinFromERC20Response | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertCosmosCoinFromERC20Response, a, b); + } +} + diff --git a/src/protobufs/kava/hard/v1beta1/genesis_pb.ts b/src/protobufs/kava/hard/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..4e8ded16 --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/genesis_pb.ts @@ -0,0 +1,142 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/genesis.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Borrow, Deposit, Params } from "./hard_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the hard module's genesis state. + * + * @generated from message kava.hard.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: kava.hard.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated kava.hard.v1beta1.GenesisAccumulationTime previous_accumulation_times = 2; + */ + previousAccumulationTimes: GenesisAccumulationTime[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.Deposit deposits = 3; + */ + deposits: Deposit[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.Borrow borrows = 4; + */ + borrows: Borrow[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_supplied = 5; + */ + totalSupplied: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_borrowed = 6; + */ + totalBorrowed: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin total_reserves = 7; + */ + totalReserves: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "previous_accumulation_times", kind: "message", T: GenesisAccumulationTime, repeated: true }, + { no: 3, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 4, name: "borrows", kind: "message", T: Borrow, repeated: true }, + { no: 5, name: "total_supplied", kind: "message", T: Coin, repeated: true }, + { no: 6, name: "total_borrowed", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "total_reserves", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisAccumulationTime stores the previous distribution time and its corresponding denom. + * + * @generated from message kava.hard.v1beta1.GenesisAccumulationTime + */ +export class GenesisAccumulationTime extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: google.protobuf.Timestamp previous_accumulation_time = 2; + */ + previousAccumulationTime?: Timestamp; + + /** + * @generated from field: string supply_interest_factor = 3; + */ + supplyInterestFactor = ""; + + /** + * @generated from field: string borrow_interest_factor = 4; + */ + borrowInterestFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.GenesisAccumulationTime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_accumulation_time", kind: "message", T: Timestamp }, + { no: 3, name: "supply_interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "borrow_interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisAccumulationTime { + return new GenesisAccumulationTime().fromJsonString(jsonString, options); + } + + static equals(a: GenesisAccumulationTime | PlainMessage | undefined, b: GenesisAccumulationTime | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisAccumulationTime, a, b); + } +} + diff --git a/src/protobufs/kava/hard/v1beta1/hard_pb.ts b/src/protobufs/kava/hard/v1beta1/hard_pb.ts new file mode 100644 index 00000000..42726b79 --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/hard_pb.ts @@ -0,0 +1,468 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/hard.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the hard module. + * + * @generated from message kava.hard.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.MoneyMarket money_markets = 1; + */ + moneyMarkets: MoneyMarket[] = []; + + /** + * @generated from field: string minimum_borrow_usd_value = 2; + */ + minimumBorrowUsdValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "money_markets", kind: "message", T: MoneyMarket, repeated: true }, + { no: 2, name: "minimum_borrow_usd_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * MoneyMarket is a money market for an individual asset. + * + * @generated from message kava.hard.v1beta1.MoneyMarket + */ +export class MoneyMarket extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: kava.hard.v1beta1.BorrowLimit borrow_limit = 2; + */ + borrowLimit?: BorrowLimit; + + /** + * @generated from field: string spot_market_id = 3; + */ + spotMarketId = ""; + + /** + * @generated from field: string conversion_factor = 4; + */ + conversionFactor = ""; + + /** + * @generated from field: kava.hard.v1beta1.InterestRateModel interest_rate_model = 5; + */ + interestRateModel?: InterestRateModel; + + /** + * @generated from field: string reserve_factor = 6; + */ + reserveFactor = ""; + + /** + * @generated from field: string keeper_reward_percentage = 7; + */ + keeperRewardPercentage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MoneyMarket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrow_limit", kind: "message", T: BorrowLimit }, + { no: 3, name: "spot_market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "conversion_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "interest_rate_model", kind: "message", T: InterestRateModel }, + { no: 6, name: "reserve_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "keeper_reward_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MoneyMarket { + return new MoneyMarket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MoneyMarket { + return new MoneyMarket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MoneyMarket { + return new MoneyMarket().fromJsonString(jsonString, options); + } + + static equals(a: MoneyMarket | PlainMessage | undefined, b: MoneyMarket | PlainMessage | undefined): boolean { + return proto3.util.equals(MoneyMarket, a, b); + } +} + +/** + * BorrowLimit enforces restrictions on a money market. + * + * @generated from message kava.hard.v1beta1.BorrowLimit + */ +export class BorrowLimit extends Message { + /** + * @generated from field: bool has_max_limit = 1; + */ + hasMaxLimit = false; + + /** + * @generated from field: string maximum_limit = 2; + */ + maximumLimit = ""; + + /** + * @generated from field: string loan_to_value = 3; + */ + loanToValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.BorrowLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has_max_limit", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "maximum_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "loan_to_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BorrowLimit { + return new BorrowLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BorrowLimit { + return new BorrowLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BorrowLimit { + return new BorrowLimit().fromJsonString(jsonString, options); + } + + static equals(a: BorrowLimit | PlainMessage | undefined, b: BorrowLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(BorrowLimit, a, b); + } +} + +/** + * InterestRateModel contains information about an asset's interest rate. + * + * @generated from message kava.hard.v1beta1.InterestRateModel + */ +export class InterestRateModel extends Message { + /** + * @generated from field: string base_rate_apy = 1; + */ + baseRateApy = ""; + + /** + * @generated from field: string base_multiplier = 2; + */ + baseMultiplier = ""; + + /** + * @generated from field: string kink = 3; + */ + kink = ""; + + /** + * @generated from field: string jump_multiplier = 4; + */ + jumpMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.InterestRateModel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_rate_apy", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "kink", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "jump_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterestRateModel { + return new InterestRateModel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterestRateModel { + return new InterestRateModel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterestRateModel { + return new InterestRateModel().fromJsonString(jsonString, options); + } + + static equals(a: InterestRateModel | PlainMessage | undefined, b: InterestRateModel | PlainMessage | undefined): boolean { + return proto3.util.equals(InterestRateModel, a, b); + } +} + +/** + * Deposit defines an amount of coins deposited into a hard module account. + * + * @generated from message kava.hard.v1beta1.Deposit + */ +export class Deposit extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.SupplyInterestFactor index = 3; + */ + index: SupplyInterestFactor[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "index", kind: "message", T: SupplyInterestFactor, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + +/** + * Borrow defines an amount of coins borrowed from a hard module account. + * + * @generated from message kava.hard.v1beta1.Borrow + */ +export class Borrow extends Message { + /** + * @generated from field: string borrower = 1; + */ + borrower = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.BorrowInterestFactor index = 3; + */ + index: BorrowInterestFactor[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.Borrow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "borrower", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "index", kind: "message", T: BorrowInterestFactor, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Borrow { + return new Borrow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Borrow { + return new Borrow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Borrow { + return new Borrow().fromJsonString(jsonString, options); + } + + static equals(a: Borrow | PlainMessage | undefined, b: Borrow | PlainMessage | undefined): boolean { + return proto3.util.equals(Borrow, a, b); + } +} + +/** + * SupplyInterestFactor defines an individual borrow interest factor. + * + * @generated from message kava.hard.v1beta1.SupplyInterestFactor + */ +export class SupplyInterestFactor extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.SupplyInterestFactor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SupplyInterestFactor { + return new SupplyInterestFactor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SupplyInterestFactor { + return new SupplyInterestFactor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SupplyInterestFactor { + return new SupplyInterestFactor().fromJsonString(jsonString, options); + } + + static equals(a: SupplyInterestFactor | PlainMessage | undefined, b: SupplyInterestFactor | PlainMessage | undefined): boolean { + return proto3.util.equals(SupplyInterestFactor, a, b); + } +} + +/** + * BorrowInterestFactor defines an individual borrow interest factor. + * + * @generated from message kava.hard.v1beta1.BorrowInterestFactor + */ +export class BorrowInterestFactor extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.BorrowInterestFactor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BorrowInterestFactor { + return new BorrowInterestFactor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BorrowInterestFactor { + return new BorrowInterestFactor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BorrowInterestFactor { + return new BorrowInterestFactor().fromJsonString(jsonString, options); + } + + static equals(a: BorrowInterestFactor | PlainMessage | undefined, b: BorrowInterestFactor | PlainMessage | undefined): boolean { + return proto3.util.equals(BorrowInterestFactor, a, b); + } +} + +/** + * CoinsProto defines a Protobuf wrapper around a Coins slice + * + * @generated from message kava.hard.v1beta1.CoinsProto + */ +export class CoinsProto extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.CoinsProto"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CoinsProto { + return new CoinsProto().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CoinsProto { + return new CoinsProto().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CoinsProto { + return new CoinsProto().fromJsonString(jsonString, options); + } + + static equals(a: CoinsProto | PlainMessage | undefined, b: CoinsProto | PlainMessage | undefined): boolean { + return proto3.util.equals(CoinsProto, a, b); + } +} + diff --git a/src/protobufs/kava/hard/v1beta1/query_cosmes.ts b/src/protobufs/kava/hard/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..b791832d --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/query_cosmes.ts @@ -0,0 +1,141 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/query.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAccountsRequest, QueryAccountsResponse, QueryBorrowsRequest, QueryBorrowsResponse, QueryDepositsRequest, QueryDepositsResponse, QueryInterestFactorsRequest, QueryInterestFactorsResponse, QueryInterestRateRequest, QueryInterestRateResponse, QueryParamsRequest, QueryParamsResponse, QueryReservesRequest, QueryReservesResponse, QueryTotalBorrowedRequest, QueryTotalBorrowedResponse, QueryTotalDepositedRequest, QueryTotalDepositedResponse, QueryUnsyncedBorrowsRequest, QueryUnsyncedBorrowsResponse, QueryUnsyncedDepositsRequest, QueryUnsyncedDepositsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.hard.v1beta1.Query"; + +/** + * Params queries module params. + * + * @generated from rpc kava.hard.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Accounts queries module accounts. + * + * @generated from rpc kava.hard.v1beta1.Query.Accounts + */ +export const QueryAccountsService = { + typeName: TYPE_NAME, + method: "Accounts", + Request: QueryAccountsRequest, + Response: QueryAccountsResponse, +} as const; + +/** + * Deposits queries hard deposits. + * + * @generated from rpc kava.hard.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + +/** + * UnsyncedDeposits queries unsynced deposits. + * + * @generated from rpc kava.hard.v1beta1.Query.UnsyncedDeposits + */ +export const QueryUnsyncedDepositsService = { + typeName: TYPE_NAME, + method: "UnsyncedDeposits", + Request: QueryUnsyncedDepositsRequest, + Response: QueryUnsyncedDepositsResponse, +} as const; + +/** + * TotalDeposited queries total coins deposited to hard liquidity pools. + * + * @generated from rpc kava.hard.v1beta1.Query.TotalDeposited + */ +export const QueryTotalDepositedService = { + typeName: TYPE_NAME, + method: "TotalDeposited", + Request: QueryTotalDepositedRequest, + Response: QueryTotalDepositedResponse, +} as const; + +/** + * Borrows queries hard borrows. + * + * @generated from rpc kava.hard.v1beta1.Query.Borrows + */ +export const QueryBorrowsService = { + typeName: TYPE_NAME, + method: "Borrows", + Request: QueryBorrowsRequest, + Response: QueryBorrowsResponse, +} as const; + +/** + * UnsyncedBorrows queries unsynced borrows. + * + * @generated from rpc kava.hard.v1beta1.Query.UnsyncedBorrows + */ +export const QueryUnsyncedBorrowsService = { + typeName: TYPE_NAME, + method: "UnsyncedBorrows", + Request: QueryUnsyncedBorrowsRequest, + Response: QueryUnsyncedBorrowsResponse, +} as const; + +/** + * TotalBorrowed queries total coins borrowed from hard liquidity pools. + * + * @generated from rpc kava.hard.v1beta1.Query.TotalBorrowed + */ +export const QueryTotalBorrowedService = { + typeName: TYPE_NAME, + method: "TotalBorrowed", + Request: QueryTotalBorrowedRequest, + Response: QueryTotalBorrowedResponse, +} as const; + +/** + * InterestRate queries the hard module interest rates. + * + * @generated from rpc kava.hard.v1beta1.Query.InterestRate + */ +export const QueryInterestRateService = { + typeName: TYPE_NAME, + method: "InterestRate", + Request: QueryInterestRateRequest, + Response: QueryInterestRateResponse, +} as const; + +/** + * Reserves queries total hard reserve coins. + * + * @generated from rpc kava.hard.v1beta1.Query.Reserves + */ +export const QueryReservesService = { + typeName: TYPE_NAME, + method: "Reserves", + Request: QueryReservesRequest, + Response: QueryReservesResponse, +} as const; + +/** + * InterestFactors queries hard module interest factors. + * + * @generated from rpc kava.hard.v1beta1.Query.InterestFactors + */ +export const QueryInterestFactorsService = { + typeName: TYPE_NAME, + method: "InterestFactors", + Request: QueryInterestFactorsRequest, + Response: QueryInterestFactorsResponse, +} as const; + diff --git a/src/protobufs/kava/hard/v1beta1/query_pb.ts b/src/protobufs/kava/hard/v1beta1/query_pb.ts new file mode 100644 index 00000000..5aeb232e --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/query_pb.ts @@ -0,0 +1,1236 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/query.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./hard_pb.js"; +import { ModuleAccount } from "../../../cosmos/auth/v1beta1/auth_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message kava.hard.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message kava.hard.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.hard.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryAccountsRequest is the request type for the Query/Accounts RPC method. + * + * @generated from message kava.hard.v1beta1.QueryAccountsRequest + */ +export class QueryAccountsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { + return new QueryAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsRequest, a, b); + } +} + +/** + * QueryAccountsResponse is the response type for the Query/Accounts RPC method. + * + * @generated from message kava.hard.v1beta1.QueryAccountsResponse + */ +export class QueryAccountsResponse extends Message { + /** + * @generated from field: repeated cosmos.auth.v1beta1.ModuleAccount accounts = 1; + */ + accounts: ModuleAccount[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accounts", kind: "message", T: ModuleAccount, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountsResponse { + return new QueryAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountsResponse | PlainMessage | undefined, b: QueryAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountsResponse, a, b); + } +} + +/** + * QueryDepositsRequest is the request type for the Query/Deposits RPC method. + * + * @generated from message kava.hard.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse is the response type for the Query/Deposits RPC method. + * + * @generated from message kava.hard.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.DepositResponse deposits = 1; + */ + deposits: DepositResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: DepositResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * QueryUnsyncedDepositsRequest is the request type for the Query/UnsyncedDeposits RPC method. + * + * @generated from message kava.hard.v1beta1.QueryUnsyncedDepositsRequest + */ +export class QueryUnsyncedDepositsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryUnsyncedDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnsyncedDepositsRequest { + return new QueryUnsyncedDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnsyncedDepositsRequest { + return new QueryUnsyncedDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnsyncedDepositsRequest { + return new QueryUnsyncedDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnsyncedDepositsRequest | PlainMessage | undefined, b: QueryUnsyncedDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnsyncedDepositsRequest, a, b); + } +} + +/** + * QueryUnsyncedDepositsResponse is the response type for the Query/UnsyncedDeposits RPC method. + * + * @generated from message kava.hard.v1beta1.QueryUnsyncedDepositsResponse + */ +export class QueryUnsyncedDepositsResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.DepositResponse deposits = 1; + */ + deposits: DepositResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryUnsyncedDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: DepositResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnsyncedDepositsResponse { + return new QueryUnsyncedDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnsyncedDepositsResponse { + return new QueryUnsyncedDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnsyncedDepositsResponse { + return new QueryUnsyncedDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnsyncedDepositsResponse | PlainMessage | undefined, b: QueryUnsyncedDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnsyncedDepositsResponse, a, b); + } +} + +/** + * QueryTotalDepositedRequest is the request type for the Query/TotalDeposited RPC method. + * + * @generated from message kava.hard.v1beta1.QueryTotalDepositedRequest + */ +export class QueryTotalDepositedRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryTotalDepositedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDepositedRequest { + return new QueryTotalDepositedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDepositedRequest { + return new QueryTotalDepositedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalDepositedRequest { + return new QueryTotalDepositedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalDepositedRequest | PlainMessage | undefined, b: QueryTotalDepositedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalDepositedRequest, a, b); + } +} + +/** + * QueryTotalDepositedResponse is the response type for the Query/TotalDeposited RPC method. + * + * @generated from message kava.hard.v1beta1.QueryTotalDepositedResponse + */ +export class QueryTotalDepositedResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin supplied_coins = 2; + */ + suppliedCoins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryTotalDepositedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "supplied_coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDepositedResponse { + return new QueryTotalDepositedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDepositedResponse { + return new QueryTotalDepositedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalDepositedResponse { + return new QueryTotalDepositedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalDepositedResponse | PlainMessage | undefined, b: QueryTotalDepositedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalDepositedResponse, a, b); + } +} + +/** + * QueryBorrowsRequest is the request type for the Query/Borrows RPC method. + * + * @generated from message kava.hard.v1beta1.QueryBorrowsRequest + */ +export class QueryBorrowsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryBorrowsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBorrowsRequest { + return new QueryBorrowsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBorrowsRequest { + return new QueryBorrowsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBorrowsRequest { + return new QueryBorrowsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBorrowsRequest | PlainMessage | undefined, b: QueryBorrowsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBorrowsRequest, a, b); + } +} + +/** + * QueryBorrowsResponse is the response type for the Query/Borrows RPC method. + * + * @generated from message kava.hard.v1beta1.QueryBorrowsResponse + */ +export class QueryBorrowsResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.BorrowResponse borrows = 1; + */ + borrows: BorrowResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryBorrowsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "borrows", kind: "message", T: BorrowResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBorrowsResponse { + return new QueryBorrowsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBorrowsResponse { + return new QueryBorrowsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBorrowsResponse { + return new QueryBorrowsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBorrowsResponse | PlainMessage | undefined, b: QueryBorrowsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBorrowsResponse, a, b); + } +} + +/** + * QueryUnsyncedBorrowsRequest is the request type for the Query/UnsyncedBorrows RPC method. + * + * @generated from message kava.hard.v1beta1.QueryUnsyncedBorrowsRequest + */ +export class QueryUnsyncedBorrowsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryUnsyncedBorrowsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnsyncedBorrowsRequest { + return new QueryUnsyncedBorrowsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnsyncedBorrowsRequest { + return new QueryUnsyncedBorrowsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnsyncedBorrowsRequest { + return new QueryUnsyncedBorrowsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnsyncedBorrowsRequest | PlainMessage | undefined, b: QueryUnsyncedBorrowsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnsyncedBorrowsRequest, a, b); + } +} + +/** + * QueryUnsyncedBorrowsResponse is the response type for the Query/UnsyncedBorrows RPC method. + * + * @generated from message kava.hard.v1beta1.QueryUnsyncedBorrowsResponse + */ +export class QueryUnsyncedBorrowsResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.BorrowResponse borrows = 1; + */ + borrows: BorrowResponse[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryUnsyncedBorrowsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "borrows", kind: "message", T: BorrowResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnsyncedBorrowsResponse { + return new QueryUnsyncedBorrowsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnsyncedBorrowsResponse { + return new QueryUnsyncedBorrowsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnsyncedBorrowsResponse { + return new QueryUnsyncedBorrowsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnsyncedBorrowsResponse | PlainMessage | undefined, b: QueryUnsyncedBorrowsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnsyncedBorrowsResponse, a, b); + } +} + +/** + * QueryTotalBorrowedRequest is the request type for the Query/TotalBorrowed RPC method. + * + * @generated from message kava.hard.v1beta1.QueryTotalBorrowedRequest + */ +export class QueryTotalBorrowedRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryTotalBorrowedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBorrowedRequest { + return new QueryTotalBorrowedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBorrowedRequest { + return new QueryTotalBorrowedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBorrowedRequest { + return new QueryTotalBorrowedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBorrowedRequest | PlainMessage | undefined, b: QueryTotalBorrowedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBorrowedRequest, a, b); + } +} + +/** + * QueryTotalBorrowedResponse is the response type for the Query/TotalBorrowed RPC method. + * + * @generated from message kava.hard.v1beta1.QueryTotalBorrowedResponse + */ +export class QueryTotalBorrowedResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin borrowed_coins = 2; + */ + borrowedCoins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryTotalBorrowedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "borrowed_coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBorrowedResponse { + return new QueryTotalBorrowedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBorrowedResponse { + return new QueryTotalBorrowedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBorrowedResponse { + return new QueryTotalBorrowedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBorrowedResponse | PlainMessage | undefined, b: QueryTotalBorrowedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBorrowedResponse, a, b); + } +} + +/** + * QueryInterestRateRequest is the request type for the Query/InterestRate RPC method. + * + * @generated from message kava.hard.v1beta1.QueryInterestRateRequest + */ +export class QueryInterestRateRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryInterestRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterestRateRequest { + return new QueryInterestRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterestRateRequest { + return new QueryInterestRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterestRateRequest { + return new QueryInterestRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterestRateRequest | PlainMessage | undefined, b: QueryInterestRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterestRateRequest, a, b); + } +} + +/** + * QueryInterestRateResponse is the response type for the Query/InterestRate RPC method. + * + * @generated from message kava.hard.v1beta1.QueryInterestRateResponse + */ +export class QueryInterestRateResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.MoneyMarketInterestRate interest_rates = 1; + */ + interestRates: MoneyMarketInterestRate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryInterestRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interest_rates", kind: "message", T: MoneyMarketInterestRate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterestRateResponse { + return new QueryInterestRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterestRateResponse { + return new QueryInterestRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterestRateResponse { + return new QueryInterestRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterestRateResponse | PlainMessage | undefined, b: QueryInterestRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterestRateResponse, a, b); + } +} + +/** + * QueryReservesRequest is the request type for the Query/Reserves RPC method. + * + * @generated from message kava.hard.v1beta1.QueryReservesRequest + */ +export class QueryReservesRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryReservesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryReservesRequest { + return new QueryReservesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryReservesRequest { + return new QueryReservesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryReservesRequest { + return new QueryReservesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryReservesRequest | PlainMessage | undefined, b: QueryReservesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryReservesRequest, a, b); + } +} + +/** + * QueryReservesResponse is the response type for the Query/Reserves RPC method. + * + * @generated from message kava.hard.v1beta1.QueryReservesResponse + */ +export class QueryReservesResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryReservesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryReservesResponse { + return new QueryReservesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryReservesResponse { + return new QueryReservesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryReservesResponse { + return new QueryReservesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryReservesResponse | PlainMessage | undefined, b: QueryReservesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryReservesResponse, a, b); + } +} + +/** + * QueryInterestFactorsRequest is the request type for the Query/InterestFactors RPC method. + * + * @generated from message kava.hard.v1beta1.QueryInterestFactorsRequest + */ +export class QueryInterestFactorsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryInterestFactorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterestFactorsRequest { + return new QueryInterestFactorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterestFactorsRequest { + return new QueryInterestFactorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterestFactorsRequest { + return new QueryInterestFactorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterestFactorsRequest | PlainMessage | undefined, b: QueryInterestFactorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterestFactorsRequest, a, b); + } +} + +/** + * QueryInterestFactorsResponse is the response type for the Query/InterestFactors RPC method. + * + * @generated from message kava.hard.v1beta1.QueryInterestFactorsResponse + */ +export class QueryInterestFactorsResponse extends Message { + /** + * @generated from field: repeated kava.hard.v1beta1.InterestFactor interest_factors = 1; + */ + interestFactors: InterestFactor[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.QueryInterestFactorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interest_factors", kind: "message", T: InterestFactor, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterestFactorsResponse { + return new QueryInterestFactorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterestFactorsResponse { + return new QueryInterestFactorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterestFactorsResponse { + return new QueryInterestFactorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterestFactorsResponse | PlainMessage | undefined, b: QueryInterestFactorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterestFactorsResponse, a, b); + } +} + +/** + * DepositResponse defines an amount of coins deposited into a hard module account. + * + * @generated from message kava.hard.v1beta1.DepositResponse + */ +export class DepositResponse extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.SupplyInterestFactorResponse index = 3; + */ + index: SupplyInterestFactorResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.DepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "index", kind: "message", T: SupplyInterestFactorResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositResponse { + return new DepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositResponse { + return new DepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositResponse { + return new DepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: DepositResponse | PlainMessage | undefined, b: DepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositResponse, a, b); + } +} + +/** + * SupplyInterestFactorResponse defines an individual borrow interest factor. + * + * @generated from message kava.hard.v1beta1.SupplyInterestFactorResponse + */ +export class SupplyInterestFactorResponse extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * sdk.Dec as string + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.SupplyInterestFactorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SupplyInterestFactorResponse { + return new SupplyInterestFactorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SupplyInterestFactorResponse { + return new SupplyInterestFactorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SupplyInterestFactorResponse { + return new SupplyInterestFactorResponse().fromJsonString(jsonString, options); + } + + static equals(a: SupplyInterestFactorResponse | PlainMessage | undefined, b: SupplyInterestFactorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SupplyInterestFactorResponse, a, b); + } +} + +/** + * BorrowResponse defines an amount of coins borrowed from a hard module account. + * + * @generated from message kava.hard.v1beta1.BorrowResponse + */ +export class BorrowResponse extends Message { + /** + * @generated from field: string borrower = 1; + */ + borrower = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * @generated from field: repeated kava.hard.v1beta1.BorrowInterestFactorResponse index = 3; + */ + index: BorrowInterestFactorResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.BorrowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "borrower", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "index", kind: "message", T: BorrowInterestFactorResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BorrowResponse { + return new BorrowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BorrowResponse { + return new BorrowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BorrowResponse { + return new BorrowResponse().fromJsonString(jsonString, options); + } + + static equals(a: BorrowResponse | PlainMessage | undefined, b: BorrowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(BorrowResponse, a, b); + } +} + +/** + * BorrowInterestFactorResponse defines an individual borrow interest factor. + * + * @generated from message kava.hard.v1beta1.BorrowInterestFactorResponse + */ +export class BorrowInterestFactorResponse extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * sdk.Dec as string + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.BorrowInterestFactorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BorrowInterestFactorResponse { + return new BorrowInterestFactorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BorrowInterestFactorResponse { + return new BorrowInterestFactorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BorrowInterestFactorResponse { + return new BorrowInterestFactorResponse().fromJsonString(jsonString, options); + } + + static equals(a: BorrowInterestFactorResponse | PlainMessage | undefined, b: BorrowInterestFactorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(BorrowInterestFactorResponse, a, b); + } +} + +/** + * MoneyMarketInterestRate is a unique type returned by interest rate queries + * + * @generated from message kava.hard.v1beta1.MoneyMarketInterestRate + */ +export class MoneyMarketInterestRate extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * sdk.Dec as String + * + * @generated from field: string supply_interest_rate = 2; + */ + supplyInterestRate = ""; + + /** + * sdk.Dec as String + * + * @generated from field: string borrow_interest_rate = 3; + */ + borrowInterestRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MoneyMarketInterestRate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "supply_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "borrow_interest_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MoneyMarketInterestRate { + return new MoneyMarketInterestRate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MoneyMarketInterestRate { + return new MoneyMarketInterestRate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MoneyMarketInterestRate { + return new MoneyMarketInterestRate().fromJsonString(jsonString, options); + } + + static equals(a: MoneyMarketInterestRate | PlainMessage | undefined, b: MoneyMarketInterestRate | PlainMessage | undefined): boolean { + return proto3.util.equals(MoneyMarketInterestRate, a, b); + } +} + +/** + * InterestFactor is a unique type returned by interest factor queries + * + * @generated from message kava.hard.v1beta1.InterestFactor + */ +export class InterestFactor extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * sdk.Dec as String + * + * @generated from field: string borrow_interest_factor = 2; + */ + borrowInterestFactor = ""; + + /** + * sdk.Dec as String + * + * @generated from field: string supply_interest_factor = 3; + */ + supplyInterestFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.InterestFactor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrow_interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "supply_interest_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InterestFactor { + return new InterestFactor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InterestFactor { + return new InterestFactor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InterestFactor { + return new InterestFactor().fromJsonString(jsonString, options); + } + + static equals(a: InterestFactor | PlainMessage | undefined, b: InterestFactor | PlainMessage | undefined): boolean { + return proto3.util.equals(InterestFactor, a, b); + } +} + diff --git a/src/protobufs/kava/hard/v1beta1/tx_cosmes.ts b/src/protobufs/kava/hard/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..9735e648 --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/tx_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/tx.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBorrow, MsgBorrowResponse, MsgDeposit, MsgDepositResponse, MsgLiquidate, MsgLiquidateResponse, MsgRepay, MsgRepayResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.hard.v1beta1.Msg"; + +/** + * Deposit defines a method for depositing funds to hard liquidity pool. + * + * @generated from rpc kava.hard.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing funds from hard liquidity pool. + * + * @generated from rpc kava.hard.v1beta1.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + +/** + * Borrow defines a method for borrowing funds from hard liquidity pool. + * + * @generated from rpc kava.hard.v1beta1.Msg.Borrow + */ +export const MsgBorrowService = { + typeName: TYPE_NAME, + method: "Borrow", + Request: MsgBorrow, + Response: MsgBorrowResponse, +} as const; + +/** + * Repay defines a method for repaying funds borrowed from hard liquidity pool. + * + * @generated from rpc kava.hard.v1beta1.Msg.Repay + */ +export const MsgRepayService = { + typeName: TYPE_NAME, + method: "Repay", + Request: MsgRepay, + Response: MsgRepayResponse, +} as const; + +/** + * Liquidate defines a method for attempting to liquidate a borrower that is over their loan-to-value. + * + * @generated from rpc kava.hard.v1beta1.Msg.Liquidate + */ +export const MsgLiquidateService = { + typeName: TYPE_NAME, + method: "Liquidate", + Request: MsgLiquidate, + Response: MsgLiquidateResponse, +} as const; + diff --git a/src/protobufs/kava/hard/v1beta1/tx_pb.ts b/src/protobufs/kava/hard/v1beta1/tx_pb.ts new file mode 100644 index 00000000..8953a239 --- /dev/null +++ b/src/protobufs/kava/hard/v1beta1/tx_pb.ts @@ -0,0 +1,405 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/hard/v1beta1/tx.proto (package kava.hard.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgDeposit defines the Msg/Deposit request type. + * + * @generated from message kava.hard.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message kava.hard.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw defines the Msg/Withdraw request type. + * + * @generated from message kava.hard.v1beta1.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the Msg/Withdraw response type. + * + * @generated from message kava.hard.v1beta1.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + +/** + * MsgBorrow defines the Msg/Borrow request type. + * + * @generated from message kava.hard.v1beta1.MsgBorrow + */ +export class MsgBorrow extends Message { + /** + * @generated from field: string borrower = 1; + */ + borrower = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgBorrow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "borrower", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBorrow { + return new MsgBorrow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBorrow { + return new MsgBorrow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBorrow { + return new MsgBorrow().fromJsonString(jsonString, options); + } + + static equals(a: MsgBorrow | PlainMessage | undefined, b: MsgBorrow | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBorrow, a, b); + } +} + +/** + * MsgBorrowResponse defines the Msg/Borrow response type. + * + * @generated from message kava.hard.v1beta1.MsgBorrowResponse + */ +export class MsgBorrowResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgBorrowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBorrowResponse { + return new MsgBorrowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBorrowResponse { + return new MsgBorrowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBorrowResponse { + return new MsgBorrowResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBorrowResponse | PlainMessage | undefined, b: MsgBorrowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBorrowResponse, a, b); + } +} + +/** + * MsgRepay defines the Msg/Repay request type. + * + * @generated from message kava.hard.v1beta1.MsgRepay + */ +export class MsgRepay extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgRepay"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRepay { + return new MsgRepay().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRepay { + return new MsgRepay().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRepay { + return new MsgRepay().fromJsonString(jsonString, options); + } + + static equals(a: MsgRepay | PlainMessage | undefined, b: MsgRepay | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRepay, a, b); + } +} + +/** + * MsgRepayResponse defines the Msg/Repay response type. + * + * @generated from message kava.hard.v1beta1.MsgRepayResponse + */ +export class MsgRepayResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgRepayResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRepayResponse { + return new MsgRepayResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRepayResponse { + return new MsgRepayResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRepayResponse { + return new MsgRepayResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRepayResponse | PlainMessage | undefined, b: MsgRepayResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRepayResponse, a, b); + } +} + +/** + * MsgLiquidate defines the Msg/Liquidate request type. + * + * @generated from message kava.hard.v1beta1.MsgLiquidate + */ +export class MsgLiquidate extends Message { + /** + * @generated from field: string keeper = 1; + */ + keeper = ""; + + /** + * @generated from field: string borrower = 2; + */ + borrower = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgLiquidate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "keeper", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "borrower", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidate { + return new MsgLiquidate().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidate | PlainMessage | undefined, b: MsgLiquidate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidate, a, b); + } +} + +/** + * MsgLiquidateResponse defines the Msg/Liquidate response type. + * + * @generated from message kava.hard.v1beta1.MsgLiquidateResponse + */ +export class MsgLiquidateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.hard.v1beta1.MsgLiquidateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLiquidateResponse { + return new MsgLiquidateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLiquidateResponse | PlainMessage | undefined, b: MsgLiquidateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLiquidateResponse, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/apy_pb.ts b/src/protobufs/kava/incentive/v1beta1/apy_pb.ts new file mode 100644 index 00000000..1aa8fd2d --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/apy_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/apy.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Apy contains the calculated APY for a given collateral type at a specific + * instant in time. + * + * @generated from message kava.incentive.v1beta1.Apy + */ +export class Apy extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: string apy = 2; + */ + apy = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.Apy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "apy", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Apy { + return new Apy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Apy { + return new Apy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Apy { + return new Apy().fromJsonString(jsonString, options); + } + + static equals(a: Apy | PlainMessage | undefined, b: Apy | PlainMessage | undefined): boolean { + return proto3.util.equals(Apy, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/claims_pb.ts b/src/protobufs/kava/incentive/v1beta1/claims_pb.ts new file mode 100644 index 00000000..d3a43e2a --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/claims_pb.ts @@ -0,0 +1,543 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/claims.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * BaseClaim is a claim with a single reward coin types + * + * @generated from message kava.incentive.v1beta1.BaseClaim + */ +export class BaseClaim extends Message { + /** + * @generated from field: bytes owner = 1; + */ + owner = new Uint8Array(0); + + /** + * @generated from field: cosmos.base.v1beta1.Coin reward = 2; + */ + reward?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.BaseClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "reward", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BaseClaim { + return new BaseClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BaseClaim { + return new BaseClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BaseClaim { + return new BaseClaim().fromJsonString(jsonString, options); + } + + static equals(a: BaseClaim | PlainMessage | undefined, b: BaseClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(BaseClaim, a, b); + } +} + +/** + * BaseMultiClaim is a claim with multiple reward coin types + * + * @generated from message kava.incentive.v1beta1.BaseMultiClaim + */ +export class BaseMultiClaim extends Message { + /** + * @generated from field: bytes owner = 1; + */ + owner = new Uint8Array(0); + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin reward = 2; + */ + reward: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.BaseMultiClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "reward", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BaseMultiClaim { + return new BaseMultiClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BaseMultiClaim { + return new BaseMultiClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BaseMultiClaim { + return new BaseMultiClaim().fromJsonString(jsonString, options); + } + + static equals(a: BaseMultiClaim | PlainMessage | undefined, b: BaseMultiClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(BaseMultiClaim, a, b); + } +} + +/** + * RewardIndex stores reward accumulation information + * + * @generated from message kava.incentive.v1beta1.RewardIndex + */ +export class RewardIndex extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: bytes reward_factor = 2; + */ + rewardFactor = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.RewardIndex"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_factor", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardIndex { + return new RewardIndex().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardIndex { + return new RewardIndex().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardIndex { + return new RewardIndex().fromJsonString(jsonString, options); + } + + static equals(a: RewardIndex | PlainMessage | undefined, b: RewardIndex | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardIndex, a, b); + } +} + +/** + * RewardIndexesProto defines a Protobuf wrapper around a RewardIndexes slice + * + * @generated from message kava.incentive.v1beta1.RewardIndexesProto + */ +export class RewardIndexesProto extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.RewardIndex reward_indexes = 1; + */ + rewardIndexes: RewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.RewardIndexesProto"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reward_indexes", kind: "message", T: RewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardIndexesProto { + return new RewardIndexesProto().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardIndexesProto { + return new RewardIndexesProto().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardIndexesProto { + return new RewardIndexesProto().fromJsonString(jsonString, options); + } + + static equals(a: RewardIndexesProto | PlainMessage | undefined, b: RewardIndexesProto | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardIndexesProto, a, b); + } +} + +/** + * MultiRewardIndex stores reward accumulation information on multiple reward types + * + * @generated from message kava.incentive.v1beta1.MultiRewardIndex + */ +export class MultiRewardIndex extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.RewardIndex reward_indexes = 2; + */ + rewardIndexes: RewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MultiRewardIndex"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_indexes", kind: "message", T: RewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiRewardIndex { + return new MultiRewardIndex().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiRewardIndex { + return new MultiRewardIndex().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiRewardIndex { + return new MultiRewardIndex().fromJsonString(jsonString, options); + } + + static equals(a: MultiRewardIndex | PlainMessage | undefined, b: MultiRewardIndex | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiRewardIndex, a, b); + } +} + +/** + * MultiRewardIndexesProto defines a Protobuf wrapper around a MultiRewardIndexes slice + * + * @generated from message kava.incentive.v1beta1.MultiRewardIndexesProto + */ +export class MultiRewardIndexesProto extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex multi_reward_indexes = 1; + */ + multiRewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MultiRewardIndexesProto"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multi_reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiRewardIndexesProto { + return new MultiRewardIndexesProto().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiRewardIndexesProto { + return new MultiRewardIndexesProto().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiRewardIndexesProto { + return new MultiRewardIndexesProto().fromJsonString(jsonString, options); + } + + static equals(a: MultiRewardIndexesProto | PlainMessage | undefined, b: MultiRewardIndexesProto | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiRewardIndexesProto, a, b); + } +} + +/** + * USDXMintingClaim is for USDX minting rewards + * + * @generated from message kava.incentive.v1beta1.USDXMintingClaim + */ +export class USDXMintingClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseClaim base_claim = 1; + */ + baseClaim?: BaseClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.RewardIndex reward_indexes = 2; + */ + rewardIndexes: RewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.USDXMintingClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseClaim }, + { no: 2, name: "reward_indexes", kind: "message", T: RewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): USDXMintingClaim { + return new USDXMintingClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): USDXMintingClaim { + return new USDXMintingClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): USDXMintingClaim { + return new USDXMintingClaim().fromJsonString(jsonString, options); + } + + static equals(a: USDXMintingClaim | PlainMessage | undefined, b: USDXMintingClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(USDXMintingClaim, a, b); + } +} + +/** + * HardLiquidityProviderClaim stores the hard liquidity provider rewards that can be claimed by owner + * + * @generated from message kava.incentive.v1beta1.HardLiquidityProviderClaim + */ +export class HardLiquidityProviderClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseMultiClaim base_claim = 1; + */ + baseClaim?: BaseMultiClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex supply_reward_indexes = 2; + */ + supplyRewardIndexes: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex borrow_reward_indexes = 3; + */ + borrowRewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.HardLiquidityProviderClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseMultiClaim }, + { no: 2, name: "supply_reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 3, name: "borrow_reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HardLiquidityProviderClaim { + return new HardLiquidityProviderClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HardLiquidityProviderClaim { + return new HardLiquidityProviderClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HardLiquidityProviderClaim { + return new HardLiquidityProviderClaim().fromJsonString(jsonString, options); + } + + static equals(a: HardLiquidityProviderClaim | PlainMessage | undefined, b: HardLiquidityProviderClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(HardLiquidityProviderClaim, a, b); + } +} + +/** + * DelegatorClaim stores delegation rewards that can be claimed by owner + * + * @generated from message kava.incentive.v1beta1.DelegatorClaim + */ +export class DelegatorClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseMultiClaim base_claim = 1; + */ + baseClaim?: BaseMultiClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex reward_indexes = 2; + */ + rewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.DelegatorClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseMultiClaim }, + { no: 2, name: "reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorClaim { + return new DelegatorClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorClaim { + return new DelegatorClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegatorClaim { + return new DelegatorClaim().fromJsonString(jsonString, options); + } + + static equals(a: DelegatorClaim | PlainMessage | undefined, b: DelegatorClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegatorClaim, a, b); + } +} + +/** + * SwapClaim stores the swap rewards that can be claimed by owner + * + * @generated from message kava.incentive.v1beta1.SwapClaim + */ +export class SwapClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseMultiClaim base_claim = 1; + */ + baseClaim?: BaseMultiClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex reward_indexes = 2; + */ + rewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.SwapClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseMultiClaim }, + { no: 2, name: "reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapClaim { + return new SwapClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapClaim { + return new SwapClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapClaim { + return new SwapClaim().fromJsonString(jsonString, options); + } + + static equals(a: SwapClaim | PlainMessage | undefined, b: SwapClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapClaim, a, b); + } +} + +/** + * SavingsClaim stores the savings rewards that can be claimed by owner + * + * @generated from message kava.incentive.v1beta1.SavingsClaim + */ +export class SavingsClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseMultiClaim base_claim = 1; + */ + baseClaim?: BaseMultiClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex reward_indexes = 2; + */ + rewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.SavingsClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseMultiClaim }, + { no: 2, name: "reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SavingsClaim { + return new SavingsClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SavingsClaim { + return new SavingsClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SavingsClaim { + return new SavingsClaim().fromJsonString(jsonString, options); + } + + static equals(a: SavingsClaim | PlainMessage | undefined, b: SavingsClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(SavingsClaim, a, b); + } +} + +/** + * EarnClaim stores the earn rewards that can be claimed by owner + * + * @generated from message kava.incentive.v1beta1.EarnClaim + */ +export class EarnClaim extends Message { + /** + * @generated from field: kava.incentive.v1beta1.BaseMultiClaim base_claim = 1; + */ + baseClaim?: BaseMultiClaim; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex reward_indexes = 2; + */ + rewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.EarnClaim"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base_claim", kind: "message", T: BaseMultiClaim }, + { no: 2, name: "reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EarnClaim { + return new EarnClaim().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EarnClaim { + return new EarnClaim().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EarnClaim { + return new EarnClaim().fromJsonString(jsonString, options); + } + + static equals(a: EarnClaim | PlainMessage | undefined, b: EarnClaim | PlainMessage | undefined): boolean { + return proto3.util.equals(EarnClaim, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/genesis_pb.ts b/src/protobufs/kava/incentive/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..ac5bd358 --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/genesis_pb.ts @@ -0,0 +1,217 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/genesis.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { DelegatorClaim, EarnClaim, HardLiquidityProviderClaim, MultiRewardIndex, SavingsClaim, SwapClaim, USDXMintingClaim } from "./claims_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * AccumulationTime stores the previous reward distribution time and its corresponding collateral type + * + * @generated from message kava.incentive.v1beta1.AccumulationTime + */ +export class AccumulationTime extends Message { + /** + * @generated from field: string collateral_type = 1; + */ + collateralType = ""; + + /** + * @generated from field: google.protobuf.Timestamp previous_accumulation_time = 2; + */ + previousAccumulationTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.AccumulationTime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "previous_accumulation_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccumulationTime { + return new AccumulationTime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccumulationTime { + return new AccumulationTime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccumulationTime { + return new AccumulationTime().fromJsonString(jsonString, options); + } + + static equals(a: AccumulationTime | PlainMessage | undefined, b: AccumulationTime | PlainMessage | undefined): boolean { + return proto3.util.equals(AccumulationTime, a, b); + } +} + +/** + * GenesisRewardState groups together the global state for a particular reward so it can be exported in genesis. + * + * @generated from message kava.incentive.v1beta1.GenesisRewardState + */ +export class GenesisRewardState extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.AccumulationTime accumulation_times = 1; + */ + accumulationTimes: AccumulationTime[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex multi_reward_indexes = 2; + */ + multiRewardIndexes: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.GenesisRewardState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accumulation_times", kind: "message", T: AccumulationTime, repeated: true }, + { no: 2, name: "multi_reward_indexes", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisRewardState { + return new GenesisRewardState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisRewardState { + return new GenesisRewardState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisRewardState { + return new GenesisRewardState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisRewardState | PlainMessage | undefined, b: GenesisRewardState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisRewardState, a, b); + } +} + +/** + * GenesisState is the state that must be provided at genesis. + * + * @generated from message kava.incentive.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: kava.incentive.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState usdx_reward_state = 2; + */ + usdxRewardState?: GenesisRewardState; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState hard_supply_reward_state = 3; + */ + hardSupplyRewardState?: GenesisRewardState; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState hard_borrow_reward_state = 4; + */ + hardBorrowRewardState?: GenesisRewardState; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState delegator_reward_state = 5; + */ + delegatorRewardState?: GenesisRewardState; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState swap_reward_state = 6; + */ + swapRewardState?: GenesisRewardState; + + /** + * @generated from field: repeated kava.incentive.v1beta1.USDXMintingClaim usdx_minting_claims = 7; + */ + usdxMintingClaims: USDXMintingClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.HardLiquidityProviderClaim hard_liquidity_provider_claims = 8; + */ + hardLiquidityProviderClaims: HardLiquidityProviderClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.DelegatorClaim delegator_claims = 9; + */ + delegatorClaims: DelegatorClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.SwapClaim swap_claims = 10; + */ + swapClaims: SwapClaim[] = []; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState savings_reward_state = 11; + */ + savingsRewardState?: GenesisRewardState; + + /** + * @generated from field: repeated kava.incentive.v1beta1.SavingsClaim savings_claims = 12; + */ + savingsClaims: SavingsClaim[] = []; + + /** + * @generated from field: kava.incentive.v1beta1.GenesisRewardState earn_reward_state = 13; + */ + earnRewardState?: GenesisRewardState; + + /** + * @generated from field: repeated kava.incentive.v1beta1.EarnClaim earn_claims = 14; + */ + earnClaims: EarnClaim[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "usdx_reward_state", kind: "message", T: GenesisRewardState }, + { no: 3, name: "hard_supply_reward_state", kind: "message", T: GenesisRewardState }, + { no: 4, name: "hard_borrow_reward_state", kind: "message", T: GenesisRewardState }, + { no: 5, name: "delegator_reward_state", kind: "message", T: GenesisRewardState }, + { no: 6, name: "swap_reward_state", kind: "message", T: GenesisRewardState }, + { no: 7, name: "usdx_minting_claims", kind: "message", T: USDXMintingClaim, repeated: true }, + { no: 8, name: "hard_liquidity_provider_claims", kind: "message", T: HardLiquidityProviderClaim, repeated: true }, + { no: 9, name: "delegator_claims", kind: "message", T: DelegatorClaim, repeated: true }, + { no: 10, name: "swap_claims", kind: "message", T: SwapClaim, repeated: true }, + { no: 11, name: "savings_reward_state", kind: "message", T: GenesisRewardState }, + { no: 12, name: "savings_claims", kind: "message", T: SavingsClaim, repeated: true }, + { no: 13, name: "earn_reward_state", kind: "message", T: GenesisRewardState }, + { no: 14, name: "earn_claims", kind: "message", T: EarnClaim, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/params_pb.ts b/src/protobufs/kava/incentive/v1beta1/params_pb.ts new file mode 100644 index 00000000..c99fc691 --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/params_pb.ts @@ -0,0 +1,318 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/params.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * RewardPeriod stores the state of an ongoing reward + * + * @generated from message kava.incentive.v1beta1.RewardPeriod + */ +export class RewardPeriod extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: string collateral_type = 2; + */ + collateralType = ""; + + /** + * @generated from field: google.protobuf.Timestamp start = 3; + */ + start?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp end = 4; + */ + end?: Timestamp; + + /** + * @generated from field: cosmos.base.v1beta1.Coin rewards_per_second = 5; + */ + rewardsPerSecond?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.RewardPeriod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start", kind: "message", T: Timestamp }, + { no: 4, name: "end", kind: "message", T: Timestamp }, + { no: 5, name: "rewards_per_second", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardPeriod { + return new RewardPeriod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardPeriod { + return new RewardPeriod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardPeriod { + return new RewardPeriod().fromJsonString(jsonString, options); + } + + static equals(a: RewardPeriod | PlainMessage | undefined, b: RewardPeriod | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardPeriod, a, b); + } +} + +/** + * MultiRewardPeriod supports multiple reward types + * + * @generated from message kava.incentive.v1beta1.MultiRewardPeriod + */ +export class MultiRewardPeriod extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: string collateral_type = 2; + */ + collateralType = ""; + + /** + * @generated from field: google.protobuf.Timestamp start = 3; + */ + start?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp end = 4; + */ + end?: Timestamp; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards_per_second = 5; + */ + rewardsPerSecond: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MultiRewardPeriod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "collateral_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start", kind: "message", T: Timestamp }, + { no: 4, name: "end", kind: "message", T: Timestamp }, + { no: 5, name: "rewards_per_second", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiRewardPeriod { + return new MultiRewardPeriod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiRewardPeriod { + return new MultiRewardPeriod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiRewardPeriod { + return new MultiRewardPeriod().fromJsonString(jsonString, options); + } + + static equals(a: MultiRewardPeriod | PlainMessage | undefined, b: MultiRewardPeriod | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiRewardPeriod, a, b); + } +} + +/** + * Multiplier amount the claim rewards get increased by, along with how long the claim rewards are locked + * + * @generated from message kava.incentive.v1beta1.Multiplier + */ +export class Multiplier extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: int64 months_lockup = 2; + */ + monthsLockup = protoInt64.zero; + + /** + * @generated from field: bytes factor = 3; + */ + factor = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.Multiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "months_lockup", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "factor", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Multiplier { + return new Multiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Multiplier { + return new Multiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Multiplier { + return new Multiplier().fromJsonString(jsonString, options); + } + + static equals(a: Multiplier | PlainMessage | undefined, b: Multiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(Multiplier, a, b); + } +} + +/** + * MultipliersPerDenom is a map of denoms to a set of multipliers + * + * @generated from message kava.incentive.v1beta1.MultipliersPerDenom + */ +export class MultipliersPerDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Multiplier multipliers = 2; + */ + multipliers: Multiplier[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MultipliersPerDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "multipliers", kind: "message", T: Multiplier, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultipliersPerDenom { + return new MultipliersPerDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultipliersPerDenom { + return new MultipliersPerDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultipliersPerDenom { + return new MultipliersPerDenom().fromJsonString(jsonString, options); + } + + static equals(a: MultipliersPerDenom | PlainMessage | undefined, b: MultipliersPerDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MultipliersPerDenom, a, b); + } +} + +/** + * Params + * + * @generated from message kava.incentive.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.RewardPeriod usdx_minting_reward_periods = 1; + */ + usdxMintingRewardPeriods: RewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod hard_supply_reward_periods = 2; + */ + hardSupplyRewardPeriods: MultiRewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod hard_borrow_reward_periods = 3; + */ + hardBorrowRewardPeriods: MultiRewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod delegator_reward_periods = 4; + */ + delegatorRewardPeriods: MultiRewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod swap_reward_periods = 5; + */ + swapRewardPeriods: MultiRewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultipliersPerDenom claim_multipliers = 6; + */ + claimMultipliers: MultipliersPerDenom[] = []; + + /** + * @generated from field: google.protobuf.Timestamp claim_end = 7; + */ + claimEnd?: Timestamp; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod savings_reward_periods = 8; + */ + savingsRewardPeriods: MultiRewardPeriod[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardPeriod earn_reward_periods = 9; + */ + earnRewardPeriods: MultiRewardPeriod[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usdx_minting_reward_periods", kind: "message", T: RewardPeriod, repeated: true }, + { no: 2, name: "hard_supply_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + { no: 3, name: "hard_borrow_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + { no: 4, name: "delegator_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + { no: 5, name: "swap_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + { no: 6, name: "claim_multipliers", kind: "message", T: MultipliersPerDenom, repeated: true }, + { no: 7, name: "claim_end", kind: "message", T: Timestamp }, + { no: 8, name: "savings_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + { no: 9, name: "earn_reward_periods", kind: "message", T: MultiRewardPeriod, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/query_cosmes.ts b/src/protobufs/kava/incentive/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..059ec4e6 --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/query.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryApyRequest, QueryApyResponse, QueryParamsRequest, QueryParamsResponse, QueryRewardFactorsRequest, QueryRewardFactorsResponse, QueryRewardsRequest, QueryRewardsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.incentive.v1beta1.Query"; + +/** + * Params queries module params. + * + * @generated from rpc kava.incentive.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Rewards queries reward information for a given user. + * + * @generated from rpc kava.incentive.v1beta1.Query.Rewards + */ +export const QueryRewardsService = { + typeName: TYPE_NAME, + method: "Rewards", + Request: QueryRewardsRequest, + Response: QueryRewardsResponse, +} as const; + +/** + * Rewards queries the reward factors. + * + * @generated from rpc kava.incentive.v1beta1.Query.RewardFactors + */ +export const QueryRewardFactorsService = { + typeName: TYPE_NAME, + method: "RewardFactors", + Request: QueryRewardFactorsRequest, + Response: QueryRewardFactorsResponse, +} as const; + +/** + * Apy queries incentive reward apy for a reward. + * + * @generated from rpc kava.incentive.v1beta1.Query.Apy + */ +export const QueryApyService = { + typeName: TYPE_NAME, + method: "Apy", + Request: QueryApyRequest, + Response: QueryApyResponse, +} as const; + diff --git a/src/protobufs/kava/incentive/v1beta1/query_pb.ts b/src/protobufs/kava/incentive/v1beta1/query_pb.ts new file mode 100644 index 00000000..c855924c --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/query_pb.ts @@ -0,0 +1,391 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/query.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DelegatorClaim, EarnClaim, HardLiquidityProviderClaim, MultiRewardIndex, RewardIndex, SavingsClaim, SwapClaim, USDXMintingClaim } from "./claims_pb.js"; +import { Apy } from "./apy_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.incentive.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryRewardsRequest is the request type for the Query/Rewards RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryRewardsRequest + */ +export class QueryRewardsRequest extends Message { + /** + * owner is the address of the user to query rewards for. + * + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * reward_type is the type of reward to query rewards for, e.g. hard, earn, + * swap. + * + * @generated from field: string reward_type = 2; + */ + rewardType = ""; + + /** + * unsynchronized is a flag to query rewards that are not simulated for reward + * synchronized for the current block. + * + * @generated from field: bool unsynchronized = 3; + */ + unsynchronized = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "unsynchronized", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsRequest { + return new QueryRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsRequest | PlainMessage | undefined, b: QueryRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsRequest, a, b); + } +} + +/** + * QueryRewardsResponse is the response type for the Query/Rewards RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryRewardsResponse + */ +export class QueryRewardsResponse extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.USDXMintingClaim usdx_minting_claims = 1; + */ + usdxMintingClaims: USDXMintingClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.HardLiquidityProviderClaim hard_liquidity_provider_claims = 2; + */ + hardLiquidityProviderClaims: HardLiquidityProviderClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.DelegatorClaim delegator_claims = 3; + */ + delegatorClaims: DelegatorClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.SwapClaim swap_claims = 4; + */ + swapClaims: SwapClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.SavingsClaim savings_claims = 5; + */ + savingsClaims: SavingsClaim[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.EarnClaim earn_claims = 6; + */ + earnClaims: EarnClaim[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usdx_minting_claims", kind: "message", T: USDXMintingClaim, repeated: true }, + { no: 2, name: "hard_liquidity_provider_claims", kind: "message", T: HardLiquidityProviderClaim, repeated: true }, + { no: 3, name: "delegator_claims", kind: "message", T: DelegatorClaim, repeated: true }, + { no: 4, name: "swap_claims", kind: "message", T: SwapClaim, repeated: true }, + { no: 5, name: "savings_claims", kind: "message", T: SavingsClaim, repeated: true }, + { no: 6, name: "earn_claims", kind: "message", T: EarnClaim, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsResponse { + return new QueryRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsResponse | PlainMessage | undefined, b: QueryRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsResponse, a, b); + } +} + +/** + * QueryRewardFactorsRequest is the request type for the Query/RewardFactors RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryRewardFactorsRequest + */ +export class QueryRewardFactorsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryRewardFactorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardFactorsRequest { + return new QueryRewardFactorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardFactorsRequest { + return new QueryRewardFactorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardFactorsRequest { + return new QueryRewardFactorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardFactorsRequest | PlainMessage | undefined, b: QueryRewardFactorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardFactorsRequest, a, b); + } +} + +/** + * QueryRewardFactorsResponse is the response type for the Query/RewardFactors RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryRewardFactorsResponse + */ +export class QueryRewardFactorsResponse extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.RewardIndex usdx_minting_reward_factors = 1; + */ + usdxMintingRewardFactors: RewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex hard_supply_reward_factors = 2; + */ + hardSupplyRewardFactors: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex hard_borrow_reward_factors = 3; + */ + hardBorrowRewardFactors: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex delegator_reward_factors = 4; + */ + delegatorRewardFactors: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex swap_reward_factors = 5; + */ + swapRewardFactors: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex savings_reward_factors = 6; + */ + savingsRewardFactors: MultiRewardIndex[] = []; + + /** + * @generated from field: repeated kava.incentive.v1beta1.MultiRewardIndex earn_reward_factors = 7; + */ + earnRewardFactors: MultiRewardIndex[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryRewardFactorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "usdx_minting_reward_factors", kind: "message", T: RewardIndex, repeated: true }, + { no: 2, name: "hard_supply_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 3, name: "hard_borrow_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 4, name: "delegator_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 5, name: "swap_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 6, name: "savings_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + { no: 7, name: "earn_reward_factors", kind: "message", T: MultiRewardIndex, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardFactorsResponse { + return new QueryRewardFactorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardFactorsResponse { + return new QueryRewardFactorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardFactorsResponse { + return new QueryRewardFactorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardFactorsResponse | PlainMessage | undefined, b: QueryRewardFactorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardFactorsResponse, a, b); + } +} + +/** + * QueryApysRequest is the request type for the Query/Apys RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryApyRequest + */ +export class QueryApyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryApyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryApyRequest { + return new QueryApyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryApyRequest { + return new QueryApyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryApyRequest { + return new QueryApyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryApyRequest | PlainMessage | undefined, b: QueryApyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryApyRequest, a, b); + } +} + +/** + * QueryApysResponse is the response type for the Query/Apys RPC method. + * + * @generated from message kava.incentive.v1beta1.QueryApyResponse + */ +export class QueryApyResponse extends Message { + /** + * @generated from field: repeated kava.incentive.v1beta1.Apy earn = 1; + */ + earn: Apy[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.QueryApyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "earn", kind: "message", T: Apy, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryApyResponse { + return new QueryApyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryApyResponse { + return new QueryApyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryApyResponse { + return new QueryApyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryApyResponse | PlainMessage | undefined, b: QueryApyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryApyResponse, a, b); + } +} + diff --git a/src/protobufs/kava/incentive/v1beta1/tx_cosmes.ts b/src/protobufs/kava/incentive/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..20ebad89 --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/tx_cosmes.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/tx.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimDelegatorReward, MsgClaimDelegatorRewardResponse, MsgClaimEarnReward, MsgClaimEarnRewardResponse, MsgClaimHardReward, MsgClaimHardRewardResponse, MsgClaimSavingsReward, MsgClaimSavingsRewardResponse, MsgClaimSwapReward, MsgClaimSwapRewardResponse, MsgClaimUSDXMintingReward, MsgClaimUSDXMintingRewardResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.incentive.v1beta1.Msg"; + +/** + * ClaimUSDXMintingReward is a message type used to claim USDX minting rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimUSDXMintingReward + */ +export const MsgClaimUSDXMintingRewardService = { + typeName: TYPE_NAME, + method: "ClaimUSDXMintingReward", + Request: MsgClaimUSDXMintingReward, + Response: MsgClaimUSDXMintingRewardResponse, +} as const; + +/** + * ClaimHardReward is a message type used to claim Hard liquidity provider rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimHardReward + */ +export const MsgClaimHardRewardService = { + typeName: TYPE_NAME, + method: "ClaimHardReward", + Request: MsgClaimHardReward, + Response: MsgClaimHardRewardResponse, +} as const; + +/** + * ClaimDelegatorReward is a message type used to claim delegator rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimDelegatorReward + */ +export const MsgClaimDelegatorRewardService = { + typeName: TYPE_NAME, + method: "ClaimDelegatorReward", + Request: MsgClaimDelegatorReward, + Response: MsgClaimDelegatorRewardResponse, +} as const; + +/** + * ClaimSwapReward is a message type used to claim swap rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimSwapReward + */ +export const MsgClaimSwapRewardService = { + typeName: TYPE_NAME, + method: "ClaimSwapReward", + Request: MsgClaimSwapReward, + Response: MsgClaimSwapRewardResponse, +} as const; + +/** + * ClaimSavingsReward is a message type used to claim savings rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimSavingsReward + */ +export const MsgClaimSavingsRewardService = { + typeName: TYPE_NAME, + method: "ClaimSavingsReward", + Request: MsgClaimSavingsReward, + Response: MsgClaimSavingsRewardResponse, +} as const; + +/** + * ClaimEarnReward is a message type used to claim earn rewards + * + * @generated from rpc kava.incentive.v1beta1.Msg.ClaimEarnReward + */ +export const MsgClaimEarnRewardService = { + typeName: TYPE_NAME, + method: "ClaimEarnReward", + Request: MsgClaimEarnReward, + Response: MsgClaimEarnRewardResponse, +} as const; + diff --git a/src/protobufs/kava/incentive/v1beta1/tx_pb.ts b/src/protobufs/kava/incentive/v1beta1/tx_pb.ts new file mode 100644 index 00000000..11f2f3e2 --- /dev/null +++ b/src/protobufs/kava/incentive/v1beta1/tx_pb.ts @@ -0,0 +1,522 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/incentive/v1beta1/tx.proto (package kava.incentive.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Selection is a pair of denom and multiplier name. It holds the choice of multiplier a user makes when they claim a + * denom. + * + * @generated from message kava.incentive.v1beta1.Selection + */ +export class Selection extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string multiplier_name = 2; + */ + multiplierName = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.Selection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "multiplier_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Selection { + return new Selection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Selection { + return new Selection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Selection { + return new Selection().fromJsonString(jsonString, options); + } + + static equals(a: Selection | PlainMessage | undefined, b: Selection | PlainMessage | undefined): boolean { + return proto3.util.equals(Selection, a, b); + } +} + +/** + * MsgClaimUSDXMintingReward message type used to claim USDX minting rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimUSDXMintingReward + */ +export class MsgClaimUSDXMintingReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string multiplier_name = 2; + */ + multiplierName = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimUSDXMintingReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "multiplier_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimUSDXMintingReward { + return new MsgClaimUSDXMintingReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimUSDXMintingReward { + return new MsgClaimUSDXMintingReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimUSDXMintingReward { + return new MsgClaimUSDXMintingReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimUSDXMintingReward | PlainMessage | undefined, b: MsgClaimUSDXMintingReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimUSDXMintingReward, a, b); + } +} + +/** + * MsgClaimUSDXMintingRewardResponse defines the Msg/ClaimUSDXMintingReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimUSDXMintingRewardResponse + */ +export class MsgClaimUSDXMintingRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimUSDXMintingRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimUSDXMintingRewardResponse { + return new MsgClaimUSDXMintingRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimUSDXMintingRewardResponse { + return new MsgClaimUSDXMintingRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimUSDXMintingRewardResponse { + return new MsgClaimUSDXMintingRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimUSDXMintingRewardResponse | PlainMessage | undefined, b: MsgClaimUSDXMintingRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimUSDXMintingRewardResponse, a, b); + } +} + +/** + * MsgClaimHardReward message type used to claim Hard liquidity provider rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimHardReward + */ +export class MsgClaimHardReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Selection denoms_to_claim = 2; + */ + denomsToClaim: Selection[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimHardReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms_to_claim", kind: "message", T: Selection, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimHardReward { + return new MsgClaimHardReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimHardReward { + return new MsgClaimHardReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimHardReward { + return new MsgClaimHardReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimHardReward | PlainMessage | undefined, b: MsgClaimHardReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimHardReward, a, b); + } +} + +/** + * MsgClaimHardRewardResponse defines the Msg/ClaimHardReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimHardRewardResponse + */ +export class MsgClaimHardRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimHardRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimHardRewardResponse { + return new MsgClaimHardRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimHardRewardResponse { + return new MsgClaimHardRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimHardRewardResponse { + return new MsgClaimHardRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimHardRewardResponse | PlainMessage | undefined, b: MsgClaimHardRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimHardRewardResponse, a, b); + } +} + +/** + * MsgClaimDelegatorReward message type used to claim delegator rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimDelegatorReward + */ +export class MsgClaimDelegatorReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Selection denoms_to_claim = 2; + */ + denomsToClaim: Selection[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimDelegatorReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms_to_claim", kind: "message", T: Selection, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimDelegatorReward { + return new MsgClaimDelegatorReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimDelegatorReward { + return new MsgClaimDelegatorReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimDelegatorReward { + return new MsgClaimDelegatorReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimDelegatorReward | PlainMessage | undefined, b: MsgClaimDelegatorReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimDelegatorReward, a, b); + } +} + +/** + * MsgClaimDelegatorRewardResponse defines the Msg/ClaimDelegatorReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimDelegatorRewardResponse + */ +export class MsgClaimDelegatorRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimDelegatorRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimDelegatorRewardResponse { + return new MsgClaimDelegatorRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimDelegatorRewardResponse { + return new MsgClaimDelegatorRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimDelegatorRewardResponse { + return new MsgClaimDelegatorRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimDelegatorRewardResponse | PlainMessage | undefined, b: MsgClaimDelegatorRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimDelegatorRewardResponse, a, b); + } +} + +/** + * MsgClaimSwapReward message type used to claim delegator rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimSwapReward + */ +export class MsgClaimSwapReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Selection denoms_to_claim = 2; + */ + denomsToClaim: Selection[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimSwapReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms_to_claim", kind: "message", T: Selection, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimSwapReward { + return new MsgClaimSwapReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimSwapReward { + return new MsgClaimSwapReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimSwapReward { + return new MsgClaimSwapReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimSwapReward | PlainMessage | undefined, b: MsgClaimSwapReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimSwapReward, a, b); + } +} + +/** + * MsgClaimSwapRewardResponse defines the Msg/ClaimSwapReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimSwapRewardResponse + */ +export class MsgClaimSwapRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimSwapRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimSwapRewardResponse { + return new MsgClaimSwapRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimSwapRewardResponse { + return new MsgClaimSwapRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimSwapRewardResponse { + return new MsgClaimSwapRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimSwapRewardResponse | PlainMessage | undefined, b: MsgClaimSwapRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimSwapRewardResponse, a, b); + } +} + +/** + * MsgClaimSavingsReward message type used to claim savings rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimSavingsReward + */ +export class MsgClaimSavingsReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Selection denoms_to_claim = 2; + */ + denomsToClaim: Selection[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimSavingsReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms_to_claim", kind: "message", T: Selection, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimSavingsReward { + return new MsgClaimSavingsReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimSavingsReward { + return new MsgClaimSavingsReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimSavingsReward { + return new MsgClaimSavingsReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimSavingsReward | PlainMessage | undefined, b: MsgClaimSavingsReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimSavingsReward, a, b); + } +} + +/** + * MsgClaimSavingsRewardResponse defines the Msg/ClaimSavingsReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimSavingsRewardResponse + */ +export class MsgClaimSavingsRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimSavingsRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimSavingsRewardResponse { + return new MsgClaimSavingsRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimSavingsRewardResponse { + return new MsgClaimSavingsRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimSavingsRewardResponse { + return new MsgClaimSavingsRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimSavingsRewardResponse | PlainMessage | undefined, b: MsgClaimSavingsRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimSavingsRewardResponse, a, b); + } +} + +/** + * MsgClaimEarnReward message type used to claim earn rewards + * + * @generated from message kava.incentive.v1beta1.MsgClaimEarnReward + */ +export class MsgClaimEarnReward extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated kava.incentive.v1beta1.Selection denoms_to_claim = 2; + */ + denomsToClaim: Selection[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimEarnReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denoms_to_claim", kind: "message", T: Selection, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimEarnReward { + return new MsgClaimEarnReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimEarnReward { + return new MsgClaimEarnReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimEarnReward { + return new MsgClaimEarnReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimEarnReward | PlainMessage | undefined, b: MsgClaimEarnReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimEarnReward, a, b); + } +} + +/** + * MsgClaimEarnRewardResponse defines the Msg/ClaimEarnReward response type. + * + * @generated from message kava.incentive.v1beta1.MsgClaimEarnRewardResponse + */ +export class MsgClaimEarnRewardResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.incentive.v1beta1.MsgClaimEarnRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimEarnRewardResponse { + return new MsgClaimEarnRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimEarnRewardResponse { + return new MsgClaimEarnRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimEarnRewardResponse { + return new MsgClaimEarnRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimEarnRewardResponse | PlainMessage | undefined, b: MsgClaimEarnRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimEarnRewardResponse, a, b); + } +} + diff --git a/src/protobufs/kava/issuance/v1beta1/genesis_pb.ts b/src/protobufs/kava/issuance/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..86116142 --- /dev/null +++ b/src/protobufs/kava/issuance/v1beta1/genesis_pb.ts @@ -0,0 +1,261 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/issuance/v1beta1/genesis.proto (package kava.issuance.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * GenesisState defines the issuance module's genesis state. + * + * @generated from message kava.issuance.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: kava.issuance.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated kava.issuance.v1beta1.AssetSupply supplies = 2; + */ + supplies: AssetSupply[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "supplies", kind: "message", T: AssetSupply, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params defines the parameters for the issuance module. + * + * @generated from message kava.issuance.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.issuance.v1beta1.Asset assets = 1; + */ + assets: Asset[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assets", kind: "message", T: Asset, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Asset type for assets in the issuance module + * + * @generated from message kava.issuance.v1beta1.Asset + */ +export class Asset extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: repeated string blocked_addresses = 3; + */ + blockedAddresses: string[] = []; + + /** + * @generated from field: bool paused = 4; + */ + paused = false; + + /** + * @generated from field: bool blockable = 5; + */ + blockable = false; + + /** + * @generated from field: kava.issuance.v1beta1.RateLimit rate_limit = 6; + */ + rateLimit?: RateLimit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.Asset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "blocked_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "blockable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "rate_limit", kind: "message", T: RateLimit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Asset { + return new Asset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Asset { + return new Asset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Asset { + return new Asset().fromJsonString(jsonString, options); + } + + static equals(a: Asset | PlainMessage | undefined, b: Asset | PlainMessage | undefined): boolean { + return proto3.util.equals(Asset, a, b); + } +} + +/** + * RateLimit parameters for rate-limiting the supply of an issued asset + * + * @generated from message kava.issuance.v1beta1.RateLimit + */ +export class RateLimit extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: bytes limit = 2; + */ + limit = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Duration time_period = 3; + */ + timePeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.RateLimit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "limit", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "time_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RateLimit { + return new RateLimit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RateLimit { + return new RateLimit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RateLimit { + return new RateLimit().fromJsonString(jsonString, options); + } + + static equals(a: RateLimit | PlainMessage | undefined, b: RateLimit | PlainMessage | undefined): boolean { + return proto3.util.equals(RateLimit, a, b); + } +} + +/** + * AssetSupply contains information about an asset's rate-limited supply (the + * total supply of the asset is tracked in the top-level supply module) + * + * @generated from message kava.issuance.v1beta1.AssetSupply + */ +export class AssetSupply extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin current_supply = 1; + */ + currentSupply?: Coin; + + /** + * @generated from field: google.protobuf.Duration time_elapsed = 2; + */ + timeElapsed?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.AssetSupply"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_supply", kind: "message", T: Coin }, + { no: 2, name: "time_elapsed", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetSupply { + return new AssetSupply().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetSupply { + return new AssetSupply().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetSupply { + return new AssetSupply().fromJsonString(jsonString, options); + } + + static equals(a: AssetSupply | PlainMessage | undefined, b: AssetSupply | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetSupply, a, b); + } +} + diff --git a/src/protobufs/kava/issuance/v1beta1/query_cosmes.ts b/src/protobufs/kava/issuance/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..37296a97 --- /dev/null +++ b/src/protobufs/kava/issuance/v1beta1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/issuance/v1beta1/query.proto (package kava.issuance.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.issuance.v1beta1.Query"; + +/** + * Params queries all parameters of the issuance module. + * + * @generated from rpc kava.issuance.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/kava/issuance/v1beta1/query_pb.ts b/src/protobufs/kava/issuance/v1beta1/query_pb.ts new file mode 100644 index 00000000..df2588c0 --- /dev/null +++ b/src/protobufs/kava/issuance/v1beta1/query_pb.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/issuance/v1beta1/query.proto (package kava.issuance.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./genesis_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/issuance parameters. + * + * @generated from message kava.issuance.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/issuance parameters. + * + * @generated from message kava.issuance.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.issuance.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/kava/issuance/v1beta1/tx_cosmes.ts b/src/protobufs/kava/issuance/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..8fa3fb00 --- /dev/null +++ b/src/protobufs/kava/issuance/v1beta1/tx_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/issuance/v1beta1/tx.proto (package kava.issuance.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBlockAddress, MsgBlockAddressResponse, MsgIssueTokens, MsgIssueTokensResponse, MsgRedeemTokens, MsgRedeemTokensResponse, MsgSetPauseStatus, MsgSetPauseStatusResponse, MsgUnblockAddress, MsgUnblockAddressResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.issuance.v1beta1.Msg"; + +/** + * IssueTokens message type used by the issuer to issue new tokens + * + * @generated from rpc kava.issuance.v1beta1.Msg.IssueTokens + */ +export const MsgIssueTokensService = { + typeName: TYPE_NAME, + method: "IssueTokens", + Request: MsgIssueTokens, + Response: MsgIssueTokensResponse, +} as const; + +/** + * RedeemTokens message type used by the issuer to redeem (burn) tokens + * + * @generated from rpc kava.issuance.v1beta1.Msg.RedeemTokens + */ +export const MsgRedeemTokensService = { + typeName: TYPE_NAME, + method: "RedeemTokens", + Request: MsgRedeemTokens, + Response: MsgRedeemTokensResponse, +} as const; + +/** + * BlockAddress message type used by the issuer to block an address from holding or transferring tokens + * + * @generated from rpc kava.issuance.v1beta1.Msg.BlockAddress + */ +export const MsgBlockAddressService = { + typeName: TYPE_NAME, + method: "BlockAddress", + Request: MsgBlockAddress, + Response: MsgBlockAddressResponse, +} as const; + +/** + * UnblockAddress message type used by the issuer to unblock an address from holding or transferring tokens + * + * @generated from rpc kava.issuance.v1beta1.Msg.UnblockAddress + */ +export const MsgUnblockAddressService = { + typeName: TYPE_NAME, + method: "UnblockAddress", + Request: MsgUnblockAddress, + Response: MsgUnblockAddressResponse, +} as const; + +/** + * SetPauseStatus message type used to pause or unpause status + * + * @generated from rpc kava.issuance.v1beta1.Msg.SetPauseStatus + */ +export const MsgSetPauseStatusService = { + typeName: TYPE_NAME, + method: "SetPauseStatus", + Request: MsgSetPauseStatus, + Response: MsgSetPauseStatusResponse, +} as const; + diff --git a/src/protobufs/kava/issuance/v1beta1/tx_pb.ts b/src/protobufs/kava/issuance/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a30adc29 --- /dev/null +++ b/src/protobufs/kava/issuance/v1beta1/tx_pb.ts @@ -0,0 +1,423 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/issuance/v1beta1/tx.proto (package kava.issuance.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgIssueTokens represents a message used by the issuer to issue new tokens + * + * @generated from message kava.issuance.v1beta1.MsgIssueTokens + */ +export class MsgIssueTokens extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin tokens = 2; + */ + tokens?: Coin; + + /** + * @generated from field: string receiver = 3; + */ + receiver = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgIssueTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tokens", kind: "message", T: Coin }, + { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIssueTokens { + return new MsgIssueTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIssueTokens { + return new MsgIssueTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIssueTokens { + return new MsgIssueTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgIssueTokens | PlainMessage | undefined, b: MsgIssueTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIssueTokens, a, b); + } +} + +/** + * MsgIssueTokensResponse defines the Msg/IssueTokens response type. + * + * @generated from message kava.issuance.v1beta1.MsgIssueTokensResponse + */ +export class MsgIssueTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgIssueTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIssueTokensResponse { + return new MsgIssueTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIssueTokensResponse { + return new MsgIssueTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIssueTokensResponse { + return new MsgIssueTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIssueTokensResponse | PlainMessage | undefined, b: MsgIssueTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIssueTokensResponse, a, b); + } +} + +/** + * MsgRedeemTokens represents a message used by the issuer to redeem (burn) tokens + * + * @generated from message kava.issuance.v1beta1.MsgRedeemTokens + */ +export class MsgRedeemTokens extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin tokens = 2; + */ + tokens?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgRedeemTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tokens", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemTokens { + return new MsgRedeemTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemTokens { + return new MsgRedeemTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemTokens { + return new MsgRedeemTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemTokens | PlainMessage | undefined, b: MsgRedeemTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemTokens, a, b); + } +} + +/** + * MsgRedeemTokensResponse defines the Msg/RedeemTokens response type. + * + * @generated from message kava.issuance.v1beta1.MsgRedeemTokensResponse + */ +export class MsgRedeemTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgRedeemTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemTokensResponse { + return new MsgRedeemTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemTokensResponse { + return new MsgRedeemTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemTokensResponse { + return new MsgRedeemTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemTokensResponse | PlainMessage | undefined, b: MsgRedeemTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemTokensResponse, a, b); + } +} + +/** + * MsgBlockAddress represents a message used by the issuer to block an address from holding or transferring tokens + * + * @generated from message kava.issuance.v1beta1.MsgBlockAddress + */ +export class MsgBlockAddress extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string blocked_address = 3; + */ + blockedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgBlockAddress"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "blocked_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBlockAddress { + return new MsgBlockAddress().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBlockAddress { + return new MsgBlockAddress().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBlockAddress { + return new MsgBlockAddress().fromJsonString(jsonString, options); + } + + static equals(a: MsgBlockAddress | PlainMessage | undefined, b: MsgBlockAddress | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBlockAddress, a, b); + } +} + +/** + * MsgBlockAddressResponse defines the Msg/BlockAddress response type. + * + * @generated from message kava.issuance.v1beta1.MsgBlockAddressResponse + */ +export class MsgBlockAddressResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgBlockAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBlockAddressResponse { + return new MsgBlockAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBlockAddressResponse { + return new MsgBlockAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBlockAddressResponse { + return new MsgBlockAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBlockAddressResponse | PlainMessage | undefined, b: MsgBlockAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBlockAddressResponse, a, b); + } +} + +/** + * MsgUnblockAddress message type used by the issuer to unblock an address from holding or transferring tokens + * + * @generated from message kava.issuance.v1beta1.MsgUnblockAddress + */ +export class MsgUnblockAddress extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string blocked_address = 3; + */ + blockedAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgUnblockAddress"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "blocked_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnblockAddress { + return new MsgUnblockAddress().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnblockAddress { + return new MsgUnblockAddress().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnblockAddress { + return new MsgUnblockAddress().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnblockAddress | PlainMessage | undefined, b: MsgUnblockAddress | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnblockAddress, a, b); + } +} + +/** + * MsgUnblockAddressResponse defines the Msg/UnblockAddress response type. + * + * @generated from message kava.issuance.v1beta1.MsgUnblockAddressResponse + */ +export class MsgUnblockAddressResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgUnblockAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnblockAddressResponse { + return new MsgUnblockAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnblockAddressResponse { + return new MsgUnblockAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnblockAddressResponse { + return new MsgUnblockAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnblockAddressResponse | PlainMessage | undefined, b: MsgUnblockAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnblockAddressResponse, a, b); + } +} + +/** + * MsgSetPauseStatus message type used by the issuer to pause or unpause status + * + * @generated from message kava.issuance.v1beta1.MsgSetPauseStatus + */ +export class MsgSetPauseStatus extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: bool status = 3; + */ + status = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgSetPauseStatus"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "status", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseStatus { + return new MsgSetPauseStatus().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseStatus { + return new MsgSetPauseStatus().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseStatus { + return new MsgSetPauseStatus().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseStatus | PlainMessage | undefined, b: MsgSetPauseStatus | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseStatus, a, b); + } +} + +/** + * MsgSetPauseStatusResponse defines the Msg/SetPauseStatus response type. + * + * @generated from message kava.issuance.v1beta1.MsgSetPauseStatusResponse + */ +export class MsgSetPauseStatusResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.issuance.v1beta1.MsgSetPauseStatusResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseStatusResponse { + return new MsgSetPauseStatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseStatusResponse { + return new MsgSetPauseStatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseStatusResponse { + return new MsgSetPauseStatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseStatusResponse | PlainMessage | undefined, b: MsgSetPauseStatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseStatusResponse, a, b); + } +} + diff --git a/src/protobufs/kava/kavadist/v1beta1/genesis_pb.ts b/src/protobufs/kava/kavadist/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..4d04cc46 --- /dev/null +++ b/src/protobufs/kava/kavadist/v1beta1/genesis_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/kavadist/v1beta1/genesis.proto (package kava.kavadist.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the kavadist module's genesis state. + * + * @generated from message kava.kavadist.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: kava.kavadist.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: google.protobuf.Timestamp previous_block_time = 2; + */ + previousBlockTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "previous_block_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/kavadist/v1beta1/params_pb.ts b/src/protobufs/kava/kavadist/v1beta1/params_pb.ts new file mode 100644 index 00000000..5ed7bcd0 --- /dev/null +++ b/src/protobufs/kava/kavadist/v1beta1/params_pb.ts @@ -0,0 +1,259 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/kavadist/v1beta1/params.proto (package kava.kavadist.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params governance parameters for kavadist module + * + * @generated from message kava.kavadist.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: repeated kava.kavadist.v1beta1.Period periods = 3; + */ + periods: Period[] = []; + + /** + * @generated from field: kava.kavadist.v1beta1.InfrastructureParams infrastructure_params = 4; + */ + infrastructureParams?: InfrastructureParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "periods", kind: "message", T: Period, repeated: true }, + { no: 4, name: "infrastructure_params", kind: "message", T: InfrastructureParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * InfrastructureParams define the parameters for infrastructure rewards. + * + * @generated from message kava.kavadist.v1beta1.InfrastructureParams + */ +export class InfrastructureParams extends Message { + /** + * @generated from field: repeated kava.kavadist.v1beta1.Period infrastructure_periods = 1; + */ + infrastructurePeriods: Period[] = []; + + /** + * @generated from field: repeated kava.kavadist.v1beta1.CoreReward core_rewards = 2; + */ + coreRewards: CoreReward[] = []; + + /** + * @generated from field: repeated kava.kavadist.v1beta1.PartnerReward partner_rewards = 3; + */ + partnerRewards: PartnerReward[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.InfrastructureParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "infrastructure_periods", kind: "message", T: Period, repeated: true }, + { no: 2, name: "core_rewards", kind: "message", T: CoreReward, repeated: true }, + { no: 3, name: "partner_rewards", kind: "message", T: PartnerReward, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InfrastructureParams { + return new InfrastructureParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InfrastructureParams { + return new InfrastructureParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InfrastructureParams { + return new InfrastructureParams().fromJsonString(jsonString, options); + } + + static equals(a: InfrastructureParams | PlainMessage | undefined, b: InfrastructureParams | PlainMessage | undefined): boolean { + return proto3.util.equals(InfrastructureParams, a, b); + } +} + +/** + * CoreReward defines the reward weights for core infrastructure providers. + * + * @generated from message kava.kavadist.v1beta1.CoreReward + */ +export class CoreReward extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + /** + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.CoreReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CoreReward { + return new CoreReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CoreReward { + return new CoreReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CoreReward { + return new CoreReward().fromJsonString(jsonString, options); + } + + static equals(a: CoreReward | PlainMessage | undefined, b: CoreReward | PlainMessage | undefined): boolean { + return proto3.util.equals(CoreReward, a, b); + } +} + +/** + * PartnerRewards defines the reward schedule for partner infrastructure providers. + * + * @generated from message kava.kavadist.v1beta1.PartnerReward + */ +export class PartnerReward extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + /** + * @generated from field: cosmos.base.v1beta1.Coin rewards_per_second = 2; + */ + rewardsPerSecond?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.PartnerReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "rewards_per_second", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PartnerReward { + return new PartnerReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PartnerReward { + return new PartnerReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PartnerReward { + return new PartnerReward().fromJsonString(jsonString, options); + } + + static equals(a: PartnerReward | PlainMessage | undefined, b: PartnerReward | PlainMessage | undefined): boolean { + return proto3.util.equals(PartnerReward, a, b); + } +} + +/** + * Period stores the specified start and end dates, and the inflation, expressed as a decimal + * representing the yearly APR of KAVA tokens that will be minted during that period + * + * @generated from message kava.kavadist.v1beta1.Period + */ +export class Period extends Message { + /** + * example "2020-03-01T15:20:00Z" + * + * @generated from field: google.protobuf.Timestamp start = 1; + */ + start?: Timestamp; + + /** + * example "2020-06-01T15:20:00Z" + * + * @generated from field: google.protobuf.Timestamp end = 2; + */ + end?: Timestamp; + + /** + * example "1.000000003022265980" - 10% inflation + * + * @generated from field: bytes inflation = 3; + */ + inflation = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.Period"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start", kind: "message", T: Timestamp }, + { no: 2, name: "end", kind: "message", T: Timestamp }, + { no: 3, name: "inflation", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Period { + return new Period().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Period { + return new Period().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Period { + return new Period().fromJsonString(jsonString, options); + } + + static equals(a: Period | PlainMessage | undefined, b: Period | PlainMessage | undefined): boolean { + return proto3.util.equals(Period, a, b); + } +} + diff --git a/src/protobufs/kava/kavadist/v1beta1/proposal_pb.ts b/src/protobufs/kava/kavadist/v1beta1/proposal_pb.ts new file mode 100644 index 00000000..42e886ec --- /dev/null +++ b/src/protobufs/kava/kavadist/v1beta1/proposal_pb.ts @@ -0,0 +1,163 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/kavadist/v1beta1/proposal.proto (package kava.kavadist.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * CommunityPoolMultiSpendProposal spends from the community pool by sending to one or more + * addresses + * + * @generated from message kava.kavadist.v1beta1.CommunityPoolMultiSpendProposal + */ +export class CommunityPoolMultiSpendProposal extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated kava.kavadist.v1beta1.MultiSpendRecipient recipient_list = 3; + */ + recipientList: MultiSpendRecipient[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.CommunityPoolMultiSpendProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "recipient_list", kind: "message", T: MultiSpendRecipient, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolMultiSpendProposal { + return new CommunityPoolMultiSpendProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolMultiSpendProposal { + return new CommunityPoolMultiSpendProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolMultiSpendProposal { + return new CommunityPoolMultiSpendProposal().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolMultiSpendProposal | PlainMessage | undefined, b: CommunityPoolMultiSpendProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolMultiSpendProposal, a, b); + } +} + +/** + * CommunityPoolMultiSpendProposalJSON defines a CommunityPoolMultiSpendProposal with a deposit + * + * @generated from message kava.kavadist.v1beta1.CommunityPoolMultiSpendProposalJSON + */ +export class CommunityPoolMultiSpendProposalJSON extends Message { + /** + * @generated from field: string title = 1; + */ + title = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: repeated kava.kavadist.v1beta1.MultiSpendRecipient recipient_list = 3; + */ + recipientList: MultiSpendRecipient[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin deposit = 4; + */ + deposit: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.CommunityPoolMultiSpendProposalJSON"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "recipient_list", kind: "message", T: MultiSpendRecipient, repeated: true }, + { no: 4, name: "deposit", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolMultiSpendProposalJSON { + return new CommunityPoolMultiSpendProposalJSON().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolMultiSpendProposalJSON { + return new CommunityPoolMultiSpendProposalJSON().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CommunityPoolMultiSpendProposalJSON { + return new CommunityPoolMultiSpendProposalJSON().fromJsonString(jsonString, options); + } + + static equals(a: CommunityPoolMultiSpendProposalJSON | PlainMessage | undefined, b: CommunityPoolMultiSpendProposalJSON | PlainMessage | undefined): boolean { + return proto3.util.equals(CommunityPoolMultiSpendProposalJSON, a, b); + } +} + +/** + * MultiSpendRecipient defines a recipient and the amount of coins they are receiving + * + * @generated from message kava.kavadist.v1beta1.MultiSpendRecipient + */ +export class MultiSpendRecipient extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.MultiSpendRecipient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiSpendRecipient { + return new MultiSpendRecipient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiSpendRecipient { + return new MultiSpendRecipient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiSpendRecipient { + return new MultiSpendRecipient().fromJsonString(jsonString, options); + } + + static equals(a: MultiSpendRecipient | PlainMessage | undefined, b: MultiSpendRecipient | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiSpendRecipient, a, b); + } +} + diff --git a/src/protobufs/kava/kavadist/v1beta1/query_cosmes.ts b/src/protobufs/kava/kavadist/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..079b23bf --- /dev/null +++ b/src/protobufs/kava/kavadist/v1beta1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/kavadist/v1beta1/query.proto (package kava.kavadist.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBalanceRequest, QueryBalanceResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.kavadist.v1beta1.Query"; + +/** + * Params queries the parameters of x/kavadist module. + * + * @generated from rpc kava.kavadist.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Balance queries the balance of all coins of x/kavadist module. + * + * @generated from rpc kava.kavadist.v1beta1.Query.Balance + */ +export const QueryBalanceService = { + typeName: TYPE_NAME, + method: "Balance", + Request: QueryBalanceRequest, + Response: QueryBalanceResponse, +} as const; + diff --git a/src/protobufs/kava/kavadist/v1beta1/query_pb.ts b/src/protobufs/kava/kavadist/v1beta1/query_pb.ts new file mode 100644 index 00000000..f05cf166 --- /dev/null +++ b/src/protobufs/kava/kavadist/v1beta1/query_pb.ts @@ -0,0 +1,154 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/kavadist/v1beta1/query.proto (package kava.kavadist.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/kavadist parameters. + * + * @generated from message kava.kavadist.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/kavadist parameters. + * + * @generated from message kava.kavadist.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.kavadist.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryBalanceRequest defines the request type for querying x/kavadist balance. + * + * @generated from message kava.kavadist.v1beta1.QueryBalanceRequest + */ +export class QueryBalanceRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.QueryBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { + return new QueryBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceRequest, a, b); + } +} + +/** + * QueryBalanceResponse defines the response type for querying x/kavadist balance. + * + * @generated from message kava.kavadist.v1beta1.QueryBalanceResponse + */ +export class QueryBalanceResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.kavadist.v1beta1.QueryBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { + return new QueryBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBalanceResponse, a, b); + } +} + diff --git a/src/protobufs/kava/liquid/v1beta1/query_cosmes.ts b/src/protobufs/kava/liquid/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..96912099 --- /dev/null +++ b/src/protobufs/kava/liquid/v1beta1/query_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/liquid/v1beta1/query.proto (package kava.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDelegatedBalanceRequest, QueryDelegatedBalanceResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.liquid.v1beta1.Query"; + +/** + * DelegatedBalance returns an account's vesting and vested coins currently delegated to validators. + * It ignores coins in unbonding delegations. + * + * @generated from rpc kava.liquid.v1beta1.Query.DelegatedBalance + */ +export const QueryDelegatedBalanceService = { + typeName: TYPE_NAME, + method: "DelegatedBalance", + Request: QueryDelegatedBalanceRequest, + Response: QueryDelegatedBalanceResponse, +} as const; + +/** + * TotalSupply returns the total sum of all coins currently locked into the liquid module. + * + * @generated from rpc kava.liquid.v1beta1.Query.TotalSupply + */ +export const QueryTotalSupplyService = { + typeName: TYPE_NAME, + method: "TotalSupply", + Request: QueryTotalSupplyRequest, + Response: QueryTotalSupplyResponse, +} as const; + diff --git a/src/protobufs/kava/liquid/v1beta1/query_pb.ts b/src/protobufs/kava/liquid/v1beta1/query_pb.ts new file mode 100644 index 00000000..86109194 --- /dev/null +++ b/src/protobufs/kava/liquid/v1beta1/query_pb.ts @@ -0,0 +1,181 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/liquid/v1beta1/query.proto (package kava.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryDelegatedBalanceRequest defines the request type for Query/DelegatedBalance method. + * + * @generated from message kava.liquid.v1beta1.QueryDelegatedBalanceRequest + */ +export class QueryDelegatedBalanceRequest extends Message { + /** + * delegator is the address of the account to query + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.QueryDelegatedBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatedBalanceRequest { + return new QueryDelegatedBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatedBalanceRequest { + return new QueryDelegatedBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatedBalanceRequest { + return new QueryDelegatedBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatedBalanceRequest | PlainMessage | undefined, b: QueryDelegatedBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatedBalanceRequest, a, b); + } +} + +/** + * DelegatedBalanceResponse defines the response type for the Query/DelegatedBalance method. + * + * @generated from message kava.liquid.v1beta1.QueryDelegatedBalanceResponse + */ +export class QueryDelegatedBalanceResponse extends Message { + /** + * vested is the amount of all delegated coins that have vested (ie not locked) + * + * @generated from field: cosmos.base.v1beta1.Coin vested = 1; + */ + vested?: Coin; + + /** + * vesting is the amount of all delegated coins that are still vesting (ie locked) + * + * @generated from field: cosmos.base.v1beta1.Coin vesting = 2; + */ + vesting?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.QueryDelegatedBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vested", kind: "message", T: Coin }, + { no: 2, name: "vesting", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatedBalanceResponse { + return new QueryDelegatedBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatedBalanceResponse { + return new QueryDelegatedBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatedBalanceResponse { + return new QueryDelegatedBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatedBalanceResponse | PlainMessage | undefined, b: QueryDelegatedBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatedBalanceResponse, a, b); + } +} + +/** + * QueryTotalSupplyRequest defines the request type for Query/TotalSupply method. + * + * @generated from message kava.liquid.v1beta1.QueryTotalSupplyRequest + */ +export class QueryTotalSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.QueryTotalSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyRequest, a, b); + } +} + +/** + * TotalSupplyResponse defines the response type for the Query/TotalSupply method. + * + * @generated from message kava.liquid.v1beta1.QueryTotalSupplyResponse + */ +export class QueryTotalSupplyResponse extends Message { + /** + * Height is the block height at which these totals apply + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * Result is a list of coins supplied to liquid + * + * @generated from field: repeated cosmos.base.v1beta1.Coin result = 2; + */ + result: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.QueryTotalSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "result", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyResponse, a, b); + } +} + diff --git a/src/protobufs/kava/liquid/v1beta1/tx_cosmes.ts b/src/protobufs/kava/liquid/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..29f8d116 --- /dev/null +++ b/src/protobufs/kava/liquid/v1beta1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/liquid/v1beta1/tx.proto (package kava.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurnDerivative, MsgBurnDerivativeResponse, MsgMintDerivative, MsgMintDerivativeResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.liquid.v1beta1.Msg"; + +/** + * MintDerivative defines a method for converting a delegation into staking deriviatives. + * + * @generated from rpc kava.liquid.v1beta1.Msg.MintDerivative + */ +export const MsgMintDerivativeService = { + typeName: TYPE_NAME, + method: "MintDerivative", + Request: MsgMintDerivative, + Response: MsgMintDerivativeResponse, +} as const; + +/** + * BurnDerivative defines a method for converting staking deriviatives into a delegation. + * + * @generated from rpc kava.liquid.v1beta1.Msg.BurnDerivative + */ +export const MsgBurnDerivativeService = { + typeName: TYPE_NAME, + method: "BurnDerivative", + Request: MsgBurnDerivative, + Response: MsgBurnDerivativeResponse, +} as const; + diff --git a/src/protobufs/kava/liquid/v1beta1/tx_pb.ts b/src/protobufs/kava/liquid/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a87228b9 --- /dev/null +++ b/src/protobufs/kava/liquid/v1beta1/tx_pb.ts @@ -0,0 +1,205 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/liquid/v1beta1/tx.proto (package kava.liquid.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgMintDerivative defines the Msg/MintDerivative request type. + * + * @generated from message kava.liquid.v1beta1.MsgMintDerivative + */ +export class MsgMintDerivative extends Message { + /** + * sender is the owner of the delegation to be converted + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * validator is the validator of the delegation to be converted + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the quantity of staked assets to be converted + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.MsgMintDerivative"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintDerivative { + return new MsgMintDerivative().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintDerivative { + return new MsgMintDerivative().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintDerivative { + return new MsgMintDerivative().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintDerivative | PlainMessage | undefined, b: MsgMintDerivative | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintDerivative, a, b); + } +} + +/** + * MsgMintDerivativeResponse defines the Msg/MintDerivative response type. + * + * @generated from message kava.liquid.v1beta1.MsgMintDerivativeResponse + */ +export class MsgMintDerivativeResponse extends Message { + /** + * received is the amount of staking derivative minted and sent to the sender + * + * @generated from field: cosmos.base.v1beta1.Coin received = 1; + */ + received?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.MsgMintDerivativeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "received", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintDerivativeResponse { + return new MsgMintDerivativeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintDerivativeResponse { + return new MsgMintDerivativeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintDerivativeResponse { + return new MsgMintDerivativeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintDerivativeResponse | PlainMessage | undefined, b: MsgMintDerivativeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintDerivativeResponse, a, b); + } +} + +/** + * MsgBurnDerivative defines the Msg/BurnDerivative request type. + * + * @generated from message kava.liquid.v1beta1.MsgBurnDerivative + */ +export class MsgBurnDerivative extends Message { + /** + * sender is the owner of the derivatives to be converted + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * validator is the validator of the derivatives to be converted + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the quantity of derivatives to be converted + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.MsgBurnDerivative"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnDerivative { + return new MsgBurnDerivative().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnDerivative { + return new MsgBurnDerivative().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnDerivative { + return new MsgBurnDerivative().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnDerivative | PlainMessage | undefined, b: MsgBurnDerivative | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnDerivative, a, b); + } +} + +/** + * MsgBurnDerivativeResponse defines the Msg/BurnDerivative response type. + * + * @generated from message kava.liquid.v1beta1.MsgBurnDerivativeResponse + */ +export class MsgBurnDerivativeResponse extends Message { + /** + * received is the number of delegation shares sent to the sender + * + * @generated from field: string received = 1; + */ + received = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.liquid.v1beta1.MsgBurnDerivativeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "received", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnDerivativeResponse { + return new MsgBurnDerivativeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnDerivativeResponse { + return new MsgBurnDerivativeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnDerivativeResponse { + return new MsgBurnDerivativeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnDerivativeResponse | PlainMessage | undefined, b: MsgBurnDerivativeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnDerivativeResponse, a, b); + } +} + diff --git a/src/protobufs/kava/precisebank/v1/genesis_pb.ts b/src/protobufs/kava/precisebank/v1/genesis_pb.ts new file mode 100644 index 00000000..f79a23eb --- /dev/null +++ b/src/protobufs/kava/precisebank/v1/genesis_pb.ts @@ -0,0 +1,109 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/precisebank/v1/genesis.proto (package kava.precisebank.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the precisebank module's genesis state. + * + * @generated from message kava.precisebank.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * balances is a list of all the balances in the precisebank module. + * + * @generated from field: repeated kava.precisebank.v1.FractionalBalance balances = 1; + */ + balances: FractionalBalance[] = []; + + /** + * remainder is an internal value of how much extra fractional digits are + * still backed by the reserve, but not assigned to any account. + * + * @generated from field: string remainder = 2; + */ + remainder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balances", kind: "message", T: FractionalBalance, repeated: true }, + { no: 2, name: "remainder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * FractionalBalance defines the fractional portion of an account balance + * + * @generated from message kava.precisebank.v1.FractionalBalance + */ +export class FractionalBalance extends Message { + /** + * address is the address of the balance holder. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * amount indicates amount of only the fractional balance owned by the + * address. FractionalBalance currently only supports tracking 1 single asset, + * e.g. fractional balances of ukava. + * + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.FractionalBalance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FractionalBalance { + return new FractionalBalance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FractionalBalance { + return new FractionalBalance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FractionalBalance { + return new FractionalBalance().fromJsonString(jsonString, options); + } + + static equals(a: FractionalBalance | PlainMessage | undefined, b: FractionalBalance | PlainMessage | undefined): boolean { + return proto3.util.equals(FractionalBalance, a, b); + } +} + diff --git a/src/protobufs/kava/precisebank/v1/query_cosmes.ts b/src/protobufs/kava/precisebank/v1/query_cosmes.ts new file mode 100644 index 00000000..6ff869f4 --- /dev/null +++ b/src/protobufs/kava/precisebank/v1/query_cosmes.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/precisebank/v1/query.proto (package kava.precisebank.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryFractionalBalanceRequest, QueryFractionalBalanceResponse, QueryRemainderRequest, QueryRemainderResponse, QueryTotalFractionalBalancesRequest, QueryTotalFractionalBalancesResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.precisebank.v1.Query"; + +/** + * TotalFractionalBalances returns the total sum of all fractional balances + * managed by the precisebank module. + * + * @generated from rpc kava.precisebank.v1.Query.TotalFractionalBalances + */ +export const QueryTotalFractionalBalancesService = { + typeName: TYPE_NAME, + method: "TotalFractionalBalances", + Request: QueryTotalFractionalBalancesRequest, + Response: QueryTotalFractionalBalancesResponse, +} as const; + +/** + * Remainder returns the amount backed by the reserve, but not yet owned by + * any account, i.e. not in circulation. + * + * @generated from rpc kava.precisebank.v1.Query.Remainder + */ +export const QueryRemainderService = { + typeName: TYPE_NAME, + method: "Remainder", + Request: QueryRemainderRequest, + Response: QueryRemainderResponse, +} as const; + +/** + * FractionalBalance returns only the fractional balance of an address. This + * does not include any integer balance. + * + * @generated from rpc kava.precisebank.v1.Query.FractionalBalance + */ +export const QueryFractionalBalanceService = { + typeName: TYPE_NAME, + method: "FractionalBalance", + Request: QueryFractionalBalanceRequest, + Response: QueryFractionalBalanceResponse, +} as const; + diff --git a/src/protobufs/kava/precisebank/v1/query_pb.ts b/src/protobufs/kava/precisebank/v1/query_pb.ts new file mode 100644 index 00000000..e1b68eff --- /dev/null +++ b/src/protobufs/kava/precisebank/v1/query_pb.ts @@ -0,0 +1,241 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/precisebank/v1/query.proto (package kava.precisebank.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryTotalFractionalBalancesRequest defines the request type for Query/TotalFractionalBalances method. + * + * @generated from message kava.precisebank.v1.QueryTotalFractionalBalancesRequest + */ +export class QueryTotalFractionalBalancesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryTotalFractionalBalancesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalFractionalBalancesRequest { + return new QueryTotalFractionalBalancesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalFractionalBalancesRequest { + return new QueryTotalFractionalBalancesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalFractionalBalancesRequest { + return new QueryTotalFractionalBalancesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalFractionalBalancesRequest | PlainMessage | undefined, b: QueryTotalFractionalBalancesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalFractionalBalancesRequest, a, b); + } +} + +/** + * QueryTotalFractionalBalancesResponse defines the response type for Query/TotalFractionalBalances method. + * + * @generated from message kava.precisebank.v1.QueryTotalFractionalBalancesResponse + */ +export class QueryTotalFractionalBalancesResponse extends Message { + /** + * total is the total sum of all fractional balances managed by the precisebank + * module. + * + * @generated from field: cosmos.base.v1beta1.Coin total = 1; + */ + total?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryTotalFractionalBalancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalFractionalBalancesResponse { + return new QueryTotalFractionalBalancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalFractionalBalancesResponse { + return new QueryTotalFractionalBalancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalFractionalBalancesResponse { + return new QueryTotalFractionalBalancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalFractionalBalancesResponse | PlainMessage | undefined, b: QueryTotalFractionalBalancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalFractionalBalancesResponse, a, b); + } +} + +/** + * QueryRemainderRequest defines the request type for Query/Remainder method. + * + * @generated from message kava.precisebank.v1.QueryRemainderRequest + */ +export class QueryRemainderRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryRemainderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRemainderRequest { + return new QueryRemainderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRemainderRequest { + return new QueryRemainderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRemainderRequest { + return new QueryRemainderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRemainderRequest | PlainMessage | undefined, b: QueryRemainderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRemainderRequest, a, b); + } +} + +/** + * QueryRemainderResponse defines the response type for Query/Remainder method. + * + * @generated from message kava.precisebank.v1.QueryRemainderResponse + */ +export class QueryRemainderResponse extends Message { + /** + * remainder is the amount backed by the reserve, but not yet owned by any + * account, i.e. not in circulation. + * + * @generated from field: cosmos.base.v1beta1.Coin remainder = 1; + */ + remainder?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryRemainderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "remainder", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRemainderResponse { + return new QueryRemainderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRemainderResponse { + return new QueryRemainderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRemainderResponse { + return new QueryRemainderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRemainderResponse | PlainMessage | undefined, b: QueryRemainderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRemainderResponse, a, b); + } +} + +/** + * QueryFractionalBalanceRequest defines the request type for Query/FractionalBalance method. + * + * @generated from message kava.precisebank.v1.QueryFractionalBalanceRequest + */ +export class QueryFractionalBalanceRequest extends Message { + /** + * address is the account address to query fractional balance for. + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryFractionalBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFractionalBalanceRequest { + return new QueryFractionalBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFractionalBalanceRequest { + return new QueryFractionalBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFractionalBalanceRequest { + return new QueryFractionalBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFractionalBalanceRequest | PlainMessage | undefined, b: QueryFractionalBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFractionalBalanceRequest, a, b); + } +} + +/** + * QueryFractionalBalanceResponse defines the response type for Query/FractionalBalance method. + * + * @generated from message kava.precisebank.v1.QueryFractionalBalanceResponse + */ +export class QueryFractionalBalanceResponse extends Message { + /** + * fractional_balance is the fractional balance of the address. + * + * @generated from field: cosmos.base.v1beta1.Coin fractional_balance = 1; + */ + fractionalBalance?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.precisebank.v1.QueryFractionalBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fractional_balance", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFractionalBalanceResponse { + return new QueryFractionalBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFractionalBalanceResponse { + return new QueryFractionalBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFractionalBalanceResponse { + return new QueryFractionalBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFractionalBalanceResponse | PlainMessage | undefined, b: QueryFractionalBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFractionalBalanceResponse, a, b); + } +} + diff --git a/src/protobufs/kava/pricefeed/v1beta1/genesis_pb.ts b/src/protobufs/kava/pricefeed/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..aa068f6a --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/genesis_pb.ts @@ -0,0 +1,56 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/genesis.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params, PostedPrice } from "./store_pb.js"; + +/** + * GenesisState defines the pricefeed module's genesis state. + * + * @generated from message kava.pricefeed.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: kava.pricefeed.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated kava.pricefeed.v1beta1.PostedPrice posted_prices = 2; + */ + postedPrices: PostedPrice[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "posted_prices", kind: "message", T: PostedPrice, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/pricefeed/v1beta1/query_cosmes.ts b/src/protobufs/kava/pricefeed/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..ba21e71f --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/query_cosmes.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/query.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryMarketsRequest, QueryMarketsResponse, QueryOraclesRequest, QueryOraclesResponse, QueryParamsRequest, QueryParamsResponse, QueryPriceRequest, QueryPriceResponse, QueryPricesRequest, QueryPricesResponse, QueryRawPricesRequest, QueryRawPricesResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.pricefeed.v1beta1.Query"; + +/** + * Params queries all parameters of the pricefeed module. + * + * @generated from rpc kava.pricefeed.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Price queries price details based on a market + * + * @generated from rpc kava.pricefeed.v1beta1.Query.Price + */ +export const QueryPriceService = { + typeName: TYPE_NAME, + method: "Price", + Request: QueryPriceRequest, + Response: QueryPriceResponse, +} as const; + +/** + * Prices queries all prices + * + * @generated from rpc kava.pricefeed.v1beta1.Query.Prices + */ +export const QueryPricesService = { + typeName: TYPE_NAME, + method: "Prices", + Request: QueryPricesRequest, + Response: QueryPricesResponse, +} as const; + +/** + * RawPrices queries all raw prices based on a market + * + * @generated from rpc kava.pricefeed.v1beta1.Query.RawPrices + */ +export const QueryRawPricesService = { + typeName: TYPE_NAME, + method: "RawPrices", + Request: QueryRawPricesRequest, + Response: QueryRawPricesResponse, +} as const; + +/** + * Oracles queries all oracles based on a market + * + * @generated from rpc kava.pricefeed.v1beta1.Query.Oracles + */ +export const QueryOraclesService = { + typeName: TYPE_NAME, + method: "Oracles", + Request: QueryOraclesRequest, + Response: QueryOraclesResponse, +} as const; + +/** + * Markets queries all markets + * + * @generated from rpc kava.pricefeed.v1beta1.Query.Markets + */ +export const QueryMarketsService = { + typeName: TYPE_NAME, + method: "Markets", + Request: QueryMarketsRequest, + Response: QueryMarketsResponse, +} as const; + diff --git a/src/protobufs/kava/pricefeed/v1beta1/query_pb.ts b/src/protobufs/kava/pricefeed/v1beta1/query_pb.ts new file mode 100644 index 00000000..50b0151b --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/query_pb.ts @@ -0,0 +1,632 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/query.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./store_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/pricefeed + * parameters. + * + * @generated from message kava.pricefeed.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/pricefeed + * parameters. + * + * @generated from message kava.pricefeed.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.pricefeed.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryPriceRequest is the request type for the Query/PriceRequest RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryPriceRequest + */ +export class QueryPriceRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPriceRequest { + return new QueryPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPriceRequest { + return new QueryPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPriceRequest { + return new QueryPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPriceRequest | PlainMessage | undefined, b: QueryPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPriceRequest, a, b); + } +} + +/** + * QueryPriceResponse is the response type for the Query/Prices RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryPriceResponse + */ +export class QueryPriceResponse extends Message { + /** + * @generated from field: kava.pricefeed.v1beta1.CurrentPriceResponse price = 1; + */ + price?: CurrentPriceResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price", kind: "message", T: CurrentPriceResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPriceResponse { + return new QueryPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPriceResponse { + return new QueryPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPriceResponse { + return new QueryPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPriceResponse | PlainMessage | undefined, b: QueryPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPriceResponse, a, b); + } +} + +/** + * QueryPricesRequest is the request type for the Query/Prices RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryPricesRequest + */ +export class QueryPricesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryPricesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPricesRequest { + return new QueryPricesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPricesRequest { + return new QueryPricesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPricesRequest { + return new QueryPricesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPricesRequest | PlainMessage | undefined, b: QueryPricesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPricesRequest, a, b); + } +} + +/** + * QueryPricesResponse is the response type for the Query/Prices RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryPricesResponse + */ +export class QueryPricesResponse extends Message { + /** + * @generated from field: repeated kava.pricefeed.v1beta1.CurrentPriceResponse prices = 1; + */ + prices: CurrentPriceResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryPricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "prices", kind: "message", T: CurrentPriceResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPricesResponse { + return new QueryPricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPricesResponse { + return new QueryPricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPricesResponse { + return new QueryPricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPricesResponse | PlainMessage | undefined, b: QueryPricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPricesResponse, a, b); + } +} + +/** + * QueryRawPricesRequest is the request type for the Query/RawPrices RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryRawPricesRequest + */ +export class QueryRawPricesRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryRawPricesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawPricesRequest { + return new QueryRawPricesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawPricesRequest { + return new QueryRawPricesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawPricesRequest { + return new QueryRawPricesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawPricesRequest | PlainMessage | undefined, b: QueryRawPricesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawPricesRequest, a, b); + } +} + +/** + * QueryRawPricesResponse is the response type for the Query/RawPrices RPC + * method. + * + * @generated from message kava.pricefeed.v1beta1.QueryRawPricesResponse + */ +export class QueryRawPricesResponse extends Message { + /** + * @generated from field: repeated kava.pricefeed.v1beta1.PostedPriceResponse raw_prices = 1; + */ + rawPrices: PostedPriceResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryRawPricesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "raw_prices", kind: "message", T: PostedPriceResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawPricesResponse { + return new QueryRawPricesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawPricesResponse { + return new QueryRawPricesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRawPricesResponse { + return new QueryRawPricesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRawPricesResponse | PlainMessage | undefined, b: QueryRawPricesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRawPricesResponse, a, b); + } +} + +/** + * QueryOraclesRequest is the request type for the Query/Oracles RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryOraclesRequest + */ +export class QueryOraclesRequest extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryOraclesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOraclesRequest { + return new QueryOraclesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOraclesRequest { + return new QueryOraclesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOraclesRequest { + return new QueryOraclesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOraclesRequest | PlainMessage | undefined, b: QueryOraclesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOraclesRequest, a, b); + } +} + +/** + * QueryOraclesResponse is the response type for the Query/Oracles RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryOraclesResponse + */ +export class QueryOraclesResponse extends Message { + /** + * List of oracle addresses + * + * @generated from field: repeated string oracles = 1; + */ + oracles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryOraclesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "oracles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOraclesResponse { + return new QueryOraclesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOraclesResponse { + return new QueryOraclesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOraclesResponse { + return new QueryOraclesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOraclesResponse | PlainMessage | undefined, b: QueryOraclesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOraclesResponse, a, b); + } +} + +/** + * QueryMarketsRequest is the request type for the Query/Markets RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryMarketsRequest + */ +export class QueryMarketsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryMarketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketsRequest { + return new QueryMarketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketsRequest { + return new QueryMarketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketsRequest { + return new QueryMarketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketsRequest | PlainMessage | undefined, b: QueryMarketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketsRequest, a, b); + } +} + +/** + * QueryMarketsResponse is the response type for the Query/Markets RPC method. + * + * @generated from message kava.pricefeed.v1beta1.QueryMarketsResponse + */ +export class QueryMarketsResponse extends Message { + /** + * List of markets + * + * @generated from field: repeated kava.pricefeed.v1beta1.MarketResponse markets = 1; + */ + markets: MarketResponse[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.QueryMarketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: MarketResponse, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMarketsResponse { + return new QueryMarketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMarketsResponse { + return new QueryMarketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMarketsResponse { + return new QueryMarketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMarketsResponse | PlainMessage | undefined, b: QueryMarketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMarketsResponse, a, b); + } +} + +/** + * PostedPriceResponse defines a price for market posted by a specific oracle. + * + * @generated from message kava.pricefeed.v1beta1.PostedPriceResponse + */ +export class PostedPriceResponse extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string oracle_address = 2; + */ + oracleAddress = ""; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: google.protobuf.Timestamp expiry = 4; + */ + expiry?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.PostedPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expiry", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PostedPriceResponse { + return new PostedPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PostedPriceResponse { + return new PostedPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PostedPriceResponse { + return new PostedPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: PostedPriceResponse | PlainMessage | undefined, b: PostedPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PostedPriceResponse, a, b); + } +} + +/** + * CurrentPriceResponse defines a current price for a particular market in the pricefeed + * module. + * + * @generated from message kava.pricefeed.v1beta1.CurrentPriceResponse + */ +export class CurrentPriceResponse extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.CurrentPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CurrentPriceResponse { + return new CurrentPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CurrentPriceResponse { + return new CurrentPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CurrentPriceResponse { + return new CurrentPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: CurrentPriceResponse | PlainMessage | undefined, b: CurrentPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CurrentPriceResponse, a, b); + } +} + +/** + * MarketResponse defines an asset in the pricefeed. + * + * @generated from message kava.pricefeed.v1beta1.MarketResponse + */ +export class MarketResponse extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string base_asset = 2; + */ + baseAsset = ""; + + /** + * @generated from field: string quote_asset = 3; + */ + quoteAsset = ""; + + /** + * @generated from field: repeated string oracles = 4; + */ + oracles: string[] = []; + + /** + * @generated from field: bool active = 5; + */ + active = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.MarketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MarketResponse { + return new MarketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MarketResponse { + return new MarketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MarketResponse { + return new MarketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MarketResponse | PlainMessage | undefined, b: MarketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MarketResponse, a, b); + } +} + diff --git a/src/protobufs/kava/pricefeed/v1beta1/store_pb.ts b/src/protobufs/kava/pricefeed/v1beta1/store_pb.ts new file mode 100644 index 00000000..ec645615 --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/store_pb.ts @@ -0,0 +1,213 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/store.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the pricefeed module. + * + * @generated from message kava.pricefeed.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated kava.pricefeed.v1beta1.Market markets = 1; + */ + markets: Market[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "markets", kind: "message", T: Market, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Market defines an asset in the pricefeed. + * + * @generated from message kava.pricefeed.v1beta1.Market + */ +export class Market extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string base_asset = 2; + */ + baseAsset = ""; + + /** + * @generated from field: string quote_asset = 3; + */ + quoteAsset = ""; + + /** + * @generated from field: repeated bytes oracles = 4; + */ + oracles: Uint8Array[] = []; + + /** + * @generated from field: bool active = 5; + */ + active = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.Market"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "oracles", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 5, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Market { + return new Market().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Market { + return new Market().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Market { + return new Market().fromJsonString(jsonString, options); + } + + static equals(a: Market | PlainMessage | undefined, b: Market | PlainMessage | undefined): boolean { + return proto3.util.equals(Market, a, b); + } +} + +/** + * PostedPrice defines a price for market posted by a specific oracle. + * + * @generated from message kava.pricefeed.v1beta1.PostedPrice + */ +export class PostedPrice extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: bytes oracle_address = 2; + */ + oracleAddress = new Uint8Array(0); + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: google.protobuf.Timestamp expiry = 4; + */ + expiry?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.PostedPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expiry", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PostedPrice { + return new PostedPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PostedPrice { + return new PostedPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PostedPrice { + return new PostedPrice().fromJsonString(jsonString, options); + } + + static equals(a: PostedPrice | PlainMessage | undefined, b: PostedPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(PostedPrice, a, b); + } +} + +/** + * CurrentPrice defines a current price for a particular market in the pricefeed + * module. + * + * @generated from message kava.pricefeed.v1beta1.CurrentPrice + */ +export class CurrentPrice extends Message { + /** + * @generated from field: string market_id = 1; + */ + marketId = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.CurrentPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CurrentPrice { + return new CurrentPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CurrentPrice { + return new CurrentPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CurrentPrice { + return new CurrentPrice().fromJsonString(jsonString, options); + } + + static equals(a: CurrentPrice | PlainMessage | undefined, b: CurrentPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(CurrentPrice, a, b); + } +} + diff --git a/src/protobufs/kava/pricefeed/v1beta1/tx_cosmes.ts b/src/protobufs/kava/pricefeed/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..d96b5b75 --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/tx.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgPostPrice, MsgPostPriceResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.pricefeed.v1beta1.Msg"; + +/** + * PostPrice defines a method for creating a new post price + * + * @generated from rpc kava.pricefeed.v1beta1.Msg.PostPrice + */ +export const MsgPostPriceService = { + typeName: TYPE_NAME, + method: "PostPrice", + Request: MsgPostPrice, + Response: MsgPostPriceResponse, +} as const; + diff --git a/src/protobufs/kava/pricefeed/v1beta1/tx_pb.ts b/src/protobufs/kava/pricefeed/v1beta1/tx_pb.ts new file mode 100644 index 00000000..4a059af7 --- /dev/null +++ b/src/protobufs/kava/pricefeed/v1beta1/tx_pb.ts @@ -0,0 +1,100 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/pricefeed/v1beta1/tx.proto (package kava.pricefeed.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * MsgPostPrice represents a method for creating a new post price + * + * @generated from message kava.pricefeed.v1beta1.MsgPostPrice + */ +export class MsgPostPrice extends Message { + /** + * address of client + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * @generated from field: string market_id = 2; + */ + marketId = ""; + + /** + * @generated from field: string price = 3; + */ + price = ""; + + /** + * @generated from field: google.protobuf.Timestamp expiry = 4; + */ + expiry?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.MsgPostPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expiry", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPostPrice { + return new MsgPostPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPostPrice { + return new MsgPostPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPostPrice { + return new MsgPostPrice().fromJsonString(jsonString, options); + } + + static equals(a: MsgPostPrice | PlainMessage | undefined, b: MsgPostPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPostPrice, a, b); + } +} + +/** + * MsgPostPriceResponse defines the Msg/PostPrice response type. + * + * @generated from message kava.pricefeed.v1beta1.MsgPostPriceResponse + */ +export class MsgPostPriceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.pricefeed.v1beta1.MsgPostPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPostPriceResponse { + return new MsgPostPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPostPriceResponse { + return new MsgPostPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPostPriceResponse { + return new MsgPostPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPostPriceResponse | PlainMessage | undefined, b: MsgPostPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPostPriceResponse, a, b); + } +} + diff --git a/src/protobufs/kava/router/v1beta1/tx_cosmes.ts b/src/protobufs/kava/router/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..71fe36c9 --- /dev/null +++ b/src/protobufs/kava/router/v1beta1/tx_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/router/v1beta1/tx.proto (package kava.router.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDelegateMintDeposit, MsgDelegateMintDepositResponse, MsgMintDeposit, MsgMintDepositResponse, MsgWithdrawBurn, MsgWithdrawBurnResponse, MsgWithdrawBurnUndelegate, MsgWithdrawBurnUndelegateResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.router.v1beta1.Msg"; + +/** + * MintDeposit converts a delegation into staking derivatives and deposits it all into an earn vault. + * + * @generated from rpc kava.router.v1beta1.Msg.MintDeposit + */ +export const MsgMintDepositService = { + typeName: TYPE_NAME, + method: "MintDeposit", + Request: MsgMintDeposit, + Response: MsgMintDepositResponse, +} as const; + +/** + * DelegateMintDeposit delegates tokens to a validator, then converts them into staking derivatives, + * then deposits to an earn vault. + * + * @generated from rpc kava.router.v1beta1.Msg.DelegateMintDeposit + */ +export const MsgDelegateMintDepositService = { + typeName: TYPE_NAME, + method: "DelegateMintDeposit", + Request: MsgDelegateMintDeposit, + Response: MsgDelegateMintDepositResponse, +} as const; + +/** + * WithdrawBurn removes staking derivatives from an earn vault and converts them back to a staking delegation. + * + * @generated from rpc kava.router.v1beta1.Msg.WithdrawBurn + */ +export const MsgWithdrawBurnService = { + typeName: TYPE_NAME, + method: "WithdrawBurn", + Request: MsgWithdrawBurn, + Response: MsgWithdrawBurnResponse, +} as const; + +/** + * WithdrawBurnUndelegate removes staking derivatives from an earn vault, converts them to a staking delegation, + * then undelegates them from their validator. + * + * @generated from rpc kava.router.v1beta1.Msg.WithdrawBurnUndelegate + */ +export const MsgWithdrawBurnUndelegateService = { + typeName: TYPE_NAME, + method: "WithdrawBurnUndelegate", + Request: MsgWithdrawBurnUndelegate, + Response: MsgWithdrawBurnUndelegateResponse, +} as const; + diff --git a/src/protobufs/kava/router/v1beta1/tx_pb.ts b/src/protobufs/kava/router/v1beta1/tx_pb.ts new file mode 100644 index 00000000..e5a51e58 --- /dev/null +++ b/src/protobufs/kava/router/v1beta1/tx_pb.ts @@ -0,0 +1,371 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/router/v1beta1/tx.proto (package kava.router.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgMintDeposit converts a delegation into staking derivatives and deposits it all into an earn vault. + * + * @generated from message kava.router.v1beta1.MsgMintDeposit + */ +export class MsgMintDeposit extends Message { + /** + * depositor represents the owner of the delegation to convert + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * validator is the validator for the depositor's delegation + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the delegation balance to convert + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgMintDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintDeposit { + return new MsgMintDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintDeposit { + return new MsgMintDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintDeposit { + return new MsgMintDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintDeposit | PlainMessage | undefined, b: MsgMintDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintDeposit, a, b); + } +} + +/** + * MsgMintDepositResponse defines the Msg/MsgMintDeposit response type. + * + * @generated from message kava.router.v1beta1.MsgMintDepositResponse + */ +export class MsgMintDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgMintDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintDepositResponse { + return new MsgMintDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintDepositResponse { + return new MsgMintDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintDepositResponse { + return new MsgMintDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintDepositResponse | PlainMessage | undefined, b: MsgMintDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintDepositResponse, a, b); + } +} + +/** + * MsgDelegateMintDeposit delegates tokens to a validator, then converts them into staking derivatives, + * then deposits to an earn vault. + * + * @generated from message kava.router.v1beta1.MsgDelegateMintDeposit + */ +export class MsgDelegateMintDeposit extends Message { + /** + * depositor represents the owner of the tokens to delegate + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * validator is the address of the validator to delegate to + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the tokens to delegate + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgDelegateMintDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateMintDeposit { + return new MsgDelegateMintDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateMintDeposit { + return new MsgDelegateMintDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateMintDeposit { + return new MsgDelegateMintDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateMintDeposit | PlainMessage | undefined, b: MsgDelegateMintDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateMintDeposit, a, b); + } +} + +/** + * MsgDelegateMintDepositResponse defines the Msg/MsgDelegateMintDeposit response type. + * + * @generated from message kava.router.v1beta1.MsgDelegateMintDepositResponse + */ +export class MsgDelegateMintDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgDelegateMintDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateMintDepositResponse { + return new MsgDelegateMintDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateMintDepositResponse { + return new MsgDelegateMintDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateMintDepositResponse { + return new MsgDelegateMintDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateMintDepositResponse | PlainMessage | undefined, b: MsgDelegateMintDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateMintDepositResponse, a, b); + } +} + +/** + * MsgWithdrawBurn removes staking derivatives from an earn vault and converts them back to a staking delegation. + * + * @generated from message kava.router.v1beta1.MsgWithdrawBurn + */ +export class MsgWithdrawBurn extends Message { + /** + * from is the owner of the earn vault to withdraw from + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * validator is the address to select the derivative denom to withdraw + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the staked token equivalent to withdraw + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgWithdrawBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawBurn { + return new MsgWithdrawBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawBurn { + return new MsgWithdrawBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawBurn { + return new MsgWithdrawBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawBurn | PlainMessage | undefined, b: MsgWithdrawBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawBurn, a, b); + } +} + +/** + * MsgWithdrawBurnResponse defines the Msg/MsgWithdrawBurn response type. + * + * @generated from message kava.router.v1beta1.MsgWithdrawBurnResponse + */ +export class MsgWithdrawBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgWithdrawBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawBurnResponse { + return new MsgWithdrawBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawBurnResponse { + return new MsgWithdrawBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawBurnResponse { + return new MsgWithdrawBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawBurnResponse | PlainMessage | undefined, b: MsgWithdrawBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawBurnResponse, a, b); + } +} + +/** + * MsgWithdrawBurnUndelegate removes staking derivatives from an earn vault, converts them to a staking delegation, + * then undelegates them from their validator. + * + * @generated from message kava.router.v1beta1.MsgWithdrawBurnUndelegate + */ +export class MsgWithdrawBurnUndelegate extends Message { + /** + * from is the owner of the earn vault to withdraw from + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * validator is the address to select the derivative denom to withdraw + * + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * amount is the staked token equivalent to withdraw + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgWithdrawBurnUndelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawBurnUndelegate { + return new MsgWithdrawBurnUndelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawBurnUndelegate { + return new MsgWithdrawBurnUndelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawBurnUndelegate { + return new MsgWithdrawBurnUndelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawBurnUndelegate | PlainMessage | undefined, b: MsgWithdrawBurnUndelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawBurnUndelegate, a, b); + } +} + +/** + * MsgWithdrawBurnUndelegateResponse defines the Msg/MsgWithdrawBurnUndelegate response type. + * + * @generated from message kava.router.v1beta1.MsgWithdrawBurnUndelegateResponse + */ +export class MsgWithdrawBurnUndelegateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.router.v1beta1.MsgWithdrawBurnUndelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawBurnUndelegateResponse { + return new MsgWithdrawBurnUndelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawBurnUndelegateResponse { + return new MsgWithdrawBurnUndelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawBurnUndelegateResponse { + return new MsgWithdrawBurnUndelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawBurnUndelegateResponse | PlainMessage | undefined, b: MsgWithdrawBurnUndelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawBurnUndelegateResponse, a, b); + } +} + diff --git a/src/protobufs/dymension/lockup/genesis_pb.ts b/src/protobufs/kava/savings/v1beta1/genesis_pb.ts similarity index 62% rename from src/protobufs/dymension/lockup/genesis_pb.ts rename to src/protobufs/kava/savings/v1beta1/genesis_pb.ts index 61a65d0b..9ee07d49 100644 --- a/src/protobufs/dymension/lockup/genesis_pb.ts +++ b/src/protobufs/kava/savings/v1beta1/genesis_pb.ts @@ -1,27 +1,29 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/genesis.proto (package dymensionxyz.dymension.lockup, syntax proto3) +// @generated from file kava/savings/v1beta1/genesis.proto (package kava.savings.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PeriodLock } from "./lock_pb.js"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Deposit, Params } from "./store_pb.js"; /** - * GenesisState defines the lockup module's genesis state. + * GenesisState defines the savings module's genesis state. * - * @generated from message dymensionxyz.dymension.lockup.GenesisState + * @generated from message kava.savings.v1beta1.GenesisState */ export class GenesisState extends Message { /** - * @generated from field: uint64 last_lock_id = 1; + * params defines all the parameters of the module. + * + * @generated from field: kava.savings.v1beta1.Params params = 1; */ - lastLockId = protoInt64.zero; + params?: Params; /** - * @generated from field: repeated dymensionxyz.dymension.lockup.PeriodLock locks = 2; + * @generated from field: repeated kava.savings.v1beta1.Deposit deposits = 2; */ - locks: PeriodLock[] = []; + deposits: Deposit[] = []; constructor(data?: PartialMessage) { super(); @@ -29,10 +31,10 @@ export class GenesisState extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.lockup.GenesisState"; + static readonly typeName = "kava.savings.v1beta1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "last_lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "locks", kind: "message", T: PeriodLock, repeated: true }, + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/kava/savings/v1beta1/query_cosmes.ts b/src/protobufs/kava/savings/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..edd50462 --- /dev/null +++ b/src/protobufs/kava/savings/v1beta1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/savings/v1beta1/query.proto (package kava.savings.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.savings.v1beta1.Query"; + +/** + * Params queries all parameters of the savings module. + * + * @generated from rpc kava.savings.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Deposits queries savings deposits. + * + * @generated from rpc kava.savings.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + +/** + * TotalSupply returns the total sum of all coins currently locked into the savings module. + * + * @generated from rpc kava.savings.v1beta1.Query.TotalSupply + */ +export const QueryTotalSupplyService = { + typeName: TYPE_NAME, + method: "TotalSupply", + Request: QueryTotalSupplyRequest, + Response: QueryTotalSupplyResponse, +} as const; + diff --git a/src/protobufs/kava/savings/v1beta1/query_pb.ts b/src/protobufs/kava/savings/v1beta1/query_pb.ts new file mode 100644 index 00000000..57f64c29 --- /dev/null +++ b/src/protobufs/kava/savings/v1beta1/query_pb.ts @@ -0,0 +1,265 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/savings/v1beta1/query.proto (package kava.savings.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Deposit, Params } from "./store_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/savings + * parameters. + * + * @generated from message kava.savings.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/savings + * parameters. + * + * @generated from message kava.savings.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: kava.savings.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDepositsRequest defines the request type for querying x/savings + * deposits. + * + * @generated from message kava.savings.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse defines the response type for querying x/savings + * deposits. + * + * @generated from message kava.savings.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * @generated from field: repeated kava.savings.v1beta1.Deposit deposits = 1; + */ + deposits: Deposit[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * QueryTotalSupplyRequest defines the request type for Query/TotalSupply method. + * + * @generated from message kava.savings.v1beta1.QueryTotalSupplyRequest + */ +export class QueryTotalSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryTotalSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyRequest, a, b); + } +} + +/** + * TotalSupplyResponse defines the response type for the Query/TotalSupply method. + * + * @generated from message kava.savings.v1beta1.QueryTotalSupplyResponse + */ +export class QueryTotalSupplyResponse extends Message { + /** + * Height is the block height at which these totals apply + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * Result is a list of coins supplied to savings + * + * @generated from field: repeated cosmos.base.v1beta1.Coin result = 2; + */ + result: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.QueryTotalSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "result", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyResponse, a, b); + } +} + diff --git a/src/protobufs/kava/savings/v1beta1/store_pb.ts b/src/protobufs/kava/savings/v1beta1/store_pb.ts new file mode 100644 index 00000000..fb9934ec --- /dev/null +++ b/src/protobufs/kava/savings/v1beta1/store_pb.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/savings/v1beta1/store.proto (package kava.savings.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the savings module. + * + * @generated from message kava.savings.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated string supported_denoms = 1; + */ + supportedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "supported_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Deposit defines an amount of coins deposited into a savings module account. + * + * @generated from message kava.savings.v1beta1.Deposit + */ +export class Deposit extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.Deposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { + return new Deposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { + return new Deposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Deposit { + return new Deposit().fromJsonString(jsonString, options); + } + + static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { + return proto3.util.equals(Deposit, a, b); + } +} + diff --git a/src/protobufs/kava/savings/v1beta1/tx_cosmes.ts b/src/protobufs/kava/savings/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..3ae02b65 --- /dev/null +++ b/src/protobufs/kava/savings/v1beta1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/savings/v1beta1/tx.proto (package kava.savings.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeposit, MsgDepositResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.savings.v1beta1.Msg"; + +/** + * Deposit defines a method for depositing funds to the savings module account + * + * @generated from rpc kava.savings.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing funds to the savings module account + * + * @generated from rpc kava.savings.v1beta1.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + diff --git a/src/protobufs/kava/savings/v1beta1/tx_pb.ts b/src/protobufs/kava/savings/v1beta1/tx_pb.ts new file mode 100644 index 00000000..7490b88a --- /dev/null +++ b/src/protobufs/kava/savings/v1beta1/tx_pb.ts @@ -0,0 +1,165 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/savings/v1beta1/tx.proto (package kava.savings.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgDeposit defines the Msg/Deposit request type. + * + * @generated from message kava.savings.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message kava.savings.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw defines the Msg/Withdraw request type. + * + * @generated from message kava.savings.v1beta1.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the Msg/Withdraw response type. + * + * @generated from message kava.savings.v1beta1.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.savings.v1beta1.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + diff --git a/src/protobufs/kava/swap/v1beta1/genesis_pb.ts b/src/protobufs/kava/swap/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..cd6c058d --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/genesis_pb.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/genesis.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params, PoolRecord, ShareRecord } from "./swap_pb.js"; + +/** + * GenesisState defines the swap module's genesis state. + * + * @generated from message kava.swap.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters related to swap + * + * @generated from field: kava.swap.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * pool_records defines the available pools + * + * @generated from field: repeated kava.swap.v1beta1.PoolRecord pool_records = 2; + */ + poolRecords: PoolRecord[] = []; + + /** + * share_records defines the owned shares of each pool + * + * @generated from field: repeated kava.swap.v1beta1.ShareRecord share_records = 3; + */ + shareRecords: ShareRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_records", kind: "message", T: PoolRecord, repeated: true }, + { no: 3, name: "share_records", kind: "message", T: ShareRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/kava/swap/v1beta1/query_cosmes.ts b/src/protobufs/kava/swap/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..eea98021 --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/query.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolsRequest, QueryPoolsResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.swap.v1beta1.Query"; + +/** + * Params queries all parameters of the swap module. + * + * @generated from rpc kava.swap.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Pools queries pools based on pool ID + * + * @generated from rpc kava.swap.v1beta1.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryPoolsRequest, + Response: QueryPoolsResponse, +} as const; + +/** + * Deposits queries deposit details based on owner address and pool + * + * @generated from rpc kava.swap.v1beta1.Query.Deposits + */ +export const QueryDepositsService = { + typeName: TYPE_NAME, + method: "Deposits", + Request: QueryDepositsRequest, + Response: QueryDepositsResponse, +} as const; + diff --git a/src/protobufs/kava/swap/v1beta1/query_pb.ts b/src/protobufs/kava/swap/v1beta1/query_pb.ts new file mode 100644 index 00000000..6bdd5bfd --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/query_pb.ts @@ -0,0 +1,411 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/query.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./swap_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest defines the request type for querying x/swap parameters. + * + * @generated from message kava.swap.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse defines the response type for querying x/swap parameters. + * + * @generated from message kava.swap.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params represents the swap module parameters + * + * @generated from field: kava.swap.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryPoolsRequest is the request type for the Query/Pools RPC method. + * + * @generated from message kava.swap.v1beta1.QueryPoolsRequest + */ +export class QueryPoolsRequest extends Message { + /** + * pool_id filters pools by id + * + * @generated from field: string pool_id = 1; + */ + poolId = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsRequest | PlainMessage | undefined, b: QueryPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsRequest, a, b); + } +} + +/** + * QueryPoolsResponse is the response type for the Query/Pools RPC method. + * + * @generated from message kava.swap.v1beta1.QueryPoolsResponse + */ +export class QueryPoolsResponse extends Message { + /** + * pools represents returned pools + * + * @generated from field: repeated kava.swap.v1beta1.PoolResponse pools = 1; + */ + pools: PoolResponse[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: PoolResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsResponse, a, b); + } +} + +/** + * Pool represents the state of a single pool + * + * @generated from message kava.swap.v1beta1.PoolResponse + */ +export class PoolResponse extends Message { + /** + * name represents the name of the pool + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * coins represents the total reserves of the pool + * + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; + */ + coins: Coin[] = []; + + /** + * total_shares represents the total shares of the pool + * + * @generated from field: string total_shares = 3; + */ + totalShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.PoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolResponse { + return new PoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolResponse { + return new PoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolResponse { + return new PoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: PoolResponse | PlainMessage | undefined, b: PoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolResponse, a, b); + } +} + +/** + * QueryDepositsRequest is the request type for the Query/Deposits RPC method. + * + * @generated from message kava.swap.v1beta1.QueryDepositsRequest + */ +export class QueryDepositsRequest extends Message { + /** + * owner optionally filters deposits by owner + * + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * pool_id optionally fitlers deposits by pool id + * + * @generated from field: string pool_id = 2; + */ + poolId = ""; + + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { + return new QueryDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsRequest, a, b); + } +} + +/** + * QueryDepositsResponse is the response type for the Query/Deposits RPC method. + * + * @generated from message kava.swap.v1beta1.QueryDepositsResponse + */ +export class QueryDepositsResponse extends Message { + /** + * deposits returns the deposits matching the requested parameters + * + * @generated from field: repeated kava.swap.v1beta1.DepositResponse deposits = 1; + */ + deposits: DepositResponse[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.QueryDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: DepositResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { + return new QueryDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDepositsResponse, a, b); + } +} + +/** + * DepositResponse defines a single deposit query response type. + * + * @generated from message kava.swap.v1beta1.DepositResponse + */ +export class DepositResponse extends Message { + /** + * depositor represents the owner of the deposit + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * pool_id represents the pool the deposit is for + * + * @generated from field: string pool_id = 2; + */ + poolId = ""; + + /** + * shares_owned presents the shares owned by the depositor for the pool + * + * @generated from field: string shares_owned = 3; + */ + sharesOwned = ""; + + /** + * shares_value represents the coin value of the shares_owned + * + * @generated from field: repeated cosmos.base.v1beta1.Coin shares_value = 4; + */ + sharesValue: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.DepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares_owned", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "shares_value", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositResponse { + return new DepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositResponse { + return new DepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositResponse { + return new DepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: DepositResponse | PlainMessage | undefined, b: DepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositResponse, a, b); + } +} + diff --git a/src/protobufs/kava/swap/v1beta1/swap_pb.ts b/src/protobufs/kava/swap/v1beta1/swap_pb.ts new file mode 100644 index 00000000..eeb79cd5 --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/swap_pb.ts @@ -0,0 +1,230 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/swap.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the swap module. + * + * @generated from message kava.swap.v1beta1.Params + */ +export class Params extends Message { + /** + * allowed_pools defines that pools that are allowed to be created + * + * @generated from field: repeated kava.swap.v1beta1.AllowedPool allowed_pools = 1; + */ + allowedPools: AllowedPool[] = []; + + /** + * swap_fee defines the swap fee for all pools + * + * @generated from field: string swap_fee = 2; + */ + swapFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_pools", kind: "message", T: AllowedPool, repeated: true }, + { no: 2, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * AllowedPool defines a pool that is allowed to be created + * + * @generated from message kava.swap.v1beta1.AllowedPool + */ +export class AllowedPool extends Message { + /** + * token_a represents the a token allowed + * + * @generated from field: string token_a = 1; + */ + tokenA = ""; + + /** + * token_b represents the b token allowed + * + * @generated from field: string token_b = 2; + */ + tokenB = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.AllowedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_a", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_b", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllowedPool { + return new AllowedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllowedPool { + return new AllowedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllowedPool { + return new AllowedPool().fromJsonString(jsonString, options); + } + + static equals(a: AllowedPool | PlainMessage | undefined, b: AllowedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(AllowedPool, a, b); + } +} + +/** + * PoolRecord represents the state of a liquidity pool + * and is used to store the state of a denominated pool + * + * @generated from message kava.swap.v1beta1.PoolRecord + */ +export class PoolRecord extends Message { + /** + * pool_id represents the unique id of the pool + * + * @generated from field: string pool_id = 1; + */ + poolId = ""; + + /** + * reserves_a is the a token coin reserves + * + * @generated from field: cosmos.base.v1beta1.Coin reserves_a = 2; + */ + reservesA?: Coin; + + /** + * reserves_b is the a token coin reserves + * + * @generated from field: cosmos.base.v1beta1.Coin reserves_b = 3; + */ + reservesB?: Coin; + + /** + * total_shares is the total distrubuted shares of the pool + * + * @generated from field: string total_shares = 4; + */ + totalShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.PoolRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reserves_a", kind: "message", T: Coin }, + { no: 3, name: "reserves_b", kind: "message", T: Coin }, + { no: 4, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRecord { + return new PoolRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRecord { + return new PoolRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRecord { + return new PoolRecord().fromJsonString(jsonString, options); + } + + static equals(a: PoolRecord | PlainMessage | undefined, b: PoolRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRecord, a, b); + } +} + +/** + * ShareRecord stores the shares owned for a depositor and pool + * + * @generated from message kava.swap.v1beta1.ShareRecord + */ +export class ShareRecord extends Message { + /** + * depositor represents the owner of the shares + * + * @generated from field: bytes depositor = 1; + */ + depositor = new Uint8Array(0); + + /** + * pool_id represents the pool the shares belong to + * + * @generated from field: string pool_id = 2; + */ + poolId = ""; + + /** + * shares_owned represents the number of shares owned by depsoitor for the pool_id + * + * @generated from field: string shares_owned = 3; + */ + sharesOwned = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.ShareRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares_owned", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ShareRecord { + return new ShareRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ShareRecord { + return new ShareRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ShareRecord { + return new ShareRecord().fromJsonString(jsonString, options); + } + + static equals(a: ShareRecord | PlainMessage | undefined, b: ShareRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(ShareRecord, a, b); + } +} + diff --git a/src/protobufs/kava/swap/v1beta1/tx_cosmes.ts b/src/protobufs/kava/swap/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..119df3b3 --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/tx_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/tx.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeposit, MsgDepositResponse, MsgSwapExactForTokens, MsgSwapExactForTokensResponse, MsgSwapForExactTokens, MsgSwapForExactTokensResponse, MsgWithdraw, MsgWithdrawResponse } from "./tx_pb.js"; + +const TYPE_NAME = "kava.swap.v1beta1.Msg"; + +/** + * Deposit defines a method for depositing liquidity into a pool + * + * @generated from rpc kava.swap.v1beta1.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * Withdraw defines a method for withdrawing liquidity into a pool + * + * @generated from rpc kava.swap.v1beta1.Msg.Withdraw + */ +export const MsgWithdrawService = { + typeName: TYPE_NAME, + method: "Withdraw", + Request: MsgWithdraw, + Response: MsgWithdrawResponse, +} as const; + +/** + * SwapExactForTokens represents a message for trading exact coinA for coinB + * + * @generated from rpc kava.swap.v1beta1.Msg.SwapExactForTokens + */ +export const MsgSwapExactForTokensService = { + typeName: TYPE_NAME, + method: "SwapExactForTokens", + Request: MsgSwapExactForTokens, + Response: MsgSwapExactForTokensResponse, +} as const; + +/** + * SwapForExactTokens represents a message for trading coinA for an exact coinB + * + * @generated from rpc kava.swap.v1beta1.Msg.SwapForExactTokens + */ +export const MsgSwapForExactTokensService = { + typeName: TYPE_NAME, + method: "SwapForExactTokens", + Request: MsgSwapForExactTokens, + Response: MsgSwapForExactTokensResponse, +} as const; + diff --git a/src/protobufs/kava/swap/v1beta1/tx_pb.ts b/src/protobufs/kava/swap/v1beta1/tx_pb.ts new file mode 100644 index 00000000..c5a3760b --- /dev/null +++ b/src/protobufs/kava/swap/v1beta1/tx_pb.ts @@ -0,0 +1,436 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/swap/v1beta1/tx.proto (package kava.swap.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgDeposit represents a message for depositing liquidity into a pool + * + * @generated from message kava.swap.v1beta1.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * depositor represents the address to deposit funds from + * + * @generated from field: string depositor = 1; + */ + depositor = ""; + + /** + * token_a represents one token of deposit pair + * + * @generated from field: cosmos.base.v1beta1.Coin token_a = 2; + */ + tokenA?: Coin; + + /** + * token_b represents one token of deposit pair + * + * @generated from field: cosmos.base.v1beta1.Coin token_b = 3; + */ + tokenB?: Coin; + + /** + * slippage represents the max decimal percentage price change + * + * @generated from field: string slippage = 4; + */ + slippage = ""; + + /** + * deadline represents the unix timestamp to complete the deposit by + * + * @generated from field: int64 deadline = 5; + */ + deadline = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_a", kind: "message", T: Coin }, + { no: 3, name: "token_b", kind: "message", T: Coin }, + { no: 4, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * MsgDepositResponse defines the Msg/Deposit response type. + * + * @generated from message kava.swap.v1beta1.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * MsgWithdraw represents a message for withdrawing liquidity from a pool + * + * @generated from message kava.swap.v1beta1.MsgWithdraw + */ +export class MsgWithdraw extends Message { + /** + * from represents the address we are withdrawing for + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * shares represents the amount of shares to withdraw + * + * @generated from field: string shares = 2; + */ + shares = ""; + + /** + * min_token_a represents the minimum a token to withdraw + * + * @generated from field: cosmos.base.v1beta1.Coin min_token_a = 3; + */ + minTokenA?: Coin; + + /** + * min_token_a represents the minimum a token to withdraw + * + * @generated from field: cosmos.base.v1beta1.Coin min_token_b = 4; + */ + minTokenB?: Coin; + + /** + * deadline represents the unix timestamp to complete the withdraw by + * + * @generated from field: int64 deadline = 5; + */ + deadline = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgWithdraw"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "min_token_a", kind: "message", T: Coin }, + { no: 4, name: "min_token_b", kind: "message", T: Coin }, + { no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdraw { + return new MsgWithdraw().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdraw | PlainMessage | undefined, b: MsgWithdraw | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdraw, a, b); + } +} + +/** + * MsgWithdrawResponse defines the Msg/Withdraw response type. + * + * @generated from message kava.swap.v1beta1.MsgWithdrawResponse + */ +export class MsgWithdrawResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgWithdrawResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawResponse { + return new MsgWithdrawResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawResponse | PlainMessage | undefined, b: MsgWithdrawResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawResponse, a, b); + } +} + +/** + * MsgSwapExactForTokens represents a message for trading exact coinA for coinB + * + * @generated from message kava.swap.v1beta1.MsgSwapExactForTokens + */ +export class MsgSwapExactForTokens extends Message { + /** + * represents the address swaping the tokens + * + * @generated from field: string requester = 1; + */ + requester = ""; + + /** + * exact_token_a represents the exact amount to swap for token_b + * + * @generated from field: cosmos.base.v1beta1.Coin exact_token_a = 2; + */ + exactTokenA?: Coin; + + /** + * token_b represents the desired token_b to swap for + * + * @generated from field: cosmos.base.v1beta1.Coin token_b = 3; + */ + tokenB?: Coin; + + /** + * slippage represents the maximum change in token_b allowed + * + * @generated from field: string slippage = 4; + */ + slippage = ""; + + /** + * deadline represents the unix timestamp to complete the swap by + * + * @generated from field: int64 deadline = 5; + */ + deadline = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgSwapExactForTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "requester", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "exact_token_a", kind: "message", T: Coin }, + { no: 3, name: "token_b", kind: "message", T: Coin }, + { no: 4, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactForTokens { + return new MsgSwapExactForTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactForTokens { + return new MsgSwapExactForTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactForTokens { + return new MsgSwapExactForTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactForTokens | PlainMessage | undefined, b: MsgSwapExactForTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactForTokens, a, b); + } +} + +/** + * MsgSwapExactForTokensResponse defines the Msg/SwapExactForTokens response + * type. + * + * @generated from message kava.swap.v1beta1.MsgSwapExactForTokensResponse + */ +export class MsgSwapExactForTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgSwapExactForTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactForTokensResponse { + return new MsgSwapExactForTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactForTokensResponse { + return new MsgSwapExactForTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactForTokensResponse { + return new MsgSwapExactForTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactForTokensResponse | PlainMessage | undefined, b: MsgSwapExactForTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactForTokensResponse, a, b); + } +} + +/** + * MsgSwapForExactTokens represents a message for trading coinA for an exact + * coinB + * + * @generated from message kava.swap.v1beta1.MsgSwapForExactTokens + */ +export class MsgSwapForExactTokens extends Message { + /** + * represents the address swaping the tokens + * + * @generated from field: string requester = 1; + */ + requester = ""; + + /** + * token_a represents the desired token_a to swap for + * + * @generated from field: cosmos.base.v1beta1.Coin token_a = 2; + */ + tokenA?: Coin; + + /** + * exact_token_b represents the exact token b amount to swap for token a + * + * @generated from field: cosmos.base.v1beta1.Coin exact_token_b = 3; + */ + exactTokenB?: Coin; + + /** + * slippage represents the maximum change in token_a allowed + * + * @generated from field: string slippage = 4; + */ + slippage = ""; + + /** + * deadline represents the unix timestamp to complete the swap by + * + * @generated from field: int64 deadline = 5; + */ + deadline = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgSwapForExactTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "requester", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_a", kind: "message", T: Coin }, + { no: 3, name: "exact_token_b", kind: "message", T: Coin }, + { no: 4, name: "slippage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapForExactTokens { + return new MsgSwapForExactTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapForExactTokens { + return new MsgSwapForExactTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapForExactTokens { + return new MsgSwapForExactTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapForExactTokens | PlainMessage | undefined, b: MsgSwapForExactTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapForExactTokens, a, b); + } +} + +/** + * MsgSwapForExactTokensResponse defines the Msg/SwapForExactTokensResponse + * response type. + * + * @generated from message kava.swap.v1beta1.MsgSwapForExactTokensResponse + */ +export class MsgSwapForExactTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.swap.v1beta1.MsgSwapForExactTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapForExactTokensResponse { + return new MsgSwapForExactTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapForExactTokensResponse { + return new MsgSwapForExactTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapForExactTokensResponse { + return new MsgSwapForExactTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapForExactTokensResponse | PlainMessage | undefined, b: MsgSwapForExactTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapForExactTokensResponse, a, b); + } +} + diff --git a/src/protobufs/kava/validatorvesting/v1beta1/query_cosmes.ts b/src/protobufs/kava/validatorvesting/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..4f198db5 --- /dev/null +++ b/src/protobufs/kava/validatorvesting/v1beta1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file kava/validatorvesting/v1beta1/query.proto (package kava.validatorvesting.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCirculatingSupplyHARDRequest, QueryCirculatingSupplyHARDResponse, QueryCirculatingSupplyRequest, QueryCirculatingSupplyResponse, QueryCirculatingSupplySWPRequest, QueryCirculatingSupplySWPResponse, QueryCirculatingSupplyUSDXRequest, QueryCirculatingSupplyUSDXResponse, QueryTotalSupplyHARDRequest, QueryTotalSupplyHARDResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QueryTotalSupplyUSDXRequest, QueryTotalSupplyUSDXResponse } from "./query_pb.js"; + +const TYPE_NAME = "kava.validatorvesting.v1beta1.Query"; + +/** + * CirculatingSupply returns the total amount of kava tokens in circulation + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.CirculatingSupply + */ +export const QueryCirculatingSupplyService = { + typeName: TYPE_NAME, + method: "CirculatingSupply", + Request: QueryCirculatingSupplyRequest, + Response: QueryCirculatingSupplyResponse, +} as const; + +/** + * TotalSupply returns the total amount of kava tokens + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.TotalSupply + */ +export const QueryTotalSupplyService = { + typeName: TYPE_NAME, + method: "TotalSupply", + Request: QueryTotalSupplyRequest, + Response: QueryTotalSupplyResponse, +} as const; + +/** + * CirculatingSupplyHARD returns the total amount of hard tokens in circulation + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.CirculatingSupplyHARD + */ +export const QueryCirculatingSupplyHARDService = { + typeName: TYPE_NAME, + method: "CirculatingSupplyHARD", + Request: QueryCirculatingSupplyHARDRequest, + Response: QueryCirculatingSupplyHARDResponse, +} as const; + +/** + * CirculatingSupplyUSDX returns the total amount of usdx tokens in circulation + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.CirculatingSupplyUSDX + */ +export const QueryCirculatingSupplyUSDXService = { + typeName: TYPE_NAME, + method: "CirculatingSupplyUSDX", + Request: QueryCirculatingSupplyUSDXRequest, + Response: QueryCirculatingSupplyUSDXResponse, +} as const; + +/** + * CirculatingSupplySWP returns the total amount of swp tokens in circulation + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.CirculatingSupplySWP + */ +export const QueryCirculatingSupplySWPService = { + typeName: TYPE_NAME, + method: "CirculatingSupplySWP", + Request: QueryCirculatingSupplySWPRequest, + Response: QueryCirculatingSupplySWPResponse, +} as const; + +/** + * TotalSupplyHARD returns the total amount of hard tokens + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.TotalSupplyHARD + */ +export const QueryTotalSupplyHARDService = { + typeName: TYPE_NAME, + method: "TotalSupplyHARD", + Request: QueryTotalSupplyHARDRequest, + Response: QueryTotalSupplyHARDResponse, +} as const; + +/** + * TotalSupplyUSDX returns the total amount of usdx tokens + * + * @generated from rpc kava.validatorvesting.v1beta1.Query.TotalSupplyUSDX + */ +export const QueryTotalSupplyUSDXService = { + typeName: TYPE_NAME, + method: "TotalSupplyUSDX", + Request: QueryTotalSupplyUSDXRequest, + Response: QueryTotalSupplyUSDXResponse, +} as const; + diff --git a/src/protobufs/kava/validatorvesting/v1beta1/query_pb.ts b/src/protobufs/kava/validatorvesting/v1beta1/query_pb.ts new file mode 100644 index 00000000..310e9a7f --- /dev/null +++ b/src/protobufs/kava/validatorvesting/v1beta1/query_pb.ts @@ -0,0 +1,512 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file kava/validatorvesting/v1beta1/query.proto (package kava.validatorvesting.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * QueryCirculatingSupplyRequest is the request type for the Query/CirculatingSupply RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyRequest + */ +export class QueryCirculatingSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyRequest | PlainMessage | undefined, b: QueryCirculatingSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyRequest, a, b); + } +} + +/** + * QueryCirculatingSupplyResponse is the response type for the Query/CirculatingSupply RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyResponse + */ +export class QueryCirculatingSupplyResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyResponse | PlainMessage | undefined, b: QueryCirculatingSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyResponse, a, b); + } +} + +/** + * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyRequest + */ +export class QueryTotalSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { + return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyRequest, a, b); + } +} + +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyResponse + */ +export class QueryTotalSupplyResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { + return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyResponse, a, b); + } +} + +/** + * QueryCirculatingSupplyHARDRequest is the request type for the Query/CirculatingSupplyHARD RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyHARDRequest + */ +export class QueryCirculatingSupplyHARDRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyHARDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyHARDRequest { + return new QueryCirculatingSupplyHARDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyHARDRequest { + return new QueryCirculatingSupplyHARDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyHARDRequest { + return new QueryCirculatingSupplyHARDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyHARDRequest | PlainMessage | undefined, b: QueryCirculatingSupplyHARDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyHARDRequest, a, b); + } +} + +/** + * QueryCirculatingSupplyHARDResponse is the response type for the Query/CirculatingSupplyHARD RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyHARDResponse + */ +export class QueryCirculatingSupplyHARDResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyHARDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyHARDResponse { + return new QueryCirculatingSupplyHARDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyHARDResponse { + return new QueryCirculatingSupplyHARDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyHARDResponse { + return new QueryCirculatingSupplyHARDResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyHARDResponse | PlainMessage | undefined, b: QueryCirculatingSupplyHARDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyHARDResponse, a, b); + } +} + +/** + * QueryCirculatingSupplyUSDXRequest is the request type for the Query/CirculatingSupplyUSDX RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyUSDXRequest + */ +export class QueryCirculatingSupplyUSDXRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyUSDXRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyUSDXRequest { + return new QueryCirculatingSupplyUSDXRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyUSDXRequest { + return new QueryCirculatingSupplyUSDXRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyUSDXRequest { + return new QueryCirculatingSupplyUSDXRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyUSDXRequest | PlainMessage | undefined, b: QueryCirculatingSupplyUSDXRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyUSDXRequest, a, b); + } +} + +/** + * QueryCirculatingSupplyUSDXResponse is the response type for the Query/CirculatingSupplyUSDX RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplyUSDXResponse + */ +export class QueryCirculatingSupplyUSDXResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplyUSDXResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyUSDXResponse { + return new QueryCirculatingSupplyUSDXResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyUSDXResponse { + return new QueryCirculatingSupplyUSDXResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyUSDXResponse { + return new QueryCirculatingSupplyUSDXResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyUSDXResponse | PlainMessage | undefined, b: QueryCirculatingSupplyUSDXResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyUSDXResponse, a, b); + } +} + +/** + * QueryCirculatingSupplySWPRequest is the request type for the Query/CirculatingSupplySWP RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplySWPRequest + */ +export class QueryCirculatingSupplySWPRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplySWPRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplySWPRequest { + return new QueryCirculatingSupplySWPRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplySWPRequest { + return new QueryCirculatingSupplySWPRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplySWPRequest { + return new QueryCirculatingSupplySWPRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplySWPRequest | PlainMessage | undefined, b: QueryCirculatingSupplySWPRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplySWPRequest, a, b); + } +} + +/** + * QueryCirculatingSupplySWPResponse is the response type for the Query/CirculatingSupplySWP RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryCirculatingSupplySWPResponse + */ +export class QueryCirculatingSupplySWPResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryCirculatingSupplySWPResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplySWPResponse { + return new QueryCirculatingSupplySWPResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplySWPResponse { + return new QueryCirculatingSupplySWPResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplySWPResponse { + return new QueryCirculatingSupplySWPResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplySWPResponse | PlainMessage | undefined, b: QueryCirculatingSupplySWPResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplySWPResponse, a, b); + } +} + +/** + * QueryTotalSupplyHARDRequest is the request type for the Query/TotalSupplyHARD RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyHARDRequest + */ +export class QueryTotalSupplyHARDRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyHARDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyHARDRequest { + return new QueryTotalSupplyHARDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyHARDRequest { + return new QueryTotalSupplyHARDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyHARDRequest { + return new QueryTotalSupplyHARDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyHARDRequest | PlainMessage | undefined, b: QueryTotalSupplyHARDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyHARDRequest, a, b); + } +} + +/** + * QueryTotalSupplyHARDResponse is the response type for the Query/TotalSupplyHARD RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyHARDResponse + */ +export class QueryTotalSupplyHARDResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyHARDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyHARDResponse { + return new QueryTotalSupplyHARDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyHARDResponse { + return new QueryTotalSupplyHARDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyHARDResponse { + return new QueryTotalSupplyHARDResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyHARDResponse | PlainMessage | undefined, b: QueryTotalSupplyHARDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyHARDResponse, a, b); + } +} + +/** + * QueryTotalSupplyUSDXRequest is the request type for the Query/TotalSupplyUSDX RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyUSDXRequest + */ +export class QueryTotalSupplyUSDXRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyUSDXRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyUSDXRequest { + return new QueryTotalSupplyUSDXRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyUSDXRequest { + return new QueryTotalSupplyUSDXRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyUSDXRequest { + return new QueryTotalSupplyUSDXRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyUSDXRequest | PlainMessage | undefined, b: QueryTotalSupplyUSDXRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyUSDXRequest, a, b); + } +} + +/** + * QueryTotalSupplyUSDXResponse is the response type for the Query/TotalSupplyUSDX RPC method + * + * @generated from message kava.validatorvesting.v1beta1.QueryTotalSupplyUSDXResponse + */ +export class QueryTotalSupplyUSDXResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kava.validatorvesting.v1beta1.QueryTotalSupplyUSDXResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyUSDXResponse { + return new QueryTotalSupplyUSDXResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyUSDXResponse { + return new QueryTotalSupplyUSDXResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyUSDXResponse { + return new QueryTotalSupplyUSDXResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalSupplyUSDXResponse | PlainMessage | undefined, b: QueryTotalSupplyUSDXResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalSupplyUSDXResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/assets/v1/genesis_pb.ts b/src/protobufs/milkyway/assets/v1/genesis_pb.ts new file mode 100644 index 00000000..d243c91e --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/assets/v1/genesis.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Asset } from "./models_pb.js"; + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message milkyway.assets.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Assets defines the registered assets. + * + * @generated from field: repeated milkyway.assets.v1.Asset assets = 1; + */ + assets: Asset[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assets", kind: "message", T: Asset, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/assets/v1/messages_cosmes.ts b/src/protobufs/milkyway/assets/v1/messages_cosmes.ts new file mode 100644 index 00000000..500f0167 --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/messages_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/assets/v1/messages.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeregisterAsset, MsgDeregisterAssetResponse, MsgRegisterAsset, MsgRegisterAssetResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.assets.v1.Msg"; + +/** + * RegisterAsset defines the operation for registering an asset. + * + * @generated from rpc milkyway.assets.v1.Msg.RegisterAsset + */ +export const MsgRegisterAssetService = { + typeName: TYPE_NAME, + method: "RegisterAsset", + Request: MsgRegisterAsset, + Response: MsgRegisterAssetResponse, +} as const; + +/** + * DeregisterAsset defines the operation for de-registering an asset with + * its denomination. + * + * @generated from rpc milkyway.assets.v1.Msg.DeregisterAsset + */ +export const MsgDeregisterAssetService = { + typeName: TYPE_NAME, + method: "DeregisterAsset", + Request: MsgDeregisterAsset, + Response: MsgDeregisterAssetResponse, +} as const; + diff --git a/src/protobufs/milkyway/assets/v1/messages_pb.ts b/src/protobufs/milkyway/assets/v1/messages_pb.ts new file mode 100644 index 00000000..de461df5 --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/messages_pb.ts @@ -0,0 +1,178 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/assets/v1/messages.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Asset } from "./models_pb.js"; + +/** + * MsgRegisterAsset defines the message structure for the RegisterAsset + * gRPC service method. It allows the authority to register an asset. + * + * @generated from message milkyway.assets.v1.MsgRegisterAsset + */ +export class MsgRegisterAsset extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Asset represents the asset to be registered. + * + * @generated from field: milkyway.assets.v1.Asset asset = 2; + */ + asset?: Asset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.MsgRegisterAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "message", T: Asset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterAsset | PlainMessage | undefined, b: MsgRegisterAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterAsset, a, b); + } +} + +/** + * MsgRegisterAssetResponse is the return value of MsgRegisterAsset. + * + * @generated from message milkyway.assets.v1.MsgRegisterAssetResponse + */ +export class MsgRegisterAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.MsgRegisterAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterAssetResponse | PlainMessage | undefined, b: MsgRegisterAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterAssetResponse, a, b); + } +} + +/** + * MsgDeregisterAsset defines the message structure for the DeregisterAsset + * gRPC service method. It allows the authority to de-register an asset with + * the token denomination. + * + * @generated from message milkyway.assets.v1.MsgDeregisterAsset + */ +export class MsgDeregisterAsset extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Denom represents the denomination of the token associated with the asset. + * + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.MsgDeregisterAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeregisterAsset { + return new MsgDeregisterAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeregisterAsset { + return new MsgDeregisterAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeregisterAsset { + return new MsgDeregisterAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeregisterAsset | PlainMessage | undefined, b: MsgDeregisterAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeregisterAsset, a, b); + } +} + +/** + * MsgRegisterAssetResponse is the return value of MsgDeregisterAsset. + * + * @generated from message milkyway.assets.v1.MsgDeregisterAssetResponse + */ +export class MsgDeregisterAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.MsgDeregisterAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeregisterAssetResponse { + return new MsgDeregisterAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeregisterAssetResponse { + return new MsgDeregisterAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeregisterAssetResponse { + return new MsgDeregisterAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeregisterAssetResponse | PlainMessage | undefined, b: MsgDeregisterAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeregisterAssetResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/assets/v1/models_pb.ts b/src/protobufs/milkyway/assets/v1/models_pb.ts new file mode 100644 index 00000000..33ef37da --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/models_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/assets/v1/models.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Asset represents an asset that can be registered on the chain. + * + * @generated from message milkyway.assets.v1.Asset + */ +export class Asset extends Message { + /** + * Denom is the denomination of the asset. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * Ticker is the ticker of the asset. + * + * @generated from field: string ticker = 2; + */ + ticker = ""; + + /** + * Exponent represents power of 10 exponent that one must + * raise the denom to in order to equal the given ticker. + * 1 ticker = 10^exponent denom + * + * @generated from field: uint32 exponent = 3; + */ + exponent = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.Asset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "exponent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Asset { + return new Asset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Asset { + return new Asset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Asset { + return new Asset().fromJsonString(jsonString, options); + } + + static equals(a: Asset | PlainMessage | undefined, b: Asset | PlainMessage | undefined): boolean { + return proto3.util.equals(Asset, a, b); + } +} + diff --git a/src/protobufs/milkyway/assets/v1/query_cosmes.ts b/src/protobufs/milkyway/assets/v1/query_cosmes.ts new file mode 100644 index 00000000..16c75f76 --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/query_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/assets/v1/query.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAssetRequest, QueryAssetResponse, QueryAssetsRequest, QueryAssetsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.assets.v1.Query"; + +/** + * Assets defined a gRPC query method that returns all assets registered. + * + * @generated from rpc milkyway.assets.v1.Query.Assets + */ +export const QueryAssetsService = { + typeName: TYPE_NAME, + method: "Assets", + Request: QueryAssetsRequest, + Response: QueryAssetsResponse, +} as const; + +/** + * Asset defines a gRPC query method that returns the asset associated with + * the given token denomination. + * + * @generated from rpc milkyway.assets.v1.Query.Asset + */ +export const QueryAssetService = { + typeName: TYPE_NAME, + method: "Asset", + Request: QueryAssetRequest, + Response: QueryAssetResponse, +} as const; + diff --git a/src/protobufs/milkyway/assets/v1/query_pb.ts b/src/protobufs/milkyway/assets/v1/query_pb.ts new file mode 100644 index 00000000..f8e45c9b --- /dev/null +++ b/src/protobufs/milkyway/assets/v1/query_pb.ts @@ -0,0 +1,191 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/assets/v1/query.proto (package milkyway.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Asset } from "./models_pb.js"; + +/** + * QueryAssetsRequest is the request type for the Query/Assets RPC method. + * + * @generated from message milkyway.assets.v1.QueryAssetsRequest + */ +export class QueryAssetsRequest extends Message { + /** + * Ticker defines an optional filter parameter to query assets with the given + * ticker. + * + * @generated from field: string ticker = 1; + */ + ticker = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.QueryAssetsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ticker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetsRequest { + return new QueryAssetsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetsRequest { + return new QueryAssetsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetsRequest { + return new QueryAssetsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetsRequest | PlainMessage | undefined, b: QueryAssetsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetsRequest, a, b); + } +} + +/** + * QueryAssetsResponse is the response type for the Query/Assets RPC method. + * + * @generated from message milkyway.assets.v1.QueryAssetsResponse + */ +export class QueryAssetsResponse extends Message { + /** + * Assets represents all the assets registered. + * + * @generated from field: repeated milkyway.assets.v1.Asset assets = 1; + */ + assets: Asset[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.QueryAssetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assets", kind: "message", T: Asset, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetsResponse { + return new QueryAssetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetsResponse { + return new QueryAssetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetsResponse { + return new QueryAssetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetsResponse | PlainMessage | undefined, b: QueryAssetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetsResponse, a, b); + } +} + +/** + * QueryAssetRequest is the request type for the Query/Asset RPC method. + * + * @generated from message milkyway.assets.v1.QueryAssetRequest + */ +export class QueryAssetRequest extends Message { + /** + * Denom is the token denomination for which the ticker is to be queried. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.QueryAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetRequest { + return new QueryAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetRequest { + return new QueryAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetRequest { + return new QueryAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetRequest | PlainMessage | undefined, b: QueryAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetRequest, a, b); + } +} + +/** + * QueryAssetResponse is the response type for the Query/Asset RPC method. + * + * @generated from message milkyway.assets.v1.QueryAssetResponse + */ +export class QueryAssetResponse extends Message { + /** + * Asset is the asset associated with the token denomination. + * + * @generated from field: milkyway.assets.v1.Asset asset = 1; + */ + asset?: Asset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.assets.v1.QueryAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "message", T: Asset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetResponse { + return new QueryAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetResponse { + return new QueryAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetResponse { + return new QueryAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAssetResponse | PlainMessage | undefined, b: QueryAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAssetResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/investors/v1/genesis_pb.ts b/src/protobufs/milkyway/investors/v1/genesis_pb.ts new file mode 100644 index 00000000..d6a6c371 --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/genesis_pb.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/investors/v1/genesis.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState defines the investors module's genesis state. + * + * @generated from message milkyway.investors.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * InvestorsRewardRatio defines the proportion of staking rewards allocated to + * vesting investors relative to normal users. For example, if the ratio is 0.3, + * then the investors would receive 30% of the staking rewards. The rest of the + * rewards would be sent to the community pool. + * + * @generated from field: string investors_reward_ratio = 1; + */ + investorsRewardRatio = ""; + + /** + * VestingInvestorsAddresses defines the list of investor addresses that are + * still in their vesting period and will receive rewards based on the + * InvestorsRewardRatio. + * + * @generated from field: repeated string vesting_investors_addresses = 2; + */ + vestingInvestorsAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "investors_reward_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_investors_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/investors/v1/messages_cosmes.ts b/src/protobufs/milkyway/investors/v1/messages_cosmes.ts new file mode 100644 index 00000000..0f66ef6d --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/messages_cosmes.ts @@ -0,0 +1,36 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/investors/v1/messages.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddVestingInvestor, MsgAddVestingInvestorResponse, MsgUpdateInvestorsRewardRatio, MsgUpdateInvestorsRewardRatioResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.investors.v1.Msg"; + +/** + * AddVestingInvestor defines a (governance) operation for adding a new + * vesting investor. The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.investors.v1.Msg.AddVestingInvestor + */ +export const MsgAddVestingInvestorService = { + typeName: TYPE_NAME, + method: "AddVestingInvestor", + Request: MsgAddVestingInvestor, + Response: MsgAddVestingInvestorResponse, +} as const; + +/** + * UpdateInvestorsRewardRatio defines a (governance) operation for updating + * the investors reward ratio. The authority defaults to the x/gov module + * account. + * + * @generated from rpc milkyway.investors.v1.Msg.UpdateInvestorsRewardRatio + */ +export const MsgUpdateInvestorsRewardRatioService = { + typeName: TYPE_NAME, + method: "UpdateInvestorsRewardRatio", + Request: MsgUpdateInvestorsRewardRatio, + Response: MsgUpdateInvestorsRewardRatioResponse, +} as const; + diff --git a/src/protobufs/milkyway/investors/v1/messages_pb.ts b/src/protobufs/milkyway/investors/v1/messages_pb.ts new file mode 100644 index 00000000..100d2b05 --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/messages_pb.ts @@ -0,0 +1,180 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/investors/v1/messages.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MsgAddVestingInvestor defines the message structure for the + * AddVestingInvestor gRPC service method. It allows the authority to add a + * new vesting investor. + * + * @generated from message milkyway.investors.v1.MsgAddVestingInvestor + */ +export class MsgAddVestingInvestor extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * VestingInvestor defines the vesting investor address to be added. + * + * @generated from field: string vesting_investor = 2; + */ + vestingInvestor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.MsgAddVestingInvestor"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vesting_investor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddVestingInvestor { + return new MsgAddVestingInvestor().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddVestingInvestor { + return new MsgAddVestingInvestor().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddVestingInvestor { + return new MsgAddVestingInvestor().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddVestingInvestor | PlainMessage | undefined, b: MsgAddVestingInvestor | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddVestingInvestor, a, b); + } +} + +/** + * MsgAddVestingInvestorResponse is the return value of MsgAddVestingInvestor. + * + * @generated from message milkyway.investors.v1.MsgAddVestingInvestorResponse + */ +export class MsgAddVestingInvestorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.MsgAddVestingInvestorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddVestingInvestorResponse { + return new MsgAddVestingInvestorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddVestingInvestorResponse { + return new MsgAddVestingInvestorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddVestingInvestorResponse { + return new MsgAddVestingInvestorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddVestingInvestorResponse | PlainMessage | undefined, b: MsgAddVestingInvestorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddVestingInvestorResponse, a, b); + } +} + +/** + * MsgUpdateInvestorsRewardRatio defines the message structure for the + * UpdateInvestorsRewardRatio gRPC service method. It allows the authority to + * update the investors reward ratio. + * + * @generated from message milkyway.investors.v1.MsgUpdateInvestorsRewardRatio + */ +export class MsgUpdateInvestorsRewardRatio extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * InvestorsRewardRatio defines the proportion of staking rewards allocated to + * vesting investors relative to normal users. + * + * @generated from field: string investors_reward_ratio = 2; + */ + investorsRewardRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.MsgUpdateInvestorsRewardRatio"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "investors_reward_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInvestorsRewardRatio { + return new MsgUpdateInvestorsRewardRatio().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInvestorsRewardRatio { + return new MsgUpdateInvestorsRewardRatio().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInvestorsRewardRatio { + return new MsgUpdateInvestorsRewardRatio().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInvestorsRewardRatio | PlainMessage | undefined, b: MsgUpdateInvestorsRewardRatio | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInvestorsRewardRatio, a, b); + } +} + +/** + * MsgUpdateInvestorsRewardRatioResponse is the return value of + * MsgUpdateInvestorsRewardRatio. + * + * @generated from message milkyway.investors.v1.MsgUpdateInvestorsRewardRatioResponse + */ +export class MsgUpdateInvestorsRewardRatioResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.MsgUpdateInvestorsRewardRatioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInvestorsRewardRatioResponse { + return new MsgUpdateInvestorsRewardRatioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInvestorsRewardRatioResponse { + return new MsgUpdateInvestorsRewardRatioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInvestorsRewardRatioResponse { + return new MsgUpdateInvestorsRewardRatioResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInvestorsRewardRatioResponse | PlainMessage | undefined, b: MsgUpdateInvestorsRewardRatioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInvestorsRewardRatioResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/investors/v1/models_pb.ts b/src/protobufs/milkyway/investors/v1/models_pb.ts new file mode 100644 index 00000000..370eddd5 --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/models_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/investors/v1/models.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * VestingInvestorRewards defines the temporarily redirected rewards for + * vesting investors. + * + * @generated from message milkyway.investors.v1.VestingInvestorRewards + */ +export class VestingInvestorRewards extends Message { + /** + * Rewards is the amount of rewards that are temporarily redirected. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 1; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.VestingInvestorRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VestingInvestorRewards { + return new VestingInvestorRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VestingInvestorRewards { + return new VestingInvestorRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VestingInvestorRewards { + return new VestingInvestorRewards().fromJsonString(jsonString, options); + } + + static equals(a: VestingInvestorRewards | PlainMessage | undefined, b: VestingInvestorRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(VestingInvestorRewards, a, b); + } +} + diff --git a/src/protobufs/milkyway/investors/v1/query_cosmes.ts b/src/protobufs/milkyway/investors/v1/query_cosmes.ts new file mode 100644 index 00000000..ecbca3e9 --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/investors/v1/query.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryInvestorsRewardRatioRequest, QueryInvestorsRewardRatioResponse, QueryVestingInvestorsRequest, QueryVestingInvestorsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.investors.v1.Query"; + +/** + * InvestorsRewardRatio queries the investors reward ratio. + * + * @generated from rpc milkyway.investors.v1.Query.InvestorsRewardRatio + */ +export const QueryInvestorsRewardRatioService = { + typeName: TYPE_NAME, + method: "InvestorsRewardRatio", + Request: QueryInvestorsRewardRatioRequest, + Response: QueryInvestorsRewardRatioResponse, +} as const; + +/** + * VestingInvestors queries the list of vesting investors. + * + * @generated from rpc milkyway.investors.v1.Query.VestingInvestors + */ +export const QueryVestingInvestorsService = { + typeName: TYPE_NAME, + method: "VestingInvestors", + Request: QueryVestingInvestorsRequest, + Response: QueryVestingInvestorsResponse, +} as const; + diff --git a/src/protobufs/milkyway/investors/v1/query_pb.ts b/src/protobufs/milkyway/investors/v1/query_pb.ts new file mode 100644 index 00000000..a4598808 --- /dev/null +++ b/src/protobufs/milkyway/investors/v1/query_pb.ts @@ -0,0 +1,172 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/investors/v1/query.proto (package milkyway.investors.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryInvestorsRewardRatioRequest is request type for the + * Query/InvestorsRewardRatio RPC method. + * + * @generated from message milkyway.investors.v1.QueryInvestorsRewardRatioRequest + */ +export class QueryInvestorsRewardRatioRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.QueryInvestorsRewardRatioRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvestorsRewardRatioRequest { + return new QueryInvestorsRewardRatioRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvestorsRewardRatioRequest { + return new QueryInvestorsRewardRatioRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvestorsRewardRatioRequest { + return new QueryInvestorsRewardRatioRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvestorsRewardRatioRequest | PlainMessage | undefined, b: QueryInvestorsRewardRatioRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvestorsRewardRatioRequest, a, b); + } +} + +/** + * QueryInvestorsRewardRatioResponse is response type for the + * Query/InvestorsRewardRatio RPC method. + * + * @generated from message milkyway.investors.v1.QueryInvestorsRewardRatioResponse + */ +export class QueryInvestorsRewardRatioResponse extends Message { + /** + * InvestorsRewardRatio defines the proportion of staking rewards allocated to + * vesting investors relative to normal users. + * + * @generated from field: string investors_reward_ratio = 2; + */ + investorsRewardRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.QueryInvestorsRewardRatioResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "investors_reward_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvestorsRewardRatioResponse { + return new QueryInvestorsRewardRatioResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvestorsRewardRatioResponse { + return new QueryInvestorsRewardRatioResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvestorsRewardRatioResponse { + return new QueryInvestorsRewardRatioResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvestorsRewardRatioResponse | PlainMessage | undefined, b: QueryInvestorsRewardRatioResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvestorsRewardRatioResponse, a, b); + } +} + +/** + * QueryVestingInvestorsRequest is request type for the Query/VestingInvestors + * RPC method. + * + * @generated from message milkyway.investors.v1.QueryVestingInvestorsRequest + */ +export class QueryVestingInvestorsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.QueryVestingInvestorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVestingInvestorsRequest { + return new QueryVestingInvestorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVestingInvestorsRequest { + return new QueryVestingInvestorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVestingInvestorsRequest { + return new QueryVestingInvestorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVestingInvestorsRequest | PlainMessage | undefined, b: QueryVestingInvestorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVestingInvestorsRequest, a, b); + } +} + +/** + * QueryVestingInvestorsResponse is response type for the Query/VestingInvestors + * RPC method. + * + * @generated from message milkyway.investors.v1.QueryVestingInvestorsResponse + */ +export class QueryVestingInvestorsResponse extends Message { + /** + * @generated from field: repeated string vesting_investors_addresses = 1; + */ + vestingInvestorsAddresses: string[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.investors.v1.QueryVestingInvestorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vesting_investors_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVestingInvestorsResponse { + return new QueryVestingInvestorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVestingInvestorsResponse { + return new QueryVestingInvestorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVestingInvestorsResponse { + return new QueryVestingInvestorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVestingInvestorsResponse | PlainMessage | undefined, b: QueryVestingInvestorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVestingInvestorsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/liquidvesting/v1/genesis_pb.ts b/src/protobufs/milkyway/liquidvesting/v1/genesis_pb.ts new file mode 100644 index 00000000..fe31a124 --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/genesis_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/genesis.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { BurnCoins, UserInsuranceFundEntry } from "./models_pb.js"; + +/** + * GenesisState defines the liquidvesting module's genesis state. + * + * @generated from message milkyway.liquidvesting.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines the parameters of the module. + * + * @generated from field: milkyway.liquidvesting.v1.Params params = 1; + */ + params?: Params; + + /** + * BurnCoins represents the list of coins that should be burned from the + * users' balances + * + * @generated from field: repeated milkyway.liquidvesting.v1.BurnCoins burn_coins = 2; + */ + burnCoins: BurnCoins[] = []; + + /** + * UserInsuranceFunds represents the users' insurance fund. + * + * @generated from field: repeated milkyway.liquidvesting.v1.UserInsuranceFundEntry user_insurance_funds = 3; + */ + userInsuranceFunds: UserInsuranceFundEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "burn_coins", kind: "message", T: BurnCoins, repeated: true }, + { no: 3, name: "user_insurance_funds", kind: "message", T: UserInsuranceFundEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/liquidvesting/v1/messages_cosmes.ts b/src/protobufs/milkyway/liquidvesting/v1/messages_cosmes.ts new file mode 100644 index 00000000..9c8d59b3 --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/messages_cosmes.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/messages.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurnLockedRepresentation, MsgBurnLockedRepresentationResponse, MsgMintLockedRepresentation, MsgMintLockedRepresentationResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawInsuranceFund, MsgWithdrawInsuranceFundResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.liquidvesting.v1.Msg"; + +/** + * MintLockedRepresentation defines the operation to mint a user's staked + * locked tokens representation that can be used in the liquid vesting module. + * + * @generated from rpc milkyway.liquidvesting.v1.Msg.MintLockedRepresentation + */ +export const MsgMintLockedRepresentationService = { + typeName: TYPE_NAME, + method: "MintLockedRepresentation", + Request: MsgMintLockedRepresentation, + Response: MsgMintLockedRepresentationResponse, +} as const; + +/** + * BurnLockedRepresentation defines the operation to burn a user's staked + * locked tokens representation. + * + * @generated from rpc milkyway.liquidvesting.v1.Msg.BurnLockedRepresentation + */ +export const MsgBurnLockedRepresentationService = { + typeName: TYPE_NAME, + method: "BurnLockedRepresentation", + Request: MsgBurnLockedRepresentation, + Response: MsgBurnLockedRepresentationResponse, +} as const; + +/** + * WithdrawInsuranceFund defines the operation to withdraw an amount + * of tokens from the user's insurance fund. + * This can be used from the user to withdraw their funds after + * some of their staking representations have been burned or if the + * balance in the insurance fund is more than the required to cover all + * their staking representations. + * + * @generated from rpc milkyway.liquidvesting.v1.Msg.WithdrawInsuranceFund + */ +export const MsgWithdrawInsuranceFundService = { + typeName: TYPE_NAME, + method: "WithdrawInsuranceFund", + Request: MsgWithdrawInsuranceFund, + Response: MsgWithdrawInsuranceFundResponse, +} as const; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. + * The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.liquidvesting.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/liquidvesting/v1/messages_pb.ts b/src/protobufs/milkyway/liquidvesting/v1/messages_pb.ts new file mode 100644 index 00000000..13b2e50e --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/messages_pb.ts @@ -0,0 +1,366 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/messages.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgMintLockedRepresentation defines the message structure for the + * MintLockedRepresentation gRPC service method. It allows an authorized + * account to mint a user's staked locked tokens representation that can be + * used in the liquid vesting module. + * + * @generated from message milkyway.liquidvesting.v1.MsgMintLockedRepresentation + */ +export class MsgMintLockedRepresentation extends Message { + /** + * User that want to trigger the tokens mint. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * User that will receive the minted tokens. + * + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * The amount of tokens that will be minted + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgMintLockedRepresentation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintLockedRepresentation { + return new MsgMintLockedRepresentation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintLockedRepresentation { + return new MsgMintLockedRepresentation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintLockedRepresentation { + return new MsgMintLockedRepresentation().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintLockedRepresentation | PlainMessage | undefined, b: MsgMintLockedRepresentation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintLockedRepresentation, a, b); + } +} + +/** + * MsgMintLockedRepresentationResponse is the return value of + * MsgMintLockedRepresentation. + * + * @generated from message milkyway.liquidvesting.v1.MsgMintLockedRepresentationResponse + */ +export class MsgMintLockedRepresentationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgMintLockedRepresentationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintLockedRepresentationResponse { + return new MsgMintLockedRepresentationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintLockedRepresentationResponse { + return new MsgMintLockedRepresentationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintLockedRepresentationResponse { + return new MsgMintLockedRepresentationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintLockedRepresentationResponse | PlainMessage | undefined, b: MsgMintLockedRepresentationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintLockedRepresentationResponse, a, b); + } +} + +/** + * MsgBurnLockedRepresentation defines the message structure for the + * BurnLockedRepresentation gRPC service method. It allows an authorized + * account to burn a user's staked locked tokens representation. + * + * @generated from message milkyway.liquidvesting.v1.MsgBurnLockedRepresentation + */ +export class MsgBurnLockedRepresentation extends Message { + /** + * User that want to trigger the tokens burn. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * User from which we want to burn the tokens. + * + * @generated from field: string user = 2; + */ + user = ""; + + /** + * The amount of tokens that will be burned from the user's balance. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgBurnLockedRepresentation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnLockedRepresentation { + return new MsgBurnLockedRepresentation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnLockedRepresentation { + return new MsgBurnLockedRepresentation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnLockedRepresentation { + return new MsgBurnLockedRepresentation().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnLockedRepresentation | PlainMessage | undefined, b: MsgBurnLockedRepresentation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnLockedRepresentation, a, b); + } +} + +/** + * MsgBurnLockedRepresentationResponse is the return value of + * MsgBurnLockedRepresentation. + * + * @generated from message milkyway.liquidvesting.v1.MsgBurnLockedRepresentationResponse + */ +export class MsgBurnLockedRepresentationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgBurnLockedRepresentationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnLockedRepresentationResponse { + return new MsgBurnLockedRepresentationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnLockedRepresentationResponse { + return new MsgBurnLockedRepresentationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnLockedRepresentationResponse { + return new MsgBurnLockedRepresentationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnLockedRepresentationResponse | PlainMessage | undefined, b: MsgBurnLockedRepresentationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnLockedRepresentationResponse, a, b); + } +} + +/** + * MsgWithdrawInsuranceFund defines the message structure for the + * WithdrawInsuranceFund gRPC service method. + * + * @generated from message milkyway.liquidvesting.v1.MsgWithdrawInsuranceFund + */ +export class MsgWithdrawInsuranceFund extends Message { + /** + * User that want to withdraw the tokens. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * The amount of tokens that will be withdrawn from the user's insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgWithdrawInsuranceFund"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawInsuranceFund { + return new MsgWithdrawInsuranceFund().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawInsuranceFund { + return new MsgWithdrawInsuranceFund().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawInsuranceFund { + return new MsgWithdrawInsuranceFund().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawInsuranceFund | PlainMessage | undefined, b: MsgWithdrawInsuranceFund | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawInsuranceFund, a, b); + } +} + +/** + * MsgWithdrawInsuranceFundResponse is the return value of MsgWithdrawInsuranceFund. + * + * @generated from message milkyway.liquidvesting.v1.MsgWithdrawInsuranceFundResponse + */ +export class MsgWithdrawInsuranceFundResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgWithdrawInsuranceFundResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawInsuranceFundResponse { + return new MsgWithdrawInsuranceFundResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawInsuranceFundResponse { + return new MsgWithdrawInsuranceFundResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawInsuranceFundResponse { + return new MsgWithdrawInsuranceFundResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawInsuranceFundResponse | PlainMessage | undefined, b: MsgWithdrawInsuranceFundResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawInsuranceFundResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the message structure for the UpdateParams gRPC + * service method. It allows the authority to update the module parameters. + * + * @generated from message milkyway.liquidvesting.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params define the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: milkyway.liquidvesting.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse is the return value of MsgUpdateParams. + * + * @generated from message milkyway.liquidvesting.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/liquidvesting/v1/models_pb.ts b/src/protobufs/milkyway/liquidvesting/v1/models_pb.ts new file mode 100644 index 00000000..6c5354d5 --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/models_pb.ts @@ -0,0 +1,197 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/models.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * UserInsuranceFund defines a user's insurance fund. + * + * @generated from message milkyway.liquidvesting.v1.UserInsuranceFund + */ +export class UserInsuranceFund extends Message { + /** + * Amount of coins deposited into the user's insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 1; + */ + balance: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.UserInsuranceFund"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserInsuranceFund { + return new UserInsuranceFund().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserInsuranceFund { + return new UserInsuranceFund().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserInsuranceFund { + return new UserInsuranceFund().fromJsonString(jsonString, options); + } + + static equals(a: UserInsuranceFund | PlainMessage | undefined, b: UserInsuranceFund | PlainMessage | undefined): boolean { + return proto3.util.equals(UserInsuranceFund, a, b); + } +} + +/** + * BurnCoins is a struct that contains the information about the coins to burn + * once the unbonding period of the locked representation tokens ends. + * + * @generated from message milkyway.liquidvesting.v1.BurnCoins + */ +export class BurnCoins extends Message { + /** + * Address of who has delegated the coins. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * CompletionTime is the unix time for unbonding completion. + * + * @generated from field: google.protobuf.Timestamp completion_time = 2; + */ + completionTime?: Timestamp; + + /** + * Amount of coins to be burned from the delegator address. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.BurnCoins"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "completion_time", kind: "message", T: Timestamp }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BurnCoins { + return new BurnCoins().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BurnCoins { + return new BurnCoins().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BurnCoins { + return new BurnCoins().fromJsonString(jsonString, options); + } + + static equals(a: BurnCoins | PlainMessage | undefined, b: BurnCoins | PlainMessage | undefined): boolean { + return proto3.util.equals(BurnCoins, a, b); + } +} + +/** + * BurnCoinsList represents a list of BurnCoins. + * + * @generated from message milkyway.liquidvesting.v1.BurnCoinsList + */ +export class BurnCoinsList extends Message { + /** + * @generated from field: repeated milkyway.liquidvesting.v1.BurnCoins data = 1; + */ + data: BurnCoins[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.BurnCoinsList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: BurnCoins, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BurnCoinsList { + return new BurnCoinsList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BurnCoinsList { + return new BurnCoinsList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BurnCoinsList { + return new BurnCoinsList().fromJsonString(jsonString, options); + } + + static equals(a: BurnCoinsList | PlainMessage | undefined, b: BurnCoinsList | PlainMessage | undefined): boolean { + return proto3.util.equals(BurnCoinsList, a, b); + } +} + +/** + * UserInsuranceFundEntry represents an entry containing the data of a user + * insurance fund. + * + * @generated from message milkyway.liquidvesting.v1.UserInsuranceFundEntry + */ +export class UserInsuranceFundEntry extends Message { + /** + * Address of who owns the insurance fund. + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + /** + * Amount of coins deposited into the user's insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 2; + */ + balance: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.UserInsuranceFundEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserInsuranceFundEntry { + return new UserInsuranceFundEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserInsuranceFundEntry { + return new UserInsuranceFundEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserInsuranceFundEntry { + return new UserInsuranceFundEntry().fromJsonString(jsonString, options); + } + + static equals(a: UserInsuranceFundEntry | PlainMessage | undefined, b: UserInsuranceFundEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UserInsuranceFundEntry, a, b); + } +} + diff --git a/src/protobufs/milkyway/liquidvesting/v1/params_pb.ts b/src/protobufs/milkyway/liquidvesting/v1/params_pb.ts new file mode 100644 index 00000000..18f6a400 --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/params_pb.ts @@ -0,0 +1,79 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/params.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message milkyway.liquidvesting.v1.Params + */ +export class Params extends Message { + /** + * This value represents the percentage that needs to be sent to the + * insurance fund in order to restake a certain amount of locked tokens. + * For example, if this value is 2%, a user must send 2 tokens to + * the insurance fund to restake 100 locked tokens + * + * @generated from field: string insurance_percentage = 1; + */ + insurancePercentage = ""; + + /** + * This value represents the list of users who are authorized to execute the + * MsgBurnLockedRepresentation. + * + * @generated from field: repeated string burners = 2; + */ + burners: string[] = []; + + /** + * This value represents the list of users who are authorized to execute the + * MsgMintLockedRepresentation. + * + * @generated from field: repeated string minters = 3; + */ + minters: string[] = []; + + /** + * List of channels from which is allowed to receive deposits to the insurance + * fund. + * + * @generated from field: repeated string allowed_channels = 5; + */ + allowedChannels: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "insurance_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "burners", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "minters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "allowed_channels", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/milkyway/liquidvesting/v1/query_cosmes.ts b/src/protobufs/milkyway/liquidvesting/v1/query_cosmes.ts new file mode 100644 index 00000000..10995b68 --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/query_cosmes.ts @@ -0,0 +1,75 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/query.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryInsuranceFundRequest, QueryInsuranceFundResponse, QueryParamsRequest, QueryParamsResponse, QueryUserInsuranceFundRequest, QueryUserInsuranceFundResponse, QueryUserInsuranceFundsRequest, QueryUserInsuranceFundsResponse, QueryUserRestakableAssetsRequest, QueryUserRestakableAssetsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.liquidvesting.v1.Query"; + +/** + * UserInsuranceFund defines a gRPC query method that returns the user's + * insurance fund balance given their address. + * + * @generated from rpc milkyway.liquidvesting.v1.Query.UserInsuranceFund + */ +export const QueryUserInsuranceFundService = { + typeName: TYPE_NAME, + method: "UserInsuranceFund", + Request: QueryUserInsuranceFundRequest, + Response: QueryUserInsuranceFundResponse, +} as const; + +/** + * UserInsuranceFunds defines a gRPC query method that returns all user's + * insurance fund balance. + * + * @generated from rpc milkyway.liquidvesting.v1.Query.UserInsuranceFunds + */ +export const QueryUserInsuranceFundsService = { + typeName: TYPE_NAME, + method: "UserInsuranceFunds", + Request: QueryUserInsuranceFundsRequest, + Response: QueryUserInsuranceFundsResponse, +} as const; + +/** + * UserRestakableAssets defines a gRPC query method that returns + * the amount of assets that can be restaked from the one minted by this + * module. + * + * @generated from rpc milkyway.liquidvesting.v1.Query.UserRestakableAssets + */ +export const QueryUserRestakableAssetsService = { + typeName: TYPE_NAME, + method: "UserRestakableAssets", + Request: QueryUserRestakableAssetsRequest, + Response: QueryUserRestakableAssetsResponse, +} as const; + +/** + * InsuranceFund defines a gRPC query method that returns the amount of tokens + * that are in the insurance fund. + * + * @generated from rpc milkyway.liquidvesting.v1.Query.InsuranceFund + */ +export const QueryInsuranceFundService = { + typeName: TYPE_NAME, + method: "InsuranceFund", + Request: QueryInsuranceFundRequest, + Response: QueryInsuranceFundResponse, +} as const; + +/** + * Params defines a gRPC query method that returns the parameters of the + * module. + * + * @generated from rpc milkyway.liquidvesting.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/liquidvesting/v1/query_pb.ts b/src/protobufs/milkyway/liquidvesting/v1/query_pb.ts new file mode 100644 index 00000000..119f938c --- /dev/null +++ b/src/protobufs/milkyway/liquidvesting/v1/query_pb.ts @@ -0,0 +1,485 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/liquidvesting/v1/query.proto (package milkyway.liquidvesting.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * QueryUserInsuranceFundRequest is the request type for the + * Query/UserInsuranceFund RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserInsuranceFundRequest + */ +export class QueryUserInsuranceFundRequest extends Message { + /** + * user_address is the address of the user to query. + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserInsuranceFundRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserInsuranceFundRequest { + return new QueryUserInsuranceFundRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserInsuranceFundRequest { + return new QueryUserInsuranceFundRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserInsuranceFundRequest { + return new QueryUserInsuranceFundRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserInsuranceFundRequest | PlainMessage | undefined, b: QueryUserInsuranceFundRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserInsuranceFundRequest, a, b); + } +} + +/** + * QueryUserInsuranceFundResponse is the response type for the + * Query/UserInsuranceFund RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserInsuranceFundResponse + */ +export class QueryUserInsuranceFundResponse extends Message { + /** + * balance is the amount of tokens that is in the user's insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 1; + */ + balance: Coin[] = []; + + /** + * used is the amount of tokens is being used to cover the user's + * restaked assets. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin used = 2; + */ + used: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserInsuranceFundResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "used", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserInsuranceFundResponse { + return new QueryUserInsuranceFundResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserInsuranceFundResponse { + return new QueryUserInsuranceFundResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserInsuranceFundResponse { + return new QueryUserInsuranceFundResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserInsuranceFundResponse | PlainMessage | undefined, b: QueryUserInsuranceFundResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserInsuranceFundResponse, a, b); + } +} + +/** + * QueryUserInsuranceFundsRequest is the request type for the + * Query/UserInsuranceFunds RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserInsuranceFundsRequest + */ +export class QueryUserInsuranceFundsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserInsuranceFundsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserInsuranceFundsRequest { + return new QueryUserInsuranceFundsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserInsuranceFundsRequest { + return new QueryUserInsuranceFundsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserInsuranceFundsRequest { + return new QueryUserInsuranceFundsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserInsuranceFundsRequest | PlainMessage | undefined, b: QueryUserInsuranceFundsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserInsuranceFundsRequest, a, b); + } +} + +/** + * UserInsuranceFundData is the structure that contains the information about + * a user's insurance fund. + * + * @generated from message milkyway.liquidvesting.v1.UserInsuranceFundData + */ +export class UserInsuranceFundData extends Message { + /** + * user_address is the address of who owns the insurance fund. + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + /** + * balance is the amount of tokens that is in the user's insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 2; + */ + balance: Coin[] = []; + + /** + * used is the amount of tokens that is to cover the user's + * restaked assets. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin used = 3; + */ + used: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.UserInsuranceFundData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "used", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserInsuranceFundData { + return new UserInsuranceFundData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserInsuranceFundData { + return new UserInsuranceFundData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserInsuranceFundData { + return new UserInsuranceFundData().fromJsonString(jsonString, options); + } + + static equals(a: UserInsuranceFundData | PlainMessage | undefined, b: UserInsuranceFundData | PlainMessage | undefined): boolean { + return proto3.util.equals(UserInsuranceFundData, a, b); + } +} + +/** + * QueryUserInsuranceFundsResponse is the response type for the + * Query/UserInsuranceFunds RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserInsuranceFundsResponse + */ +export class QueryUserInsuranceFundsResponse extends Message { + /** + * insurance_funds is the list of users insurance funds. + * + * @generated from field: repeated milkyway.liquidvesting.v1.UserInsuranceFundData insurance_funds = 1; + */ + insuranceFunds: UserInsuranceFundData[] = []; + + /** + * Pagination defines the pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserInsuranceFundsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "insurance_funds", kind: "message", T: UserInsuranceFundData, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserInsuranceFundsResponse { + return new QueryUserInsuranceFundsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserInsuranceFundsResponse { + return new QueryUserInsuranceFundsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserInsuranceFundsResponse { + return new QueryUserInsuranceFundsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserInsuranceFundsResponse | PlainMessage | undefined, b: QueryUserInsuranceFundsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserInsuranceFundsResponse, a, b); + } +} + +/** + * QueryUserRestakableAssetsRequest is the request type for the + * Query/UserRestakableAssets RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserRestakableAssetsRequest + */ +export class QueryUserRestakableAssetsRequest extends Message { + /** + * user_address is the address of the user to query. + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserRestakableAssetsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserRestakableAssetsRequest { + return new QueryUserRestakableAssetsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserRestakableAssetsRequest { + return new QueryUserRestakableAssetsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserRestakableAssetsRequest { + return new QueryUserRestakableAssetsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserRestakableAssetsRequest | PlainMessage | undefined, b: QueryUserRestakableAssetsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserRestakableAssetsRequest, a, b); + } +} + +/** + * QueryUserRestakableAssetsResponse is the response type for the + * Query/UserRestakableAssets RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryUserRestakableAssetsResponse + */ +export class QueryUserRestakableAssetsResponse extends Message { + /** + * amount is the amount of tokens that the user can restake. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryUserRestakableAssetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserRestakableAssetsResponse { + return new QueryUserRestakableAssetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserRestakableAssetsResponse { + return new QueryUserRestakableAssetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserRestakableAssetsResponse { + return new QueryUserRestakableAssetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserRestakableAssetsResponse | PlainMessage | undefined, b: QueryUserRestakableAssetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserRestakableAssetsResponse, a, b); + } +} + +/** + * QueryInsuranceFundRequest is the request type for the + * Query/InsuranceFund RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryInsuranceFundRequest + */ +export class QueryInsuranceFundRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryInsuranceFundRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInsuranceFundRequest { + return new QueryInsuranceFundRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInsuranceFundRequest { + return new QueryInsuranceFundRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInsuranceFundRequest { + return new QueryInsuranceFundRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInsuranceFundRequest | PlainMessage | undefined, b: QueryInsuranceFundRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInsuranceFundRequest, a, b); + } +} + +/** + * QueryInsuranceFundResponse is the response type for the + * Query/InsuranceFund RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryInsuranceFundResponse + */ +export class QueryInsuranceFundResponse extends Message { + /** + * amount is the amount of tokens that are in the insurance fund. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryInsuranceFundResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInsuranceFundResponse { + return new QueryInsuranceFundResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInsuranceFundResponse { + return new QueryInsuranceFundResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInsuranceFundResponse { + return new QueryInsuranceFundResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInsuranceFundResponse | PlainMessage | undefined, b: QueryInsuranceFundResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInsuranceFundResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message milkyway.liquidvesting.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: milkyway.liquidvesting.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.liquidvesting.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/operators/v1/genesis_pb.ts b/src/protobufs/milkyway/operators/v1/genesis_pb.ts new file mode 100644 index 00000000..3a6d6f0b --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/genesis_pb.ts @@ -0,0 +1,186 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/operators/v1/genesis.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Operator, OperatorParams } from "./models_pb.js"; + +/** + * GenesisState defines the operators module's genesis state. + * + * @generated from message milkyway.operators.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines the parameters of the module. + * + * @generated from field: milkyway.operators.v1.Params params = 1; + */ + params?: Params; + + /** + * NextOperatorID defines the ID that will be assigned to the + * next operator that gets created. + * + * @generated from field: uint32 next_operator_id = 2; + */ + nextOperatorId = 0; + + /** + * Operators defines the list of operators. + * + * @generated from field: repeated milkyway.operators.v1.Operator operators = 3; + */ + operators: Operator[] = []; + + /** + * UnbondingOperators defines the list of operators that are currently being + * unbonded. + * + * @generated from field: repeated milkyway.operators.v1.UnbondingOperator unbonding_operators = 4; + */ + unbondingOperators: UnbondingOperator[] = []; + + /** + * OperatorsParams defines the list of operators params. + * + * @generated from field: repeated milkyway.operators.v1.OperatorParamsRecord operators_params = 5; + */ + operatorsParams: OperatorParamsRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "next_operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "operators", kind: "message", T: Operator, repeated: true }, + { no: 4, name: "unbonding_operators", kind: "message", T: UnbondingOperator, repeated: true }, + { no: 5, name: "operators_params", kind: "message", T: OperatorParamsRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * UnbondingOperator contains the data about an operator that is currently being + * unbonded. + * + * @generated from message milkyway.operators.v1.UnbondingOperator + */ +export class UnbondingOperator extends Message { + /** + * OperatorID is the ID of the operator that is being unbonded. + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * UnbondingCompletionTime is the time at which the unbonding of the operator + * will be completed + * + * @generated from field: google.protobuf.Timestamp unbonding_completion_time = 2; + */ + unbondingCompletionTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.UnbondingOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "unbonding_completion_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingOperator { + return new UnbondingOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingOperator { + return new UnbondingOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingOperator { + return new UnbondingOperator().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingOperator | PlainMessage | undefined, b: UnbondingOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingOperator, a, b); + } +} + +/** + * OperatorParamsRecord represents the params that have been set for an + * individual operator. + * + * @generated from message milkyway.operators.v1.OperatorParamsRecord + */ +export class OperatorParamsRecord extends Message { + /** + * OperatorID is the ID of the operator. + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * Params defines the parameters for the operators module. + * + * @generated from field: milkyway.operators.v1.OperatorParams params = 2; + */ + params?: OperatorParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.OperatorParamsRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "params", kind: "message", T: OperatorParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OperatorParamsRecord { + return new OperatorParamsRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OperatorParamsRecord { + return new OperatorParamsRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OperatorParamsRecord { + return new OperatorParamsRecord().fromJsonString(jsonString, options); + } + + static equals(a: OperatorParamsRecord | PlainMessage | undefined, b: OperatorParamsRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(OperatorParamsRecord, a, b); + } +} + diff --git a/src/protobufs/milkyway/operators/v1/messages_cosmes.ts b/src/protobufs/milkyway/operators/v1/messages_cosmes.ts new file mode 100644 index 00000000..1f2fd37e --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/messages_cosmes.ts @@ -0,0 +1,113 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/operators/v1/messages.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeactivateOperator, MsgDeactivateOperatorResponse, MsgDeleteOperator, MsgDeleteOperatorResponse, MsgReactivateOperator, MsgReactivateOperatorResponse, MsgRegisterOperator, MsgRegisterOperatorResponse, MsgSetOperatorParams, MsgSetOperatorParamsResponse, MsgTransferOperatorOwnership, MsgTransferOperatorOwnershipResponse, MsgUpdateOperator, MsgUpdateOperatorResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.operators.v1.Msg"; + +/** + * RegisterOperator defines the operation for registering a new operator. + * + * @generated from rpc milkyway.operators.v1.Msg.RegisterOperator + */ +export const MsgRegisterOperatorService = { + typeName: TYPE_NAME, + method: "RegisterOperator", + Request: MsgRegisterOperator, + Response: MsgRegisterOperatorResponse, +} as const; + +/** + * UpdateOperator defines the operation for updating an operator's details. + * The operator owner can update the moniker, website, and picture URL. + * + * @generated from rpc milkyway.operators.v1.Msg.UpdateOperator + */ +export const MsgUpdateOperatorService = { + typeName: TYPE_NAME, + method: "UpdateOperator", + Request: MsgUpdateOperator, + Response: MsgUpdateOperatorResponse, +} as const; + +/** + * DeactivateOperator defines the operation for deactivating an + * operator. Operators will require some time in order to be deactivated. + * This time is defined by the governance parameters. + * + * @generated from rpc milkyway.operators.v1.Msg.DeactivateOperator + */ +export const MsgDeactivateOperatorService = { + typeName: TYPE_NAME, + method: "DeactivateOperator", + Request: MsgDeactivateOperator, + Response: MsgDeactivateOperatorResponse, +} as const; + +/** + * ReactivateOperator defines the operation for reactivating an + * inactive operator. + * + * @generated from rpc milkyway.operators.v1.Msg.ReactivateOperator + */ +export const MsgReactivateOperatorService = { + typeName: TYPE_NAME, + method: "ReactivateOperator", + Request: MsgReactivateOperator, + Response: MsgReactivateOperatorResponse, +} as const; + +/** + * DeleteOperator defines the operation for deleting a deactivated operator. + * + * @generated from rpc milkyway.operators.v1.Msg.DeleteOperator + */ +export const MsgDeleteOperatorService = { + typeName: TYPE_NAME, + method: "DeleteOperator", + Request: MsgDeleteOperator, + Response: MsgDeleteOperatorResponse, +} as const; + +/** + * TransferOperatorOwnership defines the operation for transferring the + * ownership of an operator to another account. + * + * @generated from rpc milkyway.operators.v1.Msg.TransferOperatorOwnership + */ +export const MsgTransferOperatorOwnershipService = { + typeName: TYPE_NAME, + method: "TransferOperatorOwnership", + Request: MsgTransferOperatorOwnership, + Response: MsgTransferOperatorOwnershipResponse, +} as const; + +/** + * SetOperatorParams defines the operation for setting a operator's + * parameters. + * + * @generated from rpc milkyway.operators.v1.Msg.SetOperatorParams + */ +export const MsgSetOperatorParamsService = { + typeName: TYPE_NAME, + method: "SetOperatorParams", + Request: MsgSetOperatorParams, + Response: MsgSetOperatorParamsResponse, +} as const; + +/** + * UpdateParams defines a governance operation for updating the module + * parameters. + * The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.operators.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/operators/v1/messages_pb.ts b/src/protobufs/milkyway/operators/v1/messages_pb.ts new file mode 100644 index 00000000..ac539117 --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/messages_pb.ts @@ -0,0 +1,764 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/operators/v1/messages.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { OperatorParams } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgRegisterOperator defines the message structure for the RegisterOperator + * gRPC service method. It allows an account to register a new operator that can + * opt-in to validate various services. It requires a sender address as well as + * the details of the operator to be registered. + * + * @generated from message milkyway.operators.v1.MsgRegisterOperator + */ +export class MsgRegisterOperator extends Message { + /** + * Sender is the address of the user registering the operator + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Moniker is the moniker of the operator + * + * @generated from field: string moniker = 2; + */ + moniker = ""; + + /** + * Website is the website of the operator (optional) + * + * @generated from field: string website = 3; + */ + website = ""; + + /** + * PictureURL is the URL of operator picture (optional) + * + * @generated from field: string picture_url = 4; + */ + pictureUrl = ""; + + /** + * FeeAmount represents the fees that are going to be paid to create the + * operator. These should always be greater or equals of any of the coins + * specified inside the OperatorRegistrationFee field of the modules params. + * If no fees are specified inside the module parameters, this field can be + * omitted. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin fee_amount = 5; + */ + feeAmount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgRegisterOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "fee_amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterOperator { + return new MsgRegisterOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterOperator { + return new MsgRegisterOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterOperator { + return new MsgRegisterOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterOperator | PlainMessage | undefined, b: MsgRegisterOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterOperator, a, b); + } +} + +/** + * MsgRegisterOperatorResponse is the return value of MsgRegisterOperator. + * It returns the newly created operator ID. + * + * @generated from message milkyway.operators.v1.MsgRegisterOperatorResponse + */ +export class MsgRegisterOperatorResponse extends Message { + /** + * NewOperatorID is the ID of the newly registered operator + * + * @generated from field: uint32 new_operator_id = 1; + */ + newOperatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgRegisterOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterOperatorResponse { + return new MsgRegisterOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterOperatorResponse { + return new MsgRegisterOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterOperatorResponse { + return new MsgRegisterOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterOperatorResponse | PlainMessage | undefined, b: MsgRegisterOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterOperatorResponse, a, b); + } +} + +/** + * MsgUpdateOperator defines the message structure for the UpdateOperator gRPC + * service method. It allows the operator owner to update the details of an + * existing operator. + * + * @generated from message milkyway.operators.v1.MsgUpdateOperator + */ +export class MsgUpdateOperator extends Message { + /** + * Sender is the address of the user updating the operator + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * OperatorID represents the ID of the operator to be updated + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * Moniker is the new moniker of the operator. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string moniker = 3; + */ + moniker = ""; + + /** + * Website is the new website of the operator. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string website = 4; + */ + website = ""; + + /** + * PictureURL is the new URL of the operator picture. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string picture_url = 5; + */ + pictureUrl = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgUpdateOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateOperator { + return new MsgUpdateOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateOperator { + return new MsgUpdateOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateOperator { + return new MsgUpdateOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateOperator | PlainMessage | undefined, b: MsgUpdateOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateOperator, a, b); + } +} + +/** + * MsgUpdateOperatorResponse is the return value of MsgUpdateOperator. + * + * @generated from message milkyway.operators.v1.MsgUpdateOperatorResponse + */ +export class MsgUpdateOperatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgUpdateOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateOperatorResponse { + return new MsgUpdateOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateOperatorResponse { + return new MsgUpdateOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateOperatorResponse { + return new MsgUpdateOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateOperatorResponse | PlainMessage | undefined, b: MsgUpdateOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateOperatorResponse, a, b); + } +} + +/** + * MsgDeactivateOperator defines the message structure for the + * DeactivateOperator gRPC service method. It allows the operator owner to + * signal that the operator will become inactive. This should be used to signal + * users that the operator is going to stop performing services and they should + * switch to another operator. + * + * @generated from message milkyway.operators.v1.MsgDeactivateOperator + */ +export class MsgDeactivateOperator extends Message { + /** + * Sender is the address of the user deactivating the operator + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * OperatorID represents the ID of the operator to be deregistered + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgDeactivateOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeactivateOperator { + return new MsgDeactivateOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeactivateOperator { + return new MsgDeactivateOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeactivateOperator { + return new MsgDeactivateOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeactivateOperator | PlainMessage | undefined, b: MsgDeactivateOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeactivateOperator, a, b); + } +} + +/** + * MsgDeactivateOperatorResponse is the return value of MsgDeactivateOperator. + * + * @generated from message milkyway.operators.v1.MsgDeactivateOperatorResponse + */ +export class MsgDeactivateOperatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgDeactivateOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeactivateOperatorResponse { + return new MsgDeactivateOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeactivateOperatorResponse { + return new MsgDeactivateOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeactivateOperatorResponse { + return new MsgDeactivateOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeactivateOperatorResponse | PlainMessage | undefined, b: MsgDeactivateOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeactivateOperatorResponse, a, b); + } +} + +/** + * MsgReactivateOperator defines the message structure for the + * ReactivateOperator gRPC service method. It allows the operator owner to + * reactivate an inactive operator. + * + * @generated from message milkyway.operators.v1.MsgReactivateOperator + */ +export class MsgReactivateOperator extends Message { + /** + * Sender is the address of the user reactivating the operator + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * OperatorID represents the ID of the operator to be reactivated + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgReactivateOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgReactivateOperator { + return new MsgReactivateOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgReactivateOperator { + return new MsgReactivateOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgReactivateOperator { + return new MsgReactivateOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgReactivateOperator | PlainMessage | undefined, b: MsgReactivateOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgReactivateOperator, a, b); + } +} + +/** + * MsgReactivateOperatorResponse is the return value of MsgReactivateOperator. + * + * @generated from message milkyway.operators.v1.MsgReactivateOperatorResponse + */ +export class MsgReactivateOperatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgReactivateOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgReactivateOperatorResponse { + return new MsgReactivateOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgReactivateOperatorResponse { + return new MsgReactivateOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgReactivateOperatorResponse { + return new MsgReactivateOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgReactivateOperatorResponse | PlainMessage | undefined, b: MsgReactivateOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgReactivateOperatorResponse, a, b); + } +} + +/** + * MsgDeleteOperator defines the message structure for the + * DeleteOperator gRPC service method. It allows the operator owner to + * delete a deactivated operator. + * + * @generated from message milkyway.operators.v1.MsgDeleteOperator + */ +export class MsgDeleteOperator extends Message { + /** + * Sender is the address of the user deleting the operator + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * OperatorID represents the ID of the operator to be deleted + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgDeleteOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteOperator { + return new MsgDeleteOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteOperator { + return new MsgDeleteOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteOperator { + return new MsgDeleteOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteOperator | PlainMessage | undefined, b: MsgDeleteOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteOperator, a, b); + } +} + +/** + * MsgDeleteOperatorResponse is the return value of MsgDeleteOperator. + * + * @generated from message milkyway.operators.v1.MsgDeleteOperatorResponse + */ +export class MsgDeleteOperatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgDeleteOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteOperatorResponse { + return new MsgDeleteOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteOperatorResponse { + return new MsgDeleteOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteOperatorResponse { + return new MsgDeleteOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteOperatorResponse | PlainMessage | undefined, b: MsgDeleteOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteOperatorResponse, a, b); + } +} + +/** + * MsgSetOperatorParams defines the message structure for the + * SetOperatorParams gRPC service method. It allows the operator admin to + * update the operator's parameters. + * + * @generated from message milkyway.operators.v1.MsgSetOperatorParams + */ +export class MsgSetOperatorParams extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * @generated from field: milkyway.operators.v1.OperatorParams params = 3; + */ + params?: OperatorParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgSetOperatorParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "params", kind: "message", T: OperatorParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetOperatorParams { + return new MsgSetOperatorParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetOperatorParams { + return new MsgSetOperatorParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetOperatorParams { + return new MsgSetOperatorParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetOperatorParams | PlainMessage | undefined, b: MsgSetOperatorParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetOperatorParams, a, b); + } +} + +/** + * MsgSetOperatorParamsResponse is the return value of + * MsgSetOperatorParams. + * + * @generated from message milkyway.operators.v1.MsgSetOperatorParamsResponse + */ +export class MsgSetOperatorParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgSetOperatorParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetOperatorParamsResponse { + return new MsgSetOperatorParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetOperatorParamsResponse { + return new MsgSetOperatorParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetOperatorParamsResponse { + return new MsgSetOperatorParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetOperatorParamsResponse | PlainMessage | undefined, b: MsgSetOperatorParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetOperatorParamsResponse, a, b); + } +} + +/** + * MsgTransferOperatorOwnership defines the message structure for the + * TransferOperatorOwnership gRPC service method. It allows an operator admin to + * transfer the ownership of the operator to another account. + * + * @generated from message milkyway.operators.v1.MsgTransferOperatorOwnership + */ +export class MsgTransferOperatorOwnership extends Message { + /** + * Sender is the address of the user transferring the ownership + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * OperatorID represents the ID of the operator to transfer ownership + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * NewAdmin is the address of the new admin of the operator + * + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgTransferOperatorOwnership"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferOperatorOwnership { + return new MsgTransferOperatorOwnership().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferOperatorOwnership { + return new MsgTransferOperatorOwnership().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferOperatorOwnership { + return new MsgTransferOperatorOwnership().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferOperatorOwnership | PlainMessage | undefined, b: MsgTransferOperatorOwnership | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferOperatorOwnership, a, b); + } +} + +/** + * MsgTransferOperatorOwnershipResponse is the return value of + * MsgTransferOperatorOwnership. + * + * @generated from message milkyway.operators.v1.MsgTransferOperatorOwnershipResponse + */ +export class MsgTransferOperatorOwnershipResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgTransferOperatorOwnershipResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferOperatorOwnershipResponse { + return new MsgTransferOperatorOwnershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferOperatorOwnershipResponse { + return new MsgTransferOperatorOwnershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferOperatorOwnershipResponse { + return new MsgTransferOperatorOwnershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferOperatorOwnershipResponse | PlainMessage | undefined, b: MsgTransferOperatorOwnershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferOperatorOwnershipResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the message structure for the UpdateParams gRPC + * service method. It allows the authority to update the module parameters. + * + * @generated from message milkyway.operators.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params define the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: milkyway.operators.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse is the return value of MsgUpdateParams. + * + * @generated from message milkyway.operators.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/operators/v1/models_pb.ts b/src/protobufs/milkyway/operators/v1/models_pb.ts new file mode 100644 index 00000000..4b518916 --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/models_pb.ts @@ -0,0 +1,203 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/operators/v1/models.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * OperatorStatus defines the possible statuses of an operator + * + * @generated from enum milkyway.operators.v1.OperatorStatus + */ +export enum OperatorStatus { + /** + * OPERATOR_STATUS_UNSPECIFIED defines an unspecified status + * + * @generated from enum value: OPERATOR_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * OPERATOR_STATUS_ACTIVE identifies an active operator which is providing + * services + * + * @generated from enum value: OPERATOR_STATUS_ACTIVE = 1; + */ + ACTIVE = 1, + + /** + * OPERATOR_STATUS_INACTIVATING identifies an operator that is in the process + * of becoming inactive + * + * @generated from enum value: OPERATOR_STATUS_INACTIVATING = 2; + */ + INACTIVATING = 2, + + /** + * OPERATOR_STATUS_INACTIVE defines an inactive operator that is not providing + * services + * + * @generated from enum value: OPERATOR_STATUS_INACTIVE = 3; + */ + INACTIVE = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(OperatorStatus) +proto3.util.setEnumType(OperatorStatus, "milkyway.operators.v1.OperatorStatus", [ + { no: 0, name: "OPERATOR_STATUS_UNSPECIFIED" }, + { no: 1, name: "OPERATOR_STATUS_ACTIVE" }, + { no: 2, name: "OPERATOR_STATUS_INACTIVATING" }, + { no: 3, name: "OPERATOR_STATUS_INACTIVE" }, +]); + +/** + * Operator defines the fields of an operator + * + * @generated from message milkyway.operators.v1.Operator + */ +export class Operator extends Message { + /** + * ID is the auto-generated unique identifier for the operator + * + * @generated from field: uint32 id = 1; + */ + id = 0; + + /** + * Status is the status of the operator + * + * @generated from field: milkyway.operators.v1.OperatorStatus status = 2; + */ + status = OperatorStatus.UNSPECIFIED; + + /** + * Admin is the address of the user that can manage the operator + * + * @generated from field: string admin = 3; + */ + admin = ""; + + /** + * Moniker is the identifier of the operator + * + * @generated from field: string moniker = 4; + */ + moniker = ""; + + /** + * Website is the website of the operator + * + * @generated from field: string website = 5; + */ + website = ""; + + /** + * PictureURL is the URL of the picture of the operator + * + * @generated from field: string picture_url = 6; + */ + pictureUrl = ""; + + /** + * Address is the address of the account associated to the operator. + * This will be used to store tokens that are delegated to this operator. + * + * @generated from field: string address = 7; + */ + address = ""; + + /** + * Tokens define the delegated tokens. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin tokens = 8; + */ + tokens: Coin[] = []; + + /** + * DelegatorShares define the total shares issued to an operator's delegators. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin delegator_shares = 9; + */ + delegatorShares: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.Operator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(OperatorStatus) }, + { no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "tokens", kind: "message", T: Coin, repeated: true }, + { no: 9, name: "delegator_shares", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Operator { + return new Operator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Operator { + return new Operator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Operator { + return new Operator().fromJsonString(jsonString, options); + } + + static equals(a: Operator | PlainMessage | undefined, b: Operator | PlainMessage | undefined): boolean { + return proto3.util.equals(Operator, a, b); + } +} + +/** + * OperatorParams represent the params that have been set for an individual + * operator. + * + * @generated from message milkyway.operators.v1.OperatorParams + */ +export class OperatorParams extends Message { + /** + * CommissionRate defines the commission rate charged to delegators, as a + * fraction. + * + * @generated from field: string commission_rate = 1; + */ + commissionRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.OperatorParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OperatorParams { + return new OperatorParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OperatorParams { + return new OperatorParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OperatorParams { + return new OperatorParams().fromJsonString(jsonString, options); + } + + static equals(a: OperatorParams | PlainMessage | undefined, b: OperatorParams | PlainMessage | undefined): boolean { + return proto3.util.equals(OperatorParams, a, b); + } +} + diff --git a/src/protobufs/milkyway/operators/v1/params_pb.ts b/src/protobufs/milkyway/operators/v1/params_pb.ts new file mode 100644 index 00000000..e10299ac --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/params_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/operators/v1/params.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the operators module. + * + * @generated from message milkyway.operators.v1.Params + */ +export class Params extends Message { + /** + * OperatorRegistrationFee represents the fee that an operator must pay in + * order to register itself with the network. + * The fee is drawn from the MsgRegisterOperator sender's account and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin operator_registration_fee = 1; + */ + operatorRegistrationFee: Coin[] = []; + + /** + * DeactivationTime represents the amount of time that will pass between + * the time that an operator signals its willingness to deactivate and the + * time that it actually becomes inactive. + * + * @generated from field: int64 deactivation_time = 2; + */ + deactivationTime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_registration_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "deactivation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/milkyway/operators/v1/query_cosmes.ts b/src/protobufs/milkyway/operators/v1/query_cosmes.ts new file mode 100644 index 00000000..9d07dcb0 --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/query_cosmes.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/operators/v1/query.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryOperatorParamsRequest, QueryOperatorParamsResponse, QueryOperatorRequest, QueryOperatorResponse, QueryOperatorsRequest, QueryOperatorsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.operators.v1.Query"; + +/** + * Operator defines a gRPC query method that returns the operator by the given + * operator id. + * + * @generated from rpc milkyway.operators.v1.Query.Operator + */ +export const QueryOperatorService = { + typeName: TYPE_NAME, + method: "Operator", + Request: QueryOperatorRequest, + Response: QueryOperatorResponse, +} as const; + +/** + * OperatorParams defines a gRPC query method that returns the operator's + * params by the given operator id. + * + * @generated from rpc milkyway.operators.v1.Query.OperatorParams + */ +export const QueryOperatorParamsService = { + typeName: TYPE_NAME, + method: "OperatorParams", + Request: QueryOperatorParamsRequest, + Response: QueryOperatorParamsResponse, +} as const; + +/** + * Operators defines a gRPC query method that returns the list of operators. + * + * @generated from rpc milkyway.operators.v1.Query.Operators + */ +export const QueryOperatorsService = { + typeName: TYPE_NAME, + method: "Operators", + Request: QueryOperatorsRequest, + Response: QueryOperatorsResponse, +} as const; + +/** + * Params defines a gRPC query method that returns the parameters of the + * module. + * + * @generated from rpc milkyway.operators.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/operators/v1/query_pb.ts b/src/protobufs/milkyway/operators/v1/query_pb.ts new file mode 100644 index 00000000..df2bc2b6 --- /dev/null +++ b/src/protobufs/milkyway/operators/v1/query_pb.ts @@ -0,0 +1,334 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/operators/v1/query.proto (package milkyway.operators.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Operator, OperatorParams } from "./models_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * QueryOperatorRequest is the request type for the Query/Operator RPC method. + * + * @generated from message milkyway.operators.v1.QueryOperatorRequest + */ +export class QueryOperatorRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorRequest { + return new QueryOperatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorRequest { + return new QueryOperatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorRequest { + return new QueryOperatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorRequest | PlainMessage | undefined, b: QueryOperatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorRequest, a, b); + } +} + +/** + * QueryOperatorResponse is the response type for the Query/Operator RPC method. + * + * @generated from message milkyway.operators.v1.QueryOperatorResponse + */ +export class QueryOperatorResponse extends Message { + /** + * @generated from field: milkyway.operators.v1.Operator operator = 1; + */ + operator?: Operator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator", kind: "message", T: Operator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorResponse { + return new QueryOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorResponse { + return new QueryOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorResponse { + return new QueryOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorResponse | PlainMessage | undefined, b: QueryOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorResponse, a, b); + } +} + +/** + * QueryOperatorParamsRequest is the request type for the Query/OperatorParams + * RPC method. + * + * @generated from message milkyway.operators.v1.QueryOperatorParamsRequest + */ +export class QueryOperatorParamsRequest extends Message { + /** + * OperatorID is the ID of the operator for which to query the params + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorParamsRequest { + return new QueryOperatorParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorParamsRequest { + return new QueryOperatorParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorParamsRequest { + return new QueryOperatorParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorParamsRequest | PlainMessage | undefined, b: QueryOperatorParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorParamsRequest, a, b); + } +} + +/** + * QueryOperatorParamsResponse is the response type for the Query/OperatorParams + * RPC method. + * + * @generated from message milkyway.operators.v1.QueryOperatorParamsResponse + */ +export class QueryOperatorParamsResponse extends Message { + /** + * @generated from field: milkyway.operators.v1.OperatorParams operator_params = 1; + */ + operatorParams?: OperatorParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_params", kind: "message", T: OperatorParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorParamsResponse { + return new QueryOperatorParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorParamsResponse { + return new QueryOperatorParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorParamsResponse { + return new QueryOperatorParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorParamsResponse | PlainMessage | undefined, b: QueryOperatorParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorParamsResponse, a, b); + } +} + +/** + * QueryOperatorsRequest is the request type for the Query/Operators RPC method. + * + * @generated from message milkyway.operators.v1.QueryOperatorsRequest + */ +export class QueryOperatorsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorsRequest { + return new QueryOperatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorsRequest { + return new QueryOperatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorsRequest { + return new QueryOperatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorsRequest | PlainMessage | undefined, b: QueryOperatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorsRequest, a, b); + } +} + +/** + * QueryOperatorsResponse is the response type for the Query/Operators RPC + * method. + * + * @generated from message milkyway.operators.v1.QueryOperatorsResponse + */ +export class QueryOperatorsResponse extends Message { + /** + * Operators is the list of operators + * + * @generated from field: repeated milkyway.operators.v1.Operator operators = 1; + */ + operators: Operator[] = []; + + /** + * Pagination defines the pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryOperatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operators", kind: "message", T: Operator, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorsResponse { + return new QueryOperatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorsResponse { + return new QueryOperatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorsResponse { + return new QueryOperatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorsResponse | PlainMessage | undefined, b: QueryOperatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorsResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message milkyway.operators.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message milkyway.operators.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: milkyway.operators.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.operators.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/pools/v1/genesis_pb.ts b/src/protobufs/milkyway/pools/v1/genesis_pb.ts new file mode 100644 index 00000000..e5b9a8d3 --- /dev/null +++ b/src/protobufs/milkyway/pools/v1/genesis_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/pools/v1/genesis.proto (package milkyway.pools.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Pool } from "./models_pb.js"; + +/** + * GenesisState defines the pools module's genesis state. + * + * @generated from message milkyway.pools.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * NextPoolID represents the id to be used when creating the next pool. + * + * @generated from field: uint32 next_pool_id = 1; + */ + nextPoolId = 0; + + /** + * Pools defines the list of pools. + * + * @generated from field: repeated milkyway.pools.v1.Pool pools = 2; + */ + pools: Pool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pools", kind: "message", T: Pool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/pools/v1/models_pb.ts b/src/protobufs/milkyway/pools/v1/models_pb.ts new file mode 100644 index 00000000..529ca3fa --- /dev/null +++ b/src/protobufs/milkyway/pools/v1/models_pb.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/pools/v1/models.proto (package milkyway.pools.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Pool defines the structure of a restaking pool + * + * @generated from message milkyway.pools.v1.Pool + */ +export class Pool extends Message { + /** + * ID is the auto-generated unique identifier for the pool + * + * @generated from field: uint32 id = 1; + */ + id = 0; + + /** + * Denom represents the denomination of the tokens that are staked in the pool + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * Address represents the address of the account that is associated with this + * pool. This will be used to store tokens that users delegate to this pool. + * + * @generated from field: string address = 3; + */ + address = ""; + + /** + * Tokens define the delegated tokens. + * + * @generated from field: string tokens = 4; + */ + tokens = ""; + + /** + * DelegatorShares defines total shares issued to a pool's delegators. + * + * @generated from field: string delegator_shares = 5; + */ + delegatorShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "delegator_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + diff --git a/src/protobufs/milkyway/pools/v1/query_cosmes.ts b/src/protobufs/milkyway/pools/v1/query_cosmes.ts new file mode 100644 index 00000000..40592e21 --- /dev/null +++ b/src/protobufs/milkyway/pools/v1/query_cosmes.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/pools/v1/query.proto (package milkyway.pools.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryPoolByDenomRequest, QueryPoolByIdRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.pools.v1.Query"; + +/** + * PoolByID defines a gRPC query method that returns the pool by the given ID. + * + * @generated from rpc milkyway.pools.v1.Query.PoolByID + */ +export const QueryPoolByIDService = { + typeName: TYPE_NAME, + method: "PoolByID", + Request: QueryPoolByIdRequest, + Response: QueryPoolResponse, +} as const; + +/** + * PoolByDenom defines a gRPC query method that returns the pool by the given + * denom. + * + * @generated from rpc milkyway.pools.v1.Query.PoolByDenom + */ +export const QueryPoolByDenomService = { + typeName: TYPE_NAME, + method: "PoolByDenom", + Request: QueryPoolByDenomRequest, + Response: QueryPoolResponse, +} as const; + +/** + * Pools defines a gRPC query method that returns all pools. + * + * @generated from rpc milkyway.pools.v1.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryPoolsRequest, + Response: QueryPoolsResponse, +} as const; + diff --git a/src/protobufs/milkyway/pools/v1/query_pb.ts b/src/protobufs/milkyway/pools/v1/query_pb.ts new file mode 100644 index 00000000..7fc3eb63 --- /dev/null +++ b/src/protobufs/milkyway/pools/v1/query_pb.ts @@ -0,0 +1,223 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/pools/v1/query.proto (package milkyway.pools.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Pool } from "./models_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryPoolByIdRequest is the request type for the Query/PoolById RPC method. + * + * @generated from message milkyway.pools.v1.QueryPoolByIdRequest + */ +export class QueryPoolByIdRequest extends Message { + /** + * PoolID is the ID of the pool to query + * + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.QueryPoolByIdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolByIdRequest { + return new QueryPoolByIdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolByIdRequest { + return new QueryPoolByIdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolByIdRequest { + return new QueryPoolByIdRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolByIdRequest | PlainMessage | undefined, b: QueryPoolByIdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolByIdRequest, a, b); + } +} + +/** + * QueryPoolByDenomRequest is the request type for the Query/PollByDenom RPC + * method. + * + * @generated from message milkyway.pools.v1.QueryPoolByDenomRequest + */ +export class QueryPoolByDenomRequest extends Message { + /** + * Denom is the denom for which the pool is to be queried + * + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.QueryPoolByDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolByDenomRequest { + return new QueryPoolByDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolByDenomRequest { + return new QueryPoolByDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolByDenomRequest { + return new QueryPoolByDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolByDenomRequest | PlainMessage | undefined, b: QueryPoolByDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolByDenomRequest, a, b); + } +} + +/** + * QueryPoolResponse is the response type for the Query/PoolById and + * Query/PoolByDenom RPC methods. + * + * @generated from message milkyway.pools.v1.QueryPoolResponse + */ +export class QueryPoolResponse extends Message { + /** + * Pool is the queried pool + * + * @generated from field: milkyway.pools.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.QueryPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolResponse, a, b); + } +} + +/** + * QueryPoolsRequest is the request type for the Query/Pools RPC method. + * + * @generated from message milkyway.pools.v1.QueryPoolsRequest + */ +export class QueryPoolsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.QueryPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsRequest | PlainMessage | undefined, b: QueryPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsRequest, a, b); + } +} + +/** + * QueryPoolsResponse is the response type for the Query/Pools RPC method. + * + * @generated from message milkyway.pools.v1.QueryPoolsResponse + */ +export class QueryPoolsResponse extends Message { + /** + * Pools is the list of pool + * + * @generated from field: repeated milkyway.pools.v1.Pool pools = 1; + */ + pools: Pool[] = []; + + /** + * Pagination defines the pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.pools.v1.QueryPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/restaking/v1/genesis_pb.ts b/src/protobufs/milkyway/restaking/v1/genesis_pb.ts new file mode 100644 index 00000000..07dab17c --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/genesis_pb.ts @@ -0,0 +1,301 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/genesis.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Delegation, UnbondingDelegation, UserPreferences } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * OperatorJoinedServicesRecord represents the services joined by a + * individual operator. + * + * @generated from message milkyway.restaking.v1.OperatorJoinedServices + */ +export class OperatorJoinedServices extends Message { + /** + * OperatorID is the ID of the operator. + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * ServiceIDs represents the list of services joined by the operator. + * + * @generated from field: repeated uint32 service_ids = 2; + */ + serviceIds: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.OperatorJoinedServices"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "service_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OperatorJoinedServices { + return new OperatorJoinedServices().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OperatorJoinedServices { + return new OperatorJoinedServices().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OperatorJoinedServices { + return new OperatorJoinedServices().fromJsonString(jsonString, options); + } + + static equals(a: OperatorJoinedServices | PlainMessage | undefined, b: OperatorJoinedServices | PlainMessage | undefined): boolean { + return proto3.util.equals(OperatorJoinedServices, a, b); + } +} + +/** + * ServiceAllowedOperators represents the operators allowed to secure a + * a service. + * + * @generated from message milkyway.restaking.v1.ServiceAllowedOperators + */ +export class ServiceAllowedOperators extends Message { + /** + * ServiceID is the ID of the service. + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * OperatorIDs defines the allowed operator IDs. + * + * @generated from field: repeated uint32 operator_ids = 2; + */ + operatorIds: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.ServiceAllowedOperators"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "operator_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ServiceAllowedOperators { + return new ServiceAllowedOperators().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ServiceAllowedOperators { + return new ServiceAllowedOperators().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ServiceAllowedOperators { + return new ServiceAllowedOperators().fromJsonString(jsonString, options); + } + + static equals(a: ServiceAllowedOperators | PlainMessage | undefined, b: ServiceAllowedOperators | PlainMessage | undefined): boolean { + return proto3.util.equals(ServiceAllowedOperators, a, b); + } +} + +/** + * ServiceSecuringPools represents the list pools from which a service can + * borrow security + * + * @generated from message milkyway.restaking.v1.ServiceSecuringPools + */ +export class ServiceSecuringPools extends Message { + /** + * ServiceID is the ID of the service. + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * PoolIDs defines the IDs of the pools from which the service can borrow + * security. + * + * @generated from field: repeated uint32 pool_ids = 2; + */ + poolIds: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.ServiceSecuringPools"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pool_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ServiceSecuringPools { + return new ServiceSecuringPools().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ServiceSecuringPools { + return new ServiceSecuringPools().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ServiceSecuringPools { + return new ServiceSecuringPools().fromJsonString(jsonString, options); + } + + static equals(a: ServiceSecuringPools | PlainMessage | undefined, b: ServiceSecuringPools | PlainMessage | undefined): boolean { + return proto3.util.equals(ServiceSecuringPools, a, b); + } +} + +/** + * UserPreferencesEntry represents the user preferences. + * + * @generated from message milkyway.restaking.v1.UserPreferencesEntry + */ +export class UserPreferencesEntry extends Message { + /** + * UserAddress is the encoded address of the user. + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + /** + * Preferences is the user preferences. + * + * @generated from field: milkyway.restaking.v1.UserPreferences preferences = 2; + */ + preferences?: UserPreferences; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.UserPreferencesEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "preferences", kind: "message", T: UserPreferences }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserPreferencesEntry { + return new UserPreferencesEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserPreferencesEntry { + return new UserPreferencesEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserPreferencesEntry { + return new UserPreferencesEntry().fromJsonString(jsonString, options); + } + + static equals(a: UserPreferencesEntry | PlainMessage | undefined, b: UserPreferencesEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UserPreferencesEntry, a, b); + } +} + +/** + * GenesisState defines the restaking module's genesis state. + * + * @generated from message milkyway.restaking.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines the parameters of the module. + * + * @generated from field: milkyway.restaking.v1.Params params = 1; + */ + params?: Params; + + /** + * OperatorsJoinedServices defines the list of the services that each operator + * has joined. + * + * @generated from field: repeated milkyway.restaking.v1.OperatorJoinedServices operators_joined_services = 2; + */ + operatorsJoinedServices: OperatorJoinedServices[] = []; + + /** + * ServiceAllowedOperators defines the operators allowed to secure each + * service. + * + * @generated from field: repeated milkyway.restaking.v1.ServiceAllowedOperators services_allowed_operators = 3; + */ + servicesAllowedOperators: ServiceAllowedOperators[] = []; + + /** + * ServicesSecuringPools defines the whitelisted pools for each service. + * + * @generated from field: repeated milkyway.restaking.v1.ServiceSecuringPools services_securing_pools = 4; + */ + servicesSecuringPools: ServiceSecuringPools[] = []; + + /** + * Delegations represents the delegations. + * + * @generated from field: repeated milkyway.restaking.v1.Delegation delegations = 5; + */ + delegations: Delegation[] = []; + + /** + * UnbondingDelegations represents the unbonding delegations. + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 6; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * UserPreferences represents the user preferences. + * + * @generated from field: repeated milkyway.restaking.v1.UserPreferencesEntry users_preferences = 7; + */ + usersPreferences: UserPreferencesEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "operators_joined_services", kind: "message", T: OperatorJoinedServices, repeated: true }, + { no: 3, name: "services_allowed_operators", kind: "message", T: ServiceAllowedOperators, repeated: true }, + { no: 4, name: "services_securing_pools", kind: "message", T: ServiceSecuringPools, repeated: true }, + { no: 5, name: "delegations", kind: "message", T: Delegation, repeated: true }, + { no: 6, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 7, name: "users_preferences", kind: "message", T: UserPreferencesEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/restaking/v1/messages_cosmes.ts b/src/protobufs/milkyway/restaking/v1/messages_cosmes.ts new file mode 100644 index 00000000..2d13df29 --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/messages_cosmes.ts @@ -0,0 +1,196 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/messages.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddOperatorToAllowList, MsgAddOperatorToAllowListResponse, MsgBorrowPoolSecurity, MsgBorrowPoolSecurityResponse, MsgCeasePoolSecurityBorrow, MsgCeasePoolSecurityBorrowResponse, MsgDelegateOperator, MsgDelegateOperatorResponse, MsgDelegatePool, MsgDelegatePoolResponse, MsgDelegateService, MsgDelegateServiceResponse, MsgJoinService, MsgJoinServiceResponse, MsgLeaveService, MsgLeaveServiceResponse, MsgRemoveOperatorFromAllowlist, MsgRemoveOperatorFromAllowlistResponse, MsgSetUserPreferences, MsgSetUserPreferencesResponse, MsgUndelegateOperator, MsgUndelegatePool, MsgUndelegateResponse, MsgUndelegateService, MsgUpdateParams, MsgUpdateParamsResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.restaking.v1.Msg"; + +/** + * JoinService defines the operation that allows the operator admin + * to start securing an AVS + * + * @generated from rpc milkyway.restaking.v1.Msg.JoinService + */ +export const MsgJoinServiceService = { + typeName: TYPE_NAME, + method: "JoinService", + Request: MsgJoinService, + Response: MsgJoinServiceResponse, +} as const; + +/** + * LeaveService defines the operation that allows the operator admin + * to stop securing an AVS + * + * @generated from rpc milkyway.restaking.v1.Msg.LeaveService + */ +export const MsgLeaveServiceService = { + typeName: TYPE_NAME, + method: "LeaveService", + Request: MsgLeaveService, + Response: MsgLeaveServiceResponse, +} as const; + +/** + * AddOperatorToAllowList defines the operation that allows the service admin + * to add an operator to the list of allowed operator to secure the service + * + * @generated from rpc milkyway.restaking.v1.Msg.AddOperatorToAllowList + */ +export const MsgAddOperatorToAllowListService = { + typeName: TYPE_NAME, + method: "AddOperatorToAllowList", + Request: MsgAddOperatorToAllowList, + Response: MsgAddOperatorToAllowListResponse, +} as const; + +/** + * RemoveOperatorFromAllowlist defines the operation that allows the service + * admin to remove a previously added operator from the list of allowed + * operators to secure the service + * + * @generated from rpc milkyway.restaking.v1.Msg.RemoveOperatorFromAllowlist + */ +export const MsgRemoveOperatorFromAllowlistService = { + typeName: TYPE_NAME, + method: "RemoveOperatorFromAllowlist", + Request: MsgRemoveOperatorFromAllowlist, + Response: MsgRemoveOperatorFromAllowlistResponse, +} as const; + +/** + * BorrowPoolSecurity defines the operation that allows the service admin + * to add a pool to the list of pools from which the service has chosen + * to borrow security. + * + * @generated from rpc milkyway.restaking.v1.Msg.BorrowPoolSecurity + */ +export const MsgBorrowPoolSecurityService = { + typeName: TYPE_NAME, + method: "BorrowPoolSecurity", + Request: MsgBorrowPoolSecurity, + Response: MsgBorrowPoolSecurityResponse, +} as const; + +/** + * CeasePoolSecurityBorrow defines the operation that allows the service admin + * to remove a pool from the list of pools from which the service has chosen + * to borrow security. + * + * @generated from rpc milkyway.restaking.v1.Msg.CeasePoolSecurityBorrow + */ +export const MsgCeasePoolSecurityBorrowService = { + typeName: TYPE_NAME, + method: "CeasePoolSecurityBorrow", + Request: MsgCeasePoolSecurityBorrow, + Response: MsgCeasePoolSecurityBorrowResponse, +} as const; + +/** + * DelegatePool defines the operation that allows users to delegate any amount + * of an asset to a pool that can then be used to provide services with + * cryptoeconomic security. + * + * @generated from rpc milkyway.restaking.v1.Msg.DelegatePool + */ +export const MsgDelegatePoolService = { + typeName: TYPE_NAME, + method: "DelegatePool", + Request: MsgDelegatePool, + Response: MsgDelegatePoolResponse, +} as const; + +/** + * DelegateOperator defines the operation that allows users to delegate their + * assets to a specific operator. + * + * @generated from rpc milkyway.restaking.v1.Msg.DelegateOperator + */ +export const MsgDelegateOperatorService = { + typeName: TYPE_NAME, + method: "DelegateOperator", + Request: MsgDelegateOperator, + Response: MsgDelegateOperatorResponse, +} as const; + +/** + * DelegateService defines the operation that allows users to delegate their + * assets to a specific service. + * + * @generated from rpc milkyway.restaking.v1.Msg.DelegateService + */ +export const MsgDelegateServiceService = { + typeName: TYPE_NAME, + method: "DelegateService", + Request: MsgDelegateService, + Response: MsgDelegateServiceResponse, +} as const; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. + * The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.restaking.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * UndelegatePool defines the operation that allows users to undelegate their + * assets from a pool. + * + * @generated from rpc milkyway.restaking.v1.Msg.UndelegatePool + */ +export const MsgUndelegatePoolService = { + typeName: TYPE_NAME, + method: "UndelegatePool", + Request: MsgUndelegatePool, + Response: MsgUndelegateResponse, +} as const; + +/** + * UndelegateOperator defines the operation that allows users to undelegate + * their assets from a specific operator. + * + * @generated from rpc milkyway.restaking.v1.Msg.UndelegateOperator + */ +export const MsgUndelegateOperatorService = { + typeName: TYPE_NAME, + method: "UndelegateOperator", + Request: MsgUndelegateOperator, + Response: MsgUndelegateResponse, +} as const; + +/** + * UndelegateService defines the operation that allows users to undelegate + * their assets from a specific service. + * + * @generated from rpc milkyway.restaking.v1.Msg.UndelegateService + */ +export const MsgUndelegateServiceService = { + typeName: TYPE_NAME, + method: "UndelegateService", + Request: MsgUndelegateService, + Response: MsgUndelegateResponse, +} as const; + +/** + * SetUserPreferences defines the operation that allows users to set their + * preferences for the restaking module. + * + * @generated from rpc milkyway.restaking.v1.Msg.SetUserPreferences + */ +export const MsgSetUserPreferencesService = { + typeName: TYPE_NAME, + method: "SetUserPreferences", + Request: MsgSetUserPreferences, + Response: MsgSetUserPreferencesResponse, +} as const; + diff --git a/src/protobufs/milkyway/restaking/v1/messages_pb.ts b/src/protobufs/milkyway/restaking/v1/messages_pb.ts new file mode 100644 index 00000000..f535d85a --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/messages_pb.ts @@ -0,0 +1,1181 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/messages.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; +import { UserPreferences } from "./models_pb.js"; + +/** + * MsgJoinService defines the message structure for the + * JoinService gRPC service method. It allows the operator admin to + * start securing a AVS. + * + * @generated from message milkyway.restaking.v1.MsgJoinService + */ +export class MsgJoinService extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * @generated from field: uint32 service_id = 3; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgJoinService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinService { + return new MsgJoinService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinService { + return new MsgJoinService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinService { + return new MsgJoinService().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinService | PlainMessage | undefined, b: MsgJoinService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinService, a, b); + } +} + +/** + * MsgJoinServiceResponse is the return value of MsgJoinService. + * + * @generated from message milkyway.restaking.v1.MsgJoinServiceResponse + */ +export class MsgJoinServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgJoinServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinServiceResponse { + return new MsgJoinServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinServiceResponse { + return new MsgJoinServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinServiceResponse { + return new MsgJoinServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinServiceResponse | PlainMessage | undefined, b: MsgJoinServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinServiceResponse, a, b); + } +} + +/** + * MsgLeaveService defines the message structure for the + * LeaveService gRPC service method. It allows the operator admin to + * stop securing a AVS. + * + * @generated from message milkyway.restaking.v1.MsgLeaveService + */ +export class MsgLeaveService extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * @generated from field: uint32 service_id = 3; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgLeaveService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveService { + return new MsgLeaveService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveService { + return new MsgLeaveService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLeaveService { + return new MsgLeaveService().fromJsonString(jsonString, options); + } + + static equals(a: MsgLeaveService | PlainMessage | undefined, b: MsgLeaveService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLeaveService, a, b); + } +} + +/** + * MsgLeaveServiceResponse is the return value of MsgLeaveService. + * + * @generated from message milkyway.restaking.v1.MsgLeaveServiceResponse + */ +export class MsgLeaveServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgLeaveServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveServiceResponse { + return new MsgLeaveServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveServiceResponse { + return new MsgLeaveServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLeaveServiceResponse { + return new MsgLeaveServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLeaveServiceResponse | PlainMessage | undefined, b: MsgLeaveServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLeaveServiceResponse, a, b); + } +} + +/** + * MsgAddOperatorToAllowList defines the message structure for the + * AddOperatorToAllowList gRPC service method. It allows the service admin + * to add an operator to the list of allowed operator to secure the service. + * + * @generated from message milkyway.restaking.v1.MsgAddOperatorToAllowList + */ +export class MsgAddOperatorToAllowList extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * @generated from field: uint32 operator_id = 3; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgAddOperatorToAllowList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddOperatorToAllowList { + return new MsgAddOperatorToAllowList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddOperatorToAllowList { + return new MsgAddOperatorToAllowList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddOperatorToAllowList { + return new MsgAddOperatorToAllowList().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddOperatorToAllowList | PlainMessage | undefined, b: MsgAddOperatorToAllowList | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddOperatorToAllowList, a, b); + } +} + +/** + * MsgAddOperatorToAllowListResponse is the return value of + * MsgAddOperatorToAllowList. + * + * @generated from message milkyway.restaking.v1.MsgAddOperatorToAllowListResponse + */ +export class MsgAddOperatorToAllowListResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgAddOperatorToAllowListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddOperatorToAllowListResponse { + return new MsgAddOperatorToAllowListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddOperatorToAllowListResponse { + return new MsgAddOperatorToAllowListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddOperatorToAllowListResponse { + return new MsgAddOperatorToAllowListResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddOperatorToAllowListResponse | PlainMessage | undefined, b: MsgAddOperatorToAllowListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddOperatorToAllowListResponse, a, b); + } +} + +/** + * MsgRemoveOperatorFromAllowlist defines the message structure for the + * RemoveOperatorFromAllowlist gRPC service method. It allows the service admin + * to remove a previously added operator from the list of allowed operators + * to secure the service. + * + * @generated from message milkyway.restaking.v1.MsgRemoveOperatorFromAllowlist + */ +export class MsgRemoveOperatorFromAllowlist extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * @generated from field: uint32 operator_id = 3; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgRemoveOperatorFromAllowlist"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveOperatorFromAllowlist { + return new MsgRemoveOperatorFromAllowlist().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveOperatorFromAllowlist { + return new MsgRemoveOperatorFromAllowlist().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveOperatorFromAllowlist { + return new MsgRemoveOperatorFromAllowlist().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveOperatorFromAllowlist | PlainMessage | undefined, b: MsgRemoveOperatorFromAllowlist | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveOperatorFromAllowlist, a, b); + } +} + +/** + * MsgRemoveOperatorFromAllowlistResponse is the return value of + * MsgRemoveOperatorFromAllowlist. + * + * @generated from message milkyway.restaking.v1.MsgRemoveOperatorFromAllowlistResponse + */ +export class MsgRemoveOperatorFromAllowlistResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgRemoveOperatorFromAllowlistResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveOperatorFromAllowlistResponse { + return new MsgRemoveOperatorFromAllowlistResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveOperatorFromAllowlistResponse { + return new MsgRemoveOperatorFromAllowlistResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveOperatorFromAllowlistResponse { + return new MsgRemoveOperatorFromAllowlistResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveOperatorFromAllowlistResponse | PlainMessage | undefined, b: MsgRemoveOperatorFromAllowlistResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveOperatorFromAllowlistResponse, a, b); + } +} + +/** + * MsgBorrowPoolSecurity defines the message structure for the + * BorrowPoolSecurity gRPC service method. It allows the service admin + * to add a pool to the list of pools from which the service has chosen + * to borrow security. + * + * @generated from message milkyway.restaking.v1.MsgBorrowPoolSecurity + */ +export class MsgBorrowPoolSecurity extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * @generated from field: uint32 pool_id = 3; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgBorrowPoolSecurity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBorrowPoolSecurity { + return new MsgBorrowPoolSecurity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBorrowPoolSecurity { + return new MsgBorrowPoolSecurity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBorrowPoolSecurity { + return new MsgBorrowPoolSecurity().fromJsonString(jsonString, options); + } + + static equals(a: MsgBorrowPoolSecurity | PlainMessage | undefined, b: MsgBorrowPoolSecurity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBorrowPoolSecurity, a, b); + } +} + +/** + * MsgBorrowPoolSecurityResponse is the return value of MsgBorrowPoolSecurity. + * + * @generated from message milkyway.restaking.v1.MsgBorrowPoolSecurityResponse + */ +export class MsgBorrowPoolSecurityResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgBorrowPoolSecurityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBorrowPoolSecurityResponse { + return new MsgBorrowPoolSecurityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBorrowPoolSecurityResponse { + return new MsgBorrowPoolSecurityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBorrowPoolSecurityResponse { + return new MsgBorrowPoolSecurityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBorrowPoolSecurityResponse | PlainMessage | undefined, b: MsgBorrowPoolSecurityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBorrowPoolSecurityResponse, a, b); + } +} + +/** + * MsgCeasePoolSecurityBorrow defines the message structure for the + * CeaseBorrowPoolSecurity gRPC service method. It allows the service admin + * to remove a pool from the list of pools from which the service has chosen + * to borrow security. + * + * @generated from message milkyway.restaking.v1.MsgCeasePoolSecurityBorrow + */ +export class MsgCeasePoolSecurityBorrow extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * @generated from field: uint32 pool_id = 3; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgCeasePoolSecurityBorrow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCeasePoolSecurityBorrow { + return new MsgCeasePoolSecurityBorrow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCeasePoolSecurityBorrow { + return new MsgCeasePoolSecurityBorrow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCeasePoolSecurityBorrow { + return new MsgCeasePoolSecurityBorrow().fromJsonString(jsonString, options); + } + + static equals(a: MsgCeasePoolSecurityBorrow | PlainMessage | undefined, b: MsgCeasePoolSecurityBorrow | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCeasePoolSecurityBorrow, a, b); + } +} + +/** + * MsgCeasePoolSecurityBorrowResponse is the return value of + * MsgCeasePoolSecurityBorrow. + * + * @generated from message milkyway.restaking.v1.MsgCeasePoolSecurityBorrowResponse + */ +export class MsgCeasePoolSecurityBorrowResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgCeasePoolSecurityBorrowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCeasePoolSecurityBorrowResponse { + return new MsgCeasePoolSecurityBorrowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCeasePoolSecurityBorrowResponse { + return new MsgCeasePoolSecurityBorrowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCeasePoolSecurityBorrowResponse { + return new MsgCeasePoolSecurityBorrowResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCeasePoolSecurityBorrowResponse | PlainMessage | undefined, b: MsgCeasePoolSecurityBorrowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCeasePoolSecurityBorrowResponse, a, b); + } +} + +/** + * MsgDelegatePool defines the message structure for the DelegatePool gRPC + * service method. It allows a user to put their assets into a restaking pool + * that will later be used to provide cryptoeconomic security to services that + * choose it. + * + * @generated from message milkyway.restaking.v1.MsgDelegatePool + */ +export class MsgDelegatePool extends Message { + /** + * Delegator is the address of the user joining the pool + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * Amount is the amount of coins to be staked + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegatePool { + return new MsgDelegatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegatePool { + return new MsgDelegatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegatePool { + return new MsgDelegatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegatePool | PlainMessage | undefined, b: MsgDelegatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegatePool, a, b); + } +} + +/** + * MsgDelegatePoolResponse defines the return value of MsgDelegatePool. + * + * @generated from message milkyway.restaking.v1.MsgDelegatePoolResponse + */ +export class MsgDelegatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegatePoolResponse { + return new MsgDelegatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegatePoolResponse { + return new MsgDelegatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegatePoolResponse { + return new MsgDelegatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegatePoolResponse | PlainMessage | undefined, b: MsgDelegatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegatePoolResponse, a, b); + } +} + +/** + * MsgDelegateOperator defines the message structure for the DelegateOperator + * gRPC service method. It allows a user to delegate their assets to an + * operator. + * + * @generated from message milkyway.restaking.v1.MsgDelegateOperator + */ +export class MsgDelegateOperator extends Message { + /** + * Delegator is the address of the user delegating to the operator + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * OperatorID is the ID of the operator to delegate to + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * Amount is the amount of coins to be delegated + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegateOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateOperator { + return new MsgDelegateOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateOperator { + return new MsgDelegateOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateOperator { + return new MsgDelegateOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateOperator | PlainMessage | undefined, b: MsgDelegateOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateOperator, a, b); + } +} + +/** + * MsgDelegateOperatorResponse is the return value of MsgDelegateOperator. + * + * @generated from message milkyway.restaking.v1.MsgDelegateOperatorResponse + */ +export class MsgDelegateOperatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegateOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateOperatorResponse { + return new MsgDelegateOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateOperatorResponse { + return new MsgDelegateOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateOperatorResponse { + return new MsgDelegateOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateOperatorResponse | PlainMessage | undefined, b: MsgDelegateOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateOperatorResponse, a, b); + } +} + +/** + * MsgDelegateService defines the message structure for the DelegateService gRPC + * service method. It allows a user to delegate their assets to a service. + * + * @generated from message milkyway.restaking.v1.MsgDelegateService + */ +export class MsgDelegateService extends Message { + /** + * Delegator is the address of the user delegating to the service + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * ServiceID is the ID of the service to delegate to + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * Amount is the amount of coins to be delegated + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateService { + return new MsgDelegateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateService { + return new MsgDelegateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateService { + return new MsgDelegateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateService | PlainMessage | undefined, b: MsgDelegateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateService, a, b); + } +} + +/** + * MsgDelegateServiceResponse is the return value of MsgDelegateService. + * + * @generated from message milkyway.restaking.v1.MsgDelegateServiceResponse + */ +export class MsgDelegateServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgDelegateServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateServiceResponse { + return new MsgDelegateServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateServiceResponse { + return new MsgDelegateServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateServiceResponse { + return new MsgDelegateServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateServiceResponse | PlainMessage | undefined, b: MsgDelegateServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateServiceResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the message structure for the UpdateParams gRPC + * service method. It allows the authority to update the module parameters. + * + * @generated from message milkyway.restaking.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params define the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: milkyway.restaking.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse is the return value of MsgUpdateParams. + * + * @generated from message milkyway.restaking.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgUndelegatePool the message structure for the UndelegatePool gRPC service + * method. It allows a user to undelegate their assets from a restaking pool. + * + * @generated from message milkyway.restaking.v1.MsgUndelegatePool + */ +export class MsgUndelegatePool extends Message { + /** + * Delegator is the address of the user undelegating from the pool. + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * Amount is the amount of coins to be undelegated. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUndelegatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegatePool { + return new MsgUndelegatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegatePool { + return new MsgUndelegatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegatePool { + return new MsgUndelegatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegatePool | PlainMessage | undefined, b: MsgUndelegatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegatePool, a, b); + } +} + +/** + * MsgUndelegateOperator the message structure for the UndelegateOperator gRPC + * service method. It allows a user to undelegate their assets from a restaking + * operator. + * + * @generated from message milkyway.restaking.v1.MsgUndelegateOperator + */ +export class MsgUndelegateOperator extends Message { + /** + * Delegator is the address of the user undelegating from the operator. + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * OperatorID is the ID of the operator to undelegate from. + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + /** + * Amount is the amount of coins to be undelegated. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUndelegateOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateOperator { + return new MsgUndelegateOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateOperator { + return new MsgUndelegateOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateOperator { + return new MsgUndelegateOperator().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegateOperator | PlainMessage | undefined, b: MsgUndelegateOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegateOperator, a, b); + } +} + +/** + * MsgUndelegateService the message structure for the UndelegateService gRPC + * service method. It allows a user to undelegate their assets from a restaking + * service. + * + * @generated from message milkyway.restaking.v1.MsgUndelegateService + */ +export class MsgUndelegateService extends Message { + /** + * Delegator is the address of the user undelegating from the service. + * + * @generated from field: string delegator = 1; + */ + delegator = ""; + + /** + * ServiceID is the ID of the service to undelegate from. + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * Amount is the amount of coins to be undelegated. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUndelegateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateService { + return new MsgUndelegateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateService { + return new MsgUndelegateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateService { + return new MsgUndelegateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegateService | PlainMessage | undefined, b: MsgUndelegateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegateService, a, b); + } +} + +/** + * MsgUndelegateResponse defines the response type for the undelegation methods. + * + * @generated from message milkyway.restaking.v1.MsgUndelegateResponse + */ +export class MsgUndelegateResponse extends Message { + /** + * CompletionTime represents the time at which the undelegation will be + * complete + * + * @generated from field: google.protobuf.Timestamp completion_time = 1; + */ + completionTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgUndelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "completion_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateResponse { + return new MsgUndelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateResponse { + return new MsgUndelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateResponse { + return new MsgUndelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegateResponse | PlainMessage | undefined, b: MsgUndelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegateResponse, a, b); + } +} + +/** + * MsgSetUserPreferences is the message structure for the SetUserPreferences + * gRPC service method. It allows a user to set their preferences for the + * restaking module. + * + * @generated from message milkyway.restaking.v1.MsgSetUserPreferences + */ +export class MsgSetUserPreferences extends Message { + /** + * User is the address of the user setting their preferences + * + * @generated from field: string user = 1; + */ + user = ""; + + /** + * Preferences is the user's preferences + * + * @generated from field: milkyway.restaking.v1.UserPreferences preferences = 2; + */ + preferences?: UserPreferences; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgSetUserPreferences"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "preferences", kind: "message", T: UserPreferences }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetUserPreferences { + return new MsgSetUserPreferences().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetUserPreferences { + return new MsgSetUserPreferences().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetUserPreferences { + return new MsgSetUserPreferences().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetUserPreferences | PlainMessage | undefined, b: MsgSetUserPreferences | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetUserPreferences, a, b); + } +} + +/** + * MsgSetUserPreferencesResponse is the return value of MsgSetUserPreferences. + * + * @generated from message milkyway.restaking.v1.MsgSetUserPreferencesResponse + */ +export class MsgSetUserPreferencesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.MsgSetUserPreferencesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetUserPreferencesResponse { + return new MsgSetUserPreferencesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetUserPreferencesResponse { + return new MsgSetUserPreferencesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetUserPreferencesResponse { + return new MsgSetUserPreferencesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetUserPreferencesResponse | PlainMessage | undefined, b: MsgSetUserPreferencesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetUserPreferencesResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/restaking/v1/models_pb.ts b/src/protobufs/milkyway/restaking/v1/models_pb.ts new file mode 100644 index 00000000..d2efa488 --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/models_pb.ts @@ -0,0 +1,493 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/models.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * DelegationType defines the type of delegation. + * + * @generated from enum milkyway.restaking.v1.DelegationType + */ +export enum DelegationType { + /** + * DELEGATION_TYPE_UNSPECIFIED defines an unspecified delegation type. + * + * @generated from enum value: DELEGATION_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * DELEGATION_TYPE_POOL defines a delegation to a pool. + * + * @generated from enum value: DELEGATION_TYPE_POOL = 1; + */ + POOL = 1, + + /** + * DELEGATION_TYPE_OPERATOR defines a delegation to an operator. + * + * @generated from enum value: DELEGATION_TYPE_OPERATOR = 2; + */ + OPERATOR = 2, + + /** + * DELEGATION_TYPE_SERVICE defines a delegation to a service. + * + * @generated from enum value: DELEGATION_TYPE_SERVICE = 3; + */ + SERVICE = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(DelegationType) +proto3.util.setEnumType(DelegationType, "milkyway.restaking.v1.DelegationType", [ + { no: 0, name: "DELEGATION_TYPE_UNSPECIFIED" }, + { no: 1, name: "DELEGATION_TYPE_POOL" }, + { no: 2, name: "DELEGATION_TYPE_OPERATOR" }, + { no: 3, name: "DELEGATION_TYPE_SERVICE" }, +]); + +/** + * Delegation represents the bond with tokens held by an account with a + * given target. + * + * @generated from message milkyway.restaking.v1.Delegation + */ +export class Delegation extends Message { + /** + * Type is the type of delegation. + * + * @generated from field: milkyway.restaking.v1.DelegationType type = 1; + */ + type = DelegationType.UNSPECIFIED; + + /** + * UserAddress is the encoded address of the user. + * + * @generated from field: string user_address = 2; + */ + userAddress = ""; + + /** + * TargetID is the id of the target to which the delegation is associated + * (pool, operator, service). + * + * @generated from field: uint32 target_id = 3; + */ + targetId = 0; + + /** + * Shares define the delegation shares received. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin shares = 4; + */ + shares: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.Delegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 2, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "shares", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Delegation { + return new Delegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Delegation { + return new Delegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Delegation { + return new Delegation().fromJsonString(jsonString, options); + } + + static equals(a: Delegation | PlainMessage | undefined, b: Delegation | PlainMessage | undefined): boolean { + return proto3.util.equals(Delegation, a, b); + } +} + +/** + * DelegationResponse is equivalent to Delegation except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + * + * @generated from message milkyway.restaking.v1.DelegationResponse + */ +export class DelegationResponse extends Message { + /** + * @generated from field: milkyway.restaking.v1.Delegation delegation = 1; + */ + delegation?: Delegation; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 2; + */ + balance: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.DelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation", kind: "message", T: Delegation }, + { no: 2, name: "balance", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegationResponse { + return new DelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegationResponse { + return new DelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegationResponse { + return new DelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: DelegationResponse | PlainMessage | undefined, b: DelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegationResponse, a, b); + } +} + +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single target in an time-ordered list. + * + * @generated from message milkyway.restaking.v1.UnbondingDelegation + */ +export class UnbondingDelegation extends Message { + /** + * Type is the type of the unbonding delegation. + * + * @generated from field: milkyway.restaking.v1.DelegationType type = 1; + */ + type = DelegationType.UNSPECIFIED; + + /** + * DelegatorAddress is the encoded address of the delegator. + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + /** + * TargetID is the ID of the target from which the tokens will be undelegated + * (pool, service, operator) + * + * @generated from field: uint32 target_id = 3; + */ + targetId = 0; + + /** + * Entries are the unbonding delegation entries. + * + * unbonding delegation entries + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegationEntry entries = 4; + */ + entries: UnbondingDelegationEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.UnbondingDelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "entries", kind: "message", T: UnbondingDelegationEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingDelegation { + return new UnbondingDelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingDelegation { + return new UnbondingDelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingDelegation { + return new UnbondingDelegation().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingDelegation | PlainMessage | undefined, b: UnbondingDelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingDelegation, a, b); + } +} + +/** + * UnbondingDelegationEntry defines an unbonding object with relevant metadata. + * + * @generated from message milkyway.restaking.v1.UnbondingDelegationEntry + */ +export class UnbondingDelegationEntry extends Message { + /** + * CreationHeight is the height which the unbonding took place. + * + * @generated from field: int64 creation_height = 1; + */ + creationHeight = protoInt64.zero; + + /** + * CompletionTime is the unix time for unbonding completion. + * + * @generated from field: google.protobuf.Timestamp completion_time = 2; + */ + completionTime?: Timestamp; + + /** + * InitialBalance defines the tokens initially scheduled to receive at + * completion. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin initial_balance = 3; + */ + initialBalance: Coin[] = []; + + /** + * Balance defines the tokens to receive at completion. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin balance = 4; + */ + balance: Coin[] = []; + + /** + * Incrementing id that uniquely identifies this entry + * + * @generated from field: uint64 unbonding_id = 5; + */ + unbondingId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.UnbondingDelegationEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "completion_time", kind: "message", T: Timestamp }, + { no: 3, name: "initial_balance", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "balance", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "unbonding_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingDelegationEntry { + return new UnbondingDelegationEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingDelegationEntry { + return new UnbondingDelegationEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingDelegationEntry { + return new UnbondingDelegationEntry().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingDelegationEntry | PlainMessage | undefined, b: UnbondingDelegationEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingDelegationEntry, a, b); + } +} + +/** + * DTData is a struct that contains the basic information about an unbonding + * delegation. It is intended to be used as a marshalable pointer. For example, + * a DTData can be used to construct the key to getting an UnbondingDelegation + * from state. + * + * @generated from message milkyway.restaking.v1.DTData + */ +export class DTData extends Message { + /** + * @generated from field: milkyway.restaking.v1.DelegationType unbonding_delegation_type = 1; + */ + unbondingDelegationType = DelegationType.UNSPECIFIED; + + /** + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + /** + * @generated from field: uint32 target_id = 3; + */ + targetId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.DTData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegation_type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DTData { + return new DTData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DTData { + return new DTData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DTData { + return new DTData().fromJsonString(jsonString, options); + } + + static equals(a: DTData | PlainMessage | undefined, b: DTData | PlainMessage | undefined): boolean { + return proto3.util.equals(DTData, a, b); + } +} + +/** + * DTDataList defines an array of DTData objects. + * + * @generated from message milkyway.restaking.v1.DTDataList + */ +export class DTDataList extends Message { + /** + * @generated from field: repeated milkyway.restaking.v1.DTData data = 1; + */ + data: DTData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.DTDataList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: DTData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DTDataList { + return new DTDataList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DTDataList { + return new DTDataList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DTDataList { + return new DTDataList().fromJsonString(jsonString, options); + } + + static equals(a: DTDataList | PlainMessage | undefined, b: DTDataList | PlainMessage | undefined): boolean { + return proto3.util.equals(DTDataList, a, b); + } +} + +/** + * UserPreferences is a struct that contains a user's preferences for + * restaking. + * + * @generated from message milkyway.restaking.v1.UserPreferences + */ +export class UserPreferences extends Message { + /** + * TrustedServices is a list of services that the user trusts + * + * @generated from field: repeated milkyway.restaking.v1.TrustedServiceEntry trusted_services = 4; + */ + trustedServices: TrustedServiceEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.UserPreferences"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 4, name: "trusted_services", kind: "message", T: TrustedServiceEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserPreferences { + return new UserPreferences().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserPreferences { + return new UserPreferences().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserPreferences { + return new UserPreferences().fromJsonString(jsonString, options); + } + + static equals(a: UserPreferences | PlainMessage | undefined, b: UserPreferences | PlainMessage | undefined): boolean { + return proto3.util.equals(UserPreferences, a, b); + } +} + +/** + * TrustedServiceEntry is a struct that contains the ID of a service that the user trusts + * and the IDs of the pools that the user wants the service to access + * + * @generated from message milkyway.restaking.v1.TrustedServiceEntry + */ +export class TrustedServiceEntry extends Message { + /** + * ServiceID represents the ID of the service that the user trusts + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * PoolsIDs represents the IDs of the pools that the user wants the service with ServiceID to access + * + * @generated from field: repeated uint32 pools_ids = 2; + */ + poolsIds: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.TrustedServiceEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pools_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TrustedServiceEntry { + return new TrustedServiceEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TrustedServiceEntry { + return new TrustedServiceEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TrustedServiceEntry { + return new TrustedServiceEntry().fromJsonString(jsonString, options); + } + + static equals(a: TrustedServiceEntry | PlainMessage | undefined, b: TrustedServiceEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(TrustedServiceEntry, a, b); + } +} + diff --git a/src/protobufs/milkyway/restaking/v1/params_pb.ts b/src/protobufs/milkyway/restaking/v1/params_pb.ts new file mode 100644 index 00000000..54d006aa --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/params_pb.ts @@ -0,0 +1,80 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/params.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message milkyway.restaking.v1.Params + */ +export class Params extends Message { + /** + * UnbondingTime represents the time that will take for assets to be unbonded + * after the user initiates an unbonding request. This will be applied to all + * types of restaking: pool, operator and service restaking. + * + * @generated from field: int64 unbonding_time = 1; + */ + unbondingTime = protoInt64.zero; + + /** + * AllowedDenoms represents the list of denoms allowed for restaking + * and that will be considered when computing rewards. If no denoms are set, + * all denoms will be considered as restakable. + * + * @generated from field: repeated string allowed_denoms = 2; + */ + allowedDenoms: string[] = []; + + /** + * RestakingCap represents the maximum USD value of overall restaked assets + * inside the chain. If set to 0, it indicates no limit, allowing any amount + * of assets to be restaked. + * + * @generated from field: string restaking_cap = 3; + */ + restakingCap = ""; + + /** + * MaxEntries represents the maximum number of entries for unbonding + * delegation. + * + * @generated from field: uint32 max_entries = 4; + */ + maxEntries = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "allowed_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "restaking_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_entries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/milkyway/restaking/v1/query_cosmes.ts b/src/protobufs/milkyway/restaking/v1/query_cosmes.ts new file mode 100644 index 00000000..0c6fe518 --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/query_cosmes.ts @@ -0,0 +1,387 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/query.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDelegatorOperatorDelegationsRequest, QueryDelegatorOperatorDelegationsResponse, QueryDelegatorOperatorRequest, QueryDelegatorOperatorResponse, QueryDelegatorOperatorsRequest, QueryDelegatorOperatorsResponse, QueryDelegatorOperatorUnbondingDelegationsRequest, QueryDelegatorOperatorUnbondingDelegationsResponse, QueryDelegatorPoolDelegationsRequest, QueryDelegatorPoolDelegationsResponse, QueryDelegatorPoolRequest, QueryDelegatorPoolResponse, QueryDelegatorPoolsRequest, QueryDelegatorPoolsResponse, QueryDelegatorPoolUnbondingDelegationsRequest, QueryDelegatorPoolUnbondingDelegationsResponse, QueryDelegatorServiceDelegationsRequest, QueryDelegatorServiceDelegationsResponse, QueryDelegatorServiceRequest, QueryDelegatorServiceResponse, QueryDelegatorServicesRequest, QueryDelegatorServicesResponse, QueryDelegatorServiceUnbondingDelegationsRequest, QueryDelegatorServiceUnbondingDelegationsResponse, QueryOperatorDelegationRequest, QueryOperatorDelegationResponse, QueryOperatorDelegationsRequest, QueryOperatorDelegationsResponse, QueryOperatorJoinedServicesRequest, QueryOperatorJoinedServicesResponse, QueryOperatorUnbondingDelegationRequest, QueryOperatorUnbondingDelegationResponse, QueryOperatorUnbondingDelegationsRequest, QueryOperatorUnbondingDelegationsResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolDelegationRequest, QueryPoolDelegationResponse, QueryPoolDelegationsRequest, QueryPoolDelegationsResponse, QueryPoolUnbondingDelegationRequest, QueryPoolUnbondingDelegationResponse, QueryPoolUnbondingDelegationsRequest, QueryPoolUnbondingDelegationsResponse, QueryServiceAllowedOperatorsRequest, QueryServiceAllowedOperatorsResponse, QueryServiceDelegationRequest, QueryServiceDelegationResponse, QueryServiceDelegationsRequest, QueryServiceDelegationsResponse, QueryServiceOperatorsRequest, QueryServiceOperatorsResponse, QueryServiceSecuringPoolsRequest, QueryServiceSecuringPoolsResponse, QueryServiceUnbondingDelegationRequest, QueryServiceUnbondingDelegationResponse, QueryServiceUnbondingDelegationsRequest, QueryServiceUnbondingDelegationsResponse, QueryUserPreferencesRequest, QueryUserPreferencesResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.restaking.v1.Query"; + +/** + * OperatorJoinedServices queries the services that an operator has joined. + * + * @generated from rpc milkyway.restaking.v1.Query.OperatorJoinedServices + */ +export const QueryOperatorJoinedServicesService = { + typeName: TYPE_NAME, + method: "OperatorJoinedServices", + Request: QueryOperatorJoinedServicesRequest, + Response: QueryOperatorJoinedServicesResponse, +} as const; + +/** + * ServiceAllowedOperators queries the allowed operators for a given service. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceAllowedOperators + */ +export const QueryServiceAllowedOperatorsService = { + typeName: TYPE_NAME, + method: "ServiceAllowedOperators", + Request: QueryServiceAllowedOperatorsRequest, + Response: QueryServiceAllowedOperatorsResponse, +} as const; + +/** + * ServiceSecuringPools queries the pools that are securing a given service. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceSecuringPools + */ +export const QueryServiceSecuringPoolsService = { + typeName: TYPE_NAME, + method: "ServiceSecuringPools", + Request: QueryServiceSecuringPoolsRequest, + Response: QueryServiceSecuringPoolsResponse, +} as const; + +/** + * ServiceOperators queries the operators for a given service. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceOperators + */ +export const QueryServiceOperatorsService = { + typeName: TYPE_NAME, + method: "ServiceOperators", + Request: QueryServiceOperatorsRequest, + Response: QueryServiceOperatorsResponse, +} as const; + +/** + * PoolDelegations queries the delegations info for the given pool. + * + * @generated from rpc milkyway.restaking.v1.Query.PoolDelegations + */ +export const QueryPoolDelegationsService = { + typeName: TYPE_NAME, + method: "PoolDelegations", + Request: QueryPoolDelegationsRequest, + Response: QueryPoolDelegationsResponse, +} as const; + +/** + * PoolDelegation queries the delegation info for the given pool and + * delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.PoolDelegation + */ +export const QueryPoolDelegationService = { + typeName: TYPE_NAME, + method: "PoolDelegation", + Request: QueryPoolDelegationRequest, + Response: QueryPoolDelegationResponse, +} as const; + +/** + * PoolUnbondingDelegations queries the unbonding delegations info for the + * given pool. + * + * @generated from rpc milkyway.restaking.v1.Query.PoolUnbondingDelegations + */ +export const QueryPoolUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "PoolUnbondingDelegations", + Request: QueryPoolUnbondingDelegationsRequest, + Response: QueryPoolUnbondingDelegationsResponse, +} as const; + +/** + * PoolUnbondingDelegation queries the unbonding delegation info for the given + * pool and delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.PoolUnbondingDelegation + */ +export const QueryPoolUnbondingDelegationService = { + typeName: TYPE_NAME, + method: "PoolUnbondingDelegation", + Request: QueryPoolUnbondingDelegationRequest, + Response: QueryPoolUnbondingDelegationResponse, +} as const; + +/** + * OperatorDelegations queries the delegations info for the given operator. + * + * @generated from rpc milkyway.restaking.v1.Query.OperatorDelegations + */ +export const QueryOperatorDelegationsService = { + typeName: TYPE_NAME, + method: "OperatorDelegations", + Request: QueryOperatorDelegationsRequest, + Response: QueryOperatorDelegationsResponse, +} as const; + +/** + * OperatorDelegation queries the delegation info for the given operator and + * delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.OperatorDelegation + */ +export const QueryOperatorDelegationService = { + typeName: TYPE_NAME, + method: "OperatorDelegation", + Request: QueryOperatorDelegationRequest, + Response: QueryOperatorDelegationResponse, +} as const; + +/** + * OperatorUnbondingDelegations queries the unbonding delegations info for the + * given operator. + * + * @generated from rpc milkyway.restaking.v1.Query.OperatorUnbondingDelegations + */ +export const QueryOperatorUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "OperatorUnbondingDelegations", + Request: QueryOperatorUnbondingDelegationsRequest, + Response: QueryOperatorUnbondingDelegationsResponse, +} as const; + +/** + * OperatorUnbondingDelegation queries the unbonding delegation info for the + * given operator and delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.OperatorUnbondingDelegation + */ +export const QueryOperatorUnbondingDelegationService = { + typeName: TYPE_NAME, + method: "OperatorUnbondingDelegation", + Request: QueryOperatorUnbondingDelegationRequest, + Response: QueryOperatorUnbondingDelegationResponse, +} as const; + +/** + * ServiceDelegations queries the delegations info for the given service. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceDelegations + */ +export const QueryServiceDelegationsService = { + typeName: TYPE_NAME, + method: "ServiceDelegations", + Request: QueryServiceDelegationsRequest, + Response: QueryServiceDelegationsResponse, +} as const; + +/** + * ServiceDelegation queries the delegation info for the given service and + * delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceDelegation + */ +export const QueryServiceDelegationService = { + typeName: TYPE_NAME, + method: "ServiceDelegation", + Request: QueryServiceDelegationRequest, + Response: QueryServiceDelegationResponse, +} as const; + +/** + * ServiceUnbondingDelegations queries the unbonding delegations info for the + * given service. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceUnbondingDelegations + */ +export const QueryServiceUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "ServiceUnbondingDelegations", + Request: QueryServiceUnbondingDelegationsRequest, + Response: QueryServiceUnbondingDelegationsResponse, +} as const; + +/** + * ServiceUnbondingDelegation queries the unbonding delegation info for the + * given service and delegator. + * + * @generated from rpc milkyway.restaking.v1.Query.ServiceUnbondingDelegation + */ +export const QueryServiceUnbondingDelegationService = { + typeName: TYPE_NAME, + method: "ServiceUnbondingDelegation", + Request: QueryServiceUnbondingDelegationRequest, + Response: QueryServiceUnbondingDelegationResponse, +} as const; + +/** + * DelegatorPoolDelegations queries all the pool delegations of a given + * delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorPoolDelegations + */ +export const QueryDelegatorPoolDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorPoolDelegations", + Request: QueryDelegatorPoolDelegationsRequest, + Response: QueryDelegatorPoolDelegationsResponse, +} as const; + +/** + * DelegatorPoolUnbondingDelegations queries all the pool unbonding + * delegations of a given delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorPoolUnbondingDelegations + */ +export const QueryDelegatorPoolUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorPoolUnbondingDelegations", + Request: QueryDelegatorPoolUnbondingDelegationsRequest, + Response: QueryDelegatorPoolUnbondingDelegationsResponse, +} as const; + +/** + * DelegatorOperatorDelegations queries all the operator delegations of a + * given delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorOperatorDelegations + */ +export const QueryDelegatorOperatorDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorOperatorDelegations", + Request: QueryDelegatorOperatorDelegationsRequest, + Response: QueryDelegatorOperatorDelegationsResponse, +} as const; + +/** + * DelegatorOperatorUnbondingDelegations queries all the operator unbonding + * delegations of a given delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorOperatorUnbondingDelegations + */ +export const QueryDelegatorOperatorUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorOperatorUnbondingDelegations", + Request: QueryDelegatorOperatorUnbondingDelegationsRequest, + Response: QueryDelegatorOperatorUnbondingDelegationsResponse, +} as const; + +/** + * DelegatorServiceDelegations queries all the service delegations of a given + * delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorServiceDelegations + */ +export const QueryDelegatorServiceDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorServiceDelegations", + Request: QueryDelegatorServiceDelegationsRequest, + Response: QueryDelegatorServiceDelegationsResponse, +} as const; + +/** + * DelegatorServiceUnbondingDelegations queries all the service unbonding + * delegations of a given delegator address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorServiceUnbondingDelegations + */ +export const QueryDelegatorServiceUnbondingDelegationsService = { + typeName: TYPE_NAME, + method: "DelegatorServiceUnbondingDelegations", + Request: QueryDelegatorServiceUnbondingDelegationsRequest, + Response: QueryDelegatorServiceUnbondingDelegationsResponse, +} as const; + +/** + * DelegatorPools queries all pools info for given delegator + * address. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorPools + */ +export const QueryDelegatorPoolsService = { + typeName: TYPE_NAME, + method: "DelegatorPools", + Request: QueryDelegatorPoolsRequest, + Response: QueryDelegatorPoolsResponse, +} as const; + +/** + * DelegatorPool queries the pool info for given delegator and pool id. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorPool + */ +export const QueryDelegatorPoolService = { + typeName: TYPE_NAME, + method: "DelegatorPool", + Request: QueryDelegatorPoolRequest, + Response: QueryDelegatorPoolResponse, +} as const; + +/** + * DelegatorOperators queries all operators info for given delegator + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorOperators + */ +export const QueryDelegatorOperatorsService = { + typeName: TYPE_NAME, + method: "DelegatorOperators", + Request: QueryDelegatorOperatorsRequest, + Response: QueryDelegatorOperatorsResponse, +} as const; + +/** + * DelegatorOperator queries the operator info for given delegator and + * operator id. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorOperator + */ +export const QueryDelegatorOperatorService = { + typeName: TYPE_NAME, + method: "DelegatorOperator", + Request: QueryDelegatorOperatorRequest, + Response: QueryDelegatorOperatorResponse, +} as const; + +/** + * DelegatorServices queries all services info for given delegator + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorServices + */ +export const QueryDelegatorServicesService = { + typeName: TYPE_NAME, + method: "DelegatorServices", + Request: QueryDelegatorServicesRequest, + Response: QueryDelegatorServicesResponse, +} as const; + +/** + * DelegatorService queries the service info for given delegator and service + * id. + * + * @generated from rpc milkyway.restaking.v1.Query.DelegatorService + */ +export const QueryDelegatorServiceService = { + typeName: TYPE_NAME, + method: "DelegatorService", + Request: QueryDelegatorServiceRequest, + Response: QueryDelegatorServiceResponse, +} as const; + +/** + * UserPreferences queries the user preferences. + * + * @generated from rpc milkyway.restaking.v1.Query.UserPreferences + */ +export const QueryUserPreferencesService = { + typeName: TYPE_NAME, + method: "UserPreferences", + Request: QueryUserPreferencesRequest, + Response: QueryUserPreferencesResponse, +} as const; + +/** + * Params queries the restaking parameters. + * + * @generated from rpc milkyway.restaking.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/restaking/v1/query_pb.ts b/src/protobufs/milkyway/restaking/v1/query_pb.ts new file mode 100644 index 00000000..5985d423 --- /dev/null +++ b/src/protobufs/milkyway/restaking/v1/query_pb.ts @@ -0,0 +1,2887 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/restaking/v1/query.proto (package milkyway.restaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Operator } from "../../operators/v1/models_pb.js"; +import { DelegationResponse, UnbondingDelegation, UserPreferences } from "./models_pb.js"; +import { Pool } from "../../pools/v1/models_pb.js"; +import { Service } from "../../services/v1/models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * QueryOperatorJoinedServicesRequest is request type for the + * Query/OperatorJoinedServices RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorJoinedServicesRequest + */ +export class QueryOperatorJoinedServicesRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorJoinedServicesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorJoinedServicesRequest { + return new QueryOperatorJoinedServicesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorJoinedServicesRequest { + return new QueryOperatorJoinedServicesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorJoinedServicesRequest { + return new QueryOperatorJoinedServicesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorJoinedServicesRequest | PlainMessage | undefined, b: QueryOperatorJoinedServicesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorJoinedServicesRequest, a, b); + } +} + +/** + * QueryOperatorJoinedServicesResponse is response type for the + * Query/OperatorJoinedServices RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorJoinedServicesResponse + */ +export class QueryOperatorJoinedServicesResponse extends Message { + /** + * ServiceIds is the list of services joined by the operator. + * + * @generated from field: repeated uint32 service_ids = 1; + */ + serviceIds: number[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorJoinedServicesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorJoinedServicesResponse { + return new QueryOperatorJoinedServicesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorJoinedServicesResponse { + return new QueryOperatorJoinedServicesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorJoinedServicesResponse { + return new QueryOperatorJoinedServicesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorJoinedServicesResponse | PlainMessage | undefined, b: QueryOperatorJoinedServicesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorJoinedServicesResponse, a, b); + } +} + +/** + * QueryServiceAllowedOperatorsRequest is request type for the + * Query/ServiceAllowedOperators RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceAllowedOperatorsRequest + */ +export class QueryServiceAllowedOperatorsRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceAllowedOperatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceAllowedOperatorsRequest { + return new QueryServiceAllowedOperatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceAllowedOperatorsRequest { + return new QueryServiceAllowedOperatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceAllowedOperatorsRequest { + return new QueryServiceAllowedOperatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceAllowedOperatorsRequest | PlainMessage | undefined, b: QueryServiceAllowedOperatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceAllowedOperatorsRequest, a, b); + } +} + +/** + * QueryServiceAllowedOperatorsResponse is response type for the + * Query/ServiceAllowedOperators RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceAllowedOperatorsResponse + */ +export class QueryServiceAllowedOperatorsResponse extends Message { + /** + * OperatorIds is the list of operators allowed to validate the service + * + * @generated from field: repeated uint32 operator_ids = 1; + */ + operatorIds: number[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceAllowedOperatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceAllowedOperatorsResponse { + return new QueryServiceAllowedOperatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceAllowedOperatorsResponse { + return new QueryServiceAllowedOperatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceAllowedOperatorsResponse { + return new QueryServiceAllowedOperatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceAllowedOperatorsResponse | PlainMessage | undefined, b: QueryServiceAllowedOperatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceAllowedOperatorsResponse, a, b); + } +} + +/** + * QueryServiceSecuringPoolsRequest is request type for the + * Query/ServiceSecuringPools RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceSecuringPoolsRequest + */ +export class QueryServiceSecuringPoolsRequest extends Message { + /** + * ServiceId is the ID of the service to query. + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceSecuringPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceSecuringPoolsRequest { + return new QueryServiceSecuringPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceSecuringPoolsRequest { + return new QueryServiceSecuringPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceSecuringPoolsRequest { + return new QueryServiceSecuringPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceSecuringPoolsRequest | PlainMessage | undefined, b: QueryServiceSecuringPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceSecuringPoolsRequest, a, b); + } +} + +/** + * QueryServiceSecuringPoolsResponse is response type for the + * Query/ServiceSecuringPools RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceSecuringPoolsResponse + */ +export class QueryServiceSecuringPoolsResponse extends Message { + /** + * PoolIds is the list of pools from which the service is allowed to borrow + * security. + * + * @generated from field: repeated uint32 pool_ids = 1; + */ + poolIds: number[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceSecuringPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceSecuringPoolsResponse { + return new QueryServiceSecuringPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceSecuringPoolsResponse { + return new QueryServiceSecuringPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceSecuringPoolsResponse { + return new QueryServiceSecuringPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceSecuringPoolsResponse | PlainMessage | undefined, b: QueryServiceSecuringPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceSecuringPoolsResponse, a, b); + } +} + +/** + * QueryServiceOperatorsRequest is request type for the Query/ServiceOperators + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceOperatorsRequest + */ +export class QueryServiceOperatorsRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceOperatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceOperatorsRequest { + return new QueryServiceOperatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceOperatorsRequest { + return new QueryServiceOperatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceOperatorsRequest { + return new QueryServiceOperatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceOperatorsRequest | PlainMessage | undefined, b: QueryServiceOperatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceOperatorsRequest, a, b); + } +} + +/** + * QueryServiceOperatorsResponse is response type for the Query/ServiceOperators + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceOperatorsResponse + */ +export class QueryServiceOperatorsResponse extends Message { + /** + * Operators is the list of operators + * + * @generated from field: repeated milkyway.operators.v1.Operator operators = 1; + */ + operators: Operator[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceOperatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operators", kind: "message", T: Operator, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceOperatorsResponse { + return new QueryServiceOperatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceOperatorsResponse { + return new QueryServiceOperatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceOperatorsResponse { + return new QueryServiceOperatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceOperatorsResponse | PlainMessage | undefined, b: QueryServiceOperatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceOperatorsResponse, a, b); + } +} + +/** + * QueryPoolDelegationsRequest is request type for the Query/PoolDelegations RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryPoolDelegationsRequest + */ +export class QueryPoolDelegationsRequest extends Message { + /** + * PoolId is the ID of the pool to query. + * + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationsRequest { + return new QueryPoolDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationsRequest { + return new QueryPoolDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationsRequest { + return new QueryPoolDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationsRequest | PlainMessage | undefined, b: QueryPoolDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationsRequest, a, b); + } +} + +/** + * QueryPoolDelegationsResponse is response type for the Query/PoolDelegations + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryPoolDelegationsResponse + */ +export class QueryPoolDelegationsResponse extends Message { + /** + * Delegations is the list of delegations. + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationsResponse { + return new QueryPoolDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationsResponse { + return new QueryPoolDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationsResponse { + return new QueryPoolDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationsResponse | PlainMessage | undefined, b: QueryPoolDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationsResponse, a, b); + } +} + +/** + * QueryPoolDelegationRequest is request type for the Query/PoolDelegation RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryPoolDelegationRequest + */ +export class QueryPoolDelegationRequest extends Message { + /** + * PoolId is the ID of the pool to query + * + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationRequest { + return new QueryPoolDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationRequest { + return new QueryPoolDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationRequest { + return new QueryPoolDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationRequest | PlainMessage | undefined, b: QueryPoolDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationRequest, a, b); + } +} + +/** + * QueryPoolDelegationResponse is response type for the Query/PoolDelegation RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryPoolDelegationResponse + */ +export class QueryPoolDelegationResponse extends Message { + /** + * Delegation is the delegation + * + * @generated from field: milkyway.restaking.v1.DelegationResponse delegation = 1; + */ + delegation?: DelegationResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation", kind: "message", T: DelegationResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationResponse { + return new QueryPoolDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationResponse { + return new QueryPoolDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationResponse { + return new QueryPoolDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationResponse | PlainMessage | undefined, b: QueryPoolDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationResponse, a, b); + } +} + +/** + * QueryPoolUnbondingDelegationsRequest is request type for the + * Query/PoolUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryPoolUnbondingDelegationsRequest + */ +export class QueryPoolUnbondingDelegationsRequest extends Message { + /** + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolUnbondingDelegationsRequest { + return new QueryPoolUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolUnbondingDelegationsRequest { + return new QueryPoolUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolUnbondingDelegationsRequest { + return new QueryPoolUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryPoolUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryPoolUnbondingDelegationsResponse is response type for the + * Query/PoolUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryPoolUnbondingDelegationsResponse + */ +export class QueryPoolUnbondingDelegationsResponse extends Message { + /** + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolUnbondingDelegationsResponse { + return new QueryPoolUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolUnbondingDelegationsResponse { + return new QueryPoolUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolUnbondingDelegationsResponse { + return new QueryPoolUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryPoolUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryPoolUnbondingDelegationRequest is request type for the + * Query/PoolUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryPoolUnbondingDelegationRequest + */ +export class QueryPoolUnbondingDelegationRequest extends Message { + /** + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolUnbondingDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolUnbondingDelegationRequest { + return new QueryPoolUnbondingDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolUnbondingDelegationRequest { + return new QueryPoolUnbondingDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolUnbondingDelegationRequest { + return new QueryPoolUnbondingDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolUnbondingDelegationRequest | PlainMessage | undefined, b: QueryPoolUnbondingDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolUnbondingDelegationRequest, a, b); + } +} + +/** + * QueryPoolUnbondingDelegationResponse is response type for the + * Query/PoolUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryPoolUnbondingDelegationResponse + */ +export class QueryPoolUnbondingDelegationResponse extends Message { + /** + * @generated from field: milkyway.restaking.v1.UnbondingDelegation unbonding_delegation = 1; + */ + unbondingDelegation?: UnbondingDelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryPoolUnbondingDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegation", kind: "message", T: UnbondingDelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolUnbondingDelegationResponse { + return new QueryPoolUnbondingDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolUnbondingDelegationResponse { + return new QueryPoolUnbondingDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolUnbondingDelegationResponse { + return new QueryPoolUnbondingDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolUnbondingDelegationResponse | PlainMessage | undefined, b: QueryPoolUnbondingDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolUnbondingDelegationResponse, a, b); + } +} + +/** + * QueryOperatorDelegationsRequest is request type for the + * Query/OperatorDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorDelegationsRequest + */ +export class QueryOperatorDelegationsRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationsRequest { + return new QueryOperatorDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationsRequest { + return new QueryOperatorDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationsRequest { + return new QueryOperatorDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationsRequest | PlainMessage | undefined, b: QueryOperatorDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationsRequest, a, b); + } +} + +/** + * QueryOperatorDelegationsResponse is response type for the + * Query/OperatorDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorDelegationsResponse + */ +export class QueryOperatorDelegationsResponse extends Message { + /** + * Delegations is the list of delegations + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationsResponse { + return new QueryOperatorDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationsResponse { + return new QueryOperatorDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationsResponse { + return new QueryOperatorDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationsResponse | PlainMessage | undefined, b: QueryOperatorDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationsResponse, a, b); + } +} + +/** + * QueryOperatorDelegationRequest is request type for the + * Query/OperatorDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorDelegationRequest + */ +export class QueryOperatorDelegationRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationRequest { + return new QueryOperatorDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationRequest { + return new QueryOperatorDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationRequest { + return new QueryOperatorDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationRequest | PlainMessage | undefined, b: QueryOperatorDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationRequest, a, b); + } +} + +/** + * QueryOperatorDelegationResponse is response type for the + * Query/OperatorDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorDelegationResponse + */ +export class QueryOperatorDelegationResponse extends Message { + /** + * Delegation is the delegation + * + * @generated from field: milkyway.restaking.v1.DelegationResponse delegation = 1; + */ + delegation?: DelegationResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation", kind: "message", T: DelegationResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationResponse { + return new QueryOperatorDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationResponse { + return new QueryOperatorDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationResponse { + return new QueryOperatorDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationResponse | PlainMessage | undefined, b: QueryOperatorDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationResponse, a, b); + } +} + +/** + * QueryOperatorUnbondingDelegationsRequest is request type for the + * Query/OperatorUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorUnbondingDelegationsRequest + */ +export class QueryOperatorUnbondingDelegationsRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorUnbondingDelegationsRequest { + return new QueryOperatorUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorUnbondingDelegationsRequest { + return new QueryOperatorUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorUnbondingDelegationsRequest { + return new QueryOperatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryOperatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryOperatorUnbondingDelegationsResponse is response type for the + * Query/OperatorUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorUnbondingDelegationsResponse + */ +export class QueryOperatorUnbondingDelegationsResponse extends Message { + /** + * UnbondingDelegations is the list of unbonding delegations + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorUnbondingDelegationsResponse { + return new QueryOperatorUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorUnbondingDelegationsResponse { + return new QueryOperatorUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorUnbondingDelegationsResponse { + return new QueryOperatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryOperatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryOperatorUnbondingDelegationRequest is request type for the + * Query/OperatorUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorUnbondingDelegationRequest + */ +export class QueryOperatorUnbondingDelegationRequest extends Message { + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorUnbondingDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorUnbondingDelegationRequest { + return new QueryOperatorUnbondingDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorUnbondingDelegationRequest { + return new QueryOperatorUnbondingDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorUnbondingDelegationRequest { + return new QueryOperatorUnbondingDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorUnbondingDelegationRequest | PlainMessage | undefined, b: QueryOperatorUnbondingDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorUnbondingDelegationRequest, a, b); + } +} + +/** + * QueryOperatorUnbondingDelegationResponse is response type for the + * Query/OperatorUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryOperatorUnbondingDelegationResponse + */ +export class QueryOperatorUnbondingDelegationResponse extends Message { + /** + * UnbondingDelegation is the unbonding delegation + * + * @generated from field: milkyway.restaking.v1.UnbondingDelegation unbonding_delegation = 1; + */ + unbondingDelegation?: UnbondingDelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryOperatorUnbondingDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegation", kind: "message", T: UnbondingDelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorUnbondingDelegationResponse { + return new QueryOperatorUnbondingDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorUnbondingDelegationResponse { + return new QueryOperatorUnbondingDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorUnbondingDelegationResponse { + return new QueryOperatorUnbondingDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorUnbondingDelegationResponse | PlainMessage | undefined, b: QueryOperatorUnbondingDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorUnbondingDelegationResponse, a, b); + } +} + +/** + * QueryServiceDelegationsRequest is request type for the + * Query/ServiceDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceDelegationsRequest + */ +export class QueryServiceDelegationsRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationsRequest { + return new QueryServiceDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationsRequest { + return new QueryServiceDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationsRequest { + return new QueryServiceDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationsRequest | PlainMessage | undefined, b: QueryServiceDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationsRequest, a, b); + } +} + +/** + * QueryServiceDelegationsResponse is response type for the + * Query/ServiceDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceDelegationsResponse + */ +export class QueryServiceDelegationsResponse extends Message { + /** + * Delegations is the list of delegations + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationsResponse { + return new QueryServiceDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationsResponse { + return new QueryServiceDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationsResponse { + return new QueryServiceDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationsResponse | PlainMessage | undefined, b: QueryServiceDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationsResponse, a, b); + } +} + +/** + * QueryServiceDelegationRequest is request type for the Query/ServiceDelegation + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceDelegationRequest + */ +export class QueryServiceDelegationRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationRequest { + return new QueryServiceDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationRequest { + return new QueryServiceDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationRequest { + return new QueryServiceDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationRequest | PlainMessage | undefined, b: QueryServiceDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationRequest, a, b); + } +} + +/** + * QueryServiceDelegationResponse is response type for the + * Query/ServiceDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceDelegationResponse + */ +export class QueryServiceDelegationResponse extends Message { + /** + * Delegation is the delegation + * + * @generated from field: milkyway.restaking.v1.DelegationResponse delegation = 1; + */ + delegation?: DelegationResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation", kind: "message", T: DelegationResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationResponse { + return new QueryServiceDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationResponse { + return new QueryServiceDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationResponse { + return new QueryServiceDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationResponse | PlainMessage | undefined, b: QueryServiceDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationResponse, a, b); + } +} + +/** + * QueryServiceUnbondingDelegationsRequest is request type for the + * Query/ServiceUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceUnbondingDelegationsRequest + */ +export class QueryServiceUnbondingDelegationsRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceUnbondingDelegationsRequest { + return new QueryServiceUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceUnbondingDelegationsRequest { + return new QueryServiceUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceUnbondingDelegationsRequest { + return new QueryServiceUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryServiceUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryServiceUnbondingDelegationsResponse is response type for the + * Query/ServiceUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceUnbondingDelegationsResponse + */ +export class QueryServiceUnbondingDelegationsResponse extends Message { + /** + * UnbondingDelegations is the list of unbonding delegations + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceUnbondingDelegationsResponse { + return new QueryServiceUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceUnbondingDelegationsResponse { + return new QueryServiceUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceUnbondingDelegationsResponse { + return new QueryServiceUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryServiceUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryServiceUnbondingDelegationRequest is request type for the + * Query/ServiceUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceUnbondingDelegationRequest + */ +export class QueryServiceUnbondingDelegationRequest extends Message { + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 2; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceUnbondingDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceUnbondingDelegationRequest { + return new QueryServiceUnbondingDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceUnbondingDelegationRequest { + return new QueryServiceUnbondingDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceUnbondingDelegationRequest { + return new QueryServiceUnbondingDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceUnbondingDelegationRequest | PlainMessage | undefined, b: QueryServiceUnbondingDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceUnbondingDelegationRequest, a, b); + } +} + +/** + * QueryServiceUnbondingDelegationResponse is response type for the + * Query/ServiceUnbondingDelegation RPC method. + * + * @generated from message milkyway.restaking.v1.QueryServiceUnbondingDelegationResponse + */ +export class QueryServiceUnbondingDelegationResponse extends Message { + /** + * UnbondingDelegation is the unbonding delegation + * + * @generated from field: milkyway.restaking.v1.UnbondingDelegation unbonding_delegation = 1; + */ + unbondingDelegation?: UnbondingDelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryServiceUnbondingDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegation", kind: "message", T: UnbondingDelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceUnbondingDelegationResponse { + return new QueryServiceUnbondingDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceUnbondingDelegationResponse { + return new QueryServiceUnbondingDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceUnbondingDelegationResponse { + return new QueryServiceUnbondingDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceUnbondingDelegationResponse | PlainMessage | undefined, b: QueryServiceUnbondingDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceUnbondingDelegationResponse, a, b); + } +} + +/** + * QueryDelegatorPoolDelegationsRequest is request type for the + * Query/DelegatorPoolDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolDelegationsRequest + */ +export class QueryDelegatorPoolDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolDelegationsRequest { + return new QueryDelegatorPoolDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolDelegationsRequest { + return new QueryDelegatorPoolDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolDelegationsRequest { + return new QueryDelegatorPoolDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorPoolDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorPoolDelegationsResponse is response type for the + * Query/DelegatorPoolDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolDelegationsResponse + */ +export class QueryDelegatorPoolDelegationsResponse extends Message { + /** + * Delegations is the list of delegations + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolDelegationsResponse { + return new QueryDelegatorPoolDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolDelegationsResponse { + return new QueryDelegatorPoolDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolDelegationsResponse { + return new QueryDelegatorPoolDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorPoolDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorPoolUnbondingDelegationsRequest is request type for the + * Query/DelegatorPoolUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolUnbondingDelegationsRequest + */ +export class QueryDelegatorPoolUnbondingDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolUnbondingDelegationsRequest { + return new QueryDelegatorPoolUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolUnbondingDelegationsRequest { + return new QueryDelegatorPoolUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolUnbondingDelegationsRequest { + return new QueryDelegatorPoolUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorPoolUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorPoolUnbondingDelegationsResponse is response type for the + * Query/DelegatorPoolUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolUnbondingDelegationsResponse + */ +export class QueryDelegatorPoolUnbondingDelegationsResponse extends Message { + /** + * UnbondingDelegations is the list of unbonding delegations + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolUnbondingDelegationsResponse { + return new QueryDelegatorPoolUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolUnbondingDelegationsResponse { + return new QueryDelegatorPoolUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolUnbondingDelegationsResponse { + return new QueryDelegatorPoolUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorPoolUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorOperatorDelegationsRequest is request type for the + * Query/DelegatorOperatorDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorDelegationsRequest + */ +export class QueryDelegatorOperatorDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorDelegationsRequest { + return new QueryDelegatorOperatorDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorDelegationsRequest { + return new QueryDelegatorOperatorDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorDelegationsRequest { + return new QueryDelegatorOperatorDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorOperatorDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorOperatorDelegationsResponse is response type for the + * Query/DelegatorOperatorDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorDelegationsResponse + */ +export class QueryDelegatorOperatorDelegationsResponse extends Message { + /** + * Delegations is the list of delegations + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorDelegationsResponse { + return new QueryDelegatorOperatorDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorDelegationsResponse { + return new QueryDelegatorOperatorDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorDelegationsResponse { + return new QueryDelegatorOperatorDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorOperatorDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorOperatorUnbondingDelegationsRequest is request type for the + * Query/DelegatorOperatorUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorUnbondingDelegationsRequest + */ +export class QueryDelegatorOperatorUnbondingDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsRequest { + return new QueryDelegatorOperatorUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsRequest { + return new QueryDelegatorOperatorUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsRequest { + return new QueryDelegatorOperatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorOperatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorOperatorUnbondingDelegationsResponse is response type for the + * Query/DelegatorOperatorUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorUnbondingDelegationsResponse + */ +export class QueryDelegatorOperatorUnbondingDelegationsResponse extends Message { + /** + * UnbondingDelegations is the list of unbonding delegations + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsResponse { + return new QueryDelegatorOperatorUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsResponse { + return new QueryDelegatorOperatorUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorUnbondingDelegationsResponse { + return new QueryDelegatorOperatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorOperatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorServiceDelegationsRequest is request type for the + * Query/DelegatorServiceDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceDelegationsRequest + */ +export class QueryDelegatorServiceDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceDelegationsRequest { + return new QueryDelegatorServiceDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceDelegationsRequest { + return new QueryDelegatorServiceDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceDelegationsRequest { + return new QueryDelegatorServiceDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorServiceDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorServiceDelegationsResponse is response type for the + * Query/DelegatorServiceDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceDelegationsResponse + */ +export class QueryDelegatorServiceDelegationsResponse extends Message { + /** + * Delegations is the list of delegations + * + * @generated from field: repeated milkyway.restaking.v1.DelegationResponse delegations = 1; + */ + delegations: DelegationResponse[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationResponse, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceDelegationsResponse { + return new QueryDelegatorServiceDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceDelegationsResponse { + return new QueryDelegatorServiceDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceDelegationsResponse { + return new QueryDelegatorServiceDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorServiceDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorServiceUnbondingDelegationsRequest is request type for the + * Query/DelegatorServiceUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceUnbondingDelegationsRequest + */ +export class QueryDelegatorServiceUnbondingDelegationsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceUnbondingDelegationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceUnbondingDelegationsRequest { + return new QueryDelegatorServiceUnbondingDelegationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceUnbondingDelegationsRequest { + return new QueryDelegatorServiceUnbondingDelegationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceUnbondingDelegationsRequest { + return new QueryDelegatorServiceUnbondingDelegationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorServiceUnbondingDelegationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceUnbondingDelegationsRequest, a, b); + } +} + +/** + * QueryDelegatorServiceUnbondingDelegationsResponse is response type for the + * Query/DelegatorServiceUnbondingDelegations RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceUnbondingDelegationsResponse + */ +export class QueryDelegatorServiceUnbondingDelegationsResponse extends Message { + /** + * UnbondingDelegations is the list of unbonding delegations + * + * @generated from field: repeated milkyway.restaking.v1.UnbondingDelegation unbonding_delegations = 1; + */ + unbondingDelegations: UnbondingDelegation[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceUnbondingDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceUnbondingDelegationsResponse { + return new QueryDelegatorServiceUnbondingDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceUnbondingDelegationsResponse { + return new QueryDelegatorServiceUnbondingDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceUnbondingDelegationsResponse { + return new QueryDelegatorServiceUnbondingDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorServiceUnbondingDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceUnbondingDelegationsResponse, a, b); + } +} + +/** + * QueryDelegatorPoolsRequest is request type for the Query/DelegatorPools RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolsRequest + */ +export class QueryDelegatorPoolsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolsRequest { + return new QueryDelegatorPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolsRequest { + return new QueryDelegatorPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolsRequest { + return new QueryDelegatorPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolsRequest | PlainMessage | undefined, b: QueryDelegatorPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolsRequest, a, b); + } +} + +/** + * QueryDelegatorPoolsResponse is response type for the Query/DelegatorPools RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolsResponse + */ +export class QueryDelegatorPoolsResponse extends Message { + /** + * Pools is the list of pools + * + * @generated from field: repeated milkyway.pools.v1.Pool pools = 1; + */ + pools: Pool[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolsResponse { + return new QueryDelegatorPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolsResponse { + return new QueryDelegatorPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolsResponse { + return new QueryDelegatorPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolsResponse | PlainMessage | undefined, b: QueryDelegatorPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolsResponse, a, b); + } +} + +/** + * QueryDelegatorPoolRequest is request type for the Query/DelegatorPool RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolRequest + */ +export class QueryDelegatorPoolRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * PoolId is the ID of the pool to query + * + * @generated from field: uint32 pool_id = 2; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolRequest { + return new QueryDelegatorPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolRequest { + return new QueryDelegatorPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolRequest { + return new QueryDelegatorPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolRequest | PlainMessage | undefined, b: QueryDelegatorPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolRequest, a, b); + } +} + +/** + * QueryDelegatorPoolResponse is response type for the Query/DelegatorPool RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorPoolResponse + */ +export class QueryDelegatorPoolResponse extends Message { + /** + * Pool is the pool + * + * @generated from field: milkyway.pools.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorPoolResponse { + return new QueryDelegatorPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorPoolResponse { + return new QueryDelegatorPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorPoolResponse { + return new QueryDelegatorPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorPoolResponse | PlainMessage | undefined, b: QueryDelegatorPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorPoolResponse, a, b); + } +} + +/** + * QueryDelegatorOperatorsRequest is request type for the + * Query/DelegatorOperators RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorsRequest + */ +export class QueryDelegatorOperatorsRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorsRequest { + return new QueryDelegatorOperatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorsRequest { + return new QueryDelegatorOperatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorsRequest { + return new QueryDelegatorOperatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorsRequest | PlainMessage | undefined, b: QueryDelegatorOperatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorsRequest, a, b); + } +} + +/** + * QueryDelegatorOperatorsResponse is response type for the + * Query/DelegatorOperators RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorsResponse + */ +export class QueryDelegatorOperatorsResponse extends Message { + /** + * Operators is the list of operators + * + * @generated from field: repeated milkyway.operators.v1.Operator operators = 1; + */ + operators: Operator[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operators", kind: "message", T: Operator, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorsResponse { + return new QueryDelegatorOperatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorsResponse { + return new QueryDelegatorOperatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorsResponse { + return new QueryDelegatorOperatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorsResponse | PlainMessage | undefined, b: QueryDelegatorOperatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorsResponse, a, b); + } +} + +/** + * QueryDelegatorOperatorRequest is request type for the Query/DelegatorOperator + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorRequest + */ +export class QueryDelegatorOperatorRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * OperatorId is the ID of the operator to query + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorRequest { + return new QueryDelegatorOperatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorRequest { + return new QueryDelegatorOperatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorRequest { + return new QueryDelegatorOperatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorRequest | PlainMessage | undefined, b: QueryDelegatorOperatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorRequest, a, b); + } +} + +/** + * QueryDelegatorOperatorResponse is response type for the + * Query/DelegatorOperator RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorOperatorResponse + */ +export class QueryDelegatorOperatorResponse extends Message { + /** + * Operator is the operator + * + * @generated from field: milkyway.operators.v1.Operator operator = 1; + */ + operator?: Operator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorOperatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator", kind: "message", T: Operator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorOperatorResponse { + return new QueryDelegatorOperatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorOperatorResponse { + return new QueryDelegatorOperatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorOperatorResponse { + return new QueryDelegatorOperatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorOperatorResponse | PlainMessage | undefined, b: QueryDelegatorOperatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorOperatorResponse, a, b); + } +} + +/** + * QueryDelegatorServicesRequest is request type for the Query/DelegatorServices + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServicesRequest + */ +export class QueryDelegatorServicesRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * Pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServicesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServicesRequest { + return new QueryDelegatorServicesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServicesRequest { + return new QueryDelegatorServicesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServicesRequest { + return new QueryDelegatorServicesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServicesRequest | PlainMessage | undefined, b: QueryDelegatorServicesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServicesRequest, a, b); + } +} + +/** + * QueryDelegatorServicesResponse is response type for the + * Query/DelegatorServices RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServicesResponse + */ +export class QueryDelegatorServicesResponse extends Message { + /** + * Services is the list of services + * + * @generated from field: repeated milkyway.services.v1.Service services = 1; + */ + services: Service[] = []; + + /** + * Pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServicesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "services", kind: "message", T: Service, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServicesResponse { + return new QueryDelegatorServicesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServicesResponse { + return new QueryDelegatorServicesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServicesResponse { + return new QueryDelegatorServicesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServicesResponse | PlainMessage | undefined, b: QueryDelegatorServicesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServicesResponse, a, b); + } +} + +/** + * QueryDelegatorServiceRequest is request type for the Query/DelegatorService + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceRequest + */ +export class QueryDelegatorServiceRequest extends Message { + /** + * DelegatorAddress is the address of the delegator to query + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * ServiceId is the ID of the service to query + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceRequest { + return new QueryDelegatorServiceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceRequest { + return new QueryDelegatorServiceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceRequest { + return new QueryDelegatorServiceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceRequest | PlainMessage | undefined, b: QueryDelegatorServiceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceRequest, a, b); + } +} + +/** + * QueryDelegatorServiceResponse is response type for the Query/DelegatorService + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryDelegatorServiceResponse + */ +export class QueryDelegatorServiceResponse extends Message { + /** + * Service is the service + * + * @generated from field: milkyway.services.v1.Service service = 1; + */ + service?: Service; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryDelegatorServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service", kind: "message", T: Service }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorServiceResponse { + return new QueryDelegatorServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorServiceResponse { + return new QueryDelegatorServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorServiceResponse { + return new QueryDelegatorServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorServiceResponse | PlainMessage | undefined, b: QueryDelegatorServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorServiceResponse, a, b); + } +} + +/** + * QueryUserPreferences is request type for the Query/UserPreferences RPC + * method. + * + * @generated from message milkyway.restaking.v1.QueryUserPreferencesRequest + */ +export class QueryUserPreferencesRequest extends Message { + /** + * UserAddress is the address of the user to query the preferences for + * + * @generated from field: string user_address = 1; + */ + userAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryUserPreferencesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserPreferencesRequest { + return new QueryUserPreferencesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserPreferencesRequest { + return new QueryUserPreferencesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserPreferencesRequest { + return new QueryUserPreferencesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserPreferencesRequest | PlainMessage | undefined, b: QueryUserPreferencesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserPreferencesRequest, a, b); + } +} + +/** + * QueryUserPreferencesResponse is response type for the Query/UserPreferences + * RPC method. + * + * @generated from message milkyway.restaking.v1.QueryUserPreferencesResponse + */ +export class QueryUserPreferencesResponse extends Message { + /** + * Preferences is the user preferences + * + * @generated from field: milkyway.restaking.v1.UserPreferences preferences = 1; + */ + preferences?: UserPreferences; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryUserPreferencesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "preferences", kind: "message", T: UserPreferences }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUserPreferencesResponse { + return new QueryUserPreferencesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUserPreferencesResponse { + return new QueryUserPreferencesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUserPreferencesResponse { + return new QueryUserPreferencesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUserPreferencesResponse | PlainMessage | undefined, b: QueryUserPreferencesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUserPreferencesResponse, a, b); + } +} + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message milkyway.restaking.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message milkyway.restaking.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: milkyway.restaking.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.restaking.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/rewards/v1/genesis_pb.ts b/src/protobufs/milkyway/rewards/v1/genesis_pb.ts new file mode 100644 index 00000000..5aec84f8 --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/genesis_pb.ts @@ -0,0 +1,510 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/genesis.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { AccumulatedCommission, CurrentRewards, DecPool, DelegatorStartingInfo, HistoricalRewards, PoolServiceTotalDelegatorShares, RewardsPlan } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * DelegatorWithdrawInfo is the address for where delegation rewards are + * withdrawn to by default this struct is only used at genesis to feed in + * default withdraw addresses. + * + * @generated from message milkyway.rewards.v1.DelegatorWithdrawInfo + */ +export class DelegatorWithdrawInfo extends Message { + /** + * delegator_address is the address of the delegator. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * withdraw_address is the address to withdraw the delegation rewards to. + * + * @generated from field: string withdraw_address = 2; + */ + withdrawAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DelegatorWithdrawInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorWithdrawInfo { + return new DelegatorWithdrawInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorWithdrawInfo { + return new DelegatorWithdrawInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegatorWithdrawInfo { + return new DelegatorWithdrawInfo().fromJsonString(jsonString, options); + } + + static equals(a: DelegatorWithdrawInfo | PlainMessage | undefined, b: DelegatorWithdrawInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegatorWithdrawInfo, a, b); + } +} + +/** + * OutstandingRewardsRecord is used for import/export via genesis json. + * + * @generated from message milkyway.rewards.v1.OutstandingRewardsRecord + */ +export class OutstandingRewardsRecord extends Message { + /** + * delegation_target_id is the ID of the delegation target. + * + * @generated from field: uint32 delegation_target_id = 1; + */ + delegationTargetId = 0; + + /** + * outstanding_rewards represents the outstanding rewards of the delegation + * target. + * + * @generated from field: repeated milkyway.rewards.v1.DecPool outstanding_rewards = 2; + */ + outstandingRewards: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.OutstandingRewardsRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "outstanding_rewards", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OutstandingRewardsRecord { + return new OutstandingRewardsRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OutstandingRewardsRecord { + return new OutstandingRewardsRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OutstandingRewardsRecord { + return new OutstandingRewardsRecord().fromJsonString(jsonString, options); + } + + static equals(a: OutstandingRewardsRecord | PlainMessage | undefined, b: OutstandingRewardsRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(OutstandingRewardsRecord, a, b); + } +} + +/** + * HistoricalRewardsRecord is used for import / export via genesis + * json. + * + * @generated from message milkyway.rewards.v1.HistoricalRewardsRecord + */ +export class HistoricalRewardsRecord extends Message { + /** + * delegation_target_id is the ID of the delegation target. + * + * @generated from field: uint32 delegation_target_id = 1; + */ + delegationTargetId = 0; + + /** + * period defines the period the historical rewards apply to. + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * rewards defines the historical rewards of the delegation target. + * + * @generated from field: milkyway.rewards.v1.HistoricalRewards rewards = 3; + */ + rewards?: HistoricalRewards; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.HistoricalRewardsRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "rewards", kind: "message", T: HistoricalRewards }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HistoricalRewardsRecord { + return new HistoricalRewardsRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HistoricalRewardsRecord { + return new HistoricalRewardsRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HistoricalRewardsRecord { + return new HistoricalRewardsRecord().fromJsonString(jsonString, options); + } + + static equals(a: HistoricalRewardsRecord | PlainMessage | undefined, b: HistoricalRewardsRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(HistoricalRewardsRecord, a, b); + } +} + +/** + * CurrentRewardsRecord is used for import / export via genesis json. + * + * @generated from message milkyway.rewards.v1.CurrentRewardsRecord + */ +export class CurrentRewardsRecord extends Message { + /** + * delegation_target_id is the ID of the delegation target. + * + * @generated from field: uint32 delegation_target_id = 1; + */ + delegationTargetId = 0; + + /** + * rewards defines the current rewards of the delegation target. + * + * @generated from field: milkyway.rewards.v1.CurrentRewards rewards = 2; + */ + rewards?: CurrentRewards; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.CurrentRewardsRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "rewards", kind: "message", T: CurrentRewards }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CurrentRewardsRecord { + return new CurrentRewardsRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CurrentRewardsRecord { + return new CurrentRewardsRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CurrentRewardsRecord { + return new CurrentRewardsRecord().fromJsonString(jsonString, options); + } + + static equals(a: CurrentRewardsRecord | PlainMessage | undefined, b: CurrentRewardsRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(CurrentRewardsRecord, a, b); + } +} + +/** + * DelegatorStartingInfoRecord used for import / export via genesis json. + * + * @generated from message milkyway.rewards.v1.DelegatorStartingInfoRecord + */ +export class DelegatorStartingInfoRecord extends Message { + /** + * delegator_address is the address of the delegator. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * delegation_target_id is the ID of the delegation target. + * + * @generated from field: uint32 delegation_target_id = 2; + */ + delegationTargetId = 0; + + /** + * starting_info defines the starting info of a delegator. + * + * @generated from field: milkyway.rewards.v1.DelegatorStartingInfo starting_info = 3; + */ + startingInfo?: DelegatorStartingInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DelegatorStartingInfoRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "starting_info", kind: "message", T: DelegatorStartingInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorStartingInfoRecord { + return new DelegatorStartingInfoRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorStartingInfoRecord { + return new DelegatorStartingInfoRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegatorStartingInfoRecord { + return new DelegatorStartingInfoRecord().fromJsonString(jsonString, options); + } + + static equals(a: DelegatorStartingInfoRecord | PlainMessage | undefined, b: DelegatorStartingInfoRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegatorStartingInfoRecord, a, b); + } +} + +/** + * OperatorAccumulatedCommissionRecord contains the data about the accumulated commission of an operator. + * + * @generated from message milkyway.rewards.v1.OperatorAccumulatedCommissionRecord + */ +export class OperatorAccumulatedCommissionRecord extends Message { + /** + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + /** + * accumulated is the accumulated commission of an operator. + * + * @generated from field: milkyway.rewards.v1.AccumulatedCommission accumulated = 2; + */ + accumulated?: AccumulatedCommission; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.OperatorAccumulatedCommissionRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "accumulated", kind: "message", T: AccumulatedCommission }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OperatorAccumulatedCommissionRecord { + return new OperatorAccumulatedCommissionRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OperatorAccumulatedCommissionRecord { + return new OperatorAccumulatedCommissionRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OperatorAccumulatedCommissionRecord { + return new OperatorAccumulatedCommissionRecord().fromJsonString(jsonString, options); + } + + static equals(a: OperatorAccumulatedCommissionRecord | PlainMessage | undefined, b: OperatorAccumulatedCommissionRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(OperatorAccumulatedCommissionRecord, a, b); + } +} + +/** + * DelegationTypeRecords groups various genesis records under the same type + * of delegation target. + * + * @generated from message milkyway.rewards.v1.DelegationTypeRecords + */ +export class DelegationTypeRecords extends Message { + /** + * outstanding_rewards defines the outstanding rewards of all delegation + * targets with the same delegation type at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.OutstandingRewardsRecord outstanding_rewards = 1; + */ + outstandingRewards: OutstandingRewardsRecord[] = []; + + /** + * historical_rewards defines the historical rewards of all delegation targets + * with the same delegation type at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.HistoricalRewardsRecord historical_rewards = 2; + */ + historicalRewards: HistoricalRewardsRecord[] = []; + + /** + * current_rewards defines the current rewards of all delegation targets with + * the same delegation type at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.CurrentRewardsRecord current_rewards = 3; + */ + currentRewards: CurrentRewardsRecord[] = []; + + /** + * delegator_starting_infos defines the delegator starting infos of all + * delegation targets with the same delegation type at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.DelegatorStartingInfoRecord delegator_starting_infos = 4; + */ + delegatorStartingInfos: DelegatorStartingInfoRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DelegationTypeRecords"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "outstanding_rewards", kind: "message", T: OutstandingRewardsRecord, repeated: true }, + { no: 2, name: "historical_rewards", kind: "message", T: HistoricalRewardsRecord, repeated: true }, + { no: 3, name: "current_rewards", kind: "message", T: CurrentRewardsRecord, repeated: true }, + { no: 4, name: "delegator_starting_infos", kind: "message", T: DelegatorStartingInfoRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegationTypeRecords { + return new DelegationTypeRecords().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegationTypeRecords { + return new DelegationTypeRecords().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegationTypeRecords { + return new DelegationTypeRecords().fromJsonString(jsonString, options); + } + + static equals(a: DelegationTypeRecords | PlainMessage | undefined, b: DelegationTypeRecords | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegationTypeRecords, a, b); + } +} + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message milkyway.rewards.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines the parameters of the module. + * + * @generated from field: milkyway.rewards.v1.Params params = 1; + */ + params?: Params; + + /** + * NextRewardsPlanID represents the id to be used when creating the next + * rewards plan. + * + * @generated from field: uint64 next_rewards_plan_id = 2; + */ + nextRewardsPlanId = protoInt64.zero; + + /** + * RewardsPlans defines the list of rewards plans. + * + * @generated from field: repeated milkyway.rewards.v1.RewardsPlan rewards_plans = 3; + */ + rewardsPlans: RewardsPlan[] = []; + + /** + * last_rewards_allocation_time is the last time rewards were allocated. + * + * @generated from field: google.protobuf.Timestamp last_rewards_allocation_time = 4; + */ + lastRewardsAllocationTime?: Timestamp; + + /** + * delegator_withdraw_infos defines the delegator withdraw infos at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.DelegatorWithdrawInfo delegator_withdraw_infos = 5; + */ + delegatorWithdrawInfos: DelegatorWithdrawInfo[] = []; + + /** + * pools_records defines a group of genesis records of all pools at genesis. + * + * @generated from field: milkyway.rewards.v1.DelegationTypeRecords pools_records = 6; + */ + poolsRecords?: DelegationTypeRecords; + + /** + * operators_records defines a group of genesis records of all operators at + * genesis. + * + * @generated from field: milkyway.rewards.v1.DelegationTypeRecords operators_records = 7; + */ + operatorsRecords?: DelegationTypeRecords; + + /** + * services_records defines a group of genesis records of all services at + * genesis. + * + * @generated from field: milkyway.rewards.v1.DelegationTypeRecords services_records = 8; + */ + servicesRecords?: DelegationTypeRecords; + + /** + * operator_accumulated_commissions defines the accumulated commissions of all + * operators at genesis. + * + * @generated from field: repeated milkyway.rewards.v1.OperatorAccumulatedCommissionRecord operator_accumulated_commissions = 9; + */ + operatorAccumulatedCommissions: OperatorAccumulatedCommissionRecord[] = []; + + /** + * pool_service_total_delegator_shares defines the total delegator shares at + * genesis. + * + * @generated from field: repeated milkyway.rewards.v1.PoolServiceTotalDelegatorShares pool_service_total_delegator_shares = 10; + */ + poolServiceTotalDelegatorShares: PoolServiceTotalDelegatorShares[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "next_rewards_plan_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "rewards_plans", kind: "message", T: RewardsPlan, repeated: true }, + { no: 4, name: "last_rewards_allocation_time", kind: "message", T: Timestamp }, + { no: 5, name: "delegator_withdraw_infos", kind: "message", T: DelegatorWithdrawInfo, repeated: true }, + { no: 6, name: "pools_records", kind: "message", T: DelegationTypeRecords }, + { no: 7, name: "operators_records", kind: "message", T: DelegationTypeRecords }, + { no: 8, name: "services_records", kind: "message", T: DelegationTypeRecords }, + { no: 9, name: "operator_accumulated_commissions", kind: "message", T: OperatorAccumulatedCommissionRecord, repeated: true }, + { no: 10, name: "pool_service_total_delegator_shares", kind: "message", T: PoolServiceTotalDelegatorShares, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/milkyway/rewards/v1/messages_cosmes.ts b/src/protobufs/milkyway/rewards/v1/messages_cosmes.ts new file mode 100644 index 00000000..57601353 --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/messages_cosmes.ts @@ -0,0 +1,88 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/messages.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCreateRewardsPlan, MsgCreateRewardsPlanResponse, MsgEditRewardsPlan, MsgEditRewardsPlanResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawOperatorCommission, MsgWithdrawOperatorCommissionResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.rewards.v1.Msg"; + +/** + * CreateRewardsPlan defines the operation for creating a new + * rewards plan. + * + * @generated from rpc milkyway.rewards.v1.Msg.CreateRewardsPlan + */ +export const MsgCreateRewardsPlanService = { + typeName: TYPE_NAME, + method: "CreateRewardsPlan", + Request: MsgCreateRewardsPlan, + Response: MsgCreateRewardsPlanResponse, +} as const; + +/** + * EditRewardsPlan defines the operation to edit an existing + * rewards plan. + * + * @generated from rpc milkyway.rewards.v1.Msg.EditRewardsPlan + */ +export const MsgEditRewardsPlanService = { + typeName: TYPE_NAME, + method: "EditRewardsPlan", + Request: MsgEditRewardsPlan, + Response: MsgEditRewardsPlanResponse, +} as const; + +/** + * SetWithdrawAddress defines a method to change the withdraw address + * for a delegator(or an operator, when withdrawing commission). + * + * @generated from rpc milkyway.rewards.v1.Msg.SetWithdrawAddress + */ +export const MsgSetWithdrawAddressService = { + typeName: TYPE_NAME, + method: "SetWithdrawAddress", + Request: MsgSetWithdrawAddress, + Response: MsgSetWithdrawAddressResponse, +} as const; + +/** + * WithdrawDelegatorReward defines a method to withdraw rewards of delegator + * from a single delegation target. + * + * @generated from rpc milkyway.rewards.v1.Msg.WithdrawDelegatorReward + */ +export const MsgWithdrawDelegatorRewardService = { + typeName: TYPE_NAME, + method: "WithdrawDelegatorReward", + Request: MsgWithdrawDelegatorReward, + Response: MsgWithdrawDelegatorRewardResponse, +} as const; + +/** + * WithdrawOperatorCommission defines a method to withdraw the + * full commission to the operator. + * + * @generated from rpc milkyway.rewards.v1.Msg.WithdrawOperatorCommission + */ +export const MsgWithdrawOperatorCommissionService = { + typeName: TYPE_NAME, + method: "WithdrawOperatorCommission", + Request: MsgWithdrawOperatorCommission, + Response: MsgWithdrawOperatorCommissionResponse, +} as const; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. + * The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.rewards.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/rewards/v1/messages_pb.ts b/src/protobufs/milkyway/rewards/v1/messages_pb.ts new file mode 100644 index 00000000..544b8566 --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/messages_pb.ts @@ -0,0 +1,656 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/messages.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Distribution, UsersDistribution } from "./models_pb.js"; +import { DelegationType } from "../../restaking/v1/models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgCreateRewardsPlan defines the message structure for the + * CreateRewardsPlan gRPC service method. It allows an account to create a + * new rewards plan. It requires a sender address as well as the details of + * the plan to be created. + * + * @generated from message milkyway.rewards.v1.MsgCreateRewardsPlan + */ +export class MsgCreateRewardsPlan extends Message { + /** + * Sender is the address of the user creating the rewards plan + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string description = 2; + */ + description = ""; + + /** + * @generated from field: uint32 service_id = 3; + */ + serviceId = 0; + + /** + * Amount is the amount of rewards to be distributed. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + /** + * StartTime is the starting time of the plan. + * + * @generated from field: google.protobuf.Timestamp start_time = 5; + */ + startTime?: Timestamp; + + /** + * EndTime is the ending time of the plan. + * + * @generated from field: google.protobuf.Timestamp end_time = 6; + */ + endTime?: Timestamp; + + /** + * PoolsDistribution is the rewards distribution parameters for pools. + * + * @generated from field: milkyway.rewards.v1.Distribution pools_distribution = 7; + */ + poolsDistribution?: Distribution; + + /** + * OperatorsDistribution is the rewards distribution parameters for operators. + * + * @generated from field: milkyway.rewards.v1.Distribution operators_distribution = 8; + */ + operatorsDistribution?: Distribution; + + /** + * UsersDistribution is the rewards distribution parameters for users who + * delegated directly to the service. + * + * @generated from field: milkyway.rewards.v1.UsersDistribution users_distribution = 9; + */ + usersDistribution?: UsersDistribution; + + /** + * FeeAmount represents the fees that are going to be paid to create the + * rewards plan. These should always be greater or equals of any of the coins + * specified inside the RewardsPlanCreationFee field of the modules params. + * If no fees are specified inside the module parameters, this field can be + * omitted. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin fee_amount = 10; + */ + feeAmount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgCreateRewardsPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + { no: 5, name: "start_time", kind: "message", T: Timestamp }, + { no: 6, name: "end_time", kind: "message", T: Timestamp }, + { no: 7, name: "pools_distribution", kind: "message", T: Distribution }, + { no: 8, name: "operators_distribution", kind: "message", T: Distribution }, + { no: 9, name: "users_distribution", kind: "message", T: UsersDistribution }, + { no: 10, name: "fee_amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateRewardsPlan { + return new MsgCreateRewardsPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateRewardsPlan { + return new MsgCreateRewardsPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateRewardsPlan { + return new MsgCreateRewardsPlan().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateRewardsPlan | PlainMessage | undefined, b: MsgCreateRewardsPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateRewardsPlan, a, b); + } +} + +/** + * MsgCreateRewardsPlanResponse is the return value of + * MsgCreateRewardsPlan. It returns the newly created plan ID. + * + * @generated from message milkyway.rewards.v1.MsgCreateRewardsPlanResponse + */ +export class MsgCreateRewardsPlanResponse extends Message { + /** + * NewRewardsPlanID is the ID of the newly created rewards plan + * + * @generated from field: uint64 new_rewards_plan_id = 1; + */ + newRewardsPlanId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgCreateRewardsPlanResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_rewards_plan_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateRewardsPlanResponse { + return new MsgCreateRewardsPlanResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateRewardsPlanResponse { + return new MsgCreateRewardsPlanResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateRewardsPlanResponse { + return new MsgCreateRewardsPlanResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateRewardsPlanResponse | PlainMessage | undefined, b: MsgCreateRewardsPlanResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateRewardsPlanResponse, a, b); + } +} + +/** + * MsgEditRewardsPlan defines the message structure for the + * EditRewardsPlan gRPC service method. It allows an account to edit a + * previously created rewards plan. + * + * @generated from message milkyway.rewards.v1.MsgEditRewardsPlan + */ +export class MsgEditRewardsPlan extends Message { + /** + * Sender is the address of the user editing the rewards plan. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ID is the ID of the rewards plan to be edited. + * + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * Amount is the amount of rewards to be distributed. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + /** + * StartTime is the starting time of the plan. + * + * @generated from field: google.protobuf.Timestamp start_time = 5; + */ + startTime?: Timestamp; + + /** + * EndTime is the ending time of the plan. + * + * @generated from field: google.protobuf.Timestamp end_time = 6; + */ + endTime?: Timestamp; + + /** + * PoolsDistribution is the rewards distribution parameters for pools. + * + * @generated from field: milkyway.rewards.v1.Distribution pools_distribution = 7; + */ + poolsDistribution?: Distribution; + + /** + * OperatorsDistribution is the rewards distribution parameters for operators. + * + * @generated from field: milkyway.rewards.v1.Distribution operators_distribution = 8; + */ + operatorsDistribution?: Distribution; + + /** + * UsersDistribution is the rewards distribution parameters for users who + * delegated directly to the service. + * + * @generated from field: milkyway.rewards.v1.UsersDistribution users_distribution = 9; + */ + usersDistribution?: UsersDistribution; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgEditRewardsPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + { no: 5, name: "start_time", kind: "message", T: Timestamp }, + { no: 6, name: "end_time", kind: "message", T: Timestamp }, + { no: 7, name: "pools_distribution", kind: "message", T: Distribution }, + { no: 8, name: "operators_distribution", kind: "message", T: Distribution }, + { no: 9, name: "users_distribution", kind: "message", T: UsersDistribution }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditRewardsPlan { + return new MsgEditRewardsPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditRewardsPlan { + return new MsgEditRewardsPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditRewardsPlan { + return new MsgEditRewardsPlan().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditRewardsPlan | PlainMessage | undefined, b: MsgEditRewardsPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditRewardsPlan, a, b); + } +} + +/** + * MsgEditRewardsPlanResponse is the return value of + * MsgEditRewardsPlan. + * + * @generated from message milkyway.rewards.v1.MsgEditRewardsPlanResponse + */ +export class MsgEditRewardsPlanResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgEditRewardsPlanResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditRewardsPlanResponse { + return new MsgEditRewardsPlanResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditRewardsPlanResponse { + return new MsgEditRewardsPlanResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditRewardsPlanResponse { + return new MsgEditRewardsPlanResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditRewardsPlanResponse | PlainMessage | undefined, b: MsgEditRewardsPlanResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditRewardsPlanResponse, a, b); + } +} + +/** + * MsgSetWithdrawAddress sets the withdraw address for a delegator(or an + * operator when withdrawing commission). + * + * @generated from message milkyway.rewards.v1.MsgSetWithdrawAddress + */ +export class MsgSetWithdrawAddress extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string withdraw_address = 2; + */ + withdrawAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgSetWithdrawAddress"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWithdrawAddress { + return new MsgSetWithdrawAddress().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWithdrawAddress { + return new MsgSetWithdrawAddress().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetWithdrawAddress { + return new MsgSetWithdrawAddress().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetWithdrawAddress | PlainMessage | undefined, b: MsgSetWithdrawAddress | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetWithdrawAddress, a, b); + } +} + +/** + * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response + * type. + * + * @generated from message milkyway.rewards.v1.MsgSetWithdrawAddressResponse + */ +export class MsgSetWithdrawAddressResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgSetWithdrawAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWithdrawAddressResponse { + return new MsgSetWithdrawAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWithdrawAddressResponse { + return new MsgSetWithdrawAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetWithdrawAddressResponse { + return new MsgSetWithdrawAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetWithdrawAddressResponse | PlainMessage | undefined, b: MsgSetWithdrawAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetWithdrawAddressResponse, a, b); + } +} + +/** + * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator + * from a single delegation target. + * + * @generated from message milkyway.rewards.v1.MsgWithdrawDelegatorReward + */ +export class MsgWithdrawDelegatorReward extends Message { + /** + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * @generated from field: milkyway.restaking.v1.DelegationType delegation_type = 2; + */ + delegationType = DelegationType.UNSPECIFIED; + + /** + * @generated from field: uint32 delegation_target_id = 3; + */ + delegationTargetId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgWithdrawDelegatorReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "delegation_type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 3, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegatorReward { + return new MsgWithdrawDelegatorReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegatorReward { + return new MsgWithdrawDelegatorReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegatorReward { + return new MsgWithdrawDelegatorReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawDelegatorReward | PlainMessage | undefined, b: MsgWithdrawDelegatorReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawDelegatorReward, a, b); + } +} + +/** + * MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward + * response type. + * + * @generated from message milkyway.rewards.v1.MsgWithdrawDelegatorRewardResponse + */ +export class MsgWithdrawDelegatorRewardResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgWithdrawDelegatorRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegatorRewardResponse { + return new MsgWithdrawDelegatorRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegatorRewardResponse { + return new MsgWithdrawDelegatorRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegatorRewardResponse { + return new MsgWithdrawDelegatorRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawDelegatorRewardResponse | PlainMessage | undefined, b: MsgWithdrawDelegatorRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawDelegatorRewardResponse, a, b); + } +} + +/** + * MsgWithdrawOperatorCommission withdraws the full commission to the operator. + * + * @generated from message milkyway.rewards.v1.MsgWithdrawOperatorCommission + */ +export class MsgWithdrawOperatorCommission extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgWithdrawOperatorCommission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawOperatorCommission { + return new MsgWithdrawOperatorCommission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawOperatorCommission { + return new MsgWithdrawOperatorCommission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawOperatorCommission { + return new MsgWithdrawOperatorCommission().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawOperatorCommission | PlainMessage | undefined, b: MsgWithdrawOperatorCommission | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawOperatorCommission, a, b); + } +} + +/** + * MsgWithdrawOperatorCommissionResponse defines the + * Msg/WithdrawOperatorCommission response type. + * + * @generated from message milkyway.rewards.v1.MsgWithdrawOperatorCommissionResponse + */ +export class MsgWithdrawOperatorCommissionResponse extends Message { + /** + * Since: cosmos-sdk 0.46 + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgWithdrawOperatorCommissionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawOperatorCommissionResponse { + return new MsgWithdrawOperatorCommissionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawOperatorCommissionResponse { + return new MsgWithdrawOperatorCommissionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawOperatorCommissionResponse { + return new MsgWithdrawOperatorCommissionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawOperatorCommissionResponse | PlainMessage | undefined, b: MsgWithdrawOperatorCommissionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawOperatorCommissionResponse, a, b); + } +} + +/** + * MsgUpdateParams defines the message structure for the UpdateParams gRPC + * service method. It allows the authority to update the module parameters. + * + * @generated from message milkyway.rewards.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params define the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: milkyway.rewards.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse is the return value of MsgUpdateParams. + * + * @generated from message milkyway.rewards.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/rewards/v1/models_pb.ts b/src/protobufs/milkyway/rewards/v1/models_pb.ts new file mode 100644 index 00000000..b80e9ede --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/models_pb.ts @@ -0,0 +1,916 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/models.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { DelegationType } from "../../restaking/v1/models_pb.js"; + +/** + * RewardsPlan represents a rewards allocation plan. + * + * @generated from message milkyway.rewards.v1.RewardsPlan + */ +export class RewardsPlan extends Message { + /** + * ID is the unique identifier of the plan. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Description is the description of the plan. + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * ServiceID is the service ID which the plan is related to. + * + * @generated from field: uint32 service_id = 3; + */ + serviceId = 0; + + /** + * AmountPerDay is the amount of rewards to be distributed, per day. + * The rewards amount for every block will be calculated based on this. + * + * @generated from field: cosmos.base.v1beta1.Coin amount_per_day = 11; + */ + amountPerDay?: Coin; + + /** + * StartTime is the starting time of the plan. + * + * @generated from field: google.protobuf.Timestamp start_time = 5; + */ + startTime?: Timestamp; + + /** + * EndTime is the ending time of the plan. + * + * @generated from field: google.protobuf.Timestamp end_time = 6; + */ + endTime?: Timestamp; + + /** + * RewardsPool is the address where rewards to be distributed are stored. + * If the rewards pool doesn't have enough funds to be distributed, then + * the rewards allocation for this plan will be skipped. + * + * @generated from field: string rewards_pool = 7; + */ + rewardsPool = ""; + + /** + * PoolsDistribution is the rewards distribution parameters for pools. + * + * @generated from field: milkyway.rewards.v1.Distribution pools_distribution = 8; + */ + poolsDistribution?: Distribution; + + /** + * OperatorsDistribution is the rewards distribution parameters for operators. + * + * @generated from field: milkyway.rewards.v1.Distribution operators_distribution = 9; + */ + operatorsDistribution?: Distribution; + + /** + * UsersDistribution is the rewards distribution parameters for users. + * + * @generated from field: milkyway.rewards.v1.UsersDistribution users_distribution = 10; + */ + usersDistribution?: UsersDistribution; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.RewardsPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 11, name: "amount_per_day", kind: "message", T: Coin }, + { no: 5, name: "start_time", kind: "message", T: Timestamp }, + { no: 6, name: "end_time", kind: "message", T: Timestamp }, + { no: 7, name: "rewards_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pools_distribution", kind: "message", T: Distribution }, + { no: 9, name: "operators_distribution", kind: "message", T: Distribution }, + { no: 10, name: "users_distribution", kind: "message", T: UsersDistribution }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardsPlan { + return new RewardsPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardsPlan { + return new RewardsPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardsPlan { + return new RewardsPlan().fromJsonString(jsonString, options); + } + + static equals(a: RewardsPlan | PlainMessage | undefined, b: RewardsPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardsPlan, a, b); + } +} + +/** + * Distribution represents distribution parameters for restaking + * pools/operators. + * + * @generated from message milkyway.rewards.v1.Distribution + */ +export class Distribution extends Message { + /** + * DelegationType is the type of delegation target which this distribution + * parameters are for. It can be one of DELEGATION_TYPE_POOL and + * DELEGATION_TYPE_OPERATOR. + * + * @generated from field: milkyway.restaking.v1.DelegationType delegation_type = 1; + */ + delegationType = DelegationType.UNSPECIFIED; + + /** + * Weight is the rewards distribution weight among other types of delegation + * targets. + * + * @generated from field: uint32 weight = 2; + */ + weight = 0; + + /** + * Type is one of basic/weighted/egalitarian distributions. + * + * @generated from field: google.protobuf.Any type = 3; + */ + type?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.Distribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 2, name: "weight", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "type", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Distribution { + return new Distribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Distribution { + return new Distribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Distribution { + return new Distribution().fromJsonString(jsonString, options); + } + + static equals(a: Distribution | PlainMessage | undefined, b: Distribution | PlainMessage | undefined): boolean { + return proto3.util.equals(Distribution, a, b); + } +} + +/** + * DistributionTypeBasic represents the simplest form of distribution. + * Rewards are allocated to entities based on their delegation values. + * For example, if there are three operators with delegation values of + * $1000, $1500, and $2000, their rewards will be distributed in a + * 2:3:4 ratio. + * + * @generated from message milkyway.rewards.v1.DistributionTypeBasic + */ +export class DistributionTypeBasic extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DistributionTypeBasic"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributionTypeBasic { + return new DistributionTypeBasic().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributionTypeBasic { + return new DistributionTypeBasic().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributionTypeBasic { + return new DistributionTypeBasic().fromJsonString(jsonString, options); + } + + static equals(a: DistributionTypeBasic | PlainMessage | undefined, b: DistributionTypeBasic | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributionTypeBasic, a, b); + } +} + +/** + * DistributionTypeWeighted is a type of distribution where the reward + * weights for each entity are explicitly defined. Only the specified + * delegation targets will receive rewards. + * + * @generated from message milkyway.rewards.v1.DistributionTypeWeighted + */ +export class DistributionTypeWeighted extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.DistributionWeight weights = 1; + */ + weights: DistributionWeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DistributionTypeWeighted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weights", kind: "message", T: DistributionWeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributionTypeWeighted { + return new DistributionTypeWeighted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributionTypeWeighted { + return new DistributionTypeWeighted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributionTypeWeighted { + return new DistributionTypeWeighted().fromJsonString(jsonString, options); + } + + static equals(a: DistributionTypeWeighted | PlainMessage | undefined, b: DistributionTypeWeighted | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributionTypeWeighted, a, b); + } +} + +/** + * DistributionWeight defines a delegation target and its assigned weight. + * + * @generated from message milkyway.rewards.v1.DistributionWeight + */ +export class DistributionWeight extends Message { + /** + * @generated from field: uint32 delegation_target_id = 1; + */ + delegationTargetId = 0; + + /** + * @generated from field: uint32 weight = 2; + */ + weight = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DistributionWeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "weight", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributionWeight { + return new DistributionWeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributionWeight { + return new DistributionWeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributionWeight { + return new DistributionWeight().fromJsonString(jsonString, options); + } + + static equals(a: DistributionWeight | PlainMessage | undefined, b: DistributionWeight | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributionWeight, a, b); + } +} + +/** + * DistributionTypeEgalitarian is a distribution method where all entities + * receive an equal share of rewards(a.k.a. egalitarian method). + * + * @generated from message milkyway.rewards.v1.DistributionTypeEgalitarian + */ +export class DistributionTypeEgalitarian extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DistributionTypeEgalitarian"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributionTypeEgalitarian { + return new DistributionTypeEgalitarian().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributionTypeEgalitarian { + return new DistributionTypeEgalitarian().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributionTypeEgalitarian { + return new DistributionTypeEgalitarian().fromJsonString(jsonString, options); + } + + static equals(a: DistributionTypeEgalitarian | PlainMessage | undefined, b: DistributionTypeEgalitarian | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributionTypeEgalitarian, a, b); + } +} + +/** + * Distribution represents distribution parameters for delegators who directly + * staked their tokens to the service. + * + * @generated from message milkyway.rewards.v1.UsersDistribution + */ +export class UsersDistribution extends Message { + /** + * Weight is the rewards distribution weight among other types of delegation + * targets. + * + * @generated from field: uint32 weight = 1; + */ + weight = 0; + + /** + * Type defines the rewards distribution method. Currently only the basic + * distribution is allowed. + * + * @generated from field: google.protobuf.Any type = 2; + */ + type?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.UsersDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "type", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UsersDistribution { + return new UsersDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UsersDistribution { + return new UsersDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UsersDistribution { + return new UsersDistribution().fromJsonString(jsonString, options); + } + + static equals(a: UsersDistribution | PlainMessage | undefined, b: UsersDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(UsersDistribution, a, b); + } +} + +/** + * UsersDistributionTypeBasic represents the simplest form of distribution. + * Rewards are allocated to entities based on their delegation values. + * For example, if there are three users with delegation values of + * $1000, $1500, and $2000, their rewards will be distributed in a + * 2:3:4 ratio. + * + * @generated from message milkyway.rewards.v1.UsersDistributionTypeBasic + */ +export class UsersDistributionTypeBasic extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.UsersDistributionTypeBasic"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UsersDistributionTypeBasic { + return new UsersDistributionTypeBasic().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UsersDistributionTypeBasic { + return new UsersDistributionTypeBasic().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UsersDistributionTypeBasic { + return new UsersDistributionTypeBasic().fromJsonString(jsonString, options); + } + + static equals(a: UsersDistributionTypeBasic | PlainMessage | undefined, b: UsersDistributionTypeBasic | PlainMessage | undefined): boolean { + return proto3.util.equals(UsersDistributionTypeBasic, a, b); + } +} + +/** + * HistoricalRewards represents historical rewards for a delegation target. + * Height is implicit within the store key. + * Cumulative reward ratio is the sum from the zeroeth period + * until this period of rewards / tokens, per the spec. + * The reference count indicates the number of objects + * which might need to reference this historical entry at any point. + * ReferenceCount = + * number of outstanding delegations which ended the associated period (and + * might need to read that record) + * + number of slashes which ended the associated period (and might need to + * read that record) + * + one per validator for the zeroeth period, set on initialization + * + * @generated from message milkyway.rewards.v1.HistoricalRewards + */ +export class HistoricalRewards extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.ServicePool cumulative_reward_ratios = 1; + */ + cumulativeRewardRatios: ServicePool[] = []; + + /** + * @generated from field: uint32 reference_count = 2; + */ + referenceCount = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.HistoricalRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cumulative_reward_ratios", kind: "message", T: ServicePool, repeated: true }, + { no: 2, name: "reference_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HistoricalRewards { + return new HistoricalRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HistoricalRewards { + return new HistoricalRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HistoricalRewards { + return new HistoricalRewards().fromJsonString(jsonString, options); + } + + static equals(a: HistoricalRewards | PlainMessage | undefined, b: HistoricalRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(HistoricalRewards, a, b); + } +} + +/** + * CurrentRewards represents current rewards and current + * period for a delegation target kept as a running counter and incremented + * each block as long as the delegation target's tokens remain constant. + * + * @generated from message milkyway.rewards.v1.CurrentRewards + */ +export class CurrentRewards extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.ServicePool rewards = 1; + */ + rewards: ServicePool[] = []; + + /** + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.CurrentRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: ServicePool, repeated: true }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CurrentRewards { + return new CurrentRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CurrentRewards { + return new CurrentRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CurrentRewards { + return new CurrentRewards().fromJsonString(jsonString, options); + } + + static equals(a: CurrentRewards | PlainMessage | undefined, b: CurrentRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(CurrentRewards, a, b); + } +} + +/** + * OutstandingRewards represents outstanding (un-withdrawn) rewards + * for a delegation target inexpensive to track, allows simple sanity checks. + * + * @generated from message milkyway.rewards.v1.OutstandingRewards + */ +export class OutstandingRewards extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.DecPool rewards = 1; + */ + rewards: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.OutstandingRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OutstandingRewards { + return new OutstandingRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OutstandingRewards { + return new OutstandingRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OutstandingRewards { + return new OutstandingRewards().fromJsonString(jsonString, options); + } + + static equals(a: OutstandingRewards | PlainMessage | undefined, b: OutstandingRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(OutstandingRewards, a, b); + } +} + +/** + * AccumulatedCommission represents accumulated commission + * for a delegation target kept as a running counter, can be withdrawn at any + * time. + * + * @generated from message milkyway.rewards.v1.AccumulatedCommission + */ +export class AccumulatedCommission extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.DecPool commissions = 1; + */ + commissions: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.AccumulatedCommission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commissions", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccumulatedCommission { + return new AccumulatedCommission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccumulatedCommission { + return new AccumulatedCommission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccumulatedCommission { + return new AccumulatedCommission().fromJsonString(jsonString, options); + } + + static equals(a: AccumulatedCommission | PlainMessage | undefined, b: AccumulatedCommission | PlainMessage | undefined): boolean { + return proto3.util.equals(AccumulatedCommission, a, b); + } +} + +/** + * DelegatorStartingInfo represents the starting info for a delegator reward + * period. It tracks the previous delegation target period, the delegation's + * amount of staking token, and the creation height (to check later on if any + * slashes have occurred). NOTE: Even though validators are slashed to whole + * staking tokens, the delegators within the validator may be left with less + * than a full token, thus sdk.Dec is used. + * + * @generated from message milkyway.rewards.v1.DelegatorStartingInfo + */ +export class DelegatorStartingInfo extends Message { + /** + * @generated from field: uint64 previous_period = 1; + */ + previousPeriod = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin stakes = 2; + */ + stakes: DecCoin[] = []; + + /** + * @generated from field: uint64 height = 3; + */ + height = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DelegatorStartingInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "previous_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "stakes", kind: "message", T: DecCoin, repeated: true }, + { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorStartingInfo { + return new DelegatorStartingInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorStartingInfo { + return new DelegatorStartingInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegatorStartingInfo { + return new DelegatorStartingInfo().fromJsonString(jsonString, options); + } + + static equals(a: DelegatorStartingInfo | PlainMessage | undefined, b: DelegatorStartingInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegatorStartingInfo, a, b); + } +} + +/** + * DelegationDelegatorReward represents the properties of a delegator's + * delegation reward. The delegator address implicit in the within the + * query request. + * + * @generated from message milkyway.rewards.v1.DelegationDelegatorReward + */ +export class DelegationDelegatorReward extends Message { + /** + * @generated from field: milkyway.restaking.v1.DelegationType delegation_type = 1; + */ + delegationType = DelegationType.UNSPECIFIED; + + /** + * @generated from field: uint32 delegation_target_id = 2; + */ + delegationTargetId = 0; + + /** + * @generated from field: repeated milkyway.rewards.v1.DecPool reward = 3; + */ + reward: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DelegationDelegatorReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation_type", kind: "enum", T: proto3.getEnumType(DelegationType) }, + { no: 2, name: "delegation_target_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "reward", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegationDelegatorReward { + return new DelegationDelegatorReward().fromJsonString(jsonString, options); + } + + static equals(a: DelegationDelegatorReward | PlainMessage | undefined, b: DelegationDelegatorReward | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegationDelegatorReward, a, b); + } +} + +/** + * PoolServiceTotalDelegatorShares represents the total delegator shares for a + * pool-service pair. + * + * @generated from message milkyway.rewards.v1.PoolServiceTotalDelegatorShares + */ +export class PoolServiceTotalDelegatorShares extends Message { + /** + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin shares = 3; + */ + shares: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.PoolServiceTotalDelegatorShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "shares", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolServiceTotalDelegatorShares { + return new PoolServiceTotalDelegatorShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolServiceTotalDelegatorShares { + return new PoolServiceTotalDelegatorShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolServiceTotalDelegatorShares { + return new PoolServiceTotalDelegatorShares().fromJsonString(jsonString, options); + } + + static equals(a: PoolServiceTotalDelegatorShares | PlainMessage | undefined, b: PoolServiceTotalDelegatorShares | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolServiceTotalDelegatorShares, a, b); + } +} + +/** + * Pool is a Coins wrapper with denom which represents the rewards pool for the + * given denom. It is used to represent the rewards associated with the denom. + * + * @generated from message milkyway.rewards.v1.Pool + */ +export class Pool extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * DecPool is a DecCoins wrapper with denom which represents the rewards pool + * for the given denom. It is used to represent the rewards associated with the + * denom. + * + * @generated from message milkyway.rewards.v1.DecPool + */ +export class DecPool extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin dec_coins = 2; + */ + decCoins: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.DecPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dec_coins", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DecPool { + return new DecPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DecPool { + return new DecPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DecPool { + return new DecPool().fromJsonString(jsonString, options); + } + + static equals(a: DecPool | PlainMessage | undefined, b: DecPool | PlainMessage | undefined): boolean { + return proto3.util.equals(DecPool, a, b); + } +} + +/** + * ServicePool represents the rewards pool for a service. + * + * @generated from message milkyway.rewards.v1.ServicePool + */ +export class ServicePool extends Message { + /** + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * @generated from field: repeated milkyway.rewards.v1.DecPool dec_pools = 2; + */ + decPools: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.ServicePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "dec_pools", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ServicePool { + return new ServicePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ServicePool { + return new ServicePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ServicePool { + return new ServicePool().fromJsonString(jsonString, options); + } + + static equals(a: ServicePool | PlainMessage | undefined, b: ServicePool | PlainMessage | undefined): boolean { + return proto3.util.equals(ServicePool, a, b); + } +} + diff --git a/src/protobufs/milkyway/rewards/v1/params_pb.ts b/src/protobufs/milkyway/rewards/v1/params_pb.ts new file mode 100644 index 00000000..8adaa8a8 --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/params_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/params.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message milkyway.rewards.v1.Params + */ +export class Params extends Message { + /** + * RewardsPlanCreationFee represents the fee that an account must pay in + * order to create a rewards plan. + * The fee is drawn from the MsgCreateRewardsPlan sender's account and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards_plan_creation_fee = 1; + */ + rewardsPlanCreationFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards_plan_creation_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/milkyway/rewards/v1/query_cosmes.ts b/src/protobufs/milkyway/rewards/v1/query_cosmes.ts new file mode 100644 index 00000000..f5ac2936 --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/query_cosmes.ts @@ -0,0 +1,171 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/query.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDelegatorTotalRewardsRequest, QueryDelegatorTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryOperatorCommissionRequest, QueryOperatorCommissionResponse, QueryOperatorDelegationRewardsRequest, QueryOperatorDelegationRewardsResponse, QueryOperatorOutstandingRewardsRequest, QueryOperatorOutstandingRewardsResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolDelegationRewardsRequest, QueryPoolDelegationRewardsResponse, QueryPoolOutstandingRewardsRequest, QueryPoolOutstandingRewardsResponse, QueryPoolServiceTotalDelegatorSharesRequest, QueryPoolServiceTotalDelegatorSharesResponse, QueryRewardsPlanRequest, QueryRewardsPlanResponse, QueryRewardsPlansRequest, QueryRewardsPlansResponse, QueryServiceDelegationRewardsRequest, QueryServiceDelegationRewardsResponse, QueryServiceOutstandingRewardsRequest, QueryServiceOutstandingRewardsResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.rewards.v1.Query"; + +/** + * Params defines a gRPC query method that returns the parameters of the + * module. + * + * @generated from rpc milkyway.rewards.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * RewardsPlans queries all rewards plans. + * + * @generated from rpc milkyway.rewards.v1.Query.RewardsPlans + */ +export const QueryRewardsPlansService = { + typeName: TYPE_NAME, + method: "RewardsPlans", + Request: QueryRewardsPlansRequest, + Response: QueryRewardsPlansResponse, +} as const; + +/** + * RewardsPlan queries a specific rewards plan by its ID. + * + * @generated from rpc milkyway.rewards.v1.Query.RewardsPlan + */ +export const QueryRewardsPlanService = { + typeName: TYPE_NAME, + method: "RewardsPlan", + Request: QueryRewardsPlanRequest, + Response: QueryRewardsPlanResponse, +} as const; + +/** + * PoolOutstandingRewards queries rewards of a pool. + * + * @generated from rpc milkyway.rewards.v1.Query.PoolOutstandingRewards + */ +export const QueryPoolOutstandingRewardsService = { + typeName: TYPE_NAME, + method: "PoolOutstandingRewards", + Request: QueryPoolOutstandingRewardsRequest, + Response: QueryPoolOutstandingRewardsResponse, +} as const; + +/** + * OperatorOutstandingRewards queries rewards of an operator. + * + * @generated from rpc milkyway.rewards.v1.Query.OperatorOutstandingRewards + */ +export const QueryOperatorOutstandingRewardsService = { + typeName: TYPE_NAME, + method: "OperatorOutstandingRewards", + Request: QueryOperatorOutstandingRewardsRequest, + Response: QueryOperatorOutstandingRewardsResponse, +} as const; + +/** + * ServiceOutstandingRewards queries rewards of a service. + * + * @generated from rpc milkyway.rewards.v1.Query.ServiceOutstandingRewards + */ +export const QueryServiceOutstandingRewardsService = { + typeName: TYPE_NAME, + method: "ServiceOutstandingRewards", + Request: QueryServiceOutstandingRewardsRequest, + Response: QueryServiceOutstandingRewardsResponse, +} as const; + +/** + * OperatorCommission queries accumulated commission for an operator. + * + * @generated from rpc milkyway.rewards.v1.Query.OperatorCommission + */ +export const QueryOperatorCommissionService = { + typeName: TYPE_NAME, + method: "OperatorCommission", + Request: QueryOperatorCommissionRequest, + Response: QueryOperatorCommissionResponse, +} as const; + +/** + * PoolServiceTotalDelegatorShares queries the total delegator shares for a + * pool-service pair. + * + * @generated from rpc milkyway.rewards.v1.Query.PoolServiceTotalDelegatorShares + */ +export const QueryPoolServiceTotalDelegatorSharesService = { + typeName: TYPE_NAME, + method: "PoolServiceTotalDelegatorShares", + Request: QueryPoolServiceTotalDelegatorSharesRequest, + Response: QueryPoolServiceTotalDelegatorSharesResponse, +} as const; + +/** + * PoolDelegationRewards queries the total rewards accrued by a pool + * delegation. + * + * @generated from rpc milkyway.rewards.v1.Query.PoolDelegationRewards + */ +export const QueryPoolDelegationRewardsService = { + typeName: TYPE_NAME, + method: "PoolDelegationRewards", + Request: QueryPoolDelegationRewardsRequest, + Response: QueryPoolDelegationRewardsResponse, +} as const; + +/** + * OperatorDelegationRewards queries the total rewards accrued by a operator + * delegation. + * + * @generated from rpc milkyway.rewards.v1.Query.OperatorDelegationRewards + */ +export const QueryOperatorDelegationRewardsService = { + typeName: TYPE_NAME, + method: "OperatorDelegationRewards", + Request: QueryOperatorDelegationRewardsRequest, + Response: QueryOperatorDelegationRewardsResponse, +} as const; + +/** + * ServiceDelegationRewards queries the total rewards accrued by a service + * delegation. + * + * @generated from rpc milkyway.rewards.v1.Query.ServiceDelegationRewards + */ +export const QueryServiceDelegationRewardsService = { + typeName: TYPE_NAME, + method: "ServiceDelegationRewards", + Request: QueryServiceDelegationRewardsRequest, + Response: QueryServiceDelegationRewardsResponse, +} as const; + +/** + * DelegatorTotalRewards queries the total rewards accrued by a single + * delegator + * + * @generated from rpc milkyway.rewards.v1.Query.DelegatorTotalRewards + */ +export const QueryDelegatorTotalRewardsService = { + typeName: TYPE_NAME, + method: "DelegatorTotalRewards", + Request: QueryDelegatorTotalRewardsRequest, + Response: QueryDelegatorTotalRewardsResponse, +} as const; + +/** + * DelegatorWithdrawAddress queries withdraw address of a delegator. + * + * @generated from rpc milkyway.rewards.v1.Query.DelegatorWithdrawAddress + */ +export const QueryDelegatorWithdrawAddressService = { + typeName: TYPE_NAME, + method: "DelegatorWithdrawAddress", + Request: QueryDelegatorWithdrawAddressRequest, + Response: QueryDelegatorWithdrawAddressResponse, +} as const; + diff --git a/src/protobufs/milkyway/rewards/v1/query_pb.ts b/src/protobufs/milkyway/rewards/v1/query_pb.ts new file mode 100644 index 00000000..ec48dc5d --- /dev/null +++ b/src/protobufs/milkyway/rewards/v1/query_pb.ts @@ -0,0 +1,1129 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/rewards/v1/query.proto (package milkyway.rewards.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { AccumulatedCommission, DecPool, DelegationDelegatorReward, OutstandingRewards, RewardsPlan } from "./models_pb.js"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message milkyway.rewards.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message milkyway.rewards.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: milkyway.rewards.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryRewardsPlansRequest is the request type for the Query/RewardsPlans RPC + * method. + * + * @generated from message milkyway.rewards.v1.QueryRewardsPlansRequest + */ +export class QueryRewardsPlansRequest extends Message { + /** + * pagination defines an optional pagination for the request. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryRewardsPlansRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsPlansRequest { + return new QueryRewardsPlansRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsPlansRequest { + return new QueryRewardsPlansRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsPlansRequest { + return new QueryRewardsPlansRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsPlansRequest | PlainMessage | undefined, b: QueryRewardsPlansRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsPlansRequest, a, b); + } +} + +/** + * QueryRewardsPlansResponse is the response type for the Query/RewardsPlans + * RPC method. + * + * @generated from message milkyway.rewards.v1.QueryRewardsPlansResponse + */ +export class QueryRewardsPlansResponse extends Message { + /** + * @generated from field: repeated milkyway.rewards.v1.RewardsPlan rewards_plans = 1; + */ + rewardsPlans: RewardsPlan[] = []; + + /** + * pagination defines the pagination in the response. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryRewardsPlansResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards_plans", kind: "message", T: RewardsPlan, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsPlansResponse { + return new QueryRewardsPlansResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsPlansResponse { + return new QueryRewardsPlansResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsPlansResponse { + return new QueryRewardsPlansResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsPlansResponse | PlainMessage | undefined, b: QueryRewardsPlansResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsPlansResponse, a, b); + } +} + +/** + * QueryRewardsPlanRequest is the request type for the Query/RewardsPlan RPC + * method. + * + * @generated from message milkyway.rewards.v1.QueryRewardsPlanRequest + */ +export class QueryRewardsPlanRequest extends Message { + /** + * @generated from field: uint64 plan_id = 1; + */ + planId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryRewardsPlanRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "plan_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsPlanRequest { + return new QueryRewardsPlanRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsPlanRequest { + return new QueryRewardsPlanRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsPlanRequest { + return new QueryRewardsPlanRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsPlanRequest | PlainMessage | undefined, b: QueryRewardsPlanRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsPlanRequest, a, b); + } +} + +/** + * QueryRewardsPlanResponse is the response type for the Query/RewardsPlan RPC + * method. + * + * @generated from message milkyway.rewards.v1.QueryRewardsPlanResponse + */ +export class QueryRewardsPlanResponse extends Message { + /** + * @generated from field: milkyway.rewards.v1.RewardsPlan rewards_plan = 2; + */ + rewardsPlan?: RewardsPlan; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryRewardsPlanResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "rewards_plan", kind: "message", T: RewardsPlan }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsPlanResponse { + return new QueryRewardsPlanResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsPlanResponse { + return new QueryRewardsPlanResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsPlanResponse { + return new QueryRewardsPlanResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsPlanResponse | PlainMessage | undefined, b: QueryRewardsPlanResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsPlanResponse, a, b); + } +} + +/** + * QueryPoolOutstandingRewardsRequest is the request type for the + * Query/PoolOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolOutstandingRewardsRequest + */ +export class QueryPoolOutstandingRewardsRequest extends Message { + /** + * pool_id defines the pool ID to query for. + * + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolOutstandingRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolOutstandingRewardsRequest { + return new QueryPoolOutstandingRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolOutstandingRewardsRequest { + return new QueryPoolOutstandingRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolOutstandingRewardsRequest { + return new QueryPoolOutstandingRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolOutstandingRewardsRequest | PlainMessage | undefined, b: QueryPoolOutstandingRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolOutstandingRewardsRequest, a, b); + } +} + +/** + * QueryPoolOutstandingRewardsResponse is the response type for the + * Query/PoolOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolOutstandingRewardsResponse + */ +export class QueryPoolOutstandingRewardsResponse extends Message { + /** + * @generated from field: milkyway.rewards.v1.OutstandingRewards rewards = 1; + */ + rewards?: OutstandingRewards; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolOutstandingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: OutstandingRewards }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolOutstandingRewardsResponse { + return new QueryPoolOutstandingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolOutstandingRewardsResponse { + return new QueryPoolOutstandingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolOutstandingRewardsResponse { + return new QueryPoolOutstandingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolOutstandingRewardsResponse | PlainMessage | undefined, b: QueryPoolOutstandingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolOutstandingRewardsResponse, a, b); + } +} + +/** + * QueryOperatorOutstandingRewardsRequest is the request type for the + * Query/OperatorOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryOperatorOutstandingRewardsRequest + */ +export class QueryOperatorOutstandingRewardsRequest extends Message { + /** + * operator_id defines the operator ID to query for. + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorOutstandingRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorOutstandingRewardsRequest { + return new QueryOperatorOutstandingRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorOutstandingRewardsRequest { + return new QueryOperatorOutstandingRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorOutstandingRewardsRequest { + return new QueryOperatorOutstandingRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorOutstandingRewardsRequest | PlainMessage | undefined, b: QueryOperatorOutstandingRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorOutstandingRewardsRequest, a, b); + } +} + +/** + * QueryOperatorOutstandingRewardsResponse is the response type for the + * Query/OperatorOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryOperatorOutstandingRewardsResponse + */ +export class QueryOperatorOutstandingRewardsResponse extends Message { + /** + * @generated from field: milkyway.rewards.v1.OutstandingRewards rewards = 1; + */ + rewards?: OutstandingRewards; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorOutstandingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: OutstandingRewards }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorOutstandingRewardsResponse { + return new QueryOperatorOutstandingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorOutstandingRewardsResponse { + return new QueryOperatorOutstandingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorOutstandingRewardsResponse { + return new QueryOperatorOutstandingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorOutstandingRewardsResponse | PlainMessage | undefined, b: QueryOperatorOutstandingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorOutstandingRewardsResponse, a, b); + } +} + +/** + * QueryServiceOutstandingRewardsRequest is the request type for the + * Query/ServiceOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryServiceOutstandingRewardsRequest + */ +export class QueryServiceOutstandingRewardsRequest extends Message { + /** + * service_id defines the service ID to query for. + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryServiceOutstandingRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceOutstandingRewardsRequest { + return new QueryServiceOutstandingRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceOutstandingRewardsRequest { + return new QueryServiceOutstandingRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceOutstandingRewardsRequest { + return new QueryServiceOutstandingRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceOutstandingRewardsRequest | PlainMessage | undefined, b: QueryServiceOutstandingRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceOutstandingRewardsRequest, a, b); + } +} + +/** + * QueryServiceOutstandingRewardsResponse is the response type for the + * Query/ServiceOutstandingRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryServiceOutstandingRewardsResponse + */ +export class QueryServiceOutstandingRewardsResponse extends Message { + /** + * @generated from field: milkyway.rewards.v1.OutstandingRewards rewards = 1; + */ + rewards?: OutstandingRewards; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryServiceOutstandingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: OutstandingRewards }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceOutstandingRewardsResponse { + return new QueryServiceOutstandingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceOutstandingRewardsResponse { + return new QueryServiceOutstandingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceOutstandingRewardsResponse { + return new QueryServiceOutstandingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceOutstandingRewardsResponse | PlainMessage | undefined, b: QueryServiceOutstandingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceOutstandingRewardsResponse, a, b); + } +} + +/** + * QueryOperatorCommissionRequest is the request type for the + * Query/OperatorCommission RPC method + * + * @generated from message milkyway.rewards.v1.QueryOperatorCommissionRequest + */ +export class QueryOperatorCommissionRequest extends Message { + /** + * operator_id defines the validator address to query for. + * + * @generated from field: uint32 operator_id = 1; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorCommissionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorCommissionRequest { + return new QueryOperatorCommissionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorCommissionRequest { + return new QueryOperatorCommissionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorCommissionRequest { + return new QueryOperatorCommissionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorCommissionRequest | PlainMessage | undefined, b: QueryOperatorCommissionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorCommissionRequest, a, b); + } +} + +/** + * QueryOperatorCommissionResponse is the response type for the + * Query/OperatorCommission RPC method + * + * @generated from message milkyway.rewards.v1.QueryOperatorCommissionResponse + */ +export class QueryOperatorCommissionResponse extends Message { + /** + * commission defines the commission the operator received. + * + * @generated from field: milkyway.rewards.v1.AccumulatedCommission commission = 1; + */ + commission?: AccumulatedCommission; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorCommissionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "commission", kind: "message", T: AccumulatedCommission }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorCommissionResponse { + return new QueryOperatorCommissionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorCommissionResponse { + return new QueryOperatorCommissionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorCommissionResponse { + return new QueryOperatorCommissionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorCommissionResponse | PlainMessage | undefined, b: QueryOperatorCommissionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorCommissionResponse, a, b); + } +} + +/** + * QueryPoolServiceTotalDelegatorSharesRequest is the request type for the + * Query/PoolServiceTotalDelegatorShares RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolServiceTotalDelegatorSharesRequest + */ +export class QueryPoolServiceTotalDelegatorSharesRequest extends Message { + /** + * pool_id defines the pool ID to query for. + * + * @generated from field: uint32 pool_id = 1; + */ + poolId = 0; + + /** + * service_id defines the service ID to query for. + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolServiceTotalDelegatorSharesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolServiceTotalDelegatorSharesRequest { + return new QueryPoolServiceTotalDelegatorSharesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolServiceTotalDelegatorSharesRequest { + return new QueryPoolServiceTotalDelegatorSharesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolServiceTotalDelegatorSharesRequest { + return new QueryPoolServiceTotalDelegatorSharesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolServiceTotalDelegatorSharesRequest | PlainMessage | undefined, b: QueryPoolServiceTotalDelegatorSharesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolServiceTotalDelegatorSharesRequest, a, b); + } +} + +/** + * QueryPoolServiceTotalDelegatorSharesResponse is the response type for the + * Query/PoolServiceTotalDelegatorShares RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolServiceTotalDelegatorSharesResponse + */ +export class QueryPoolServiceTotalDelegatorSharesResponse extends Message { + /** + * total_delegator_shares defines the total delegator shares for a + * pool-service pair. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin shares = 1; + */ + shares: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolServiceTotalDelegatorSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shares", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolServiceTotalDelegatorSharesResponse { + return new QueryPoolServiceTotalDelegatorSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolServiceTotalDelegatorSharesResponse { + return new QueryPoolServiceTotalDelegatorSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolServiceTotalDelegatorSharesResponse { + return new QueryPoolServiceTotalDelegatorSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolServiceTotalDelegatorSharesResponse | PlainMessage | undefined, b: QueryPoolServiceTotalDelegatorSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolServiceTotalDelegatorSharesResponse, a, b); + } +} + +/** + * QueryPoolDelegationRewardsRequest is the request type for the + * Query/PoolDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolDelegationRewardsRequest + */ +export class QueryPoolDelegationRewardsRequest extends Message { + /** + * delegator_address defines the delegator address to query for. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * pool_id defines the pool ID to query for. + * + * @generated from field: uint32 pool_id = 2; + */ + poolId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolDelegationRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationRewardsRequest { + return new QueryPoolDelegationRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationRewardsRequest { + return new QueryPoolDelegationRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationRewardsRequest { + return new QueryPoolDelegationRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationRewardsRequest | PlainMessage | undefined, b: QueryPoolDelegationRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationRewardsRequest, a, b); + } +} + +/** + * QueryPoolDelegationRewardsResponse is the response type for the + * Query/PoolDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryPoolDelegationRewardsResponse + */ +export class QueryPoolDelegationRewardsResponse extends Message { + /** + * rewards defines the rewards accrued by a delegation. + * + * @generated from field: repeated milkyway.rewards.v1.DecPool rewards = 1; + */ + rewards: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryPoolDelegationRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolDelegationRewardsResponse { + return new QueryPoolDelegationRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolDelegationRewardsResponse { + return new QueryPoolDelegationRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolDelegationRewardsResponse { + return new QueryPoolDelegationRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolDelegationRewardsResponse | PlainMessage | undefined, b: QueryPoolDelegationRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolDelegationRewardsResponse, a, b); + } +} + +/** + * QueryOperatorDelegationRewardsRequest is the request type for the + * Query/OperatorDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryOperatorDelegationRewardsRequest + */ +export class QueryOperatorDelegationRewardsRequest extends Message { + /** + * delegator_address defines the delegator address to query for. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * operator_id defines the operator ID to query for. + * + * @generated from field: uint32 operator_id = 2; + */ + operatorId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorDelegationRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationRewardsRequest { + return new QueryOperatorDelegationRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationRewardsRequest { + return new QueryOperatorDelegationRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationRewardsRequest { + return new QueryOperatorDelegationRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationRewardsRequest | PlainMessage | undefined, b: QueryOperatorDelegationRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationRewardsRequest, a, b); + } +} + +/** + * QueryOperatorDelegationRewardsResponse is the response type for the + * Query/OperatorDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryOperatorDelegationRewardsResponse + */ +export class QueryOperatorDelegationRewardsResponse extends Message { + /** + * rewards defines the rewards accrued by a delegation. + * + * @generated from field: repeated milkyway.rewards.v1.DecPool rewards = 1; + */ + rewards: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryOperatorDelegationRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOperatorDelegationRewardsResponse { + return new QueryOperatorDelegationRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOperatorDelegationRewardsResponse { + return new QueryOperatorDelegationRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOperatorDelegationRewardsResponse { + return new QueryOperatorDelegationRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOperatorDelegationRewardsResponse | PlainMessage | undefined, b: QueryOperatorDelegationRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOperatorDelegationRewardsResponse, a, b); + } +} + +/** + * QueryServiceDelegationRewardsRequest is the request type for the + * Query/ServiceDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryServiceDelegationRewardsRequest + */ +export class QueryServiceDelegationRewardsRequest extends Message { + /** + * delegator_address defines the delegator address to query for. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + /** + * service_id defines the service ID to query for. + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryServiceDelegationRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationRewardsRequest { + return new QueryServiceDelegationRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationRewardsRequest { + return new QueryServiceDelegationRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationRewardsRequest { + return new QueryServiceDelegationRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationRewardsRequest | PlainMessage | undefined, b: QueryServiceDelegationRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationRewardsRequest, a, b); + } +} + +/** + * QueryServiceDelegationRewardsResponse is the response type for the + * Query/ServiceDelegationRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryServiceDelegationRewardsResponse + */ +export class QueryServiceDelegationRewardsResponse extends Message { + /** + * rewards defines the rewards accrued by a delegation. + * + * @generated from field: repeated milkyway.rewards.v1.DecPool rewards = 1; + */ + rewards: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryServiceDelegationRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDelegationRewardsResponse { + return new QueryServiceDelegationRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDelegationRewardsResponse { + return new QueryServiceDelegationRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceDelegationRewardsResponse { + return new QueryServiceDelegationRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceDelegationRewardsResponse | PlainMessage | undefined, b: QueryServiceDelegationRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceDelegationRewardsResponse, a, b); + } +} + +/** + * QueryDelegatorTotalRewardsRequest is the request type for the + * Query/DelegatorTotalRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryDelegatorTotalRewardsRequest + */ +export class QueryDelegatorTotalRewardsRequest extends Message { + /** + * delegator_address defines the delegator address to query for. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryDelegatorTotalRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorTotalRewardsRequest { + return new QueryDelegatorTotalRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorTotalRewardsRequest { + return new QueryDelegatorTotalRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorTotalRewardsRequest { + return new QueryDelegatorTotalRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorTotalRewardsRequest | PlainMessage | undefined, b: QueryDelegatorTotalRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorTotalRewardsRequest, a, b); + } +} + +/** + * QueryDelegatorTotalRewardsResponse is the response type for the + * Query/DelegatorTotalRewards RPC method. + * + * @generated from message milkyway.rewards.v1.QueryDelegatorTotalRewardsResponse + */ +export class QueryDelegatorTotalRewardsResponse extends Message { + /** + * rewards defines all the rewards accrued by a delegator. + * + * @generated from field: repeated milkyway.rewards.v1.DelegationDelegatorReward rewards = 1; + */ + rewards: DelegationDelegatorReward[] = []; + + /** + * total defines the sum of all the rewards. + * + * @generated from field: repeated milkyway.rewards.v1.DecPool total = 2; + */ + total: DecPool[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryDelegatorTotalRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: DelegationDelegatorReward, repeated: true }, + { no: 2, name: "total", kind: "message", T: DecPool, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorTotalRewardsResponse { + return new QueryDelegatorTotalRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorTotalRewardsResponse { + return new QueryDelegatorTotalRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorTotalRewardsResponse { + return new QueryDelegatorTotalRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorTotalRewardsResponse | PlainMessage | undefined, b: QueryDelegatorTotalRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorTotalRewardsResponse, a, b); + } +} + +/** + * QueryDelegatorWithdrawAddressRequest is the request type for the + * Query/DelegatorWithdrawAddress RPC method. + * + * @generated from message milkyway.rewards.v1.QueryDelegatorWithdrawAddressRequest + */ +export class QueryDelegatorWithdrawAddressRequest extends Message { + /** + * delegator_address defines the delegator address to query for. + * + * @generated from field: string delegator_address = 1; + */ + delegatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryDelegatorWithdrawAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressRequest { + return new QueryDelegatorWithdrawAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressRequest { + return new QueryDelegatorWithdrawAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressRequest { + return new QueryDelegatorWithdrawAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorWithdrawAddressRequest, a, b); + } +} + +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + * + * @generated from message milkyway.rewards.v1.QueryDelegatorWithdrawAddressResponse + */ +export class QueryDelegatorWithdrawAddressResponse extends Message { + /** + * withdraw_address defines the delegator address to query for. + * + * @generated from field: string withdraw_address = 1; + */ + withdrawAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.rewards.v1.QueryDelegatorWithdrawAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressResponse { + return new QueryDelegatorWithdrawAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressResponse { + return new QueryDelegatorWithdrawAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressResponse { + return new QueryDelegatorWithdrawAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegatorWithdrawAddressResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/services/v1/genesis_pb.ts b/src/protobufs/milkyway/services/v1/genesis_pb.ts new file mode 100644 index 00000000..f82eeb51 --- /dev/null +++ b/src/protobufs/milkyway/services/v1/genesis_pb.ts @@ -0,0 +1,128 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/services/v1/genesis.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Service, ServiceParams } from "./models_pb.js"; + +/** + * GenesisState defines the services module's genesis state. + * + * @generated from message milkyway.services.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * Params defines the parameters of the module. + * + * @generated from field: milkyway.services.v1.Params params = 1; + */ + params?: Params; + + /** + * Services defines the list of services. + * + * @generated from field: repeated milkyway.services.v1.Service services = 2; + */ + services: Service[] = []; + + /** + * NextServiceID defines the ID that will be assigned to the + * next service that gets created. + * + * @generated from field: uint32 next_service_id = 3; + */ + nextServiceId = 0; + + /** + * ServicesParams defines the list of service parameters. + * + * @generated from field: repeated milkyway.services.v1.ServiceParamsRecord services_params = 4; + */ + servicesParams: ServiceParamsRecord[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "services", kind: "message", T: Service, repeated: true }, + { no: 3, name: "next_service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "services_params", kind: "message", T: ServiceParamsRecord, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * ServiceParamsRecord represents the parameters that have been set for + * a specific service. + * + * @generated from message milkyway.services.v1.ServiceParamsRecord + */ +export class ServiceParamsRecord extends Message { + /** + * ServiceID represents the ID of the service to which the parameters + * should be set. + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + /** + * Params represents the parameters that should be set to the + * service. + * + * @generated from field: milkyway.services.v1.ServiceParams params = 2; + */ + params?: ServiceParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.ServiceParamsRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "params", kind: "message", T: ServiceParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ServiceParamsRecord { + return new ServiceParamsRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ServiceParamsRecord { + return new ServiceParamsRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ServiceParamsRecord { + return new ServiceParamsRecord().fromJsonString(jsonString, options); + } + + static equals(a: ServiceParamsRecord | PlainMessage | undefined, b: ServiceParamsRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(ServiceParamsRecord, a, b); + } +} + diff --git a/src/protobufs/milkyway/services/v1/messages_cosmes.ts b/src/protobufs/milkyway/services/v1/messages_cosmes.ts new file mode 100644 index 00000000..06dee5b5 --- /dev/null +++ b/src/protobufs/milkyway/services/v1/messages_cosmes.ts @@ -0,0 +1,138 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/services/v1/messages.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAccreditService, MsgAccreditServiceResponse, MsgActivateService, MsgActivateServiceResponse, MsgCreateService, MsgCreateServiceResponse, MsgDeactivateService, MsgDeactivateServiceResponse, MsgDeleteService, MsgDeleteServiceResponse, MsgRevokeServiceAccreditation, MsgRevokeServiceAccreditationResponse, MsgSetServiceParams, MsgSetServiceParamsResponse, MsgTransferServiceOwnership, MsgTransferServiceOwnershipResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateService, MsgUpdateServiceResponse } from "./messages_pb.js"; + +const TYPE_NAME = "milkyway.services.v1.Msg"; + +/** + * CreateService defines the operation for registering a new service. + * + * @generated from rpc milkyway.services.v1.Msg.CreateService + */ +export const MsgCreateServiceService = { + typeName: TYPE_NAME, + method: "CreateService", + Request: MsgCreateService, + Response: MsgCreateServiceResponse, +} as const; + +/** + * UpdateService defines the operation for updating an existing service. + * + * @generated from rpc milkyway.services.v1.Msg.UpdateService + */ +export const MsgUpdateServiceService = { + typeName: TYPE_NAME, + method: "UpdateService", + Request: MsgUpdateService, + Response: MsgUpdateServiceResponse, +} as const; + +/** + * ActivateService defines the operation for activating an existing + * service. + * + * @generated from rpc milkyway.services.v1.Msg.ActivateService + */ +export const MsgActivateServiceService = { + typeName: TYPE_NAME, + method: "ActivateService", + Request: MsgActivateService, + Response: MsgActivateServiceResponse, +} as const; + +/** + * DeactivateService defines the operation for deactivating an existing + * service. + * + * @generated from rpc milkyway.services.v1.Msg.DeactivateService + */ +export const MsgDeactivateServiceService = { + typeName: TYPE_NAME, + method: "DeactivateService", + Request: MsgDeactivateService, + Response: MsgDeactivateServiceResponse, +} as const; + +/** + * DeleteService defines the operation for deleting an existing service + * that has been deactivated. + * + * @generated from rpc milkyway.services.v1.Msg.DeleteService + */ +export const MsgDeleteServiceService = { + typeName: TYPE_NAME, + method: "DeleteService", + Request: MsgDeleteService, + Response: MsgDeleteServiceResponse, +} as const; + +/** + * TransferServiceOwnership defines the operation for transferring the + * ownership of a service to another account. + * + * @generated from rpc milkyway.services.v1.Msg.TransferServiceOwnership + */ +export const MsgTransferServiceOwnershipService = { + typeName: TYPE_NAME, + method: "TransferServiceOwnership", + Request: MsgTransferServiceOwnership, + Response: MsgTransferServiceOwnershipResponse, +} as const; + +/** + * SetServiceParams defines the operation for setting a service's + * parameters. + * + * @generated from rpc milkyway.services.v1.Msg.SetServiceParams + */ +export const MsgSetServiceParamsService = { + typeName: TYPE_NAME, + method: "SetServiceParams", + Request: MsgSetServiceParams, + Response: MsgSetServiceParamsResponse, +} as const; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. + * The authority defaults to the x/gov module account. + * + * @generated from rpc milkyway.services.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * AccreditService defines a (governance) operation for accrediting a service. + * Since: v1.4.0 + * + * @generated from rpc milkyway.services.v1.Msg.AccreditService + */ +export const MsgAccreditServiceService = { + typeName: TYPE_NAME, + method: "AccreditService", + Request: MsgAccreditService, + Response: MsgAccreditServiceResponse, +} as const; + +/** + * RevokeServiceAccreditation defines a (governance) operation for revoking a + * service's accreditation. Since: v1.4.0 + * + * @generated from rpc milkyway.services.v1.Msg.RevokeServiceAccreditation + */ +export const MsgRevokeServiceAccreditationService = { + typeName: TYPE_NAME, + method: "RevokeServiceAccreditation", + Request: MsgRevokeServiceAccreditation, + Response: MsgRevokeServiceAccreditationResponse, +} as const; + diff --git a/src/protobufs/milkyway/services/v1/messages_pb.ts b/src/protobufs/milkyway/services/v1/messages_pb.ts new file mode 100644 index 00000000..80d1bc98 --- /dev/null +++ b/src/protobufs/milkyway/services/v1/messages_pb.ts @@ -0,0 +1,953 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/services/v1/messages.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { ServiceParams } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgCreateServiceResponse defines the message structure for the + * CreateService gRPC service method. It allows an account to register a new + * service that can be validated by operators. It requires a sender address + * as well as the details of the service to be registered. + * + * @generated from message milkyway.services.v1.MsgCreateService + */ +export class MsgCreateService extends Message { + /** + * Sender is the address of the user registering the service + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Name is the name of the service + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Description is the description of the service + * + * @generated from field: string description = 3; + */ + description = ""; + + /** + * Website is the website of the service + * + * @generated from field: string website = 4; + */ + website = ""; + + /** + * PictureURL is the URL of the service picture + * + * @generated from field: string picture_url = 5; + */ + pictureUrl = ""; + + /** + * FeeAmount represents the fees that are going to be paid to create the + * service. These should always be greater or equals of any of the coins + * specified inside the ServiceRegistrationFee field of the modules params. + * If no fees are specified inside the module parameters, this field can be + * omitted. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin fee_amount = 6; + */ + feeAmount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgCreateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "fee_amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateService { + return new MsgCreateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateService { + return new MsgCreateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateService { + return new MsgCreateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateService | PlainMessage | undefined, b: MsgCreateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateService, a, b); + } +} + +/** + * MsgCreateServiceResponse is the return value of MsgCreateService. + * It returns the newly created service ID. + * + * @generated from message milkyway.services.v1.MsgCreateServiceResponse + */ +export class MsgCreateServiceResponse extends Message { + /** + * NewServiceID is the ID of the newly registered service + * + * @generated from field: uint32 new_service_id = 1; + */ + newServiceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgCreateServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateServiceResponse { + return new MsgCreateServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateServiceResponse { + return new MsgCreateServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateServiceResponse { + return new MsgCreateServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateServiceResponse | PlainMessage | undefined, b: MsgCreateServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateServiceResponse, a, b); + } +} + +/** + * MsgUpdateService defines the message structure for the UpdateService gRPC + * service method. It allows the service admin to update the details of + * an existing service. + * + * @generated from message milkyway.services.v1.MsgUpdateService + */ +export class MsgUpdateService extends Message { + /** + * Sender is the address of the user updating the service + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ID represents the ID of the service to be updated + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * Name is the new name of the service. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string name = 3; + */ + name = ""; + + /** + * Description is the new description of the service. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string description = 4; + */ + description = ""; + + /** + * Website is the new website of the service. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string website = 5; + */ + website = ""; + + /** + * PictureURL is the new URL of the service picture. + * If it shouldn't be changed, use [do-not-modify] instead. + * + * @generated from field: string picture_url = 6; + */ + pictureUrl = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgUpdateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateService { + return new MsgUpdateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateService { + return new MsgUpdateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateService { + return new MsgUpdateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateService | PlainMessage | undefined, b: MsgUpdateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateService, a, b); + } +} + +/** + * MsgUpdateServiceResponse is the return value of MsgUpdateService. + * + * @generated from message milkyway.services.v1.MsgUpdateServiceResponse + */ +export class MsgUpdateServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgUpdateServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateServiceResponse { + return new MsgUpdateServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateServiceResponse { + return new MsgUpdateServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateServiceResponse { + return new MsgUpdateServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateServiceResponse | PlainMessage | undefined, b: MsgUpdateServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateServiceResponse, a, b); + } +} + +/** + * MsgActivateService defines the message structure for the ActivateService gRPC + * + * @generated from message milkyway.services.v1.MsgActivateService + */ +export class MsgActivateService extends Message { + /** + * Sender is the address of the user that wants to activate the service + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ServiceID represents the ID of the service to be activated + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgActivateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateService { + return new MsgActivateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateService { + return new MsgActivateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateService { + return new MsgActivateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateService | PlainMessage | undefined, b: MsgActivateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateService, a, b); + } +} + +/** + * MsgActivateServiceResponse is the return value of MsgActivateService. + * + * @generated from message milkyway.services.v1.MsgActivateServiceResponse + */ +export class MsgActivateServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgActivateServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgActivateServiceResponse { + return new MsgActivateServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgActivateServiceResponse { + return new MsgActivateServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgActivateServiceResponse { + return new MsgActivateServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgActivateServiceResponse | PlainMessage | undefined, b: MsgActivateServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgActivateServiceResponse, a, b); + } +} + +/** + * MsgDeactivateService defines the message structure for the DeactivateService + * gRPC service method. It allows the service admin to deactivate an existing + * service. + * + * @generated from message milkyway.services.v1.MsgDeactivateService + */ +export class MsgDeactivateService extends Message { + /** + * Sender is the address of the user that wants to deactivate the service + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ServiceID represents the ID of the service to be deactivated + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgDeactivateService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeactivateService { + return new MsgDeactivateService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeactivateService { + return new MsgDeactivateService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeactivateService { + return new MsgDeactivateService().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeactivateService | PlainMessage | undefined, b: MsgDeactivateService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeactivateService, a, b); + } +} + +/** + * MsgDeactivateServiceResponse is the return value of MsgDeactivateService. + * + * @generated from message milkyway.services.v1.MsgDeactivateServiceResponse + */ +export class MsgDeactivateServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgDeactivateServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeactivateServiceResponse { + return new MsgDeactivateServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeactivateServiceResponse { + return new MsgDeactivateServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeactivateServiceResponse { + return new MsgDeactivateServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeactivateServiceResponse | PlainMessage | undefined, b: MsgDeactivateServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeactivateServiceResponse, a, b); + } +} + +/** + * MsgDeleteService defines the message structure for the DeleteService + * gRPC service method. It allows the service admin to delete a previously + * deactivated service + * + * @generated from message milkyway.services.v1.MsgDeleteService + */ +export class MsgDeleteService extends Message { + /** + * Sender is the address of the user that wants to delete the service + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ServiceID represents the ID of the service to be deleted + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgDeleteService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteService { + return new MsgDeleteService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteService { + return new MsgDeleteService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteService { + return new MsgDeleteService().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteService | PlainMessage | undefined, b: MsgDeleteService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteService, a, b); + } +} + +/** + * MsgDeleteServiceResponse is the return value of MsgDeleteService. + * + * @generated from message milkyway.services.v1.MsgDeleteServiceResponse + */ +export class MsgDeleteServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgDeleteServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteServiceResponse { + return new MsgDeleteServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteServiceResponse { + return new MsgDeleteServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteServiceResponse { + return new MsgDeleteServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteServiceResponse | PlainMessage | undefined, b: MsgDeleteServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteServiceResponse, a, b); + } +} + +/** + * MsgTransferServiceOwnership defines the message structure for the + * TransferServiceOwnership gRPC service method. It allows a service admin to + * transfer the ownership of the service to another account. + * + * @generated from message milkyway.services.v1.MsgTransferServiceOwnership + */ +export class MsgTransferServiceOwnership extends Message { + /** + * Sender is the address of the user transferring the ownership + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ServiceID represents the ID of the service to transfer ownership + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * NewAdmin is the address of the new admin of the service + * + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgTransferServiceOwnership"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferServiceOwnership { + return new MsgTransferServiceOwnership().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferServiceOwnership { + return new MsgTransferServiceOwnership().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferServiceOwnership { + return new MsgTransferServiceOwnership().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferServiceOwnership | PlainMessage | undefined, b: MsgTransferServiceOwnership | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferServiceOwnership, a, b); + } +} + +/** + * MsgTransferServiceOwnershipResponse is the return value of + * MsgTransferServiceOwnership. + * + * @generated from message milkyway.services.v1.MsgTransferServiceOwnershipResponse + */ +export class MsgTransferServiceOwnershipResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgTransferServiceOwnershipResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferServiceOwnershipResponse { + return new MsgTransferServiceOwnershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferServiceOwnershipResponse { + return new MsgTransferServiceOwnershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferServiceOwnershipResponse { + return new MsgTransferServiceOwnershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferServiceOwnershipResponse | PlainMessage | undefined, b: MsgTransferServiceOwnershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferServiceOwnershipResponse, a, b); + } +} + +/** + * MsgSetServiceParams defines the message structure for the + * SetServiceParams gRPC service method. It allows a service admin to + * update the parameters of a service. + * + * @generated from message milkyway.services.v1.MsgSetServiceParams + */ +export class MsgSetServiceParams extends Message { + /** + * Sender is the address of the user setting the parameters + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * ServiceID is the ID of the service whose parameters are being set + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + /** + * ServiceParams defines the new parameters of the service + * + * @generated from field: milkyway.services.v1.ServiceParams service_params = 3; + */ + serviceParams?: ServiceParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgSetServiceParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "service_params", kind: "message", T: ServiceParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetServiceParams { + return new MsgSetServiceParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetServiceParams { + return new MsgSetServiceParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetServiceParams { + return new MsgSetServiceParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetServiceParams | PlainMessage | undefined, b: MsgSetServiceParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetServiceParams, a, b); + } +} + +/** + * MsgSetServiceParamsResponse is the return value of MsgSetServiceParams. + * + * @generated from message milkyway.services.v1.MsgSetServiceParamsResponse + */ +export class MsgSetServiceParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgSetServiceParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetServiceParamsResponse { + return new MsgSetServiceParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetServiceParamsResponse { + return new MsgSetServiceParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetServiceParamsResponse { + return new MsgSetServiceParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetServiceParamsResponse | PlainMessage | undefined, b: MsgSetServiceParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetServiceParamsResponse, a, b); + } +} + +/** + * MsgDeactivateService defines the message structure for the UpdateParams gRPC + * service method. It allows the authority to update the module parameters. + * + * @generated from message milkyway.services.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Params define the parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: milkyway.services.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgDeactivateServiceResponse is the return value of MsgUpdateParams. + * + * @generated from message milkyway.services.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgAccreditService defines the message structure for the AccreditService gRPC + * service method. It allows the authority to accredit a service. + * + * @generated from message milkyway.services.v1.MsgAccreditService + */ +export class MsgAccreditService extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * ServiceID represents the ID of the service to be accredited + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgAccreditService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAccreditService { + return new MsgAccreditService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAccreditService { + return new MsgAccreditService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAccreditService { + return new MsgAccreditService().fromJsonString(jsonString, options); + } + + static equals(a: MsgAccreditService | PlainMessage | undefined, b: MsgAccreditService | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAccreditService, a, b); + } +} + +/** + * MsgAccreditServiceResponse is the return value of MsgAccreditService. + * + * @generated from message milkyway.services.v1.MsgAccreditServiceResponse + */ +export class MsgAccreditServiceResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgAccreditServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAccreditServiceResponse { + return new MsgAccreditServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAccreditServiceResponse { + return new MsgAccreditServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAccreditServiceResponse { + return new MsgAccreditServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAccreditServiceResponse | PlainMessage | undefined, b: MsgAccreditServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAccreditServiceResponse, a, b); + } +} + +/** + * MsgRevokeServiceAccreditation defines the message structure for the + * RevokeServiceAccreditation gRPC service method. It allows the authority to + * revoke a service's accreditation. + * + * @generated from message milkyway.services.v1.MsgRevokeServiceAccreditation + */ +export class MsgRevokeServiceAccreditation extends Message { + /** + * Authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * ServiceID represents the ID of the service to have its accreditation + * revoked + * + * @generated from field: uint32 service_id = 2; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgRevokeServiceAccreditation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeServiceAccreditation { + return new MsgRevokeServiceAccreditation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeServiceAccreditation { + return new MsgRevokeServiceAccreditation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRevokeServiceAccreditation { + return new MsgRevokeServiceAccreditation().fromJsonString(jsonString, options); + } + + static equals(a: MsgRevokeServiceAccreditation | PlainMessage | undefined, b: MsgRevokeServiceAccreditation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRevokeServiceAccreditation, a, b); + } +} + +/** + * MsgRevokeServiceAccreditationResponse is the return value of + * MsgRevokeServiceAccreditation. + * + * @generated from message milkyway.services.v1.MsgRevokeServiceAccreditationResponse + */ +export class MsgRevokeServiceAccreditationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.MsgRevokeServiceAccreditationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeServiceAccreditationResponse { + return new MsgRevokeServiceAccreditationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeServiceAccreditationResponse { + return new MsgRevokeServiceAccreditationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRevokeServiceAccreditationResponse { + return new MsgRevokeServiceAccreditationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRevokeServiceAccreditationResponse | PlainMessage | undefined, b: MsgRevokeServiceAccreditationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRevokeServiceAccreditationResponse, a, b); + } +} + diff --git a/src/protobufs/milkyway/services/v1/models_pb.ts b/src/protobufs/milkyway/services/v1/models_pb.ts new file mode 100644 index 00000000..4b2c900b --- /dev/null +++ b/src/protobufs/milkyway/services/v1/models_pb.ts @@ -0,0 +1,224 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/services/v1/models.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * ServiceStatus defines the status of a service + * + * @generated from enum milkyway.services.v1.ServiceStatus + */ +export enum ServiceStatus { + /** + * SERVICE_STATUS_UNSPECIFIED defines an unspecified status + * + * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * SERVICE_STATUS_CREATED identifies a recently created service that is not + * yet active + * + * @generated from enum value: SERVICE_STATUS_CREATED = 1; + */ + CREATED = 1, + + /** + * SERVICE_STATUS_ACTIVE identifies an active service + * + * @generated from enum value: SERVICE_STATUS_ACTIVE = 2; + */ + ACTIVE = 2, + + /** + * SERVICE_STATUS_INACTIVE identifies an inactive service + * + * @generated from enum value: SERVICE_STATUS_INACTIVE = 3; + */ + INACTIVE = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ServiceStatus) +proto3.util.setEnumType(ServiceStatus, "milkyway.services.v1.ServiceStatus", [ + { no: 0, name: "SERVICE_STATUS_UNSPECIFIED" }, + { no: 1, name: "SERVICE_STATUS_CREATED" }, + { no: 2, name: "SERVICE_STATUS_ACTIVE" }, + { no: 3, name: "SERVICE_STATUS_INACTIVE" }, +]); + +/** + * Service defines the fields of a service + * + * @generated from message milkyway.services.v1.Service + */ +export class Service extends Message { + /** + * ID is the unique identifier of the service + * + * @generated from field: uint32 id = 1; + */ + id = 0; + + /** + * Status is the status of the service + * + * @generated from field: milkyway.services.v1.ServiceStatus status = 2; + */ + status = ServiceStatus.UNSPECIFIED; + + /** + * Admin is the address of the user that has administrative power over the + * service + * + * @generated from field: string admin = 3; + */ + admin = ""; + + /** + * Name is the name of the service + * + * @generated from field: string name = 4; + */ + name = ""; + + /** + * Description is the description of the service + * + * @generated from field: string description = 5; + */ + description = ""; + + /** + * Website is the website of the service + * + * @generated from field: string website = 6; + */ + website = ""; + + /** + * PictureURL is the URL of the picture of the service + * + * @generated from field: string picture_url = 7; + */ + pictureUrl = ""; + + /** + * Address is the address of the account associated with the service. + * This will be used in order to store all the tokens that are delegated to + * this service by various users. + * + * @generated from field: string address = 8; + */ + address = ""; + + /** + * Tokens define the delegated tokens. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin tokens = 9; + */ + tokens: Coin[] = []; + + /** + * DelegatorShares define the total shares issued to a service's delegators. + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin delegator_shares = 10; + */ + delegatorShares: DecCoin[] = []; + + /** + * Accredited defines if the service is accredited. + * Note: We use this term instead of "trusted" of "verified" in order to + * represent something more generic. + * Initially, services will be accredited by the on-chain governance process. + * In the future, we may add more ways to accredit services (e.g. automatic + * ones based on the operators that decide to run the service, or the amount + * of cryptoeconomic security that the service was able to capture). + * + * @generated from field: bool accredited = 11; + */ + accredited = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.Service"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(ServiceStatus) }, + { no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "tokens", kind: "message", T: Coin, repeated: true }, + { no: 10, name: "delegator_shares", kind: "message", T: DecCoin, repeated: true }, + { no: 11, name: "accredited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Service { + return new Service().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Service { + return new Service().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Service { + return new Service().fromJsonString(jsonString, options); + } + + static equals(a: Service | PlainMessage | undefined, b: Service | PlainMessage | undefined): boolean { + return proto3.util.equals(Service, a, b); + } +} + +/** + * ServiceParams defines the parameters of a service + * + * @generated from message milkyway.services.v1.ServiceParams + */ +export class ServiceParams extends Message { + /** + * AllowedDenoms defines the list of denoms that can be restaked toward + * the service. If the list is empty, any denom can be used. + * + * @generated from field: repeated string allowed_denoms = 1; + */ + allowedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.ServiceParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ServiceParams { + return new ServiceParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ServiceParams { + return new ServiceParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ServiceParams { + return new ServiceParams().fromJsonString(jsonString, options); + } + + static equals(a: ServiceParams | PlainMessage | undefined, b: ServiceParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ServiceParams, a, b); + } +} + diff --git a/src/protobufs/milkyway/services/v1/params_pb.ts b/src/protobufs/milkyway/services/v1/params_pb.ts new file mode 100644 index 00000000..3c824f14 --- /dev/null +++ b/src/protobufs/milkyway/services/v1/params_pb.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/services/v1/params.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message milkyway.services.v1.Params + */ +export class Params extends Message { + /** + * ServiceRegistrationFee defines the fee to register a new service. + * The fee is drawn from the MsgRegisterService sender's account, + * and transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin service_registration_fee = 1; + */ + serviceRegistrationFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_registration_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/milkyway/services/v1/query_cosmes.ts b/src/protobufs/milkyway/services/v1/query_cosmes.ts new file mode 100644 index 00000000..e540f03a --- /dev/null +++ b/src/protobufs/milkyway/services/v1/query_cosmes.ts @@ -0,0 +1,61 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file milkyway/services/v1/query.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse, QueryServiceParamsRequest, QueryServiceParamsResponse, QueryServiceRequest, QueryServiceResponse, QueryServicesRequest, QueryServicesResponse } from "./query_pb.js"; + +const TYPE_NAME = "milkyway.services.v1.Query"; + +/** + * Service defines a gRPC query method that returns the service by the given + * service id. + * + * @generated from rpc milkyway.services.v1.Query.Service + */ +export const QueryServiceService = { + typeName: TYPE_NAME, + method: "Service", + Request: QueryServiceRequest, + Response: QueryServiceResponse, +} as const; + +/** + * Services defines a gRPC query method that returns the actively validates + * services currently registered in the module. + * + * @generated from rpc milkyway.services.v1.Query.Services + */ +export const QueryServicesService = { + typeName: TYPE_NAME, + method: "Services", + Request: QueryServicesRequest, + Response: QueryServicesResponse, +} as const; + +/** + * ServiceParams defines a gRPC query method that returns the parameters of + * service. + * + * @generated from rpc milkyway.services.v1.Query.ServiceParams + */ +export const QueryServiceParamsService = { + typeName: TYPE_NAME, + method: "ServiceParams", + Request: QueryServiceParamsRequest, + Response: QueryServiceParamsResponse, +} as const; + +/** + * Params defines a gRPC query method that returns the parameters of the + * module. + * + * @generated from rpc milkyway.services.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/milkyway/services/v1/query_pb.ts b/src/protobufs/milkyway/services/v1/query_pb.ts new file mode 100644 index 00000000..a133950d --- /dev/null +++ b/src/protobufs/milkyway/services/v1/query_pb.ts @@ -0,0 +1,331 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file milkyway/services/v1/query.proto (package milkyway.services.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Service, ServiceParams } from "./models_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message milkyway.services.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message milkyway.services.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: milkyway.services.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryServicesRequest is the request type for the Query/Services RPC method. + * + * @generated from message milkyway.services.v1.QueryServicesRequest + */ +export class QueryServicesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServicesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServicesRequest { + return new QueryServicesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServicesRequest { + return new QueryServicesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServicesRequest { + return new QueryServicesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServicesRequest | PlainMessage | undefined, b: QueryServicesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServicesRequest, a, b); + } +} + +/** + * QueryServicesResponse is the response type for the Query/Services RPC method. + * + * @generated from message milkyway.services.v1.QueryServicesResponse + */ +export class QueryServicesResponse extends Message { + /** + * Services services defines the list of actively validates services + * + * @generated from field: repeated milkyway.services.v1.Service services = 1; + */ + services: Service[] = []; + + /** + * Pagination defines the pagination response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServicesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "services", kind: "message", T: Service, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServicesResponse { + return new QueryServicesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServicesResponse { + return new QueryServicesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServicesResponse { + return new QueryServicesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServicesResponse | PlainMessage | undefined, b: QueryServicesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServicesResponse, a, b); + } +} + +/** + * QueryServiceRequest is the request type for the Query/Service RPC method. + * + * @generated from message milkyway.services.v1.QueryServiceRequest + */ +export class QueryServiceRequest extends Message { + /** + * ServiceID is the ID of the service to query + * + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServiceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceRequest { + return new QueryServiceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceRequest { + return new QueryServiceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceRequest { + return new QueryServiceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceRequest | PlainMessage | undefined, b: QueryServiceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceRequest, a, b); + } +} + +/** + * QueryServiceResponse is the response type for the Query/Service RPC method. + * + * @generated from message milkyway.services.v1.QueryServiceResponse + */ +export class QueryServiceResponse extends Message { + /** + * @generated from field: milkyway.services.v1.Service service = 1; + */ + service?: Service; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServiceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service", kind: "message", T: Service }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceResponse { + return new QueryServiceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceResponse { + return new QueryServiceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceResponse { + return new QueryServiceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceResponse | PlainMessage | undefined, b: QueryServiceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceResponse, a, b); + } +} + +/** + * QueryServiceParamsRequest is the request type for the Query/ServiceParams RPC + * method. + * + * @generated from message milkyway.services.v1.QueryServiceParamsRequest + */ +export class QueryServiceParamsRequest extends Message { + /** + * @generated from field: uint32 service_id = 1; + */ + serviceId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServiceParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceParamsRequest { + return new QueryServiceParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceParamsRequest { + return new QueryServiceParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceParamsRequest { + return new QueryServiceParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceParamsRequest | PlainMessage | undefined, b: QueryServiceParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceParamsRequest, a, b); + } +} + +/** + * QueryServiceParamsResponse is the response type for the Query/ServiceParams + * RPC method. + * + * @generated from message milkyway.services.v1.QueryServiceParamsResponse + */ +export class QueryServiceParamsResponse extends Message { + /** + * @generated from field: milkyway.services.v1.ServiceParams service_params = 1; + */ + serviceParams?: ServiceParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "milkyway.services.v1.QueryServiceParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "service_params", kind: "message", T: ServiceParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceParamsResponse { + return new QueryServiceParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceParamsResponse { + return new QueryServiceParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryServiceParamsResponse { + return new QueryServiceParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryServiceParamsResponse | PlainMessage | undefined, b: QueryServiceParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryServiceParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/params_pb.ts b/src/protobufs/neutron/coinfactory/params_pb.ts new file mode 100644 index 00000000..15610111 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/params_pb.ts @@ -0,0 +1,127 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/params.proto (package neutron.coinfactory, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * WhitelistedHook describes a beforeSendHook which is allowed to be added and executed + * SetBeforeSendHook can only be called on denoms where the denom creator and + * code_id for the `contract_addr` match a WhitelistedHook + * + * @generated from message neutron.coinfactory.WhitelistedHook + */ +export class WhitelistedHook extends Message { + /** + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: string denom_creator = 2; + */ + denomCreator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.WhitelistedHook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom_creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistedHook | PlainMessage | undefined, b: WhitelistedHook | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistedHook, a, b); + } +} + +/** + * Params defines the parameters for the coinfactory module. + * + * @generated from message neutron.coinfactory.Params + */ +export class Params extends Message { + /** + * DenomCreationFee defines the fee to be charged on the creation of a new + * denom. The fee is drawn from the MsgCreateDenom's sender account, and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; + */ + denomCreationFee: Coin[] = []; + + /** + * DenomCreationGasConsume defines the gas cost for creating a new denom. + * This is intended as a spam deterrence mechanism. + * + * See: https://github.com/CosmWasm/token-factory/issues/11 + * + * @generated from field: uint64 denom_creation_gas_consume = 2; + */ + denomCreationGasConsume = protoInt64.zero; + + /** + * FeeCollectorAddress is the address where fees collected from denom creation + * are sent to + * + * @generated from field: string fee_collector_address = 3; + */ + feeCollectorAddress = ""; + + /** + * whitelisted_hooks is the list of hooks which are allowed to be added and executed + * + * @generated from field: repeated neutron.coinfactory.WhitelistedHook whitelisted_hooks = 4; + */ + whitelistedHooks: WhitelistedHook[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "fee_collector_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_hooks", kind: "message", T: WhitelistedHook, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/authorityMetadata_pb.ts b/src/protobufs/neutron/coinfactory/v1beta1/authorityMetadata_pb.ts new file mode 100644 index 00000000..99577258 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/authorityMetadata_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/authorityMetadata.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * DenomAuthorityMetadata specifies metadata for addresses that have specific + * capabilities over a token factory denom. Right now there is only one Admin + * permission, but is planned to be extended to the future. + * + * @generated from message neutron.coinfactory.v1beta1.DenomAuthorityMetadata + */ +export class DenomAuthorityMetadata extends Message { + /** + * Can be empty for no admin, or a valid neutron address + * + * @generated from field: string Admin = 1; + */ + Admin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.DenomAuthorityMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJsonString(jsonString, options); + } + + static equals(a: DenomAuthorityMetadata | PlainMessage | undefined, b: DenomAuthorityMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomAuthorityMetadata, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/genesis_pb.ts b/src/protobufs/neutron/coinfactory/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..28190009 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/genesis_pb.ts @@ -0,0 +1,110 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/genesis.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "../params_pb.js"; +import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; + +/** + * GenesisState defines the coinfactory module's genesis state. + * + * @generated from message neutron.coinfactory.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: neutron.coinfactory.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated neutron.coinfactory.v1beta1.GenesisDenom factory_denoms = 2; + */ + factoryDenoms: GenesisDenom[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "factory_denoms", kind: "message", T: GenesisDenom, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisDenom defines a coinfactory denom that is defined within genesis + * state. The structure contains DenomAuthorityMetadata which defines the + * denom's admin. + * + * @generated from message neutron.coinfactory.v1beta1.GenesisDenom + */ +export class GenesisDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: neutron.coinfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 2; + */ + authorityMetadata?: DenomAuthorityMetadata; + + /** + * @generated from field: string hook_contract_address = 3; + */ + hookContractAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.GenesisDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, + { no: 3, name: "hook_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDenom { + return new GenesisDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJsonString(jsonString, options); + } + + static equals(a: GenesisDenom | PlainMessage | undefined, b: GenesisDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisDenom, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/params_pb.ts b/src/protobufs/neutron/coinfactory/v1beta1/params_pb.ts new file mode 100644 index 00000000..602447df --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/params_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/params.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the coinfactory module. + * + * @generated from message neutron.coinfactory.v1beta1.Params + */ +export class Params extends Message { + /** + * DenomCreationFee defines the fee to be charged on the creation of a new + * denom. The fee is drawn from the MsgCreateDenom's sender account, and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; + */ + denomCreationFee: Coin[] = []; + + /** + * DenomCreationGasConsume defines the gas cost for creating a new denom. + * This is intended as a spam deterrence mechanism. + * + * See: https://github.com/CosmWasm/token-factory/issues/11 + * + * @generated from field: uint64 denom_creation_gas_consume = 2; + */ + denomCreationGasConsume = protoInt64.zero; + + /** + * FeeCollectorAddress is the address where fees collected from denom creation + * are sent to + * + * @generated from field: string fee_collector_address = 3; + */ + feeCollectorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "fee_collector_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/query_cosmes.ts b/src/protobufs/neutron/coinfactory/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..6d050ff2 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/query_cosmes.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/query.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryFullDenomRequest, QueryFullDenomResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.coinfactory.v1beta1.Query"; + +/** + * Params defines a gRPC query method that returns the coinfactory module's + * parameters. + * + * @generated from rpc neutron.coinfactory.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * DenomAuthorityMetadata defines a gRPC query method for fetching + * DenomAuthorityMetadata for a particular denom. + * + * @generated from rpc neutron.coinfactory.v1beta1.Query.DenomAuthorityMetadata + */ +export const QueryDenomAuthorityMetadataService = { + typeName: TYPE_NAME, + method: "DenomAuthorityMetadata", + Request: QueryDenomAuthorityMetadataRequest, + Response: QueryDenomAuthorityMetadataResponse, +} as const; + +/** + * DenomsFromCreator defines a gRPC query method for fetching all + * denominations created by a specific admin/creator. + * + * @generated from rpc neutron.coinfactory.v1beta1.Query.DenomsFromCreator + */ +export const QueryDenomsFromCreatorService = { + typeName: TYPE_NAME, + method: "DenomsFromCreator", + Request: QueryDenomsFromCreatorRequest, + Response: QueryDenomsFromCreatorResponse, +} as const; + +/** + * BeforeSendHookAddress defines a gRPC query method for + * getting the address registered for the before send hook. + * + * @generated from rpc neutron.coinfactory.v1beta1.Query.BeforeSendHookAddress + */ +export const QueryBeforeSendHookAddressService = { + typeName: TYPE_NAME, + method: "BeforeSendHookAddress", + Request: QueryBeforeSendHookAddressRequest, + Response: QueryBeforeSendHookAddressResponse, +} as const; + +/** + * FullDenom defines a gRPC query method for getting full denom name + * from the creator and subdenom strings. + * + * @generated from rpc neutron.coinfactory.v1beta1.Query.FullDenom + */ +export const QueryFullDenomService = { + typeName: TYPE_NAME, + method: "FullDenom", + Request: QueryFullDenomRequest, + Response: QueryFullDenomResponse, +} as const; + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/query_pb.ts b/src/protobufs/neutron/coinfactory/v1beta1/query_pb.ts new file mode 100644 index 00000000..71bdcf63 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/query_pb.ts @@ -0,0 +1,422 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/query.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "../params_pb.js"; +import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message neutron.coinfactory.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message neutron.coinfactory.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: neutron.coinfactory.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDenomAuthorityMetadataRequest defines the request structure for the + * DenomAuthorityMetadata gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryDenomAuthorityMetadataRequest + */ +export class QueryDenomAuthorityMetadataRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryDenomAuthorityMetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined, b: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomAuthorityMetadataRequest, a, b); + } +} + +/** + * QueryDenomAuthorityMetadataResponse defines the response structure for the + * DenomAuthorityMetadata gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryDenomAuthorityMetadataResponse + */ +export class QueryDenomAuthorityMetadataResponse extends Message { + /** + * @generated from field: neutron.coinfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 1; + */ + authorityMetadata?: DenomAuthorityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryDenomAuthorityMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined, b: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomAuthorityMetadataResponse, a, b); + } +} + +/** + * QueryDenomsFromCreatorRequest defines the request structure for the + * DenomsFromCreator gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryDenomsFromCreatorRequest + */ +export class QueryDenomsFromCreatorRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryDenomsFromCreatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsFromCreatorRequest | PlainMessage | undefined, b: QueryDenomsFromCreatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsFromCreatorRequest, a, b); + } +} + +/** + * QueryDenomsFromCreatorResponse defines the response structure for the + * DenomsFromCreator gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryDenomsFromCreatorResponse + */ +export class QueryDenomsFromCreatorResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryDenomsFromCreatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsFromCreatorResponse | PlainMessage | undefined, b: QueryDenomsFromCreatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsFromCreatorResponse, a, b); + } +} + +/** + * QueryBeforeSendHookAddressRequest defines the request structure for the + * BeforeSendHookAddress gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryBeforeSendHookAddressRequest + */ +export class QueryBeforeSendHookAddressRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryBeforeSendHookAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBeforeSendHookAddressRequest | PlainMessage | undefined, b: QueryBeforeSendHookAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBeforeSendHookAddressRequest, a, b); + } +} + +/** + * QueryBeforeSendHookAddressResponse defines the response structure for the + * BeforeSendHookAddress gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryBeforeSendHookAddressResponse + */ +export class QueryBeforeSendHookAddressResponse extends Message { + /** + * @generated from field: string contract_addr = 1; + */ + contractAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryBeforeSendHookAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBeforeSendHookAddressResponse | PlainMessage | undefined, b: QueryBeforeSendHookAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBeforeSendHookAddressResponse, a, b); + } +} + +/** + * QueryFullDenomRequest defines the request structure for the + * FullDenom gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryFullDenomRequest + */ +export class QueryFullDenomRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryFullDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDenomRequest { + return new QueryFullDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDenomRequest { + return new QueryFullDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDenomRequest { + return new QueryFullDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDenomRequest | PlainMessage | undefined, b: QueryFullDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDenomRequest, a, b); + } +} + +/** + * QueryFullDenomResponse defines the response structure for the + * FullDenom gRPC query. + * + * @generated from message neutron.coinfactory.v1beta1.QueryFullDenomResponse + */ +export class QueryFullDenomResponse extends Message { + /** + * @generated from field: string full_denom = 1; + */ + fullDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.QueryFullDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "full_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFullDenomResponse { + return new QueryFullDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFullDenomResponse { + return new QueryFullDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFullDenomResponse { + return new QueryFullDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFullDenomResponse | PlainMessage | undefined, b: QueryFullDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFullDenomResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/tx_cosmes.ts b/src/protobufs/neutron/coinfactory/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..d53a39ca --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/tx_cosmes.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/tx.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurn, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse, MsgCreateDenom, MsgCreateDenomResponse, MsgForceTransfer, MsgForceTransferResponse, MsgMint, MsgMintResponse, MsgSetBeforeSendHook, MsgSetBeforeSendHookResponse, MsgSetDenomMetadata, MsgSetDenomMetadataResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.coinfactory.v1beta1.Msg"; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.CreateDenom + */ +export const MsgCreateDenomService = { + typeName: TYPE_NAME, + method: "CreateDenom", + Request: MsgCreateDenom, + Response: MsgCreateDenomResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: MsgMintResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: MsgBurnResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.ChangeAdmin + */ +export const MsgChangeAdminService = { + typeName: TYPE_NAME, + method: "ChangeAdmin", + Request: MsgChangeAdmin, + Response: MsgChangeAdminResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.SetDenomMetadata + */ +export const MsgSetDenomMetadataService = { + typeName: TYPE_NAME, + method: "SetDenomMetadata", + Request: MsgSetDenomMetadata, + Response: MsgSetDenomMetadataResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.SetBeforeSendHook + */ +export const MsgSetBeforeSendHookService = { + typeName: TYPE_NAME, + method: "SetBeforeSendHook", + Request: MsgSetBeforeSendHook, + Response: MsgSetBeforeSendHookResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.ForceTransfer + */ +export const MsgForceTransferService = { + typeName: TYPE_NAME, + method: "ForceTransfer", + Request: MsgForceTransfer, + Response: MsgForceTransferResponse, +} as const; + +/** + * @generated from rpc neutron.coinfactory.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/coinfactory/v1beta1/tx_pb.ts b/src/protobufs/neutron/coinfactory/v1beta1/tx_pb.ts new file mode 100644 index 00000000..fccc0765 --- /dev/null +++ b/src/protobufs/neutron/coinfactory/v1beta1/tx_pb.ts @@ -0,0 +1,699 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/coinfactory/v1beta1/tx.proto (package neutron.coinfactory.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; +import { Params } from "../params_pb.js"; + +/** + * MsgCreateDenom defines the message structure for the CreateDenom gRPC service + * method. It allows an account to create a new denom. It requires a sender + * address and a sub denomination. The (sender_address, sub_denomination) tuple + * must be unique and cannot be re-used. + * + * The resulting denom created is defined as + * . The resulting denom's admin is + * originally set to be the creator, but this can be changed later. The token + * denom does not indicate the current admin. + * + * @generated from message neutron.coinfactory.v1beta1.MsgCreateDenom + */ +export class MsgCreateDenom extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * subdenom can be up to 44 "alphanumeric" characters long. + * + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgCreateDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenom | PlainMessage | undefined, b: MsgCreateDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenom, a, b); + } +} + +/** + * MsgCreateDenomResponse is the return value of MsgCreateDenom + * It returns the full string of the newly created denom + * + * @generated from message neutron.coinfactory.v1beta1.MsgCreateDenomResponse + */ +export class MsgCreateDenomResponse extends Message { + /** + * @generated from field: string new_token_denom = 1; + */ + newTokenDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgCreateDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenomResponse | PlainMessage | undefined, b: MsgCreateDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenomResponse, a, b); + } +} + +/** + * MsgMint is the sdk.Msg type for allowing an admin account to mint + * more of a token. For now, we only support minting to the sender account + * + * @generated from message neutron.coinfactory.v1beta1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string mintToAddress = 3; + */ + mintToAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "mintToAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * @generated from message neutron.coinfactory.v1beta1.MsgMintResponse + */ +export class MsgMintResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgMintResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintResponse, a, b); + } +} + +/** + * MsgBurn is the sdk.Msg type for allowing an admin account to burn + * a token. For now, we only support burning from the sender account. + * + * @generated from message neutron.coinfactory.v1beta1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string burnFromAddress = 3; + */ + burnFromAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "burnFromAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * @generated from message neutron.coinfactory.v1beta1.MsgBurnResponse + */ +export class MsgBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnResponse, a, b); + } +} + +/** + * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign + * adminship of a denom to a new account + * + * @generated from message neutron.coinfactory.v1beta1.MsgChangeAdmin + */ +export class MsgChangeAdmin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgChangeAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdmin | PlainMessage | undefined, b: MsgChangeAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdmin, a, b); + } +} + +/** + * MsgChangeAdminResponse defines the response structure for an executed + * MsgChangeAdmin message. + * + * @generated from message neutron.coinfactory.v1beta1.MsgChangeAdminResponse + */ +export class MsgChangeAdminResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgChangeAdminResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdminResponse | PlainMessage | undefined, b: MsgChangeAdminResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdminResponse, a, b); + } +} + +/** + * MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to + * assign a CosmWasm contract to call with a BeforeSend hook + * + * @generated from message neutron.coinfactory.v1beta1.MsgSetBeforeSendHook + */ +export class MsgSetBeforeSendHook extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string contract_addr = 3; + */ + contractAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgSetBeforeSendHook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBeforeSendHook | PlainMessage | undefined, b: MsgSetBeforeSendHook | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBeforeSendHook, a, b); + } +} + +/** + * MsgSetBeforeSendHookResponse defines the response structure for an executed + * MsgSetBeforeSendHook message. + * + * @generated from message neutron.coinfactory.v1beta1.MsgSetBeforeSendHookResponse + */ +export class MsgSetBeforeSendHookResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgSetBeforeSendHookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBeforeSendHookResponse | PlainMessage | undefined, b: MsgSetBeforeSendHookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBeforeSendHookResponse, a, b); + } +} + +/** + * MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set + * the denom's bank metadata + * + * @generated from message neutron.coinfactory.v1beta1.MsgSetDenomMetadata + */ +export class MsgSetDenomMetadata extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgSetDenomMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadata | PlainMessage | undefined, b: MsgSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadata, a, b); + } +} + +/** + * MsgSetDenomMetadataResponse defines the response structure for an executed + * MsgSetDenomMetadata message. + * + * @generated from message neutron.coinfactory.v1beta1.MsgSetDenomMetadataResponse + */ +export class MsgSetDenomMetadataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgSetDenomMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSetDenomMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadataResponse, a, b); + } +} + +/** + * @generated from message neutron.coinfactory.v1beta1.MsgForceTransfer + */ +export class MsgForceTransfer extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string transferFromAddress = 3; + */ + transferFromAddress = ""; + + /** + * @generated from field: string transferToAddress = 4; + */ + transferToAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgForceTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "transferFromAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "transferToAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgForceTransfer | PlainMessage | undefined, b: MsgForceTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgForceTransfer, a, b); + } +} + +/** + * @generated from message neutron.coinfactory.v1beta1.MsgForceTransferResponse + */ +export class MsgForceTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgForceTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgForceTransferResponse | PlainMessage | undefined, b: MsgForceTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgForceTransferResponse, a, b); + } +} + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.coinfactory.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/coinfactory parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.coinfactory.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.coinfactory.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.coinfactory.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/failure_pb.ts b/src/protobufs/neutron/contractmanager/failure_pb.ts new file mode 100644 index 00000000..747c3dfd --- /dev/null +++ b/src/protobufs/neutron/contractmanager/failure_pb.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/failure.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Failure message contains information about ACK failures and can be used to + * replay ACK in case of requirement. + * Note that Failure means that sudo handler to cosmwasm contract failed for + * some reason + * + * @generated from message neutron.contractmanager.Failure + */ +export class Failure extends Message { + /** + * Address of the failed contract + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Id of the failure under specific address + * + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * Serialized MessageSudoCallback with Packet and Ack(if exists) + * + * @generated from field: bytes sudo_payload = 3; + */ + sudoPayload = new Uint8Array(0); + + /** + * Redacted error response of the sudo call. Full error is emitted as an event + * + * @generated from field: string error = 4; + */ + error = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.Failure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "sudo_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Failure { + return new Failure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Failure { + return new Failure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Failure { + return new Failure().fromJsonString(jsonString, options); + } + + static equals(a: Failure | PlainMessage | undefined, b: Failure | PlainMessage | undefined): boolean { + return proto3.util.equals(Failure, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/genesis_pb.ts b/src/protobufs/neutron/contractmanager/genesis_pb.ts new file mode 100644 index 00000000..16e77286 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/genesis_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/genesis.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Failure } from "./failure_pb.js"; + +/** + * GenesisState defines the contractmanager module's genesis state. + * + * @generated from message neutron.contractmanager.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.contractmanager.Params params = 1; + */ + params?: Params; + + /** + * List of the contract failures + * + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated neutron.contractmanager.Failure failures_list = 2; + */ + failuresList: Failure[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "failures_list", kind: "message", T: Failure, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/params_pb.ts b/src/protobufs/neutron/contractmanager/params_pb.ts new file mode 100644 index 00000000..ad55c394 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/params.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.contractmanager.Params + */ +export class Params extends Message { + /** + * @generated from field: uint64 sudo_call_gas_limit = 1; + */ + sudoCallGasLimit = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sudo_call_gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/query_cosmes.ts b/src/protobufs/neutron/contractmanager/query_cosmes.ts new file mode 100644 index 00000000..24bdfaa6 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/contractmanager/query.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryFailureRequest, QueryFailureResponse, QueryFailuresRequest, QueryFailuresResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.contractmanager.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.contractmanager.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Failure by contract address and failure ID. + * + * @generated from rpc neutron.contractmanager.Query.AddressFailure + */ +export const QueryAddressFailureService = { + typeName: TYPE_NAME, + method: "AddressFailure", + Request: QueryFailureRequest, + Response: QueryFailureResponse, +} as const; + +/** + * Queries Failures by contract address. + * + * @generated from rpc neutron.contractmanager.Query.AddressFailures + */ +export const QueryAddressFailuresService = { + typeName: TYPE_NAME, + method: "AddressFailures", + Request: QueryFailuresRequest, + Response: QueryFailuresResponse, +} as const; + +/** + * Queries a list of Failures occurred on the network. + * + * @generated from rpc neutron.contractmanager.Query.Failures + */ +export const QueryFailuresService = { + typeName: TYPE_NAME, + method: "Failures", + Request: QueryFailuresRequest, + Response: QueryFailuresResponse, +} as const; + diff --git a/src/protobufs/neutron/contractmanager/query_pb.ts b/src/protobufs/neutron/contractmanager/query_pb.ts new file mode 100644 index 00000000..f69e0559 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/query_pb.ts @@ -0,0 +1,265 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/query.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Failure } from "./failure_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.contractmanager.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.contractmanager.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.contractmanager.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryFailuresRequest is request type for the Query/Failures RPC method. + * + * @generated from message neutron.contractmanager.QueryFailuresRequest + */ +export class QueryFailuresRequest extends Message { + /** + * address of the contract which Sudo call failed. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryFailuresRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFailuresRequest { + return new QueryFailuresRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFailuresRequest { + return new QueryFailuresRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFailuresRequest { + return new QueryFailuresRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFailuresRequest | PlainMessage | undefined, b: QueryFailuresRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFailuresRequest, a, b); + } +} + +/** + * QueryFailureRequest is request type for the Query/Failures RPC method. + * + * @generated from message neutron.contractmanager.QueryFailureRequest + */ +export class QueryFailureRequest extends Message { + /** + * address of the contract which Sudo call failed. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * ID of the failure for the given contract. + * + * @generated from field: uint64 failure_id = 2; + */ + failureId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryFailureRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "failure_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFailureRequest { + return new QueryFailureRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFailureRequest { + return new QueryFailureRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFailureRequest { + return new QueryFailureRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFailureRequest | PlainMessage | undefined, b: QueryFailureRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFailureRequest, a, b); + } +} + +/** + * QueryFailureResponse is response type for the Query/Failure RPC method. + * + * @generated from message neutron.contractmanager.QueryFailureResponse + */ +export class QueryFailureResponse extends Message { + /** + * @generated from field: neutron.contractmanager.Failure failure = 1; + */ + failure?: Failure; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryFailureResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "failure", kind: "message", T: Failure }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFailureResponse { + return new QueryFailureResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFailureResponse { + return new QueryFailureResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFailureResponse { + return new QueryFailureResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFailureResponse | PlainMessage | undefined, b: QueryFailureResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFailureResponse, a, b); + } +} + +/** + * QueryFailuresResponse is response type for the Query/Failures RPC method. + * + * @generated from message neutron.contractmanager.QueryFailuresResponse + */ +export class QueryFailuresResponse extends Message { + /** + * @generated from field: repeated neutron.contractmanager.Failure failures = 1; + */ + failures: Failure[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.QueryFailuresResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "failures", kind: "message", T: Failure, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFailuresResponse { + return new QueryFailuresResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFailuresResponse { + return new QueryFailuresResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFailuresResponse { + return new QueryFailuresResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFailuresResponse | PlainMessage | undefined, b: QueryFailuresResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFailuresResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/tx_cosmes.ts b/src/protobufs/neutron/contractmanager/tx_cosmes.ts new file mode 100644 index 00000000..5a3a8845 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/tx_cosmes.ts @@ -0,0 +1,29 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/contractmanager/tx.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgResubmitFailure, MsgResubmitFailureResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.contractmanager.Msg"; + +/** + * @generated from rpc neutron.contractmanager.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc neutron.contractmanager.Msg.ResubmitFailure + */ +export const MsgResubmitFailureService = { + typeName: TYPE_NAME, + method: "ResubmitFailure", + Request: MsgResubmitFailure, + Response: MsgResubmitFailureResponse, +} as const; + diff --git a/src/protobufs/neutron/contractmanager/tx_pb.ts b/src/protobufs/neutron/contractmanager/tx_pb.ts new file mode 100644 index 00000000..abcc52e6 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/tx_pb.ts @@ -0,0 +1,178 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/tx.proto (package neutron.contractmanager, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.contractmanager.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/contractmanager parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.contractmanager.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.contractmanager.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgResubmitFailure - contract that has failed acknowledgement can resubmit its failure + * + * @generated from message neutron.contractmanager.MsgResubmitFailure + */ +export class MsgResubmitFailure extends Message { + /** + * sender is the contract which failure to acknowledge is resubmitted. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * failure_id is id of failure to resubmit + * + * @generated from field: uint64 failure_id = 2; + */ + failureId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.MsgResubmitFailure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "failure_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResubmitFailure { + return new MsgResubmitFailure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResubmitFailure { + return new MsgResubmitFailure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResubmitFailure { + return new MsgResubmitFailure().fromJsonString(jsonString, options); + } + + static equals(a: MsgResubmitFailure | PlainMessage | undefined, b: MsgResubmitFailure | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResubmitFailure, a, b); + } +} + +/** + * @generated from message neutron.contractmanager.MsgResubmitFailureResponse + */ +export class MsgResubmitFailureResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.MsgResubmitFailureResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgResubmitFailureResponse { + return new MsgResubmitFailureResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgResubmitFailureResponse { + return new MsgResubmitFailureResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgResubmitFailureResponse { + return new MsgResubmitFailureResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgResubmitFailureResponse | PlainMessage | undefined, b: MsgResubmitFailureResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgResubmitFailureResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/contractmanager/v1/failure_pb.ts b/src/protobufs/neutron/contractmanager/v1/failure_pb.ts new file mode 100644 index 00000000..4ad1d0a9 --- /dev/null +++ b/src/protobufs/neutron/contractmanager/v1/failure_pb.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/contractmanager/v1/failure.proto (package neutron.contractmanager.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Deprecated. Used only for migration purposes. + * + * @generated from message neutron.contractmanager.v1.Failure + */ +export class Failure extends Message { + /** + * ChannelId + * + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * Address of the failed contract + * + * @generated from field: string address = 2; + */ + address = ""; + + /** + * id of the failure under specific address + * + * @generated from field: uint64 id = 3; + */ + id = protoInt64.zero; + + /** + * ACK id to restore + * + * @generated from field: uint64 ack_id = 4; + */ + ackId = protoInt64.zero; + + /** + * Acknowledgement type + * + * @generated from field: string ack_type = 5; + */ + ackType = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.contractmanager.v1.Failure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "ack_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "ack_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Failure { + return new Failure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Failure { + return new Failure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Failure { + return new Failure().fromJsonString(jsonString, options); + } + + static equals(a: Failure | PlainMessage | undefined, b: Failure | PlainMessage | undefined): boolean { + return proto3.util.equals(Failure, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/genesis_pb.ts b/src/protobufs/neutron/cron/genesis_pb.ts new file mode 100644 index 00000000..320ea3cc --- /dev/null +++ b/src/protobufs/neutron/cron/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/genesis.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Schedule } from "./schedule_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * Defines the cron module's genesis state. + * + * @generated from message neutron.cron.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated neutron.cron.Schedule scheduleList = 2; + */ + scheduleList: Schedule[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: neutron.cron.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "scheduleList", kind: "message", T: Schedule, repeated: true }, + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/params_pb.ts b/src/protobufs/neutron/cron/params_pb.ts new file mode 100644 index 00000000..9b9eabcf --- /dev/null +++ b/src/protobufs/neutron/cron/params_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/params.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Defines the parameters for the module. + * + * @generated from message neutron.cron.Params + */ +export class Params extends Message { + /** + * Security address that can remove schedules + * + * @generated from field: string security_address = 1; + */ + securityAddress = ""; + + /** + * Limit of schedules executed in one block + * + * @generated from field: uint64 limit = 2; + */ + limit = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "security_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/query_cosmes.ts b/src/protobufs/neutron/cron/query_cosmes.ts new file mode 100644 index 00000000..8d0b26bd --- /dev/null +++ b/src/protobufs/neutron/cron/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/cron/query.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryGetScheduleRequest, QueryGetScheduleResponse, QueryParamsRequest, QueryParamsResponse, QuerySchedulesRequest, QuerySchedulesResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.cron.Query"; + +/** + * Queries the parameters of the module. + * + * @generated from rpc neutron.cron.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Schedule by name. + * + * @generated from rpc neutron.cron.Query.Schedule + */ +export const QueryScheduleService = { + typeName: TYPE_NAME, + method: "Schedule", + Request: QueryGetScheduleRequest, + Response: QueryGetScheduleResponse, +} as const; + +/** + * Queries a list of Schedule items. + * + * @generated from rpc neutron.cron.Query.Schedules + */ +export const QuerySchedulesService = { + typeName: TYPE_NAME, + method: "Schedules", + Request: QuerySchedulesRequest, + Response: QuerySchedulesResponse, +} as const; + diff --git a/src/protobufs/neutron/cron/query_pb.ts b/src/protobufs/neutron/cron/query_pb.ts new file mode 100644 index 00000000..9b853f30 --- /dev/null +++ b/src/protobufs/neutron/cron/query_pb.ts @@ -0,0 +1,247 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/query.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Schedule } from "./schedule_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * The request type for the Query/Params RPC method. + * + * @generated from message neutron.cron.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * The response type for the Query/Params RPC method. + * + * @generated from message neutron.cron.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.cron.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * The request type for the Query/Schedule RPC method. + * + * @generated from message neutron.cron.QueryGetScheduleRequest + */ +export class QueryGetScheduleRequest extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QueryGetScheduleRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleRequest | PlainMessage | undefined, b: QueryGetScheduleRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleRequest, a, b); + } +} + +/** + * The response type for the Query/Params RPC method. + * + * @generated from message neutron.cron.QueryGetScheduleResponse + */ +export class QueryGetScheduleResponse extends Message { + /** + * @generated from field: neutron.cron.Schedule schedule = 1; + */ + schedule?: Schedule; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QueryGetScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule", kind: "message", T: Schedule }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleResponse | PlainMessage | undefined, b: QueryGetScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleResponse, a, b); + } +} + +/** + * The request type for the Query/Schedules RPC method. + * + * @generated from message neutron.cron.QuerySchedulesRequest + */ +export class QuerySchedulesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QuerySchedulesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySchedulesRequest | PlainMessage | undefined, b: QuerySchedulesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySchedulesRequest, a, b); + } +} + +/** + * The response type for the Query/Params RPC method. + * + * @generated from message neutron.cron.QuerySchedulesResponse + */ +export class QuerySchedulesResponse extends Message { + /** + * @generated from field: repeated neutron.cron.Schedule schedules = 1; + */ + schedules: Schedule[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.QuerySchedulesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedules", kind: "message", T: Schedule, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySchedulesResponse | PlainMessage | undefined, b: QuerySchedulesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySchedulesResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/schedule_pb.ts b/src/protobufs/neutron/cron/schedule_pb.ts new file mode 100644 index 00000000..96ea23c2 --- /dev/null +++ b/src/protobufs/neutron/cron/schedule_pb.ts @@ -0,0 +1,197 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/schedule.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Defines when messages will be executed in the block + * + * @generated from enum neutron.cron.ExecutionStage + */ +export enum ExecutionStage { + /** + * Execution at the end of the block + * + * @generated from enum value: EXECUTION_STAGE_END_BLOCKER = 0; + */ + END_BLOCKER = 0, + + /** + * Execution at the beginning of the block + * + * @generated from enum value: EXECUTION_STAGE_BEGIN_BLOCKER = 1; + */ + BEGIN_BLOCKER = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionStage) +proto3.util.setEnumType(ExecutionStage, "neutron.cron.ExecutionStage", [ + { no: 0, name: "EXECUTION_STAGE_END_BLOCKER" }, + { no: 1, name: "EXECUTION_STAGE_BEGIN_BLOCKER" }, +]); + +/** + * Defines the schedule for execution + * + * @generated from message neutron.cron.Schedule + */ +export class Schedule extends Message { + /** + * Name of schedule + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * Period in blocks + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * Msgs that will be executed every certain number of blocks, specified in the `period` field + * + * @generated from field: repeated neutron.cron.MsgExecuteContract msgs = 3; + */ + msgs: MsgExecuteContract[] = []; + + /** + * Last execution's block height + * + * @generated from field: uint64 last_execute_height = 4; + */ + lastExecuteHeight = protoInt64.zero; + + /** + * Stage when messages will be executed + * + * @generated from field: neutron.cron.ExecutionStage execution_stage = 5; + */ + executionStage = ExecutionStage.END_BLOCKER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.Schedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "msgs", kind: "message", T: MsgExecuteContract, repeated: true }, + { no: 4, name: "last_execute_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "execution_stage", kind: "enum", T: proto3.getEnumType(ExecutionStage) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Schedule { + return new Schedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Schedule { + return new Schedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Schedule { + return new Schedule().fromJsonString(jsonString, options); + } + + static equals(a: Schedule | PlainMessage | undefined, b: Schedule | PlainMessage | undefined): boolean { + return proto3.util.equals(Schedule, a, b); + } +} + +/** + * Defines the contract and the message to pass + * + * @generated from message neutron.cron.MsgExecuteContract + */ +export class MsgExecuteContract extends Message { + /** + * The address of the smart contract + * + * @generated from field: string contract = 1; + */ + contract = ""; + + /** + * JSON encoded message to be passed to the contract + * + * @generated from field: string msg = 2; + */ + msg = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgExecuteContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteContract, a, b); + } +} + +/** + * Defines the number of current schedules + * + * @generated from message neutron.cron.ScheduleCount + */ +export class ScheduleCount extends Message { + /** + * The number of current schedules + * + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.ScheduleCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ScheduleCount { + return new ScheduleCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJsonString(jsonString, options); + } + + static equals(a: ScheduleCount | PlainMessage | undefined, b: ScheduleCount | PlainMessage | undefined): boolean { + return proto3.util.equals(ScheduleCount, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/tx_cosmes.ts b/src/protobufs/neutron/cron/tx_cosmes.ts new file mode 100644 index 00000000..5c774886 --- /dev/null +++ b/src/protobufs/neutron/cron/tx_cosmes.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/cron/tx.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddSchedule, MsgAddScheduleResponse, MsgRemoveSchedule, MsgRemoveScheduleResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.cron.Msg"; + +/** + * Adds new schedule. + * + * @generated from rpc neutron.cron.Msg.AddSchedule + */ +export const MsgAddScheduleService = { + typeName: TYPE_NAME, + method: "AddSchedule", + Request: MsgAddSchedule, + Response: MsgAddScheduleResponse, +} as const; + +/** + * Removes schedule. + * + * @generated from rpc neutron.cron.Msg.RemoveSchedule + */ +export const MsgRemoveScheduleService = { + typeName: TYPE_NAME, + method: "RemoveSchedule", + Request: MsgRemoveSchedule, + Response: MsgRemoveScheduleResponse, +} as const; + +/** + * Updates the module parameters. + * + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc neutron.cron.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/cron/tx_pb.ts b/src/protobufs/neutron/cron/tx_pb.ts new file mode 100644 index 00000000..81193fb2 --- /dev/null +++ b/src/protobufs/neutron/cron/tx_pb.ts @@ -0,0 +1,286 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/tx.proto (package neutron.cron, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ExecutionStage, MsgExecuteContract } from "./schedule_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * The MsgAddSchedule request type. + * + * @generated from message neutron.cron.MsgAddSchedule + */ +export class MsgAddSchedule extends Message { + /** + * The address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Name of the schedule + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Period in blocks + * + * @generated from field: uint64 period = 3; + */ + period = protoInt64.zero; + + /** + * Msgs that will be executed every certain number of blocks, specified in the `period` field + * + * @generated from field: repeated neutron.cron.MsgExecuteContract msgs = 4; + */ + msgs: MsgExecuteContract[] = []; + + /** + * Stage when messages will be executed + * + * @generated from field: neutron.cron.ExecutionStage execution_stage = 5; + */ + executionStage = ExecutionStage.END_BLOCKER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgAddSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "msgs", kind: "message", T: MsgExecuteContract, repeated: true }, + { no: 5, name: "execution_stage", kind: "enum", T: proto3.getEnumType(ExecutionStage) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddSchedule | PlainMessage | undefined, b: MsgAddSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddSchedule, a, b); + } +} + +/** + * Defines the response structure for executing a MsgAddSchedule message. + * + * @generated from message neutron.cron.MsgAddScheduleResponse + */ +export class MsgAddScheduleResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgAddScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddScheduleResponse | PlainMessage | undefined, b: MsgAddScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddScheduleResponse, a, b); + } +} + +/** + * The MsgRemoveSchedule request type. + * + * @generated from message neutron.cron.MsgRemoveSchedule + */ +export class MsgRemoveSchedule extends Message { + /** + * The address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Name of the schedule + * + * @generated from field: string name = 2; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgRemoveSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveSchedule | PlainMessage | undefined, b: MsgRemoveSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveSchedule, a, b); + } +} + +/** + * Defines the response structure for executing a MsgRemoveSchedule message. + * + * @generated from message neutron.cron.MsgRemoveScheduleResponse + */ +export class MsgRemoveScheduleResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgRemoveScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveScheduleResponse | PlainMessage | undefined, b: MsgRemoveScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveScheduleResponse, a, b); + } +} + +/** + * The MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.cron.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * The address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Defines the x/cron parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.cron.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * Defines the response structure for executing a MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.cron.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/cron/v1/schedule_pb.ts b/src/protobufs/neutron/cron/v1/schedule_pb.ts new file mode 100644 index 00000000..16ae6ba3 --- /dev/null +++ b/src/protobufs/neutron/cron/v1/schedule_pb.ts @@ -0,0 +1,163 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/cron/v1/schedule.proto (package neutron.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Defines the schedule for execution + * + * @generated from message neutron.cron.v1.Schedule + */ +export class Schedule extends Message { + /** + * Name of schedule + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * Period in blocks + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * Msgs that will be executed every certain number of blocks, specified in the `period` field + * + * @generated from field: repeated neutron.cron.v1.MsgExecuteContract msgs = 3; + */ + msgs: MsgExecuteContract[] = []; + + /** + * Last execution's block height + * + * @generated from field: uint64 last_execute_height = 4; + */ + lastExecuteHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.v1.Schedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "msgs", kind: "message", T: MsgExecuteContract, repeated: true }, + { no: 4, name: "last_execute_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Schedule { + return new Schedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Schedule { + return new Schedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Schedule { + return new Schedule().fromJsonString(jsonString, options); + } + + static equals(a: Schedule | PlainMessage | undefined, b: Schedule | PlainMessage | undefined): boolean { + return proto3.util.equals(Schedule, a, b); + } +} + +/** + * Defines the contract and the message to pass + * + * @generated from message neutron.cron.v1.MsgExecuteContract + */ +export class MsgExecuteContract extends Message { + /** + * The address of the smart contract + * + * @generated from field: string contract = 1; + */ + contract = ""; + + /** + * JSON encoded message to be passed to the contract + * + * @generated from field: string msg = 2; + */ + msg = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.v1.MsgExecuteContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteContract, a, b); + } +} + +/** + * Defines the number of current schedules + * + * @generated from message neutron.cron.v1.ScheduleCount + */ +export class ScheduleCount extends Message { + /** + * The number of current schedules + * + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.cron.v1.ScheduleCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ScheduleCount { + return new ScheduleCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJsonString(jsonString, options); + } + + static equals(a: ScheduleCount | PlainMessage | undefined, b: ScheduleCount | PlainMessage | undefined): boolean { + return proto3.util.equals(ScheduleCount, a, b); + } +} + diff --git a/src/protobufs/neutron/crypto/v1beta1/ethsecp256k1/keys_pb.ts b/src/protobufs/neutron/crypto/v1beta1/ethsecp256k1/keys_pb.ts new file mode 100644 index 00000000..2c6eb40c --- /dev/null +++ b/src/protobufs/neutron/crypto/v1beta1/ethsecp256k1/keys_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/crypto/v1beta1/ethsecp256k1/keys.proto (package neutron.crypto.v1beta1.ethsecp256k1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * PubKey defines a type alias for an ecdsa.PublicKey that implements + * Tendermint's PubKey interface. It represents the 33-byte compressed public + * key format. + * + * @generated from message neutron.crypto.v1beta1.ethsecp256k1.PubKey + */ +export class PubKey extends Message { + /** + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.crypto.v1beta1.ethsecp256k1.PubKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { + return new PubKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { + return new PubKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PubKey { + return new PubKey().fromJsonString(jsonString, options); + } + + static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PubKey, a, b); + } +} + +/** + * PrivKey defines a type alias for an ecdsa.PrivateKey that implements + * Tendermint's PrivateKey interface. + * + * @generated from message neutron.crypto.v1beta1.ethsecp256k1.PrivKey + */ +export class PrivKey extends Message { + /** + * @generated from field: bytes key = 1; + */ + key = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.crypto.v1beta1.ethsecp256k1.PrivKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { + return new PrivKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { + return new PrivKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PrivKey { + return new PrivKey().fromJsonString(jsonString, options); + } + + static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PrivKey, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/deposit_record_pb.ts b/src/protobufs/neutron/dex/deposit_record_pb.ts new file mode 100644 index 00000000..83d28291 --- /dev/null +++ b/src/protobufs/neutron/dex/deposit_record_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/deposit_record.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PairID } from "./pair_id_pb.js"; +import { Pool } from "./pool_pb.js"; + +/** + * @generated from message neutron.dex.DepositRecord + */ +export class DepositRecord extends Message { + /** + * @generated from field: neutron.dex.PairID pair_id = 1; + */ + pairId?: PairID; + + /** + * @generated from field: string shares_owned = 2; + */ + sharesOwned = ""; + + /** + * @generated from field: int64 center_tick_index = 3; + */ + centerTickIndex = protoInt64.zero; + + /** + * @generated from field: int64 lower_tick_index = 4; + */ + lowerTickIndex = protoInt64.zero; + + /** + * @generated from field: int64 upper_tick_index = 5; + */ + upperTickIndex = protoInt64.zero; + + /** + * @generated from field: uint64 fee = 6; + */ + fee = protoInt64.zero; + + /** + * @generated from field: string total_shares = 7; + */ + totalShares = ""; + + /** + * @generated from field: neutron.dex.Pool pool = 8; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.DepositRecord"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "message", T: PairID }, + { no: 2, name: "shares_owned", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "center_tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "lower_tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "upper_tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "fee", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositRecord { + return new DepositRecord().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositRecord { + return new DepositRecord().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositRecord { + return new DepositRecord().fromJsonString(jsonString, options); + } + + static equals(a: DepositRecord | PlainMessage | undefined, b: DepositRecord | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositRecord, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/genesis_pb.ts b/src/protobufs/neutron/dex/genesis_pb.ts new file mode 100644 index 00000000..f06350a8 --- /dev/null +++ b/src/protobufs/neutron/dex/genesis_pb.ts @@ -0,0 +1,84 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/genesis.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { TickLiquidity } from "./tick_liquidity_pb.js"; +import { LimitOrderTranche } from "./limit_order_tranche_pb.js"; +import { LimitOrderTrancheUser } from "./limit_order_tranche_user_pb.js"; +import { PoolMetadata } from "./pool_metadata_pb.js"; + +/** + * GenesisState defines the dex module's genesis state. + * + * @generated from message neutron.dex.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.dex.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated neutron.dex.TickLiquidity tick_liquidity_list = 2; + */ + tickLiquidityList: TickLiquidity[] = []; + + /** + * @generated from field: repeated neutron.dex.LimitOrderTranche inactive_limit_order_tranche_list = 3; + */ + inactiveLimitOrderTrancheList: LimitOrderTranche[] = []; + + /** + * @generated from field: repeated neutron.dex.LimitOrderTrancheUser limit_order_tranche_user_list = 4; + */ + limitOrderTrancheUserList: LimitOrderTrancheUser[] = []; + + /** + * @generated from field: repeated neutron.dex.PoolMetadata pool_metadata_list = 5; + */ + poolMetadataList: PoolMetadata[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: uint64 pool_count = 6; + */ + poolCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "tick_liquidity_list", kind: "message", T: TickLiquidity, repeated: true }, + { no: 3, name: "inactive_limit_order_tranche_list", kind: "message", T: LimitOrderTranche, repeated: true }, + { no: 4, name: "limit_order_tranche_user_list", kind: "message", T: LimitOrderTrancheUser, repeated: true }, + { no: 5, name: "pool_metadata_list", kind: "message", T: PoolMetadata, repeated: true }, + { no: 6, name: "pool_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/limit_order_expiration_pb.ts b/src/protobufs/neutron/dex/limit_order_expiration_pb.ts new file mode 100644 index 00000000..9cbc94a5 --- /dev/null +++ b/src/protobufs/neutron/dex/limit_order_expiration_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/limit_order_expiration.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * @generated from message neutron.dex.LimitOrderExpiration + */ +export class LimitOrderExpiration extends Message { + /** + * see limitOrderTranche.proto for details on expiration_time + * + * @generated from field: google.protobuf.Timestamp expiration_time = 1; + */ + expirationTime?: Timestamp; + + /** + * @generated from field: bytes tranche_ref = 2; + */ + trancheRef = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.LimitOrderExpiration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "expiration_time", kind: "message", T: Timestamp }, + { no: 2, name: "tranche_ref", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LimitOrderExpiration { + return new LimitOrderExpiration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LimitOrderExpiration { + return new LimitOrderExpiration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LimitOrderExpiration { + return new LimitOrderExpiration().fromJsonString(jsonString, options); + } + + static equals(a: LimitOrderExpiration | PlainMessage | undefined, b: LimitOrderExpiration | PlainMessage | undefined): boolean { + return proto3.util.equals(LimitOrderExpiration, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/limit_order_tranche_pb.ts b/src/protobufs/neutron/dex/limit_order_tranche_pb.ts new file mode 100644 index 00000000..0f7d8580 --- /dev/null +++ b/src/protobufs/neutron/dex/limit_order_tranche_pb.ts @@ -0,0 +1,175 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/limit_order_tranche.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { TradePairID } from "./trade_pair_id_pb.js"; + +/** + * @generated from message neutron.dex.LimitOrderTrancheKey + */ +export class LimitOrderTrancheKey extends Message { + /** + * @generated from field: neutron.dex.TradePairID trade_pair_id = 1; + */ + tradePairId?: TradePairID; + + /** + * @generated from field: int64 tick_index_taker_to_maker = 2; + */ + tickIndexTakerToMaker = protoInt64.zero; + + /** + * @generated from field: string tranche_key = 3; + */ + trancheKey = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.LimitOrderTrancheKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trade_pair_id", kind: "message", T: TradePairID }, + { no: 2, name: "tick_index_taker_to_maker", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LimitOrderTrancheKey { + return new LimitOrderTrancheKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LimitOrderTrancheKey { + return new LimitOrderTrancheKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LimitOrderTrancheKey { + return new LimitOrderTrancheKey().fromJsonString(jsonString, options); + } + + static equals(a: LimitOrderTrancheKey | PlainMessage | undefined, b: LimitOrderTrancheKey | PlainMessage | undefined): boolean { + return proto3.util.equals(LimitOrderTrancheKey, a, b); + } +} + +/** + * @generated from message neutron.dex.LimitOrderTranche + */ +export class LimitOrderTranche extends Message { + /** + * @generated from field: neutron.dex.LimitOrderTrancheKey key = 1; + */ + key?: LimitOrderTrancheKey; + + /** + * DEPRECATED: reserves_maker_denom will be removed in future release, `dec_reserves_maker_denom` should always be used. + * + * @generated from field: string reserves_maker_denom = 2 [deprecated = true]; + * @deprecated + */ + reservesMakerDenom = ""; + + /** + * DEPRECATED: reserves_taker_denom will be removed in future release, `dec_reserves_taker_denom` should always be used. + * + * @generated from field: string reserves_taker_denom = 3 [deprecated = true]; + * @deprecated + */ + reservesTakerDenom = ""; + + /** + * @generated from field: string total_maker_denom = 4; + */ + totalMakerDenom = ""; + + /** + * DEPRECATED: total_taker_denom will be removed in future release, `dec_total_taker_denom` should always be used. + * + * LimitOrders with expiration_time set are valid as long as blockTime <= expiration_time + * + * @generated from field: string total_taker_denom = 5 [deprecated = true]; + * @deprecated + */ + totalTakerDenom = ""; + + /** + * JIT orders also use expiration_time to handle deletion but represent a special case + * All JIT orders have a expiration_time of 0 and an exception is made to still treat these orders as live + * Order deletion still functions the same and the orders will be deleted at the end of the block + * + * @generated from field: google.protobuf.Timestamp expiration_time = 6; + */ + expirationTime?: Timestamp; + + /** + * DEPRECATED: price_taker_to_maker will be removed in future release, `maker_price` should always be used. + * + * @generated from field: string price_taker_to_maker = 7 [deprecated = true]; + * @deprecated + */ + priceTakerToMaker = ""; + + /** + * This is the price of the LimitOrder denominated in the opposite token. (ie. 1 TokenA with a maker_price of 10 is worth 10 TokenB ) + * + * @generated from field: string maker_price = 8; + */ + makerPrice = ""; + + /** + * @generated from field: string dec_reserves_maker_denom = 9; + */ + decReservesMakerDenom = ""; + + /** + * @generated from field: string dec_reserves_taker_denom = 10; + */ + decReservesTakerDenom = ""; + + /** + * @generated from field: string dec_total_taker_denom = 11; + */ + decTotalTakerDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.LimitOrderTranche"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "message", T: LimitOrderTrancheKey }, + { no: 2, name: "reserves_maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reserves_taker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "total_taker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "expiration_time", kind: "message", T: Timestamp }, + { no: 7, name: "price_taker_to_maker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "maker_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "dec_reserves_maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "dec_reserves_taker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "dec_total_taker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LimitOrderTranche { + return new LimitOrderTranche().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LimitOrderTranche { + return new LimitOrderTranche().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LimitOrderTranche { + return new LimitOrderTranche().fromJsonString(jsonString, options); + } + + static equals(a: LimitOrderTranche | PlainMessage | undefined, b: LimitOrderTranche | PlainMessage | undefined): boolean { + return proto3.util.equals(LimitOrderTranche, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/limit_order_tranche_user_pb.ts b/src/protobufs/neutron/dex/limit_order_tranche_user_pb.ts new file mode 100644 index 00000000..73fd3ff3 --- /dev/null +++ b/src/protobufs/neutron/dex/limit_order_tranche_user_pb.ts @@ -0,0 +1,91 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/limit_order_tranche_user.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { TradePairID } from "./trade_pair_id_pb.js"; +import { LimitOrderType } from "./tx_pb.js"; + +/** + * @generated from message neutron.dex.LimitOrderTrancheUser + */ +export class LimitOrderTrancheUser extends Message { + /** + * @generated from field: neutron.dex.TradePairID trade_pair_id = 1; + */ + tradePairId?: TradePairID; + + /** + * @generated from field: int64 tick_index_taker_to_maker = 2; + */ + tickIndexTakerToMaker = protoInt64.zero; + + /** + * @generated from field: string tranche_key = 3; + */ + trancheKey = ""; + + /** + * @generated from field: string address = 4; + */ + address = ""; + + /** + * @generated from field: string shares_owned = 5; + */ + sharesOwned = ""; + + /** + * @generated from field: string shares_withdrawn = 6; + */ + sharesWithdrawn = ""; + + /** + * TODO: remove this in next release. It is no longer used + * + * @generated from field: string shares_cancelled = 7; + */ + sharesCancelled = ""; + + /** + * @generated from field: neutron.dex.LimitOrderType order_type = 8; + */ + orderType = LimitOrderType.GOOD_TIL_CANCELLED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.LimitOrderTrancheUser"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trade_pair_id", kind: "message", T: TradePairID }, + { no: 2, name: "tick_index_taker_to_maker", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "shares_owned", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "shares_withdrawn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "shares_cancelled", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "order_type", kind: "enum", T: proto3.getEnumType(LimitOrderType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LimitOrderTrancheUser { + return new LimitOrderTrancheUser().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LimitOrderTrancheUser { + return new LimitOrderTrancheUser().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LimitOrderTrancheUser { + return new LimitOrderTrancheUser().fromJsonString(jsonString, options); + } + + static equals(a: LimitOrderTrancheUser | PlainMessage | undefined, b: LimitOrderTrancheUser | PlainMessage | undefined): boolean { + return proto3.util.equals(LimitOrderTrancheUser, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/pair_id_pb.ts b/src/protobufs/neutron/dex/pair_id_pb.ts new file mode 100644 index 00000000..352bbed4 --- /dev/null +++ b/src/protobufs/neutron/dex/pair_id_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/pair_id.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message neutron.dex.PairID + */ +export class PairID extends Message { + /** + * @generated from field: string token0 = 1; + */ + token0 = ""; + + /** + * @generated from field: string token1 = 2; + */ + token1 = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.PairID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PairID { + return new PairID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PairID { + return new PairID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PairID { + return new PairID().fromJsonString(jsonString, options); + } + + static equals(a: PairID | PlainMessage | undefined, b: PairID | PlainMessage | undefined): boolean { + return proto3.util.equals(PairID, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/params_pb.ts b/src/protobufs/neutron/dex/params_pb.ts new file mode 100644 index 00000000..7ca9efab --- /dev/null +++ b/src/protobufs/neutron/dex/params_pb.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/params.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.dex.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated uint64 fee_tiers = 1; + */ + feeTiers: bigint[] = []; + + /** + * @generated from field: bool paused = 3; + */ + paused = false; + + /** + * @generated from field: uint64 max_jits_per_block = 4; + */ + maxJitsPerBlock = protoInt64.zero; + + /** + * @generated from field: uint64 good_til_purge_allowance = 5; + */ + goodTilPurgeAllowance = protoInt64.zero; + + /** + * Whitelisted_lps have special LP privileges; + * currently, the only such privilege is depositing outside of the allowed fee_tiers. + * + * @generated from field: repeated string whitelisted_lps = 6; + */ + whitelistedLps: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_tiers", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "max_jits_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "good_til_purge_allowance", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "whitelisted_lps", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/pool_metadata_pb.ts b/src/protobufs/neutron/dex/pool_metadata_pb.ts new file mode 100644 index 00000000..934b49a8 --- /dev/null +++ b/src/protobufs/neutron/dex/pool_metadata_pb.ts @@ -0,0 +1,64 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/pool_metadata.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PairID } from "./pair_id_pb.js"; + +/** + * @generated from message neutron.dex.PoolMetadata + */ +export class PoolMetadata extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: int64 tick = 2; + */ + tick = protoInt64.zero; + + /** + * @generated from field: uint64 fee = 3; + */ + fee = protoInt64.zero; + + /** + * @generated from field: neutron.dex.PairID pair_id = 4; + */ + pairId?: PairID; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.PoolMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "fee", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pair_id", kind: "message", T: PairID }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolMetadata { + return new PoolMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolMetadata { + return new PoolMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolMetadata { + return new PoolMetadata().fromJsonString(jsonString, options); + } + + static equals(a: PoolMetadata | PlainMessage | undefined, b: PoolMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolMetadata, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/pool_pb.ts b/src/protobufs/neutron/dex/pool_pb.ts new file mode 100644 index 00000000..560aff0f --- /dev/null +++ b/src/protobufs/neutron/dex/pool_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/pool.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PoolReserves } from "./pool_reserves_pb.js"; + +/** + * @generated from message neutron.dex.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: neutron.dex.PoolReserves lower_tick0 = 2; + */ + lowerTick0?: PoolReserves; + + /** + * @generated from field: neutron.dex.PoolReserves upper_tick1 = 3; + */ + upperTick1?: PoolReserves; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lower_tick0", kind: "message", T: PoolReserves }, + { no: 3, name: "upper_tick1", kind: "message", T: PoolReserves }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/pool_reserves_pb.ts b/src/protobufs/neutron/dex/pool_reserves_pb.ts new file mode 100644 index 00000000..69b07547 --- /dev/null +++ b/src/protobufs/neutron/dex/pool_reserves_pb.ts @@ -0,0 +1,137 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/pool_reserves.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { TradePairID } from "./trade_pair_id_pb.js"; + +/** + * @generated from message neutron.dex.PoolReservesKey + */ +export class PoolReservesKey extends Message { + /** + * @generated from field: neutron.dex.TradePairID trade_pair_id = 1; + */ + tradePairId?: TradePairID; + + /** + * @generated from field: int64 tick_index_taker_to_maker = 2; + */ + tickIndexTakerToMaker = protoInt64.zero; + + /** + * @generated from field: uint64 fee = 3; + */ + fee = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.PoolReservesKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trade_pair_id", kind: "message", T: TradePairID }, + { no: 2, name: "tick_index_taker_to_maker", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "fee", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolReservesKey { + return new PoolReservesKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolReservesKey { + return new PoolReservesKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolReservesKey { + return new PoolReservesKey().fromJsonString(jsonString, options); + } + + static equals(a: PoolReservesKey | PlainMessage | undefined, b: PoolReservesKey | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolReservesKey, a, b); + } +} + +/** + * @generated from message neutron.dex.PoolReserves + */ +export class PoolReserves extends Message { + /** + * @generated from field: neutron.dex.PoolReservesKey key = 1; + */ + key?: PoolReservesKey; + + /** + * DEPRECATED: reserves_maker_denom will be removed in future release, `dec_reserves_maker_denom` should always be used. + * + * @generated from field: string reserves_maker_denom = 2 [deprecated = true]; + * @deprecated + */ + reservesMakerDenom = ""; + + /** + * DEPRECATED: price_taker_to_maker will be removed in future release, `maker_price` should always be used. + * + * @generated from field: string price_taker_to_maker = 3 [deprecated = true]; + * @deprecated + */ + priceTakerToMaker = ""; + + /** + * DEPRECATED: price_opposite_taker_maker was an internal implementation detail and will be removed in a future release. + * It is being kept strictly for backwards compatibility. The actual field value is unused. + * + * @generated from field: string price_opposite_taker_to_maker = 4 [deprecated = true]; + * @deprecated + */ + priceOppositeTakerToMaker = ""; + + /** + * This is the price of the PoolReserves denominated in the opposite token. (ie. 1 TokenA with a maker_price of 10 is worth 10 TokenB ) + * + * @generated from field: string maker_price = 5; + */ + makerPrice = ""; + + /** + * @generated from field: string dec_reserves_maker_denom = 6; + */ + decReservesMakerDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.PoolReserves"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "message", T: PoolReservesKey }, + { no: 2, name: "reserves_maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "price_taker_to_maker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "price_opposite_taker_to_maker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "maker_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "dec_reserves_maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolReserves { + return new PoolReserves().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolReserves { + return new PoolReserves().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolReserves { + return new PoolReserves().fromJsonString(jsonString, options); + } + + static equals(a: PoolReserves | PlainMessage | undefined, b: PoolReserves | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolReserves, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/precdec_coin_pb.ts b/src/protobufs/neutron/dex/precdec_coin_pb.ts new file mode 100644 index 00000000..a7fb815b --- /dev/null +++ b/src/protobufs/neutron/dex/precdec_coin_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/precdec_coin.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message neutron.dex.PrecDecCoin + */ +export class PrecDecCoin extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.PrecDecCoin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PrecDecCoin { + return new PrecDecCoin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PrecDecCoin { + return new PrecDecCoin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PrecDecCoin { + return new PrecDecCoin().fromJsonString(jsonString, options); + } + + static equals(a: PrecDecCoin | PlainMessage | undefined, b: PrecDecCoin | PlainMessage | undefined): boolean { + return proto3.util.equals(PrecDecCoin, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/query_cosmes.ts b/src/protobufs/neutron/dex/query_cosmes.ts new file mode 100644 index 00000000..b6298270 --- /dev/null +++ b/src/protobufs/neutron/dex/query_cosmes.ts @@ -0,0 +1,312 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/dex/query.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllInactiveLimitOrderTrancheRequest, QueryAllInactiveLimitOrderTrancheResponse, QueryAllLimitOrderTrancheRequest, QueryAllLimitOrderTrancheResponse, QueryAllLimitOrderTrancheUserByAddressRequest, QueryAllLimitOrderTrancheUserByAddressResponse, QueryAllLimitOrderTrancheUserRequest, QueryAllLimitOrderTrancheUserResponse, QueryAllPoolMetadataRequest, QueryAllPoolMetadataResponse, QueryAllPoolReservesRequest, QueryAllPoolReservesResponse, QueryAllTickLiquidityRequest, QueryAllTickLiquidityResponse, QueryAllUserDepositsRequest, QueryAllUserDepositsResponse, QueryEstimateMultiHopSwapRequest, QueryEstimateMultiHopSwapResponse, QueryEstimatePlaceLimitOrderRequest, QueryEstimatePlaceLimitOrderResponse, QueryGetInactiveLimitOrderTrancheRequest, QueryGetInactiveLimitOrderTrancheResponse, QueryGetLimitOrderTrancheRequest, QueryGetLimitOrderTrancheResponse, QueryGetLimitOrderTrancheUserRequest, QueryGetLimitOrderTrancheUserResponse, QueryGetPoolMetadataRequest, QueryGetPoolMetadataResponse, QueryGetPoolReservesRequest, QueryGetPoolReservesResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolByIDRequest, QueryPoolRequest, QueryPoolResponse, QuerySimulateCancelLimitOrderRequest, QuerySimulateCancelLimitOrderResponse, QuerySimulateDepositRequest, QuerySimulateDepositResponse, QuerySimulateMultiHopSwapRequest, QuerySimulateMultiHopSwapResponse, QuerySimulatePlaceLimitOrderRequest, QuerySimulatePlaceLimitOrderResponse, QuerySimulateWithdrawalRequest, QuerySimulateWithdrawalResponse, QuerySimulateWithdrawalWithSharesRequest, QuerySimulateWithdrawFilledLimitOrderRequest, QuerySimulateWithdrawFilledLimitOrderResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.dex.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.dex.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a LimitOrderTrancheUser by index. + * + * @generated from rpc neutron.dex.Query.LimitOrderTrancheUser + */ +export const QueryLimitOrderTrancheUserService = { + typeName: TYPE_NAME, + method: "LimitOrderTrancheUser", + Request: QueryGetLimitOrderTrancheUserRequest, + Response: QueryGetLimitOrderTrancheUserResponse, +} as const; + +/** + * Queries a list of LimitOrderTranchUser items. + * + * @generated from rpc neutron.dex.Query.LimitOrderTrancheUserAll + */ +export const QueryLimitOrderTrancheUserAllService = { + typeName: TYPE_NAME, + method: "LimitOrderTrancheUserAll", + Request: QueryAllLimitOrderTrancheUserRequest, + Response: QueryAllLimitOrderTrancheUserResponse, +} as const; + +/** + * Queries a list of LimitOrderTrancheUser items for a given address. + * + * @generated from rpc neutron.dex.Query.LimitOrderTrancheUserAllByAddress + */ +export const QueryLimitOrderTrancheUserAllByAddressService = { + typeName: TYPE_NAME, + method: "LimitOrderTrancheUserAllByAddress", + Request: QueryAllLimitOrderTrancheUserByAddressRequest, + Response: QueryAllLimitOrderTrancheUserByAddressResponse, +} as const; + +/** + * Queries a LimitOrderTranche by index. + * + * @generated from rpc neutron.dex.Query.LimitOrderTranche + */ +export const QueryLimitOrderTrancheService = { + typeName: TYPE_NAME, + method: "LimitOrderTranche", + Request: QueryGetLimitOrderTrancheRequest, + Response: QueryGetLimitOrderTrancheResponse, +} as const; + +/** + * Queries a list of LimitOrderTranche items for a given pairID / TokenIn + * combination. + * + * @generated from rpc neutron.dex.Query.LimitOrderTrancheAll + */ +export const QueryLimitOrderTrancheAllService = { + typeName: TYPE_NAME, + method: "LimitOrderTrancheAll", + Request: QueryAllLimitOrderTrancheRequest, + Response: QueryAllLimitOrderTrancheResponse, +} as const; + +/** + * Queries a list of UserDeposits items. + * + * @generated from rpc neutron.dex.Query.UserDepositsAll + */ +export const QueryUserDepositsAllService = { + typeName: TYPE_NAME, + method: "UserDepositsAll", + Request: QueryAllUserDepositsRequest, + Response: QueryAllUserDepositsResponse, +} as const; + +/** + * Queries a list of TickLiquidity items. + * + * @generated from rpc neutron.dex.Query.TickLiquidityAll + */ +export const QueryTickLiquidityAllService = { + typeName: TYPE_NAME, + method: "TickLiquidityAll", + Request: QueryAllTickLiquidityRequest, + Response: QueryAllTickLiquidityResponse, +} as const; + +/** + * Queries a InactiveLimitOrderTranche by index. + * + * @generated from rpc neutron.dex.Query.InactiveLimitOrderTranche + */ +export const QueryInactiveLimitOrderTrancheService = { + typeName: TYPE_NAME, + method: "InactiveLimitOrderTranche", + Request: QueryGetInactiveLimitOrderTrancheRequest, + Response: QueryGetInactiveLimitOrderTrancheResponse, +} as const; + +/** + * Queries a list of InactiveLimitOrderTranche items. + * + * @generated from rpc neutron.dex.Query.InactiveLimitOrderTrancheAll + */ +export const QueryInactiveLimitOrderTrancheAllService = { + typeName: TYPE_NAME, + method: "InactiveLimitOrderTrancheAll", + Request: QueryAllInactiveLimitOrderTrancheRequest, + Response: QueryAllInactiveLimitOrderTrancheResponse, +} as const; + +/** + * Queries a list of PoolReserves items. + * + * @generated from rpc neutron.dex.Query.PoolReservesAll + */ +export const QueryPoolReservesAllService = { + typeName: TYPE_NAME, + method: "PoolReservesAll", + Request: QueryAllPoolReservesRequest, + Response: QueryAllPoolReservesResponse, +} as const; + +/** + * Queries a PoolReserve by index + * + * @generated from rpc neutron.dex.Query.PoolReserves + */ +export const QueryPoolReservesService = { + typeName: TYPE_NAME, + method: "PoolReserves", + Request: QueryGetPoolReservesRequest, + Response: QueryGetPoolReservesResponse, +} as const; + +/** + * DEPRECATED Queries the simulated result of a multihop swap + * + * @generated from rpc neutron.dex.Query.EstimateMultiHopSwap + * @deprecated + */ +export const QueryEstimateMultiHopSwapService = { + typeName: TYPE_NAME, + method: "EstimateMultiHopSwap", + Request: QueryEstimateMultiHopSwapRequest, + Response: QueryEstimateMultiHopSwapResponse, +} as const; + +/** + * DEPRECATED Queries the simulated result of a PlaceLimit order + * + * @generated from rpc neutron.dex.Query.EstimatePlaceLimitOrder + * @deprecated + */ +export const QueryEstimatePlaceLimitOrderService = { + typeName: TYPE_NAME, + method: "EstimatePlaceLimitOrder", + Request: QueryEstimatePlaceLimitOrderRequest, + Response: QueryEstimatePlaceLimitOrderResponse, +} as const; + +/** + * Queries a pool by pair, tick and fee + * + * @generated from rpc neutron.dex.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryPoolRequest, + Response: QueryPoolResponse, +} as const; + +/** + * Queries a pool by ID + * + * @generated from rpc neutron.dex.Query.PoolByID + */ +export const QueryPoolByIDService = { + typeName: TYPE_NAME, + method: "PoolByID", + Request: QueryPoolByIDRequest, + Response: QueryPoolResponse, +} as const; + +/** + * Queries a PoolMetadata by ID + * + * @generated from rpc neutron.dex.Query.PoolMetadata + */ +export const QueryPoolMetadataService = { + typeName: TYPE_NAME, + method: "PoolMetadata", + Request: QueryGetPoolMetadataRequest, + Response: QueryGetPoolMetadataResponse, +} as const; + +/** + * Queries a list of PoolMetadata items. + * + * @generated from rpc neutron.dex.Query.PoolMetadataAll + */ +export const QueryPoolMetadataAllService = { + typeName: TYPE_NAME, + method: "PoolMetadataAll", + Request: QueryAllPoolMetadataRequest, + Response: QueryAllPoolMetadataResponse, +} as const; + +/** + * Simulates MsgDeposit + * + * @generated from rpc neutron.dex.Query.SimulateDeposit + */ +export const QuerySimulateDepositService = { + typeName: TYPE_NAME, + method: "SimulateDeposit", + Request: QuerySimulateDepositRequest, + Response: QuerySimulateDepositResponse, +} as const; + +/** + * Simulates MsgWithdrawal + * + * @generated from rpc neutron.dex.Query.SimulateWithdrawal + */ +export const QuerySimulateWithdrawalService = { + typeName: TYPE_NAME, + method: "SimulateWithdrawal", + Request: QuerySimulateWithdrawalRequest, + Response: QuerySimulateWithdrawalResponse, +} as const; + +/** + * Simulates MsgWithdrawalWithShares + * + * @generated from rpc neutron.dex.Query.SimulateWithdrawalWithShares + */ +export const QuerySimulateWithdrawalWithSharesService = { + typeName: TYPE_NAME, + method: "SimulateWithdrawalWithShares", + Request: QuerySimulateWithdrawalWithSharesRequest, + Response: QuerySimulateWithdrawalResponse, +} as const; + +/** + * Simulates MsgPlaceLimitOrder + * + * @generated from rpc neutron.dex.Query.SimulatePlaceLimitOrder + */ +export const QuerySimulatePlaceLimitOrderService = { + typeName: TYPE_NAME, + method: "SimulatePlaceLimitOrder", + Request: QuerySimulatePlaceLimitOrderRequest, + Response: QuerySimulatePlaceLimitOrderResponse, +} as const; + +/** + * Simulates MsgWithdrawFilledLimitOrder + * + * @generated from rpc neutron.dex.Query.SimulateWithdrawFilledLimitOrder + */ +export const QuerySimulateWithdrawFilledLimitOrderService = { + typeName: TYPE_NAME, + method: "SimulateWithdrawFilledLimitOrder", + Request: QuerySimulateWithdrawFilledLimitOrderRequest, + Response: QuerySimulateWithdrawFilledLimitOrderResponse, +} as const; + +/** + * Simulates MsgCancelLimitOrder + * + * @generated from rpc neutron.dex.Query.SimulateCancelLimitOrder + */ +export const QuerySimulateCancelLimitOrderService = { + typeName: TYPE_NAME, + method: "SimulateCancelLimitOrder", + Request: QuerySimulateCancelLimitOrderRequest, + Response: QuerySimulateCancelLimitOrderResponse, +} as const; + +/** + * Simulates MsgMultiHopSwap + * + * @generated from rpc neutron.dex.Query.SimulateMultiHopSwap + */ +export const QuerySimulateMultiHopSwapService = { + typeName: TYPE_NAME, + method: "SimulateMultiHopSwap", + Request: QuerySimulateMultiHopSwapRequest, + Response: QuerySimulateMultiHopSwapResponse, +} as const; + diff --git a/src/protobufs/neutron/dex/query_pb.ts b/src/protobufs/neutron/dex/query_pb.ts new file mode 100644 index 00000000..c1767c69 --- /dev/null +++ b/src/protobufs/neutron/dex/query_pb.ts @@ -0,0 +1,2091 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/query.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { LimitOrderTrancheUser } from "./limit_order_tranche_user_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { LimitOrderTranche } from "./limit_order_tranche_pb.js"; +import { DepositRecord } from "./deposit_record_pb.js"; +import { TickLiquidity } from "./tick_liquidity_pb.js"; +import { PoolReserves } from "./pool_reserves_pb.js"; +import { LimitOrderType, MsgCancelLimitOrder, MsgCancelLimitOrderResponse, MsgDeposit, MsgDepositResponse, MsgMultiHopSwap, MsgMultiHopSwapResponse, MsgPlaceLimitOrder, MsgPlaceLimitOrderResponse, MsgWithdrawal, MsgWithdrawalResponse, MsgWithdrawalWithShares, MsgWithdrawFilledLimitOrder, MsgWithdrawFilledLimitOrderResponse, MultiHopRoute } from "./tx_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Pool } from "./pool_pb.js"; +import { PoolMetadata } from "./pool_metadata_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.dex.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.dex.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.dex.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetLimitOrderTrancheUserRequest + */ +export class QueryGetLimitOrderTrancheUserRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string tranche_key = 2; + */ + trancheKey = ""; + + /** + * @generated from field: bool calc_withdrawable_shares = 3; + */ + calcWithdrawableShares = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetLimitOrderTrancheUserRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "calc_withdrawable_shares", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLimitOrderTrancheUserRequest { + return new QueryGetLimitOrderTrancheUserRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLimitOrderTrancheUserRequest { + return new QueryGetLimitOrderTrancheUserRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLimitOrderTrancheUserRequest { + return new QueryGetLimitOrderTrancheUserRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetLimitOrderTrancheUserRequest | PlainMessage | undefined, b: QueryGetLimitOrderTrancheUserRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetLimitOrderTrancheUserRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetLimitOrderTrancheUserResponse + */ +export class QueryGetLimitOrderTrancheUserResponse extends Message { + /** + * @generated from field: neutron.dex.LimitOrderTrancheUser limit_order_tranche_user = 1; + */ + limitOrderTrancheUser?: LimitOrderTrancheUser; + + /** + * @generated from field: string withdrawable_shares = 2; + */ + withdrawableShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetLimitOrderTrancheUserResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit_order_tranche_user", kind: "message", T: LimitOrderTrancheUser }, + { no: 2, name: "withdrawable_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLimitOrderTrancheUserResponse { + return new QueryGetLimitOrderTrancheUserResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLimitOrderTrancheUserResponse { + return new QueryGetLimitOrderTrancheUserResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLimitOrderTrancheUserResponse { + return new QueryGetLimitOrderTrancheUserResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetLimitOrderTrancheUserResponse | PlainMessage | undefined, b: QueryGetLimitOrderTrancheUserResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetLimitOrderTrancheUserResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheUserRequest + */ +export class QueryAllLimitOrderTrancheUserRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheUserRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheUserRequest { + return new QueryAllLimitOrderTrancheUserRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheUserRequest { + return new QueryAllLimitOrderTrancheUserRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheUserRequest { + return new QueryAllLimitOrderTrancheUserRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheUserRequest | PlainMessage | undefined, b: QueryAllLimitOrderTrancheUserRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheUserRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheUserResponse + */ +export class QueryAllLimitOrderTrancheUserResponse extends Message { + /** + * @generated from field: repeated neutron.dex.LimitOrderTrancheUser limit_order_tranche_user = 1; + */ + limitOrderTrancheUser: LimitOrderTrancheUser[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheUserResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit_order_tranche_user", kind: "message", T: LimitOrderTrancheUser, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheUserResponse { + return new QueryAllLimitOrderTrancheUserResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheUserResponse { + return new QueryAllLimitOrderTrancheUserResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheUserResponse { + return new QueryAllLimitOrderTrancheUserResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheUserResponse | PlainMessage | undefined, b: QueryAllLimitOrderTrancheUserResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheUserResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetLimitOrderTrancheRequest + */ +export class QueryGetLimitOrderTrancheRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: int64 tick_index = 2; + */ + tickIndex = protoInt64.zero; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string tranche_key = 4; + */ + trancheKey = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetLimitOrderTrancheRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLimitOrderTrancheRequest { + return new QueryGetLimitOrderTrancheRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLimitOrderTrancheRequest { + return new QueryGetLimitOrderTrancheRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLimitOrderTrancheRequest { + return new QueryGetLimitOrderTrancheRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetLimitOrderTrancheRequest | PlainMessage | undefined, b: QueryGetLimitOrderTrancheRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetLimitOrderTrancheRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetLimitOrderTrancheResponse + */ +export class QueryGetLimitOrderTrancheResponse extends Message { + /** + * @generated from field: neutron.dex.LimitOrderTranche limit_order_tranche = 1; + */ + limitOrderTranche?: LimitOrderTranche; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetLimitOrderTrancheResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit_order_tranche", kind: "message", T: LimitOrderTranche }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLimitOrderTrancheResponse { + return new QueryGetLimitOrderTrancheResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLimitOrderTrancheResponse { + return new QueryGetLimitOrderTrancheResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLimitOrderTrancheResponse { + return new QueryGetLimitOrderTrancheResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetLimitOrderTrancheResponse | PlainMessage | undefined, b: QueryGetLimitOrderTrancheResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetLimitOrderTrancheResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheRequest + */ +export class QueryAllLimitOrderTrancheRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheRequest { + return new QueryAllLimitOrderTrancheRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheRequest { + return new QueryAllLimitOrderTrancheRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheRequest { + return new QueryAllLimitOrderTrancheRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheRequest | PlainMessage | undefined, b: QueryAllLimitOrderTrancheRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheResponse + */ +export class QueryAllLimitOrderTrancheResponse extends Message { + /** + * @generated from field: repeated neutron.dex.LimitOrderTranche limit_order_tranche = 1; + */ + limitOrderTranche: LimitOrderTranche[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit_order_tranche", kind: "message", T: LimitOrderTranche, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheResponse { + return new QueryAllLimitOrderTrancheResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheResponse { + return new QueryAllLimitOrderTrancheResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheResponse { + return new QueryAllLimitOrderTrancheResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheResponse | PlainMessage | undefined, b: QueryAllLimitOrderTrancheResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllUserDepositsRequest + */ +export class QueryAllUserDepositsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + /** + * @generated from field: bool include_pool_data = 3; + */ + includePoolData = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllUserDepositsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + { no: 3, name: "include_pool_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUserDepositsRequest { + return new QueryAllUserDepositsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUserDepositsRequest { + return new QueryAllUserDepositsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUserDepositsRequest { + return new QueryAllUserDepositsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUserDepositsRequest | PlainMessage | undefined, b: QueryAllUserDepositsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUserDepositsRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllUserDepositsResponse + */ +export class QueryAllUserDepositsResponse extends Message { + /** + * @generated from field: repeated neutron.dex.DepositRecord deposits = 1; + */ + deposits: DepositRecord[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllUserDepositsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposits", kind: "message", T: DepositRecord, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUserDepositsResponse { + return new QueryAllUserDepositsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUserDepositsResponse { + return new QueryAllUserDepositsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUserDepositsResponse { + return new QueryAllUserDepositsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUserDepositsResponse | PlainMessage | undefined, b: QueryAllUserDepositsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUserDepositsResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheUserByAddressRequest + */ +export class QueryAllLimitOrderTrancheUserByAddressRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheUserByAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheUserByAddressRequest { + return new QueryAllLimitOrderTrancheUserByAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheUserByAddressRequest { + return new QueryAllLimitOrderTrancheUserByAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheUserByAddressRequest { + return new QueryAllLimitOrderTrancheUserByAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheUserByAddressRequest | PlainMessage | undefined, b: QueryAllLimitOrderTrancheUserByAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheUserByAddressRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllLimitOrderTrancheUserByAddressResponse + */ +export class QueryAllLimitOrderTrancheUserByAddressResponse extends Message { + /** + * @generated from field: repeated neutron.dex.LimitOrderTrancheUser limit_orders = 1; + */ + limitOrders: LimitOrderTrancheUser[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllLimitOrderTrancheUserByAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit_orders", kind: "message", T: LimitOrderTrancheUser, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLimitOrderTrancheUserByAddressResponse { + return new QueryAllLimitOrderTrancheUserByAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLimitOrderTrancheUserByAddressResponse { + return new QueryAllLimitOrderTrancheUserByAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLimitOrderTrancheUserByAddressResponse { + return new QueryAllLimitOrderTrancheUserByAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllLimitOrderTrancheUserByAddressResponse | PlainMessage | undefined, b: QueryAllLimitOrderTrancheUserByAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllLimitOrderTrancheUserByAddressResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllTickLiquidityRequest + */ +export class QueryAllTickLiquidityRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllTickLiquidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTickLiquidityRequest { + return new QueryAllTickLiquidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTickLiquidityRequest { + return new QueryAllTickLiquidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTickLiquidityRequest { + return new QueryAllTickLiquidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTickLiquidityRequest | PlainMessage | undefined, b: QueryAllTickLiquidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTickLiquidityRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllTickLiquidityResponse + */ +export class QueryAllTickLiquidityResponse extends Message { + /** + * @generated from field: repeated neutron.dex.TickLiquidity tick_liquidity = 1; + */ + tickLiquidity: TickLiquidity[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllTickLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tick_liquidity", kind: "message", T: TickLiquidity, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTickLiquidityResponse { + return new QueryAllTickLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTickLiquidityResponse { + return new QueryAllTickLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTickLiquidityResponse { + return new QueryAllTickLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTickLiquidityResponse | PlainMessage | undefined, b: QueryAllTickLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTickLiquidityResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetInactiveLimitOrderTrancheRequest + */ +export class QueryGetInactiveLimitOrderTrancheRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: int64 tick_index = 3; + */ + tickIndex = protoInt64.zero; + + /** + * @generated from field: string tranche_key = 4; + */ + trancheKey = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetInactiveLimitOrderTrancheRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInactiveLimitOrderTrancheRequest { + return new QueryGetInactiveLimitOrderTrancheRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInactiveLimitOrderTrancheRequest { + return new QueryGetInactiveLimitOrderTrancheRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInactiveLimitOrderTrancheRequest { + return new QueryGetInactiveLimitOrderTrancheRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetInactiveLimitOrderTrancheRequest | PlainMessage | undefined, b: QueryGetInactiveLimitOrderTrancheRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetInactiveLimitOrderTrancheRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetInactiveLimitOrderTrancheResponse + */ +export class QueryGetInactiveLimitOrderTrancheResponse extends Message { + /** + * @generated from field: neutron.dex.LimitOrderTranche inactive_limit_order_tranche = 1; + */ + inactiveLimitOrderTranche?: LimitOrderTranche; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetInactiveLimitOrderTrancheResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inactive_limit_order_tranche", kind: "message", T: LimitOrderTranche }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInactiveLimitOrderTrancheResponse { + return new QueryGetInactiveLimitOrderTrancheResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInactiveLimitOrderTrancheResponse { + return new QueryGetInactiveLimitOrderTrancheResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInactiveLimitOrderTrancheResponse { + return new QueryGetInactiveLimitOrderTrancheResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetInactiveLimitOrderTrancheResponse | PlainMessage | undefined, b: QueryGetInactiveLimitOrderTrancheResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetInactiveLimitOrderTrancheResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllInactiveLimitOrderTrancheRequest + */ +export class QueryAllInactiveLimitOrderTrancheRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllInactiveLimitOrderTrancheRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInactiveLimitOrderTrancheRequest { + return new QueryAllInactiveLimitOrderTrancheRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInactiveLimitOrderTrancheRequest { + return new QueryAllInactiveLimitOrderTrancheRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInactiveLimitOrderTrancheRequest { + return new QueryAllInactiveLimitOrderTrancheRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllInactiveLimitOrderTrancheRequest | PlainMessage | undefined, b: QueryAllInactiveLimitOrderTrancheRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllInactiveLimitOrderTrancheRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllInactiveLimitOrderTrancheResponse + */ +export class QueryAllInactiveLimitOrderTrancheResponse extends Message { + /** + * @generated from field: repeated neutron.dex.LimitOrderTranche inactive_limit_order_tranche = 1; + */ + inactiveLimitOrderTranche: LimitOrderTranche[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllInactiveLimitOrderTrancheResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inactive_limit_order_tranche", kind: "message", T: LimitOrderTranche, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInactiveLimitOrderTrancheResponse { + return new QueryAllInactiveLimitOrderTrancheResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInactiveLimitOrderTrancheResponse { + return new QueryAllInactiveLimitOrderTrancheResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInactiveLimitOrderTrancheResponse { + return new QueryAllInactiveLimitOrderTrancheResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllInactiveLimitOrderTrancheResponse | PlainMessage | undefined, b: QueryAllInactiveLimitOrderTrancheResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllInactiveLimitOrderTrancheResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllPoolReservesRequest + */ +export class QueryAllPoolReservesRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllPoolReservesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolReservesRequest { + return new QueryAllPoolReservesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolReservesRequest { + return new QueryAllPoolReservesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolReservesRequest { + return new QueryAllPoolReservesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolReservesRequest | PlainMessage | undefined, b: QueryAllPoolReservesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolReservesRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllPoolReservesResponse + */ +export class QueryAllPoolReservesResponse extends Message { + /** + * @generated from field: repeated neutron.dex.PoolReserves pool_reserves = 1; + */ + poolReserves: PoolReserves[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllPoolReservesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_reserves", kind: "message", T: PoolReserves, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolReservesResponse { + return new QueryAllPoolReservesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolReservesResponse { + return new QueryAllPoolReservesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolReservesResponse { + return new QueryAllPoolReservesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolReservesResponse | PlainMessage | undefined, b: QueryAllPoolReservesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolReservesResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetPoolReservesRequest + */ +export class QueryGetPoolReservesRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: int64 tick_index = 3; + */ + tickIndex = protoInt64.zero; + + /** + * @generated from field: uint64 fee = 4; + */ + fee = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetPoolReservesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "fee", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolReservesRequest { + return new QueryGetPoolReservesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolReservesRequest { + return new QueryGetPoolReservesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolReservesRequest { + return new QueryGetPoolReservesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolReservesRequest | PlainMessage | undefined, b: QueryGetPoolReservesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolReservesRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetPoolReservesResponse + */ +export class QueryGetPoolReservesResponse extends Message { + /** + * @generated from field: neutron.dex.PoolReserves pool_reserves = 1; + */ + poolReserves?: PoolReserves; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetPoolReservesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_reserves", kind: "message", T: PoolReserves }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolReservesResponse { + return new QueryGetPoolReservesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolReservesResponse { + return new QueryGetPoolReservesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolReservesResponse { + return new QueryGetPoolReservesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolReservesResponse | PlainMessage | undefined, b: QueryGetPoolReservesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolReservesResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryEstimateMultiHopSwapRequest + */ +export class QueryEstimateMultiHopSwapRequest extends Message { + /** + * DEPRECATED: Use QuerySimulateMultiHopSwap + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: repeated neutron.dex.MultiHopRoute routes = 3; + */ + routes: MultiHopRoute[] = []; + + /** + * @generated from field: string amount_in = 4; + */ + amountIn = ""; + + /** + * @generated from field: string exit_limit_price = 5; + */ + exitLimitPrice = ""; + + /** + * If pickBestRoute == true then all routes are run and the route with the + * best price is chosen otherwise, the first successful route is used. + * + * @generated from field: bool pick_best_route = 6; + */ + pickBestRoute = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryEstimateMultiHopSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "routes", kind: "message", T: MultiHopRoute, repeated: true }, + { no: 4, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "exit_limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "pick_best_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEstimateMultiHopSwapRequest { + return new QueryEstimateMultiHopSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEstimateMultiHopSwapRequest { + return new QueryEstimateMultiHopSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEstimateMultiHopSwapRequest { + return new QueryEstimateMultiHopSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEstimateMultiHopSwapRequest | PlainMessage | undefined, b: QueryEstimateMultiHopSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEstimateMultiHopSwapRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryEstimateMultiHopSwapResponse + */ +export class QueryEstimateMultiHopSwapResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin coin_out = 1; + */ + coinOut?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryEstimateMultiHopSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin_out", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEstimateMultiHopSwapResponse { + return new QueryEstimateMultiHopSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEstimateMultiHopSwapResponse { + return new QueryEstimateMultiHopSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEstimateMultiHopSwapResponse { + return new QueryEstimateMultiHopSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEstimateMultiHopSwapResponse | PlainMessage | undefined, b: QueryEstimateMultiHopSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEstimateMultiHopSwapResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryEstimatePlaceLimitOrderRequest + */ +export class QueryEstimatePlaceLimitOrderRequest extends Message { + /** + * DEPRECATED: Use QuerySimulatePlaceLimitOrder + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * @generated from field: int64 tick_index_in_to_out = 5; + */ + tickIndexInToOut = protoInt64.zero; + + /** + * @generated from field: string amount_in = 6; + */ + amountIn = ""; + + /** + * @generated from field: neutron.dex.LimitOrderType order_type = 7; + */ + orderType = LimitOrderType.GOOD_TIL_CANCELLED; + + /** + * expirationTime is only valid iff orderType == GOOD_TIL_TIME. + * + * @generated from field: google.protobuf.Timestamp expiration_time = 8; + */ + expirationTime?: Timestamp; + + /** + * @generated from field: string maxAmount_out = 9; + */ + maxAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryEstimatePlaceLimitOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "tick_index_in_to_out", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "order_type", kind: "enum", T: proto3.getEnumType(LimitOrderType) }, + { no: 8, name: "expiration_time", kind: "message", T: Timestamp }, + { no: 9, name: "maxAmount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEstimatePlaceLimitOrderRequest { + return new QueryEstimatePlaceLimitOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEstimatePlaceLimitOrderRequest { + return new QueryEstimatePlaceLimitOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEstimatePlaceLimitOrderRequest { + return new QueryEstimatePlaceLimitOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEstimatePlaceLimitOrderRequest | PlainMessage | undefined, b: QueryEstimatePlaceLimitOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEstimatePlaceLimitOrderRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryEstimatePlaceLimitOrderResponse + */ +export class QueryEstimatePlaceLimitOrderResponse extends Message { + /** + * Total amount of coin used for the limit order + * You can derive makerLimitInCoin using the equation: totalInCoin = + * swapInCoin + makerLimitInCoin + * + * @generated from field: cosmos.base.v1beta1.Coin total_in_coin = 1; + */ + totalInCoin?: Coin; + + /** + * Total amount of the token in that was immediately swapped for swapOutCoin + * + * @generated from field: cosmos.base.v1beta1.Coin swap_in_coin = 2; + */ + swapInCoin?: Coin; + + /** + * Total amount of coin received from the taker portion of the limit order + * This is the amount of coin immediately available in the users account after + * executing the limit order. It does not include any future proceeds from the + * maker portion which will have withdrawn in the future + * + * @generated from field: cosmos.base.v1beta1.Coin swap_out_coin = 3; + */ + swapOutCoin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryEstimatePlaceLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_in_coin", kind: "message", T: Coin }, + { no: 2, name: "swap_in_coin", kind: "message", T: Coin }, + { no: 3, name: "swap_out_coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEstimatePlaceLimitOrderResponse { + return new QueryEstimatePlaceLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEstimatePlaceLimitOrderResponse { + return new QueryEstimatePlaceLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEstimatePlaceLimitOrderResponse { + return new QueryEstimatePlaceLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEstimatePlaceLimitOrderResponse | PlainMessage | undefined, b: QueryEstimatePlaceLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEstimatePlaceLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryPoolRequest + */ +export class QueryPoolRequest extends Message { + /** + * @generated from field: string pair_id = 1; + */ + pairId = ""; + + /** + * @generated from field: int64 tick_index = 2; + */ + tickIndex = protoInt64.zero; + + /** + * @generated from field: uint64 fee = 3; + */ + fee = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "fee", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryPoolByIDRequest + */ +export class QueryPoolByIDRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryPoolByIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolByIDRequest { + return new QueryPoolByIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolByIDRequest { + return new QueryPoolByIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolByIDRequest { + return new QueryPoolByIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolByIDRequest | PlainMessage | undefined, b: QueryPoolByIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolByIDRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryPoolResponse + */ +export class QueryPoolResponse extends Message { + /** + * @generated from field: neutron.dex.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetPoolMetadataRequest + */ +export class QueryGetPoolMetadataRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetPoolMetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolMetadataRequest { + return new QueryGetPoolMetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolMetadataRequest { + return new QueryGetPoolMetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolMetadataRequest { + return new QueryGetPoolMetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolMetadataRequest | PlainMessage | undefined, b: QueryGetPoolMetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolMetadataRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryGetPoolMetadataResponse + */ +export class QueryGetPoolMetadataResponse extends Message { + /** + * @generated from field: neutron.dex.PoolMetadata Pool_metadata = 1; + */ + PoolMetadata?: PoolMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryGetPoolMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Pool_metadata", kind: "message", T: PoolMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolMetadataResponse { + return new QueryGetPoolMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolMetadataResponse { + return new QueryGetPoolMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolMetadataResponse { + return new QueryGetPoolMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolMetadataResponse | PlainMessage | undefined, b: QueryGetPoolMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolMetadataResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllPoolMetadataRequest + */ +export class QueryAllPoolMetadataRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllPoolMetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolMetadataRequest { + return new QueryAllPoolMetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolMetadataRequest { + return new QueryAllPoolMetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolMetadataRequest { + return new QueryAllPoolMetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolMetadataRequest | PlainMessage | undefined, b: QueryAllPoolMetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolMetadataRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QueryAllPoolMetadataResponse + */ +export class QueryAllPoolMetadataResponse extends Message { + /** + * @generated from field: repeated neutron.dex.PoolMetadata pool_metadata = 1; + */ + poolMetadata: PoolMetadata[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QueryAllPoolMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_metadata", kind: "message", T: PoolMetadata, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolMetadataResponse { + return new QueryAllPoolMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolMetadataResponse { + return new QueryAllPoolMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolMetadataResponse { + return new QueryAllPoolMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolMetadataResponse | PlainMessage | undefined, b: QueryAllPoolMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolMetadataResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateDepositRequest + */ +export class QuerySimulateDepositRequest extends Message { + /** + * @generated from field: neutron.dex.MsgDeposit msg = 1; + */ + msg?: MsgDeposit; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateDepositRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgDeposit }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateDepositRequest { + return new QuerySimulateDepositRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateDepositRequest { + return new QuerySimulateDepositRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateDepositRequest { + return new QuerySimulateDepositRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateDepositRequest | PlainMessage | undefined, b: QuerySimulateDepositRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateDepositRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateDepositResponse + */ +export class QuerySimulateDepositResponse extends Message { + /** + * @generated from field: neutron.dex.MsgDepositResponse resp = 1; + */ + resp?: MsgDepositResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgDepositResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateDepositResponse { + return new QuerySimulateDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateDepositResponse { + return new QuerySimulateDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateDepositResponse { + return new QuerySimulateDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateDepositResponse | PlainMessage | undefined, b: QuerySimulateDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateDepositResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateWithdrawalRequest + */ +export class QuerySimulateWithdrawalRequest extends Message { + /** + * @generated from field: neutron.dex.MsgWithdrawal msg = 1; + */ + msg?: MsgWithdrawal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateWithdrawalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgWithdrawal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateWithdrawalRequest { + return new QuerySimulateWithdrawalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateWithdrawalRequest { + return new QuerySimulateWithdrawalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateWithdrawalRequest { + return new QuerySimulateWithdrawalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateWithdrawalRequest | PlainMessage | undefined, b: QuerySimulateWithdrawalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateWithdrawalRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateWithdrawalWithSharesRequest + */ +export class QuerySimulateWithdrawalWithSharesRequest extends Message { + /** + * @generated from field: neutron.dex.MsgWithdrawalWithShares msg = 1; + */ + msg?: MsgWithdrawalWithShares; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateWithdrawalWithSharesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgWithdrawalWithShares }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateWithdrawalWithSharesRequest { + return new QuerySimulateWithdrawalWithSharesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateWithdrawalWithSharesRequest { + return new QuerySimulateWithdrawalWithSharesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateWithdrawalWithSharesRequest { + return new QuerySimulateWithdrawalWithSharesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateWithdrawalWithSharesRequest | PlainMessage | undefined, b: QuerySimulateWithdrawalWithSharesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateWithdrawalWithSharesRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateWithdrawalResponse + */ +export class QuerySimulateWithdrawalResponse extends Message { + /** + * @generated from field: neutron.dex.MsgWithdrawalResponse resp = 1; + */ + resp?: MsgWithdrawalResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateWithdrawalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgWithdrawalResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateWithdrawalResponse { + return new QuerySimulateWithdrawalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateWithdrawalResponse { + return new QuerySimulateWithdrawalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateWithdrawalResponse { + return new QuerySimulateWithdrawalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateWithdrawalResponse | PlainMessage | undefined, b: QuerySimulateWithdrawalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateWithdrawalResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulatePlaceLimitOrderRequest + */ +export class QuerySimulatePlaceLimitOrderRequest extends Message { + /** + * @generated from field: neutron.dex.MsgPlaceLimitOrder msg = 1; + */ + msg?: MsgPlaceLimitOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulatePlaceLimitOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgPlaceLimitOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulatePlaceLimitOrderRequest { + return new QuerySimulatePlaceLimitOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulatePlaceLimitOrderRequest { + return new QuerySimulatePlaceLimitOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulatePlaceLimitOrderRequest { + return new QuerySimulatePlaceLimitOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulatePlaceLimitOrderRequest | PlainMessage | undefined, b: QuerySimulatePlaceLimitOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulatePlaceLimitOrderRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulatePlaceLimitOrderResponse + */ +export class QuerySimulatePlaceLimitOrderResponse extends Message { + /** + * @generated from field: neutron.dex.MsgPlaceLimitOrderResponse resp = 1; + */ + resp?: MsgPlaceLimitOrderResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulatePlaceLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgPlaceLimitOrderResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulatePlaceLimitOrderResponse { + return new QuerySimulatePlaceLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulatePlaceLimitOrderResponse { + return new QuerySimulatePlaceLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulatePlaceLimitOrderResponse { + return new QuerySimulatePlaceLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulatePlaceLimitOrderResponse | PlainMessage | undefined, b: QuerySimulatePlaceLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulatePlaceLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateWithdrawFilledLimitOrderRequest + */ +export class QuerySimulateWithdrawFilledLimitOrderRequest extends Message { + /** + * @generated from field: neutron.dex.MsgWithdrawFilledLimitOrder msg = 1; + */ + msg?: MsgWithdrawFilledLimitOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateWithdrawFilledLimitOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgWithdrawFilledLimitOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateWithdrawFilledLimitOrderRequest { + return new QuerySimulateWithdrawFilledLimitOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateWithdrawFilledLimitOrderRequest { + return new QuerySimulateWithdrawFilledLimitOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateWithdrawFilledLimitOrderRequest { + return new QuerySimulateWithdrawFilledLimitOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateWithdrawFilledLimitOrderRequest | PlainMessage | undefined, b: QuerySimulateWithdrawFilledLimitOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateWithdrawFilledLimitOrderRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateWithdrawFilledLimitOrderResponse + */ +export class QuerySimulateWithdrawFilledLimitOrderResponse extends Message { + /** + * @generated from field: neutron.dex.MsgWithdrawFilledLimitOrderResponse resp = 1; + */ + resp?: MsgWithdrawFilledLimitOrderResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateWithdrawFilledLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgWithdrawFilledLimitOrderResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateWithdrawFilledLimitOrderResponse { + return new QuerySimulateWithdrawFilledLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateWithdrawFilledLimitOrderResponse { + return new QuerySimulateWithdrawFilledLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateWithdrawFilledLimitOrderResponse { + return new QuerySimulateWithdrawFilledLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateWithdrawFilledLimitOrderResponse | PlainMessage | undefined, b: QuerySimulateWithdrawFilledLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateWithdrawFilledLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateCancelLimitOrderRequest + */ +export class QuerySimulateCancelLimitOrderRequest extends Message { + /** + * @generated from field: neutron.dex.MsgCancelLimitOrder msg = 1; + */ + msg?: MsgCancelLimitOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateCancelLimitOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgCancelLimitOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateCancelLimitOrderRequest { + return new QuerySimulateCancelLimitOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateCancelLimitOrderRequest { + return new QuerySimulateCancelLimitOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateCancelLimitOrderRequest { + return new QuerySimulateCancelLimitOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateCancelLimitOrderRequest | PlainMessage | undefined, b: QuerySimulateCancelLimitOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateCancelLimitOrderRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateCancelLimitOrderResponse + */ +export class QuerySimulateCancelLimitOrderResponse extends Message { + /** + * @generated from field: neutron.dex.MsgCancelLimitOrderResponse resp = 1; + */ + resp?: MsgCancelLimitOrderResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateCancelLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgCancelLimitOrderResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateCancelLimitOrderResponse { + return new QuerySimulateCancelLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateCancelLimitOrderResponse { + return new QuerySimulateCancelLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateCancelLimitOrderResponse { + return new QuerySimulateCancelLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateCancelLimitOrderResponse | PlainMessage | undefined, b: QuerySimulateCancelLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateCancelLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateMultiHopSwapRequest + */ +export class QuerySimulateMultiHopSwapRequest extends Message { + /** + * @generated from field: neutron.dex.MsgMultiHopSwap msg = 1; + */ + msg?: MsgMultiHopSwap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateMultiHopSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg", kind: "message", T: MsgMultiHopSwap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateMultiHopSwapRequest { + return new QuerySimulateMultiHopSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateMultiHopSwapRequest { + return new QuerySimulateMultiHopSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateMultiHopSwapRequest { + return new QuerySimulateMultiHopSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateMultiHopSwapRequest | PlainMessage | undefined, b: QuerySimulateMultiHopSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateMultiHopSwapRequest, a, b); + } +} + +/** + * @generated from message neutron.dex.QuerySimulateMultiHopSwapResponse + */ +export class QuerySimulateMultiHopSwapResponse extends Message { + /** + * @generated from field: neutron.dex.MsgMultiHopSwapResponse resp = 1; + */ + resp?: MsgMultiHopSwapResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.QuerySimulateMultiHopSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resp", kind: "message", T: MsgMultiHopSwapResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateMultiHopSwapResponse { + return new QuerySimulateMultiHopSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateMultiHopSwapResponse { + return new QuerySimulateMultiHopSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateMultiHopSwapResponse { + return new QuerySimulateMultiHopSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateMultiHopSwapResponse | PlainMessage | undefined, b: QuerySimulateMultiHopSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateMultiHopSwapResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/tick_liquidity_pb.ts b/src/protobufs/neutron/dex/tick_liquidity_pb.ts new file mode 100644 index 00000000..40a94ae3 --- /dev/null +++ b/src/protobufs/neutron/dex/tick_liquidity_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/tick_liquidity.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PoolReserves } from "./pool_reserves_pb.js"; +import { LimitOrderTranche } from "./limit_order_tranche_pb.js"; + +/** + * @generated from message neutron.dex.TickLiquidity + */ +export class TickLiquidity extends Message { + /** + * @generated from oneof neutron.dex.TickLiquidity.liquidity + */ + liquidity: { + /** + * @generated from field: neutron.dex.PoolReserves pool_reserves = 1; + */ + value: PoolReserves; + case: "poolReserves"; + } | { + /** + * @generated from field: neutron.dex.LimitOrderTranche limit_order_tranche = 2; + */ + value: LimitOrderTranche; + case: "limitOrderTranche"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.TickLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_reserves", kind: "message", T: PoolReserves, oneof: "liquidity" }, + { no: 2, name: "limit_order_tranche", kind: "message", T: LimitOrderTranche, oneof: "liquidity" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TickLiquidity { + return new TickLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TickLiquidity { + return new TickLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TickLiquidity { + return new TickLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: TickLiquidity | PlainMessage | undefined, b: TickLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(TickLiquidity, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/trade_pair_id_pb.ts b/src/protobufs/neutron/dex/trade_pair_id_pb.ts new file mode 100644 index 00000000..a43d8e83 --- /dev/null +++ b/src/protobufs/neutron/dex/trade_pair_id_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/trade_pair_id.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message neutron.dex.TradePairID + */ +export class TradePairID extends Message { + /** + * @generated from field: string maker_denom = 2; + */ + makerDenom = ""; + + /** + * @generated from field: string taker_denom = 3; + */ + takerDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.TradePairID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "maker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "taker_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TradePairID { + return new TradePairID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TradePairID { + return new TradePairID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TradePairID { + return new TradePairID().fromJsonString(jsonString, options); + } + + static equals(a: TradePairID | PlainMessage | undefined, b: TradePairID | PlainMessage | undefined): boolean { + return proto3.util.equals(TradePairID, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/tx_cosmes.ts b/src/protobufs/neutron/dex/tx_cosmes.ts new file mode 100644 index 00000000..712e5b23 --- /dev/null +++ b/src/protobufs/neutron/dex/tx_cosmes.ts @@ -0,0 +1,91 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/dex/tx.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCancelLimitOrder, MsgCancelLimitOrderResponse, MsgDeposit, MsgDepositResponse, MsgMultiHopSwap, MsgMultiHopSwapResponse, MsgPlaceLimitOrder, MsgPlaceLimitOrderResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawal, MsgWithdrawalResponse, MsgWithdrawalWithShares, MsgWithdrawFilledLimitOrder, MsgWithdrawFilledLimitOrderResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.dex.Msg"; + +/** + * @generated from rpc neutron.dex.Msg.Deposit + */ +export const MsgDepositService = { + typeName: TYPE_NAME, + method: "Deposit", + Request: MsgDeposit, + Response: MsgDepositResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.Withdrawal + */ +export const MsgWithdrawalService = { + typeName: TYPE_NAME, + method: "Withdrawal", + Request: MsgWithdrawal, + Response: MsgWithdrawalResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.WithdrawalWithShares + */ +export const MsgWithdrawalWithSharesService = { + typeName: TYPE_NAME, + method: "WithdrawalWithShares", + Request: MsgWithdrawalWithShares, + Response: MsgWithdrawalResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.PlaceLimitOrder + */ +export const MsgPlaceLimitOrderService = { + typeName: TYPE_NAME, + method: "PlaceLimitOrder", + Request: MsgPlaceLimitOrder, + Response: MsgPlaceLimitOrderResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.WithdrawFilledLimitOrder + */ +export const MsgWithdrawFilledLimitOrderService = { + typeName: TYPE_NAME, + method: "WithdrawFilledLimitOrder", + Request: MsgWithdrawFilledLimitOrder, + Response: MsgWithdrawFilledLimitOrderResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.CancelLimitOrder + */ +export const MsgCancelLimitOrderService = { + typeName: TYPE_NAME, + method: "CancelLimitOrder", + Request: MsgCancelLimitOrder, + Response: MsgCancelLimitOrderResponse, +} as const; + +/** + * @generated from rpc neutron.dex.Msg.MultiHopSwap + */ +export const MsgMultiHopSwapService = { + typeName: TYPE_NAME, + method: "MultiHopSwap", + Request: MsgMultiHopSwap, + Response: MsgMultiHopSwapResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc neutron.dex.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/dex/tx_pb.ts b/src/protobufs/neutron/dex/tx_pb.ts new file mode 100644 index 00000000..4685e6b7 --- /dev/null +++ b/src/protobufs/neutron/dex/tx_pb.ts @@ -0,0 +1,1155 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/tx.proto (package neutron.dex, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { PrecDecCoin } from "./precdec_coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from enum neutron.dex.LimitOrderType + */ +export enum LimitOrderType { + /** + * @generated from enum value: GOOD_TIL_CANCELLED = 0; + */ + GOOD_TIL_CANCELLED = 0, + + /** + * @generated from enum value: FILL_OR_KILL = 1; + */ + FILL_OR_KILL = 1, + + /** + * @generated from enum value: IMMEDIATE_OR_CANCEL = 2; + */ + IMMEDIATE_OR_CANCEL = 2, + + /** + * @generated from enum value: JUST_IN_TIME = 3; + */ + JUST_IN_TIME = 3, + + /** + * @generated from enum value: GOOD_TIL_TIME = 4; + */ + GOOD_TIL_TIME = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(LimitOrderType) +proto3.util.setEnumType(LimitOrderType, "neutron.dex.LimitOrderType", [ + { no: 0, name: "GOOD_TIL_CANCELLED" }, + { no: 1, name: "FILL_OR_KILL" }, + { no: 2, name: "IMMEDIATE_OR_CANCEL" }, + { no: 3, name: "JUST_IN_TIME" }, + { no: 4, name: "GOOD_TIL_TIME" }, +]); + +/** + * @generated from message neutron.dex.DepositOptions + */ +export class DepositOptions extends Message { + /** + * @generated from field: bool disable_autoswap = 1; + */ + disableAutoswap = false; + + /** + * @generated from field: bool fail_tx_on_bel = 2; + */ + failTxOnBel = false; + + /** + * @generated from field: bool swap_on_deposit = 3; + */ + swapOnDeposit = false; + + /** + * @generated from field: uint64 swap_on_deposit_slop_tolerance_bps = 4 [deprecated = true]; + * @deprecated + */ + swapOnDepositSlopToleranceBps = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.DepositOptions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "disable_autoswap", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "fail_tx_on_bel", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "swap_on_deposit", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "swap_on_deposit_slop_tolerance_bps", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DepositOptions { + return new DepositOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DepositOptions { + return new DepositOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DepositOptions { + return new DepositOptions().fromJsonString(jsonString, options); + } + + static equals(a: DepositOptions | PlainMessage | undefined, b: DepositOptions | PlainMessage | undefined): boolean { + return proto3.util.equals(DepositOptions, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgDeposit + */ +export class MsgDeposit extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: string token_a = 3; + */ + tokenA = ""; + + /** + * @generated from field: string token_b = 4; + */ + tokenB = ""; + + /** + * @generated from field: repeated string amounts_a = 5; + */ + amountsA: string[] = []; + + /** + * @generated from field: repeated string amounts_b = 6; + */ + amountsB: string[] = []; + + /** + * @generated from field: repeated int64 tick_indexes_a_to_b = 7; + */ + tickIndexesAToB: bigint[] = []; + + /** + * @generated from field: repeated uint64 fees = 8; + */ + fees: bigint[] = []; + + /** + * @generated from field: repeated neutron.dex.DepositOptions options = 9; + */ + options: DepositOptions[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_a", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_b", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amounts_a", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "amounts_b", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 7, name: "tick_indexes_a_to_b", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 8, name: "fees", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 9, name: "options", kind: "message", T: DepositOptions, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { + return new MsgDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { + return new MsgDeposit().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeposit, a, b); + } +} + +/** + * @generated from message neutron.dex.FailedDeposit + */ +export class FailedDeposit extends Message { + /** + * @generated from field: uint64 deposit_idx = 1; + */ + depositIdx = protoInt64.zero; + + /** + * @generated from field: string error = 2; + */ + error = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.FailedDeposit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deposit_idx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FailedDeposit { + return new FailedDeposit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FailedDeposit { + return new FailedDeposit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FailedDeposit { + return new FailedDeposit().fromJsonString(jsonString, options); + } + + static equals(a: FailedDeposit | PlainMessage | undefined, b: FailedDeposit | PlainMessage | undefined): boolean { + return proto3.util.equals(FailedDeposit, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgDepositResponse + */ +export class MsgDepositResponse extends Message { + /** + * reserve0_deposited is DEPRECATED + * + * @generated from field: repeated string reserve0_deposited = 1 [deprecated = true]; + * @deprecated + */ + reserve0Deposited: string[] = []; + + /** + * reserve0_deposited is DEPRECATED + * + * @generated from field: repeated string reserve1_deposited = 2 [deprecated = true]; + * @deprecated + */ + reserve1Deposited: string[] = []; + + /** + * @generated from field: repeated neutron.dex.FailedDeposit failed_deposits = 3; + */ + failedDeposits: FailedDeposit[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin shares_issued = 4; + */ + sharesIssued: Coin[] = []; + + /** + * @generated from field: repeated string dec_reserve0_deposited = 5; + */ + decReserve0Deposited: string[] = []; + + /** + * @generated from field: repeated string dec_reserve1_deposited = 6; + */ + decReserve1Deposited: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgDepositResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reserve0_deposited", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "reserve1_deposited", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "failed_deposits", kind: "message", T: FailedDeposit, repeated: true }, + { no: 4, name: "shares_issued", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "dec_reserve0_deposited", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "dec_reserve1_deposited", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { + return new MsgDepositResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgWithdrawal + */ +export class MsgWithdrawal extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: string token_a = 3; + */ + tokenA = ""; + + /** + * @generated from field: string token_b = 4; + */ + tokenB = ""; + + /** + * @generated from field: repeated string shares_to_remove = 5; + */ + sharesToRemove: string[] = []; + + /** + * @generated from field: repeated int64 tick_indexes_a_to_b = 6; + */ + tickIndexesAToB: bigint[] = []; + + /** + * @generated from field: repeated uint64 fees = 7; + */ + fees: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgWithdrawal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_a", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_b", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "shares_to_remove", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "tick_indexes_a_to_b", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 7, name: "fees", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawal { + return new MsgWithdrawal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawal { + return new MsgWithdrawal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawal { + return new MsgWithdrawal().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawal | PlainMessage | undefined, b: MsgWithdrawal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawal, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgWithdrawalWithShares + */ +export class MsgWithdrawalWithShares extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin shares_to_remove = 3; + */ + sharesToRemove: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgWithdrawalWithShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares_to_remove", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawalWithShares { + return new MsgWithdrawalWithShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawalWithShares { + return new MsgWithdrawalWithShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawalWithShares { + return new MsgWithdrawalWithShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawalWithShares | PlainMessage | undefined, b: MsgWithdrawalWithShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawalWithShares, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgWithdrawalResponse + */ +export class MsgWithdrawalResponse extends Message { + /** + * reserve0_withdrawn is DEPRECATED + * + * @generated from field: string reserve0_withdrawn = 1 [deprecated = true]; + * @deprecated + */ + reserve0Withdrawn = ""; + + /** + * reserve1_withdrawn is DEPRECATED + * + * @generated from field: string reserve1_withdrawn = 2 [deprecated = true]; + * @deprecated + */ + reserve1Withdrawn = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin shares_burned = 3; + */ + sharesBurned: Coin[] = []; + + /** + * @generated from field: string dec_reserve0_withdrawn = 4; + */ + decReserve0Withdrawn = ""; + + /** + * @generated from field: string dec_reserve1_withdrawn = 5; + */ + decReserve1Withdrawn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgWithdrawalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reserve0_withdrawn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reserve1_withdrawn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares_burned", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "dec_reserve0_withdrawn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "dec_reserve1_withdrawn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawalResponse { + return new MsgWithdrawalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawalResponse { + return new MsgWithdrawalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawalResponse { + return new MsgWithdrawalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawalResponse | PlainMessage | undefined, b: MsgWithdrawalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawalResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgPlaceLimitOrder + */ +export class MsgPlaceLimitOrder extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * DEPRECATED: tick_index_in_to_out will be removed in future release; limit_sell_price should be used instead. + * + * @generated from field: int64 tick_index_in_to_out = 5 [deprecated = true]; + * @deprecated + */ + tickIndexInToOut = protoInt64.zero; + + /** + * @generated from field: string amount_in = 7; + */ + amountIn = ""; + + /** + * @generated from field: neutron.dex.LimitOrderType order_type = 8; + */ + orderType = LimitOrderType.GOOD_TIL_CANCELLED; + + /** + * expirationTime is only valid iff orderType == GOOD_TIL_TIME. + * + * @generated from field: google.protobuf.Timestamp expiration_time = 9; + */ + expirationTime?: Timestamp; + + /** + * @generated from field: string max_amount_out = 10; + */ + maxAmountOut = ""; + + /** + * @generated from field: string limit_sell_price = 11; + */ + limitSellPrice = ""; + + /** + * min_average_sell_price is DEPRECATED + * + * @generated from field: string min_average_sell_price = 12 [deprecated = true]; + * @deprecated + */ + minAverageSellPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgPlaceLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "tick_index_in_to_out", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "order_type", kind: "enum", T: proto3.getEnumType(LimitOrderType) }, + { no: 9, name: "expiration_time", kind: "message", T: Timestamp }, + { no: 10, name: "max_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "limit_sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "min_average_sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPlaceLimitOrder { + return new MsgPlaceLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPlaceLimitOrder { + return new MsgPlaceLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPlaceLimitOrder { + return new MsgPlaceLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgPlaceLimitOrder | PlainMessage | undefined, b: MsgPlaceLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPlaceLimitOrder, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgPlaceLimitOrderResponse + */ +export class MsgPlaceLimitOrderResponse extends Message { + /** + * @generated from field: string trancheKey = 1; + */ + trancheKey = ""; + + /** + * Total amount of coin used for the limit order + * + * @generated from field: cosmos.base.v1beta1.Coin coin_in = 2; + */ + coinIn?: Coin; + + /** + * taker_coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin taker_coin_out = 3 [deprecated = true]; + * @deprecated + */ + takerCoinOut?: Coin; + + /** + * taker_coin_in is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin taker_coin_in = 4 [deprecated = true]; + * @deprecated + */ + takerCoinIn?: Coin; + + /** + * Total amount of coin received from the taker portion of the limit order + * This is the amount of coin immediately available in the users account after + * executing the limit order. It does not include any future proceeds from the + * maker portion which will have withdrawn in the future + * + * @generated from field: neutron.dex.PrecDecCoin dec_taker_coin_out = 5; + */ + decTakerCoinOut?: PrecDecCoin; + + /** + * Total amount of the token in that was immediately swapped for takerOutCoin + * + * @generated from field: neutron.dex.PrecDecCoin dec_taker_coin_in = 6; + */ + decTakerCoinIn?: PrecDecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgPlaceLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "trancheKey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin_in", kind: "message", T: Coin }, + { no: 3, name: "taker_coin_out", kind: "message", T: Coin }, + { no: 4, name: "taker_coin_in", kind: "message", T: Coin }, + { no: 5, name: "dec_taker_coin_out", kind: "message", T: PrecDecCoin }, + { no: 6, name: "dec_taker_coin_in", kind: "message", T: PrecDecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPlaceLimitOrderResponse { + return new MsgPlaceLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPlaceLimitOrderResponse { + return new MsgPlaceLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPlaceLimitOrderResponse { + return new MsgPlaceLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPlaceLimitOrderResponse | PlainMessage | undefined, b: MsgPlaceLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPlaceLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgWithdrawFilledLimitOrder + */ +export class MsgWithdrawFilledLimitOrder extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string tranche_key = 2; + */ + trancheKey = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgWithdrawFilledLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawFilledLimitOrder { + return new MsgWithdrawFilledLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawFilledLimitOrder { + return new MsgWithdrawFilledLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawFilledLimitOrder { + return new MsgWithdrawFilledLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawFilledLimitOrder | PlainMessage | undefined, b: MsgWithdrawFilledLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawFilledLimitOrder, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgWithdrawFilledLimitOrderResponse + */ +export class MsgWithdrawFilledLimitOrderResponse extends Message { + /** + * taker_coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin taker_coin_out = 1 [deprecated = true]; + * @deprecated + */ + takerCoinOut?: Coin; + + /** + * maker_coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin maker_coin_out = 2 [deprecated = true]; + * @deprecated + */ + makerCoinOut?: Coin; + + /** + * Total amount of taker reserves that were withdrawn + * + * @generated from field: neutron.dex.PrecDecCoin dec_taker_coin_out = 3; + */ + decTakerCoinOut?: PrecDecCoin; + + /** + * Total amount of maker reserves that were withdrawn --only applies to inactive LimitOrders + * + * @generated from field: neutron.dex.PrecDecCoin dec_maker_coin_out = 4; + */ + decMakerCoinOut?: PrecDecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgWithdrawFilledLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taker_coin_out", kind: "message", T: Coin }, + { no: 2, name: "maker_coin_out", kind: "message", T: Coin }, + { no: 3, name: "dec_taker_coin_out", kind: "message", T: PrecDecCoin }, + { no: 4, name: "dec_maker_coin_out", kind: "message", T: PrecDecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawFilledLimitOrderResponse { + return new MsgWithdrawFilledLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawFilledLimitOrderResponse { + return new MsgWithdrawFilledLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawFilledLimitOrderResponse { + return new MsgWithdrawFilledLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawFilledLimitOrderResponse | PlainMessage | undefined, b: MsgWithdrawFilledLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawFilledLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgCancelLimitOrder + */ +export class MsgCancelLimitOrder extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string tranche_key = 2; + */ + trancheKey = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgCancelLimitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tranche_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelLimitOrder { + return new MsgCancelLimitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelLimitOrder { + return new MsgCancelLimitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelLimitOrder { + return new MsgCancelLimitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelLimitOrder | PlainMessage | undefined, b: MsgCancelLimitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelLimitOrder, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgCancelLimitOrderResponse + */ +export class MsgCancelLimitOrderResponse extends Message { + /** + * taker_coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin taker_coin_out = 1 [deprecated = true]; + * @deprecated + */ + takerCoinOut?: Coin; + + /** + * maker_coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin maker_coin_out = 2 [deprecated = true]; + * @deprecated + */ + makerCoinOut?: Coin; + + /** + * Total amount of taker reserves that were withdrawn + * + * @generated from field: neutron.dex.PrecDecCoin dec_taker_coin_out = 3; + */ + decTakerCoinOut?: PrecDecCoin; + + /** + * Total amount of maker reserves that were canceled + * + * @generated from field: neutron.dex.PrecDecCoin dec_maker_coin_out = 4; + */ + decMakerCoinOut?: PrecDecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgCancelLimitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taker_coin_out", kind: "message", T: Coin }, + { no: 2, name: "maker_coin_out", kind: "message", T: Coin }, + { no: 3, name: "dec_taker_coin_out", kind: "message", T: PrecDecCoin }, + { no: 4, name: "dec_maker_coin_out", kind: "message", T: PrecDecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelLimitOrderResponse { + return new MsgCancelLimitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelLimitOrderResponse { + return new MsgCancelLimitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelLimitOrderResponse { + return new MsgCancelLimitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelLimitOrderResponse | PlainMessage | undefined, b: MsgCancelLimitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelLimitOrderResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MultiHopRoute + */ +export class MultiHopRoute extends Message { + /** + * @generated from field: repeated string hops = 1; + */ + hops: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MultiHopRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiHopRoute { + return new MultiHopRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiHopRoute { + return new MultiHopRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiHopRoute { + return new MultiHopRoute().fromJsonString(jsonString, options); + } + + static equals(a: MultiHopRoute | PlainMessage | undefined, b: MultiHopRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiHopRoute, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgMultiHopSwap + */ +export class MsgMultiHopSwap extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string receiver = 2; + */ + receiver = ""; + + /** + * @generated from field: repeated neutron.dex.MultiHopRoute routes = 3; + */ + routes: MultiHopRoute[] = []; + + /** + * @generated from field: string amount_in = 4; + */ + amountIn = ""; + + /** + * @generated from field: string exit_limit_price = 5; + */ + exitLimitPrice = ""; + + /** + * If pickBestRoute == true then all routes are run and the route with the + * best price is chosen otherwise, the first successful route is used. + * + * @generated from field: bool pick_best_route = 6; + */ + pickBestRoute = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgMultiHopSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "routes", kind: "message", T: MultiHopRoute, repeated: true }, + { no: 4, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "exit_limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "pick_best_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMultiHopSwap { + return new MsgMultiHopSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMultiHopSwap { + return new MsgMultiHopSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMultiHopSwap { + return new MsgMultiHopSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgMultiHopSwap | PlainMessage | undefined, b: MsgMultiHopSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMultiHopSwap, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgMultiHopSwapResponse + */ +export class MsgMultiHopSwapResponse extends Message { + /** + * coin_out is DEPRECATED + * + * @generated from field: cosmos.base.v1beta1.Coin coin_out = 1 [deprecated = true]; + * @deprecated + */ + coinOut?: Coin; + + /** + * @generated from field: neutron.dex.MultiHopRoute route = 2; + */ + route?: MultiHopRoute; + + /** + * dust is DEPRECATED + * + * @generated from field: repeated cosmos.base.v1beta1.Coin dust = 3 [deprecated = true]; + * @deprecated + */ + dust: Coin[] = []; + + /** + * @generated from field: neutron.dex.PrecDecCoin dec_coin_out = 4; + */ + decCoinOut?: PrecDecCoin; + + /** + * @generated from field: repeated neutron.dex.PrecDecCoin dec_dust = 5; + */ + decDust: PrecDecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgMultiHopSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin_out", kind: "message", T: Coin }, + { no: 2, name: "route", kind: "message", T: MultiHopRoute }, + { no: 3, name: "dust", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "dec_coin_out", kind: "message", T: PrecDecCoin }, + { no: 5, name: "dec_dust", kind: "message", T: PrecDecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMultiHopSwapResponse { + return new MsgMultiHopSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMultiHopSwapResponse { + return new MsgMultiHopSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMultiHopSwapResponse { + return new MsgMultiHopSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMultiHopSwapResponse | PlainMessage | undefined, b: MsgMultiHopSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMultiHopSwapResponse, a, b); + } +} + +/** + * @generated from message neutron.dex.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.dex.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.dex.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/dex/v2/params_pb.ts b/src/protobufs/neutron/dex/v2/params_pb.ts new file mode 100644 index 00000000..ee8336e0 --- /dev/null +++ b/src/protobufs/neutron/dex/v2/params_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dex/v2/params.proto (package neutron.dex.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.dex.v2.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated uint64 fee_tiers = 1; + */ + feeTiers: bigint[] = []; + + /** + * @generated from field: string max_true_taker_spread = 2; + */ + maxTrueTakerSpread = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dex.v2.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_tiers", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 2, name: "max_true_taker_spread", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/dynamicfees/v1/genesis_pb.ts b/src/protobufs/neutron/dynamicfees/v1/genesis_pb.ts new file mode 100644 index 00000000..e4fc474b --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/genesis.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the dynamicfees module's genesis state. + * + * @generated from message neutron.dynamicfees.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.dynamicfees.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/dynamicfees/v1/params_pb.ts b/src/protobufs/neutron/dynamicfees/v1/params_pb.ts new file mode 100644 index 00000000..05166227 --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/params_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/params.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.dynamicfees.v1.Params + */ +export class Params extends Message { + /** + * List of asset prices by the NTRN + * it's used in cooperation with feemarket module + * ntrn_prices is a data source to convert gas_price from feemarket's base_denom (untrn) + * into a given asset + * + * @generated from field: repeated cosmos.base.v1beta1.DecCoin ntrn_prices = 1; + */ + ntrnPrices: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ntrn_prices", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/dynamicfees/v1/query_cosmes.ts b/src/protobufs/neutron/dynamicfees/v1/query_cosmes.ts new file mode 100644 index 00000000..51876751 --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/query.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.dynamicfees.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.dynamicfees.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/dynamicfees/v1/query_pb.ts b/src/protobufs/neutron/dynamicfees/v1/query_pb.ts new file mode 100644 index 00000000..3d752214 --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/query.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.dynamicfees.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.dynamicfees.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.dynamicfees.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/dynamicfees/v1/tx_cosmes.ts b/src/protobufs/neutron/dynamicfees/v1/tx_cosmes.ts new file mode 100644 index 00000000..f1c68088 --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/tx.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.dynamicfees.v1.Msg"; + +/** + * @generated from rpc neutron.dynamicfees.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/dynamicfees/v1/tx_pb.ts b/src/protobufs/neutron/dynamicfees/v1/tx_pb.ts new file mode 100644 index 00000000..d6a25ee2 --- /dev/null +++ b/src/protobufs/neutron/dynamicfees/v1/tx_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/dynamicfees/v1/tx.proto (package neutron.dynamicfees.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * @generated from message neutron.dynamicfees.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/dynamicfees parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.dynamicfees.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message neutron.dynamicfees.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.dynamicfees.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/feeburner/genesis_pb.ts b/src/protobufs/neutron/feeburner/genesis_pb.ts new file mode 100644 index 00000000..02c91b5d --- /dev/null +++ b/src/protobufs/neutron/feeburner/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feeburner/genesis.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { TotalBurnedNeutronsAmount } from "./total_burned_neutrons_amount_pb.js"; + +/** + * GenesisState defines the feeburner module's genesis state. + * + * @generated from message neutron.feeburner.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.feeburner.Params params = 1; + */ + params?: Params; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: neutron.feeburner.TotalBurnedNeutronsAmount total_burned_neutrons_amount = 2; + */ + totalBurnedNeutronsAmount?: TotalBurnedNeutronsAmount; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "total_burned_neutrons_amount", kind: "message", T: TotalBurnedNeutronsAmount }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/feeburner/params_pb.ts b/src/protobufs/neutron/feeburner/params_pb.ts new file mode 100644 index 00000000..9de8b968 --- /dev/null +++ b/src/protobufs/neutron/feeburner/params_pb.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feeburner/params.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.feeburner.Params + */ +export class Params extends Message { + /** + * Defines Neutron denom, which will be burned during fee processing, any + * other denom will be sent to Treasury + * + * @generated from field: string neutron_denom = 1; + */ + neutronDenom = ""; + + /** + * Deprecated in v0.4.4. Is not used anymore + * + * @generated from field: string reserve_address = 2; + */ + reserveAddress = ""; + + /** + * Defines treasury address + * + * @generated from field: string treasury_address = 3; + */ + treasuryAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "neutron_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reserve_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "treasury_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/feeburner/query_cosmes.ts b/src/protobufs/neutron/feeburner/query_cosmes.ts new file mode 100644 index 00000000..e5843863 --- /dev/null +++ b/src/protobufs/neutron/feeburner/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/feeburner/query.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse, QueryTotalBurnedNeutronsAmountRequest, QueryTotalBurnedNeutronsAmountResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.feeburner.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.feeburner.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * TotalBurnedNeutronsAmount queries total amount of burned neutron fees. + * + * @generated from rpc neutron.feeburner.Query.TotalBurnedNeutronsAmount + */ +export const QueryTotalBurnedNeutronsAmountService = { + typeName: TYPE_NAME, + method: "TotalBurnedNeutronsAmount", + Request: QueryTotalBurnedNeutronsAmountRequest, + Response: QueryTotalBurnedNeutronsAmountResponse, +} as const; + diff --git a/src/protobufs/neutron/feeburner/query_pb.ts b/src/protobufs/neutron/feeburner/query_pb.ts new file mode 100644 index 00000000..5eedc768 --- /dev/null +++ b/src/protobufs/neutron/feeburner/query_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feeburner/query.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { TotalBurnedNeutronsAmount } from "./total_burned_neutrons_amount_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.feeburner.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.feeburner.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.feeburner.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryTotalBurnedNeutronsAmountRequest is request type for the + * Query/QueryTotalBurnedNeutronsAmount method. + * + * @generated from message neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest + */ +export class QueryTotalBurnedNeutronsAmountRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.QueryTotalBurnedNeutronsAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBurnedNeutronsAmountRequest { + return new QueryTotalBurnedNeutronsAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBurnedNeutronsAmountRequest { + return new QueryTotalBurnedNeutronsAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBurnedNeutronsAmountRequest { + return new QueryTotalBurnedNeutronsAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBurnedNeutronsAmountRequest | PlainMessage | undefined, b: QueryTotalBurnedNeutronsAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBurnedNeutronsAmountRequest, a, b); + } +} + +/** + * QueryTotalBurnedNeutronsAmountResponse is response type for the + * Query/QueryTotalBurnedNeutronsAmount method. + * + * @generated from message neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse + */ +export class QueryTotalBurnedNeutronsAmountResponse extends Message { + /** + * @generated from field: neutron.feeburner.TotalBurnedNeutronsAmount total_burned_neutrons_amount = 1; + */ + totalBurnedNeutronsAmount?: TotalBurnedNeutronsAmount; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.QueryTotalBurnedNeutronsAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_burned_neutrons_amount", kind: "message", T: TotalBurnedNeutronsAmount }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalBurnedNeutronsAmountResponse { + return new QueryTotalBurnedNeutronsAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalBurnedNeutronsAmountResponse { + return new QueryTotalBurnedNeutronsAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTotalBurnedNeutronsAmountResponse { + return new QueryTotalBurnedNeutronsAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTotalBurnedNeutronsAmountResponse | PlainMessage | undefined, b: QueryTotalBurnedNeutronsAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTotalBurnedNeutronsAmountResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/feeburner/total_burned_neutrons_amount_pb.ts b/src/protobufs/neutron/feeburner/total_burned_neutrons_amount_pb.ts new file mode 100644 index 00000000..8cf59c6b --- /dev/null +++ b/src/protobufs/neutron/feeburner/total_burned_neutrons_amount_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feeburner/total_burned_neutrons_amount.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * TotalBurnedNeutronsAmount defines total amount of burned neutron fees + * + * @generated from message neutron.feeburner.TotalBurnedNeutronsAmount + */ +export class TotalBurnedNeutronsAmount extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 1; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.TotalBurnedNeutronsAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalBurnedNeutronsAmount { + return new TotalBurnedNeutronsAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalBurnedNeutronsAmount { + return new TotalBurnedNeutronsAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalBurnedNeutronsAmount { + return new TotalBurnedNeutronsAmount().fromJsonString(jsonString, options); + } + + static equals(a: TotalBurnedNeutronsAmount | PlainMessage | undefined, b: TotalBurnedNeutronsAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalBurnedNeutronsAmount, a, b); + } +} + diff --git a/src/protobufs/neutron/feeburner/tx_cosmes.ts b/src/protobufs/neutron/feeburner/tx_cosmes.ts new file mode 100644 index 00000000..65f38b3c --- /dev/null +++ b/src/protobufs/neutron/feeburner/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/feeburner/tx.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.feeburner.Msg"; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc neutron.feeburner.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/feeburner/tx_pb.ts b/src/protobufs/neutron/feeburner/tx_pb.ts new file mode 100644 index 00000000..fae5bbca --- /dev/null +++ b/src/protobufs/neutron/feeburner/tx_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feeburner/tx.proto (package neutron.feeburner, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.feeburner.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/feeburner parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.feeburner.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.feeburner.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feeburner.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/feerefunder/fee_pb.ts b/src/protobufs/neutron/feerefunder/fee_pb.ts new file mode 100644 index 00000000..bd1a0f9f --- /dev/null +++ b/src/protobufs/neutron/feerefunder/fee_pb.ts @@ -0,0 +1,115 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feerefunder/fee.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Fee defines the ICS29 receive, acknowledgement and timeout fees + * + * @generated from message neutron.feerefunder.Fee + */ +export class Fee extends Message { + /** + * the packet receive fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin recv_fee = 1; + */ + recvFee: Coin[] = []; + + /** + * the packet acknowledgement fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin ack_fee = 2; + */ + ackFee: Coin[] = []; + + /** + * the packet timeout fee + * + * @generated from field: repeated cosmos.base.v1beta1.Coin timeout_fee = 3; + */ + timeoutFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.Fee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recv_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "ack_fee", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "timeout_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Fee { + return new Fee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Fee { + return new Fee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Fee { + return new Fee().fromJsonString(jsonString, options); + } + + static equals(a: Fee | PlainMessage | undefined, b: Fee | PlainMessage | undefined): boolean { + return proto3.util.equals(Fee, a, b); + } +} + +/** + * @generated from message neutron.feerefunder.PacketID + */ +export class PacketID extends Message { + /** + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.PacketID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketID { + return new PacketID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketID { + return new PacketID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketID { + return new PacketID().fromJsonString(jsonString, options); + } + + static equals(a: PacketID | PlainMessage | undefined, b: PacketID | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketID, a, b); + } +} + diff --git a/src/protobufs/neutron/feerefunder/genesis_pb.ts b/src/protobufs/neutron/feerefunder/genesis_pb.ts new file mode 100644 index 00000000..a5848dc7 --- /dev/null +++ b/src/protobufs/neutron/feerefunder/genesis_pb.ts @@ -0,0 +1,106 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feerefunder/genesis.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Fee, PacketID } from "./fee_pb.js"; + +/** + * GenesisState defines the fee module's genesis state. + * + * @generated from message neutron.feerefunder.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.feerefunder.Params params = 1; + */ + params?: Params; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated neutron.feerefunder.FeeInfo fee_infos = 2; + */ + feeInfos: FeeInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "fee_infos", kind: "message", T: FeeInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message neutron.feerefunder.FeeInfo + */ +export class FeeInfo extends Message { + /** + * @generated from field: string payer = 1; + */ + payer = ""; + + /** + * @generated from field: neutron.feerefunder.PacketID packet_id = 2; + */ + packetId?: PacketID; + + /** + * @generated from field: neutron.feerefunder.Fee fee = 3; + */ + fee?: Fee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.FeeInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "payer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "packet_id", kind: "message", T: PacketID }, + { no: 3, name: "fee", kind: "message", T: Fee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeInfo { + return new FeeInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeInfo { + return new FeeInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeInfo { + return new FeeInfo().fromJsonString(jsonString, options); + } + + static equals(a: FeeInfo | PlainMessage | undefined, b: FeeInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeInfo, a, b); + } +} + diff --git a/src/protobufs/neutron/feerefunder/params_pb.ts b/src/protobufs/neutron/feerefunder/params_pb.ts new file mode 100644 index 00000000..8644950c --- /dev/null +++ b/src/protobufs/neutron/feerefunder/params_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feerefunder/params.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Fee } from "./fee_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.feerefunder.Params + */ +export class Params extends Message { + /** + * @generated from field: neutron.feerefunder.Fee min_fee = 1; + */ + minFee?: Fee; + + /** + * @generated from field: bool fee_enabled = 2; + */ + feeEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_fee", kind: "message", T: Fee }, + { no: 2, name: "fee_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/feerefunder/query_cosmes.ts b/src/protobufs/neutron/feerefunder/query_cosmes.ts new file mode 100644 index 00000000..f6c4ca6d --- /dev/null +++ b/src/protobufs/neutron/feerefunder/query_cosmes.ts @@ -0,0 +1,31 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/feerefunder/query.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { FeeInfoRequest, FeeInfoResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.feerefunder.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.feerefunder.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * @generated from rpc neutron.feerefunder.Query.FeeInfo + */ +export const QueryFeeInfoService = { + typeName: TYPE_NAME, + method: "FeeInfo", + Request: FeeInfoRequest, + Response: FeeInfoResponse, +} as const; + diff --git a/src/protobufs/neutron/feerefunder/query_pb.ts b/src/protobufs/neutron/feerefunder/query_pb.ts new file mode 100644 index 00000000..42ae30e8 --- /dev/null +++ b/src/protobufs/neutron/feerefunder/query_pb.ts @@ -0,0 +1,170 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feerefunder/query.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { FeeInfo } from "./genesis_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.feerefunder.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.feerefunder.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.feerefunder.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message neutron.feerefunder.FeeInfoRequest + */ +export class FeeInfoRequest extends Message { + /** + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.FeeInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeInfoRequest { + return new FeeInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeInfoRequest { + return new FeeInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeInfoRequest { + return new FeeInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: FeeInfoRequest | PlainMessage | undefined, b: FeeInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeInfoRequest, a, b); + } +} + +/** + * @generated from message neutron.feerefunder.FeeInfoResponse + */ +export class FeeInfoResponse extends Message { + /** + * @generated from field: neutron.feerefunder.FeeInfo fee_info = 1; + */ + feeInfo?: FeeInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.FeeInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_info", kind: "message", T: FeeInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeInfoResponse { + return new FeeInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeInfoResponse { + return new FeeInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeInfoResponse { + return new FeeInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: FeeInfoResponse | PlainMessage | undefined, b: FeeInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeInfoResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/feerefunder/tx_cosmes.ts b/src/protobufs/neutron/feerefunder/tx_cosmes.ts new file mode 100644 index 00000000..a6044abd --- /dev/null +++ b/src/protobufs/neutron/feerefunder/tx_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/feerefunder/tx.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.feerefunder.Msg"; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc neutron.feerefunder.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/feerefunder/tx_pb.ts b/src/protobufs/neutron/feerefunder/tx_pb.ts new file mode 100644 index 00000000..01b855e5 --- /dev/null +++ b/src/protobufs/neutron/feerefunder/tx_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/feerefunder/tx.proto (package neutron.feerefunder, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.feerefunder.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/feerefunder parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.feerefunder.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.feerefunder.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.feerefunder.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/harpoon/genesis_pb.ts b/src/protobufs/neutron/harpoon/genesis_pb.ts new file mode 100644 index 00000000..0b622423 --- /dev/null +++ b/src/protobufs/neutron/harpoon/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/harpoon/genesis.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { HookSubscriptions } from "./hooks_pb.js"; + +/** + * Harpoon module genesis state. + * + * @generated from message neutron.harpoon.GenesisState + */ +export class GenesisState extends Message { + /** + * List of hooks + * + * @generated from field: repeated neutron.harpoon.HookSubscriptions hook_subscriptions = 1; + */ + hookSubscriptions: HookSubscriptions[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hook_subscriptions", kind: "message", T: HookSubscriptions, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/harpoon/hooks_pb.ts b/src/protobufs/neutron/harpoon/hooks_pb.ts new file mode 100644 index 00000000..23faf5d5 --- /dev/null +++ b/src/protobufs/neutron/harpoon/hooks_pb.ts @@ -0,0 +1,161 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/harpoon/hooks.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Hook types that can be subscribed to. + * + * @generated from enum neutron.harpoon.HookType + */ +export enum HookType { + /** + * @generated from enum value: HOOK_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Triggered after validator is created + * + * @generated from enum value: HOOK_TYPE_AFTER_VALIDATOR_CREATED = 1; + */ + AFTER_VALIDATOR_CREATED = 1, + + /** + * Triggered before validator is modified + * + * @generated from enum value: HOOK_TYPE_BEFORE_VALIDATOR_MODIFIED = 2; + */ + BEFORE_VALIDATOR_MODIFIED = 2, + + /** + * Triggered after validator is removed + * + * @generated from enum value: HOOK_TYPE_AFTER_VALIDATOR_REMOVED = 3; + */ + AFTER_VALIDATOR_REMOVED = 3, + + /** + * Triggered after validator is bonded + * + * @generated from enum value: HOOK_TYPE_AFTER_VALIDATOR_BONDED = 4; + */ + AFTER_VALIDATOR_BONDED = 4, + + /** + * Triggered after validator begins unbonding + * + * @generated from enum value: HOOK_TYPE_AFTER_VALIDATOR_BEGIN_UNBONDING = 5; + */ + AFTER_VALIDATOR_BEGIN_UNBONDING = 5, + + /** + * Triggered before delegation is created + * + * @generated from enum value: HOOK_TYPE_BEFORE_DELEGATION_CREATED = 6; + */ + BEFORE_DELEGATION_CREATED = 6, + + /** + * Triggered before delegation's shares are modified + * + * @generated from enum value: HOOK_TYPE_BEFORE_DELEGATION_SHARES_MODIFIED = 7; + */ + BEFORE_DELEGATION_SHARES_MODIFIED = 7, + + /** + * Triggered before delegation is removed + * + * @generated from enum value: HOOK_TYPE_BEFORE_DELEGATION_REMOVED = 8; + */ + BEFORE_DELEGATION_REMOVED = 8, + + /** + * Triggered after delegation is modified + * + * @generated from enum value: HOOK_TYPE_AFTER_DELEGATION_MODIFIED = 9; + */ + AFTER_DELEGATION_MODIFIED = 9, + + /** + * Triggered before validator is slashed + * + * @generated from enum value: HOOK_TYPE_BEFORE_VALIDATOR_SLASHED = 10; + */ + BEFORE_VALIDATOR_SLASHED = 10, + + /** + * Triggered after unbonding is initiated + * + * @generated from enum value: HOOK_TYPE_AFTER_UNBONDING_INITIATED = 11; + */ + AFTER_UNBONDING_INITIATED = 11, +} +// Retrieve enum metadata with: proto3.getEnumType(HookType) +proto3.util.setEnumType(HookType, "neutron.harpoon.HookType", [ + { no: 0, name: "HOOK_TYPE_UNSPECIFIED" }, + { no: 1, name: "HOOK_TYPE_AFTER_VALIDATOR_CREATED" }, + { no: 2, name: "HOOK_TYPE_BEFORE_VALIDATOR_MODIFIED" }, + { no: 3, name: "HOOK_TYPE_AFTER_VALIDATOR_REMOVED" }, + { no: 4, name: "HOOK_TYPE_AFTER_VALIDATOR_BONDED" }, + { no: 5, name: "HOOK_TYPE_AFTER_VALIDATOR_BEGIN_UNBONDING" }, + { no: 6, name: "HOOK_TYPE_BEFORE_DELEGATION_CREATED" }, + { no: 7, name: "HOOK_TYPE_BEFORE_DELEGATION_SHARES_MODIFIED" }, + { no: 8, name: "HOOK_TYPE_BEFORE_DELEGATION_REMOVED" }, + { no: 9, name: "HOOK_TYPE_AFTER_DELEGATION_MODIFIED" }, + { no: 10, name: "HOOK_TYPE_BEFORE_VALIDATOR_SLASHED" }, + { no: 11, name: "HOOK_TYPE_AFTER_UNBONDING_INITIATED" }, +]); + +/** + * Specifies how subscribed contract_addresses are stored in the KV store for each hook type. + * + * @generated from message neutron.harpoon.HookSubscriptions + */ +export class HookSubscriptions extends Message { + /** + * The hook type being subscribed to. + * + * @generated from field: neutron.harpoon.HookType hook_type = 1; + */ + hookType = HookType.UNSPECIFIED; + + /** + * Contract addresses subscribed to this hook type. + * + * @generated from field: repeated string contract_addresses = 2; + */ + contractAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.HookSubscriptions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hook_type", kind: "enum", T: proto3.getEnumType(HookType) }, + { no: 2, name: "contract_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HookSubscriptions { + return new HookSubscriptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HookSubscriptions { + return new HookSubscriptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HookSubscriptions { + return new HookSubscriptions().fromJsonString(jsonString, options); + } + + static equals(a: HookSubscriptions | PlainMessage | undefined, b: HookSubscriptions | PlainMessage | undefined): boolean { + return proto3.util.equals(HookSubscriptions, a, b); + } +} + diff --git a/src/protobufs/neutron/harpoon/query_cosmes.ts b/src/protobufs/neutron/harpoon/query_cosmes.ts new file mode 100644 index 00000000..0d7c3bb8 --- /dev/null +++ b/src/protobufs/neutron/harpoon/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/harpoon/query.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QuerySubscribedContractsRequest, QuerySubscribedContractsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.harpoon.Query"; + +/** + * Retrieves contracts subscribed to a specific hook type. + * + * @generated from rpc neutron.harpoon.Query.SubscribedContracts + */ +export const QuerySubscribedContractsService = { + typeName: TYPE_NAME, + method: "SubscribedContracts", + Request: QuerySubscribedContractsRequest, + Response: QuerySubscribedContractsResponse, +} as const; + diff --git a/src/protobufs/neutron/harpoon/query_pb.ts b/src/protobufs/neutron/harpoon/query_pb.ts new file mode 100644 index 00000000..08a6bc36 --- /dev/null +++ b/src/protobufs/neutron/harpoon/query_pb.ts @@ -0,0 +1,91 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/harpoon/query.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { HookType } from "./hooks_pb.js"; + +/** + * Request type for the Query/SubscribedContracts RPC method. + * + * @generated from message neutron.harpoon.QuerySubscribedContractsRequest + */ +export class QuerySubscribedContractsRequest extends Message { + /** + * The response will include only contract addresses for this hook type. + * + * @generated from field: neutron.harpoon.HookType hook_type = 1; + */ + hookType = HookType.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.QuerySubscribedContractsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hook_type", kind: "enum", T: proto3.getEnumType(HookType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubscribedContractsRequest { + return new QuerySubscribedContractsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubscribedContractsRequest { + return new QuerySubscribedContractsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubscribedContractsRequest { + return new QuerySubscribedContractsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubscribedContractsRequest | PlainMessage | undefined, b: QuerySubscribedContractsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubscribedContractsRequest, a, b); + } +} + +/** + * Response type for the Query/SubscribedContracts RPC method. + * + * @generated from message neutron.harpoon.QuerySubscribedContractsResponse + */ +export class QuerySubscribedContractsResponse extends Message { + /** + * List of contract addresses subscribed to a specific hook. + * + * @generated from field: repeated string contract_addresses = 1; + */ + contractAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.QuerySubscribedContractsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubscribedContractsResponse { + return new QuerySubscribedContractsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubscribedContractsResponse { + return new QuerySubscribedContractsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySubscribedContractsResponse { + return new QuerySubscribedContractsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySubscribedContractsResponse | PlainMessage | undefined, b: QuerySubscribedContractsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySubscribedContractsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/harpoon/tx_cosmes.ts b/src/protobufs/neutron/harpoon/tx_cosmes.ts new file mode 100644 index 00000000..6b82b274 --- /dev/null +++ b/src/protobufs/neutron/harpoon/tx_cosmes.ts @@ -0,0 +1,23 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/harpoon/tx.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgManageHookSubscription, MsgManageHookSubscriptionResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.harpoon.Msg"; + +/** + * Updates hook subscriptions for a specific contract address. + * To remove a subscription, pass an empty array to `hook_subscription.hooks`. + * Can only be executed by the module's authority. + * + * @generated from rpc neutron.harpoon.Msg.ManageHookSubscription + */ +export const MsgManageHookSubscriptionService = { + typeName: TYPE_NAME, + method: "ManageHookSubscription", + Request: MsgManageHookSubscription, + Response: MsgManageHookSubscriptionResponse, +} as const; + diff --git a/src/protobufs/neutron/harpoon/tx_pb.ts b/src/protobufs/neutron/harpoon/tx_pb.ts new file mode 100644 index 00000000..36f9498b --- /dev/null +++ b/src/protobufs/neutron/harpoon/tx_pb.ts @@ -0,0 +1,140 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/harpoon/tx.proto (package neutron.harpoon, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { HookType } from "./hooks_pb.js"; + +/** + * Defines the Msg/ManageHookSubscription request type. + * + * @generated from message neutron.harpoon.MsgManageHookSubscription + */ +export class MsgManageHookSubscription extends Message { + /** + * Address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Hook subscription to be updated. + * + * @generated from field: neutron.harpoon.HookSubscription hook_subscription = 2; + */ + hookSubscription?: HookSubscription; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.MsgManageHookSubscription"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hook_subscription", kind: "message", T: HookSubscription }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgManageHookSubscription { + return new MsgManageHookSubscription().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgManageHookSubscription { + return new MsgManageHookSubscription().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgManageHookSubscription { + return new MsgManageHookSubscription().fromJsonString(jsonString, options); + } + + static equals(a: MsgManageHookSubscription | PlainMessage | undefined, b: MsgManageHookSubscription | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgManageHookSubscription, a, b); + } +} + +/** + * Defines the response structure for executing a MsgManageHookSubscription message. + * + * @generated from message neutron.harpoon.MsgManageHookSubscriptionResponse + */ +export class MsgManageHookSubscriptionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.MsgManageHookSubscriptionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgManageHookSubscriptionResponse { + return new MsgManageHookSubscriptionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgManageHookSubscriptionResponse { + return new MsgManageHookSubscriptionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgManageHookSubscriptionResponse { + return new MsgManageHookSubscriptionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgManageHookSubscriptionResponse | PlainMessage | undefined, b: MsgManageHookSubscriptionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgManageHookSubscriptionResponse, a, b); + } +} + +/** + * Specifies new hook subscriptions for the contract_address. + * + * @generated from message neutron.harpoon.HookSubscription + */ +export class HookSubscription extends Message { + /** + * Contract address to update subscriptions for. + * + * @generated from field: string contract_address = 2; + */ + contractAddress = ""; + + /** + * List of hooks to subscribe to. Hooks not listed here will be removed. + * + * @generated from field: repeated neutron.harpoon.HookType hooks = 3; + */ + hooks: HookType[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.harpoon.HookSubscription"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "hooks", kind: "enum", T: proto3.getEnumType(HookType), repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HookSubscription { + return new HookSubscription().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HookSubscription { + return new HookSubscription().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HookSubscription { + return new HookSubscription().fromJsonString(jsonString, options); + } + + static equals(a: HookSubscription | PlainMessage | undefined, b: HookSubscription | PlainMessage | undefined): boolean { + return proto3.util.equals(HookSubscription, a, b); + } +} + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/genesis_pb.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..6ffb804b --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/genesis.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the ibc-rate-limit module's genesis state. + * + * @generated from message neutron.ibcratelimit.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params are all the parameters of the module + * + * @generated from field: neutron.ibcratelimit.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/params_pb.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/params_pb.ts new file mode 100644 index 00000000..25aa28f0 --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/params.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the ibc-rate-limit module. + * + * @generated from message neutron.ibcratelimit.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/query_cosmes.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..df21e788 --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/query_cosmes.ts @@ -0,0 +1,22 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/query.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.ibcratelimit.v1beta1.Query"; + +/** + * Params defines a gRPC query method that returns the ibc-rate-limit module's + * parameters. + * + * @generated from rpc neutron.ibcratelimit.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/query_pb.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/query_pb.ts new file mode 100644 index 00000000..7c71096b --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/query.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * ParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message neutron.ibcratelimit.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * aramsResponse is the response type for the Query/Params RPC method. + * + * @generated from message neutron.ibcratelimit.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: neutron.ibcratelimit.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/tx_cosmes.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..78c34c43 --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/tx.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.ibcratelimit.v1beta1.Msg"; + +/** + * @generated from rpc neutron.ibcratelimit.v1beta1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/ibcratelimit/v1beta1/tx_pb.ts b/src/protobufs/neutron/ibcratelimit/v1beta1/tx_pb.ts new file mode 100644 index 00000000..df03070d --- /dev/null +++ b/src/protobufs/neutron/ibcratelimit/v1beta1/tx_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/ibcratelimit/v1beta1/tx.proto (package neutron.ibcratelimit.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.ibcratelimit.v1beta1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/tokenfactory parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.ibcratelimit.v1beta1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.ibcratelimit.v1beta1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.ibcratelimit.v1beta1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/interchainqueries/genesis_pb.ts b/src/protobufs/neutron/interchainqueries/genesis_pb.ts new file mode 100644 index 00000000..31f6bd6a --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/genesis_pb.ts @@ -0,0 +1,248 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchainqueries/genesis.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Height } from "../../ibc/core/client/v1/client_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * Information about an Interchain Query registered in the interchainqueries module. + * + * @generated from message neutron.interchainqueries.RegisteredQuery + */ +export class RegisteredQuery extends Message { + /** + * The unique id of the registered query. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * The address of the contract that registered the query. + * + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * The query type identifier: `kv` or `tx`. + * + * @generated from field: string query_type = 3; + */ + queryType = ""; + + /** + * The KV-storage keys for which to get values from the remote chain. Only applicable for the + * KV Interchain Queries. Max amount of keys is limited by the module's `max_kv_query_keys_count` + * parameters. + * + * @generated from field: repeated neutron.interchainqueries.KVKey keys = 4; + */ + keys: KVKey[] = []; + + /** + * A stringified list of filters for remote transactions search. Only applicable for the TX + * Interchain Queries. Example: "[{\"field\":\"tx.height\",\"op\":\"Gte\",\"value\":2644737}]". + * Supported operators: "eq", "lt", "gt", "lte", "gte". Max amount of filter conditions is limited + * by the module's `max_transactions_filters` parameters. + * + * @generated from field: string transactions_filter = 5; + */ + transactionsFilter = ""; + + /** + * The IBC connection ID to the remote chain (the source of querying data). Is used for getting + * ConsensusState from the respective IBC client to verify query result proofs. + * + * @generated from field: string connection_id = 6; + */ + connectionId = ""; + + /** + * Parameter that defines the minimal delay between consecutive query executions (i.e. the + * minimal delay between query results update). + * + * @generated from field: uint64 update_period = 7; + */ + updatePeriod = protoInt64.zero; + + /** + * The local chain block height of the last query results update. + * + * @generated from field: uint64 last_submitted_result_local_height = 8; + */ + lastSubmittedResultLocalHeight = protoInt64.zero; + + /** + * The remote chain block height that corresponds to the last query result update. + * + * @generated from field: ibc.core.client.v1.Height last_submitted_result_remote_height = 9; + */ + lastSubmittedResultRemoteHeight?: Height; + + /** + * Amount of coins paid for the Interchain Query registration. The deposit is paid back to the + * remover. The remover can be either the query owner (during the submit timeout) or anybody. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin deposit = 10; + */ + deposit: Coin[] = []; + + /** + * The duration, measured in blocks, that must pass since the query's registration or its last + * result submission before the query becomes eligible for removal by anyone. + * + * @generated from field: uint64 submit_timeout = 11; + */ + submitTimeout = protoInt64.zero; + + /** + * The local chain block height of the Interchain Query registration. + * + * @generated from field: uint64 registered_at_height = 12; + */ + registeredAtHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.RegisteredQuery"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "query_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "keys", kind: "message", T: KVKey, repeated: true }, + { no: 5, name: "transactions_filter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "update_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "last_submitted_result_local_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "last_submitted_result_remote_height", kind: "message", T: Height }, + { no: 10, name: "deposit", kind: "message", T: Coin, repeated: true }, + { no: 11, name: "submit_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "registered_at_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredQuery { + return new RegisteredQuery().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredQuery { + return new RegisteredQuery().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredQuery { + return new RegisteredQuery().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredQuery | PlainMessage | undefined, b: RegisteredQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredQuery, a, b); + } +} + +/** + * Represents a path to an IAVL storage node. + * + * @generated from message neutron.interchainqueries.KVKey + */ +export class KVKey extends Message { + /** + * The substore name used in an Interchain Query. Typically, this corresponds to the keeper's + * storeKey, usually the module's name, such as "bank", "staking", etc. + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * A bytes field representing the key for specific data in the module's storage. + * + * @generated from field: bytes key = 2; + */ + key = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.KVKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KVKey { + return new KVKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KVKey { + return new KVKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KVKey { + return new KVKey().fromJsonString(jsonString, options); + } + + static equals(a: KVKey | PlainMessage | undefined, b: KVKey | PlainMessage | undefined): boolean { + return proto3.util.equals(KVKey, a, b); + } +} + +/** + * The interchainqueries module's genesis state model. + * + * @generated from message neutron.interchainqueries.GenesisState + */ +export class GenesisState extends Message { + /** + * The parameters of the module. + * + * @generated from field: neutron.interchainqueries.Params params = 1; + */ + params?: Params; + + /** + * A list of registered Interchain Queries. + * + * @generated from field: repeated neutron.interchainqueries.RegisteredQuery registered_queries = 2; + */ + registeredQueries: RegisteredQuery[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "registered_queries", kind: "message", T: RegisteredQuery, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/interchainqueries/params_pb.ts b/src/protobufs/neutron/interchainqueries/params_pb.ts new file mode 100644 index 00000000..b99a15f4 --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/params_pb.ts @@ -0,0 +1,85 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchainqueries/params.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * The parameters for the module. + * + * @generated from message neutron.interchainqueries.Params + */ +export class Params extends Message { + /** + * The duration, measured in blocks, that must pass since the query's registration or its last + * result submission before the query becomes eligible for removal by anyone. Is used to set + * `submit_timeout` on Interchain Query registration. + * + * @generated from field: uint64 query_submit_timeout = 1; + */ + querySubmitTimeout = protoInt64.zero; + + /** + * Amount of coins required to be provided as deposit on Interchain Query registration. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin query_deposit = 2; + */ + queryDeposit: Coin[] = []; + + /** + * Amount of tx hashes to be removed during a single EndBlock. Can vary to balance between + * network cleaning speed and EndBlock duration. A zero value means no limit. + * + * @generated from field: uint64 tx_query_removal_limit = 3; + */ + txQueryRemovalLimit = protoInt64.zero; + + /** + * Maximum amount of keys in a registered key value query + * + * @generated from field: uint64 max_kv_query_keys_count = 4; + */ + maxKvQueryKeysCount = protoInt64.zero; + + /** + * max_transactions_filters defines maximum allowed amount of tx filters in msgRegisterInterchainQuery + * + * @generated from field: uint64 max_transactions_filters = 5; + */ + maxTransactionsFilters = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_submit_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "query_deposit", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "tx_query_removal_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "max_kv_query_keys_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "max_transactions_filters", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/interchainqueries/query_cosmes.ts b/src/protobufs/neutron/interchainqueries/query_cosmes.ts new file mode 100644 index 00000000..6e2cbdf1 --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/query_cosmes.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/interchainqueries/query.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryLastRemoteHeight, QueryLastRemoteHeightResponse, QueryParamsRequest, QueryParamsResponse, QueryRegisteredQueriesRequest, QueryRegisteredQueriesResponse, QueryRegisteredQueryRequest, QueryRegisteredQueryResponse, QueryRegisteredQueryResultRequest, QueryRegisteredQueryResultResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.interchainqueries.Query"; + +/** + * Fetches the current parameters of the interchainqueries module. + * + * @generated from rpc neutron.interchainqueries.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Retrieves all registered Interchain Queries in the module, with optional filtering by owner + * and/or connection ID. + * + * @generated from rpc neutron.interchainqueries.Query.RegisteredQueries + */ +export const QueryRegisteredQueriesService = { + typeName: TYPE_NAME, + method: "RegisteredQueries", + Request: QueryRegisteredQueriesRequest, + Response: QueryRegisteredQueriesResponse, +} as const; + +/** + * Fetches details of a registered Interchain Query using its ID. + * + * @generated from rpc neutron.interchainqueries.Query.RegisteredQuery + */ +export const QueryRegisteredQueryService = { + typeName: TYPE_NAME, + method: "RegisteredQuery", + Request: QueryRegisteredQueryRequest, + Response: QueryRegisteredQueryResponse, +} as const; + +/** + * Retrieves the most recent successfully submitted result of an Interchain Query. This is only + * applicable for KV Interchain Queries. + * + * @generated from rpc neutron.interchainqueries.Query.QueryResult + */ +export const QueryQueryResultService = { + typeName: TYPE_NAME, + method: "QueryResult", + Request: QueryRegisteredQueryResultRequest, + Response: QueryRegisteredQueryResultResponse, +} as const; + +/** + * Retrieves the most recent height of a remote chain as known by the IBC client associated with + * a given connection ID. + * + * @generated from rpc neutron.interchainqueries.Query.LastRemoteHeight + */ +export const QueryLastRemoteHeightService = { + typeName: TYPE_NAME, + method: "LastRemoteHeight", + Request: QueryLastRemoteHeight, + Response: QueryLastRemoteHeightResponse, +} as const; + diff --git a/src/protobufs/neutron/interchainqueries/query_pb.ts b/src/protobufs/neutron/interchainqueries/query_pb.ts new file mode 100644 index 00000000..c80448ce --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/query_pb.ts @@ -0,0 +1,502 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchainqueries/query.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { RegisteredQuery } from "./genesis_pb.js"; +import { QueryResult } from "./tx_pb.js"; + +/** + * Request type for the Query/Params RPC method. + * + * @generated from message neutron.interchainqueries.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * Response type for the Query/Params RPC method. + * + * @generated from message neutron.interchainqueries.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * Contains all parameters of the module. + * + * @generated from field: neutron.interchainqueries.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * Request type for the Query/RegisteredQueries RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueriesRequest + */ +export class QueryRegisteredQueriesRequest extends Message { + /** + * A list of owners of Interchain Queries. Query response will contain only Interchain Queries + * that are owned by one of the owners in the list. If none, Interchain Queries are not filtered + * out by the owner field. + * + * @generated from field: repeated string owners = 1; + */ + owners: string[] = []; + + /** + * IBC connection ID. Query response will contain only Interchain Queries that have the same IBC + * connection ID parameter. If none, Interchain Queries are not filtered out by the connection ID + * field. + * + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * Pagination parameters for the request. Use values from previous response in the next request + * in consecutive requests with paginated responses. + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueriesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owners", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueriesRequest { + return new QueryRegisteredQueriesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueriesRequest { + return new QueryRegisteredQueriesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueriesRequest { + return new QueryRegisteredQueriesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueriesRequest | PlainMessage | undefined, b: QueryRegisteredQueriesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueriesRequest, a, b); + } +} + +/** + * Response type for the Query/RegisteredQueries RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueriesResponse + */ +export class QueryRegisteredQueriesResponse extends Message { + /** + * A list of registered Interchain Queries. + * + * @generated from field: repeated neutron.interchainqueries.RegisteredQuery registered_queries = 1; + */ + registeredQueries: RegisteredQuery[] = []; + + /** + * Current page information. Use values from previous response in the next request in consecutive + * requests with paginated responses. + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueriesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "registered_queries", kind: "message", T: RegisteredQuery, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueriesResponse { + return new QueryRegisteredQueriesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueriesResponse { + return new QueryRegisteredQueriesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueriesResponse { + return new QueryRegisteredQueriesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueriesResponse | PlainMessage | undefined, b: QueryRegisteredQueriesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueriesResponse, a, b); + } +} + +/** + * Request type for the Query/RegisteredQuery RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueryRequest + */ +export class QueryRegisteredQueryRequest extends Message { + /** + * ID of an Interchain Query. + * + * @generated from field: uint64 query_id = 1; + */ + queryId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueryRequest { + return new QueryRegisteredQueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueryRequest { + return new QueryRegisteredQueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueryRequest { + return new QueryRegisteredQueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueryRequest | PlainMessage | undefined, b: QueryRegisteredQueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueryRequest, a, b); + } +} + +/** + * Response type for the Query/RegisteredQuery RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueryResponse + */ +export class QueryRegisteredQueryResponse extends Message { + /** + * A registered Interchain Query. + * + * @generated from field: neutron.interchainqueries.RegisteredQuery registered_query = 1; + */ + registeredQuery?: RegisteredQuery; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "registered_query", kind: "message", T: RegisteredQuery }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueryResponse { + return new QueryRegisteredQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueryResponse { + return new QueryRegisteredQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueryResponse { + return new QueryRegisteredQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueryResponse | PlainMessage | undefined, b: QueryRegisteredQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueryResponse, a, b); + } +} + +/** + * Request type for the Query/QueryResult RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueryResultRequest + */ +export class QueryRegisteredQueryResultRequest extends Message { + /** + * ID of an Interchain Query. + * + * @generated from field: uint64 query_id = 1; + */ + queryId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueryResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueryResultRequest { + return new QueryRegisteredQueryResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueryResultRequest { + return new QueryRegisteredQueryResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueryResultRequest { + return new QueryRegisteredQueryResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueryResultRequest | PlainMessage | undefined, b: QueryRegisteredQueryResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueryResultRequest, a, b); + } +} + +/** + * Response type for the Query/QueryResult RPC method. + * + * @generated from message neutron.interchainqueries.QueryRegisteredQueryResultResponse + */ +export class QueryRegisteredQueryResultResponse extends Message { + /** + * The last successfully submitted result of an Interchain Query. + * + * @generated from field: neutron.interchainqueries.QueryResult result = 1; + */ + result?: QueryResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryRegisteredQueryResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: QueryResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRegisteredQueryResultResponse { + return new QueryRegisteredQueryResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRegisteredQueryResultResponse { + return new QueryRegisteredQueryResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRegisteredQueryResultResponse { + return new QueryRegisteredQueryResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRegisteredQueryResultResponse | PlainMessage | undefined, b: QueryRegisteredQueryResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRegisteredQueryResultResponse, a, b); + } +} + +/** + * @generated from message neutron.interchainqueries.Transaction + */ +export class Transaction extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 height = 2; + */ + height = protoInt64.zero; + + /** + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.Transaction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Transaction { + return new Transaction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Transaction { + return new Transaction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Transaction { + return new Transaction().fromJsonString(jsonString, options); + } + + static equals(a: Transaction | PlainMessage | undefined, b: Transaction | PlainMessage | undefined): boolean { + return proto3.util.equals(Transaction, a, b); + } +} + +/** + * Request type for the Query/LastRemoteHeight RPC method. + * + * @generated from message neutron.interchainqueries.QueryLastRemoteHeight + */ +export class QueryLastRemoteHeight extends Message { + /** + * Connection ID of an IBC connection to a remote chain. Determines the IBC client used in query + * handling. + * + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryLastRemoteHeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastRemoteHeight { + return new QueryLastRemoteHeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastRemoteHeight { + return new QueryLastRemoteHeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastRemoteHeight { + return new QueryLastRemoteHeight().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastRemoteHeight | PlainMessage | undefined, b: QueryLastRemoteHeight | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastRemoteHeight, a, b); + } +} + +/** + * Response type for the Query/LastRemoteHeight RPC method. + * + * @generated from message neutron.interchainqueries.QueryLastRemoteHeightResponse + */ +export class QueryLastRemoteHeightResponse extends Message { + /** + * The height of the chain that the IBC client is currently on. + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * The revision of the chain that the IBC client is currently on. + * + * @generated from field: uint64 revision = 2; + */ + revision = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryLastRemoteHeightResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "revision", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastRemoteHeightResponse { + return new QueryLastRemoteHeightResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastRemoteHeightResponse { + return new QueryLastRemoteHeightResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLastRemoteHeightResponse { + return new QueryLastRemoteHeightResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLastRemoteHeightResponse | PlainMessage | undefined, b: QueryLastRemoteHeightResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLastRemoteHeightResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/interchainqueries/tx_cosmes.ts b/src/protobufs/neutron/interchainqueries/tx_cosmes.ts new file mode 100644 index 00000000..4e3a0970 --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/tx_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/interchainqueries/tx.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgRegisterInterchainQuery, MsgRegisterInterchainQueryResponse, MsgRemoveInterchainQueryRequest, MsgRemoveInterchainQueryResponse, MsgSubmitQueryResult, MsgSubmitQueryResultResponse, MsgUpdateInterchainQueryRequest, MsgUpdateInterchainQueryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.interchainqueries.Msg"; + +/** + * Registers a new Interchain Query in the `interchainqueries` module. This message should only + * be issued by a smart contract. The calling contract is automatically charged a query + * registration deposit, based on the module's query deposit parameter. The deposit is refunded + * when the query is removed. Ensure the contract's account has sufficient assets at the time of + * message execution. + * + * The response includes the ID assigned to the registered query. Use a reply handler to process + * this response and utilize the query ID. + * + * @generated from rpc neutron.interchainqueries.Msg.RegisterInterchainQuery + */ +export const MsgRegisterInterchainQueryService = { + typeName: TYPE_NAME, + method: "RegisterInterchainQuery", + Request: MsgRegisterInterchainQuery, + Response: MsgRegisterInterchainQueryResponse, +} as const; + +/** + * Submits the result of an Interchain Query execution to the chain. Handling this message may + * involve forwarding the result to the smart contract that owns the query for processing, which + * could require significant gas usage. + * + * @generated from rpc neutron.interchainqueries.Msg.SubmitQueryResult + */ +export const MsgSubmitQueryResultService = { + typeName: TYPE_NAME, + method: "SubmitQueryResult", + Request: MsgSubmitQueryResult, + Response: MsgSubmitQueryResultResponse, +} as const; + +/** + * Removes a specific Interchain Query and its results from the module. The query can only be + * removed by its owner during the query's submit timeout. After the timeout, anyone can remove + * it. Upon successful removal, the query deposit is refunded to the caller. + * + * @generated from rpc neutron.interchainqueries.Msg.RemoveInterchainQuery + */ +export const MsgRemoveInterchainQueryService = { + typeName: TYPE_NAME, + method: "RemoveInterchainQuery", + Request: MsgRemoveInterchainQueryRequest, + Response: MsgRemoveInterchainQueryResponse, +} as const; + +/** + * Updates the parameters of a registered Interchain Query. This action can only be performed by + * the query's owner. + * + * @generated from rpc neutron.interchainqueries.Msg.UpdateInterchainQuery + */ +export const MsgUpdateInterchainQueryService = { + typeName: TYPE_NAME, + method: "UpdateInterchainQuery", + Request: MsgUpdateInterchainQueryRequest, + Response: MsgUpdateInterchainQueryResponse, +} as const; + +/** + * Updates the parameters of the `interchainqueries` module. This action can only be performed + * by the module's authority. + * + * @generated from rpc neutron.interchainqueries.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/interchainqueries/tx_pb.ts b/src/protobufs/neutron/interchainqueries/tx_pb.ts new file mode 100644 index 00000000..3d326369 --- /dev/null +++ b/src/protobufs/neutron/interchainqueries/tx_pb.ts @@ -0,0 +1,794 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchainqueries/tx.proto (package neutron.interchainqueries, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { KVKey } from "./genesis_pb.js"; +import { Proof, ProofOps } from "../../tendermint/crypto/proof_pb.js"; +import { ExecTxResult } from "../../tendermint/abci/types_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * Request type for the Msg/RegisterInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgRegisterInterchainQuery + */ +export class MsgRegisterInterchainQuery extends Message { + /** + * The query type identifier: `kv` or `tx`. + * + * @generated from field: string query_type = 1; + */ + queryType = ""; + + /** + * The KV-storage keys for which we want to get values from remote chain. Only applicable for the + * KV Interchain Queries. Max amount of keys is limited by the module's `max_kv_query_keys_count` + * parameters. + * + * @generated from field: repeated neutron.interchainqueries.KVKey keys = 2; + */ + keys: KVKey[] = []; + + /** + * A stringified list of filters for remote transactions search. Only applicable for the TX + * Interchain Queries. Example: "[{\"field\":\"tx.height\",\"op\":\"Gte\",\"value\":2644737}]". + * Supported operators: "eq", "lt", "gt", "lte", "gte". Max amount of filter conditions is + * limited by the module's `max_transactions_filters` parameters. + * + * @generated from field: string transactions_filter = 3; + */ + transactionsFilter = ""; + + /** + * The IBC connection ID to the remote chain (the source of querying data). Is used for getting + * ConsensusState from the respective IBC client to verify query result proofs. + * + * @generated from field: string connection_id = 4; + */ + connectionId = ""; + + /** + * Parameter that defines the minimal delay between consecutive query executions (i.e. the + * minimal delay between query results update). + * + * @generated from field: uint64 update_period = 5; + */ + updatePeriod = protoInt64.zero; + + /** + * The signer of the message. + * + * @generated from field: string sender = 6; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgRegisterInterchainQuery"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "keys", kind: "message", T: KVKey, repeated: true }, + { no: 3, name: "transactions_filter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "update_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainQuery { + return new MsgRegisterInterchainQuery().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainQuery { + return new MsgRegisterInterchainQuery().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainQuery { + return new MsgRegisterInterchainQuery().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainQuery | PlainMessage | undefined, b: MsgRegisterInterchainQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainQuery, a, b); + } +} + +/** + * Response type for the Msg/RegisterInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgRegisterInterchainQueryResponse + */ +export class MsgRegisterInterchainQueryResponse extends Message { + /** + * The ID assigned to the registered Interchain Query by the module. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgRegisterInterchainQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainQueryResponse { + return new MsgRegisterInterchainQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainQueryResponse { + return new MsgRegisterInterchainQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainQueryResponse { + return new MsgRegisterInterchainQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainQueryResponse | PlainMessage | undefined, b: MsgRegisterInterchainQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainQueryResponse, a, b); + } +} + +/** + * Request type for the Msg/SubmitQueryResult RPC method. + * + * @generated from message neutron.interchainqueries.MsgSubmitQueryResult + */ +export class MsgSubmitQueryResult extends Message { + /** + * The ID of the Interchain Query. + * + * @generated from field: uint64 query_id = 1; + */ + queryId = protoInt64.zero; + + /** + * The signer of the message. + * + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * The IBC client ID that corresponds to the IBC connection to the remote chain (where the + * query result is coming from). + * Deprecated: populating this field does not make any affect + * + * @generated from field: string client_id = 3 [deprecated = true]; + * @deprecated + */ + clientId = ""; + + /** + * The result of the Interchain Query execution. + * + * @generated from field: neutron.interchainqueries.QueryResult result = 4; + */ + result?: QueryResult; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgSubmitQueryResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "result", kind: "message", T: QueryResult }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitQueryResult { + return new MsgSubmitQueryResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitQueryResult { + return new MsgSubmitQueryResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitQueryResult { + return new MsgSubmitQueryResult().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitQueryResult | PlainMessage | undefined, b: MsgSubmitQueryResult | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitQueryResult, a, b); + } +} + +/** + * Contains different information about a single Interchain Query execution result. Currently, + * this structure is used both in query result submission via an ICQ Relayer and as a query result + * storage for read/write operations to interchainqueries module, but the structure fields are + * populated in a bit different ways. When submitting a query result, all fields are populated and + * provided to the interchainqueries module in order to verify the result against the IBC client's + * state. But in order to lighten the chain state, the interchainqueries module removes the block + * field and proofs from the kv_results. + * + * @generated from message neutron.interchainqueries.QueryResult + */ +export class QueryResult extends Message { + /** + * A list of a KV Interchain Query execution results. Each result contains query parameters, a + * response value and a proof. + * + * @generated from field: repeated neutron.interchainqueries.StorageValue kv_results = 1; + */ + kvResults: StorageValue[] = []; + + /** + * A TX Interchain Query execution result. Contains metainformation about the blocks of the query + * execution height. Only populated when submitting an Interchain Query result for verification + * and emptied when saving the result on chain. + * + * @generated from field: neutron.interchainqueries.Block block = 2; + */ + block?: Block; + + /** + * The height of the chain at the moment of the Interchain Query execution. + * + * @generated from field: uint64 height = 3; + */ + height = protoInt64.zero; + + /** + * The revision number of the chain at the moment of the Interchain Query execution. + * + * @generated from field: uint64 revision = 4; + */ + revision = protoInt64.zero; + + /** + * Whether to send the query result to the owner contract as a sudo message. Only applicable for + * KV type of Interchain Queries. + * + * @generated from field: bool allow_kv_callbacks = 5; + */ + allowKvCallbacks = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.QueryResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kv_results", kind: "message", T: StorageValue, repeated: true }, + { no: 2, name: "block", kind: "message", T: Block }, + { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "revision", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "allow_kv_callbacks", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryResult { + return new QueryResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryResult { + return new QueryResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryResult { + return new QueryResult().fromJsonString(jsonString, options); + } + + static equals(a: QueryResult | PlainMessage | undefined, b: QueryResult | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryResult, a, b); + } +} + +/** + * A verifiable result of performing a single KVKey read. + * + * @generated from message neutron.interchainqueries.StorageValue + */ +export class StorageValue extends Message { + /** + * The substore name used in the read operation. Typically, this corresponds to the keeper's + * storeKey, usually the module's name, such as "bank", "staking", etc. + * + * @generated from field: string storage_prefix = 1; + */ + storagePrefix = ""; + + /** + * A bytes field representing the key of the data read from the module's storage. + * + * @generated from field: bytes key = 2; + */ + key = new Uint8Array(0); + + /** + * A bytes field containing the value associated with the key in the store. + * + * @generated from field: bytes value = 3; + */ + value = new Uint8Array(0); + + /** + * The Merkle Proof which proves existence/nonexistence of key-value pair in IAVL storage. Is + * used to verify + * the pair against the respective remote chain's header. + * + * @generated from field: tendermint.crypto.ProofOps Proof = 4; + */ + Proof?: ProofOps; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.StorageValue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "storage_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "Proof", kind: "message", T: ProofOps }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StorageValue { + return new StorageValue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StorageValue { + return new StorageValue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StorageValue { + return new StorageValue().fromJsonString(jsonString, options); + } + + static equals(a: StorageValue | PlainMessage | undefined, b: StorageValue | PlainMessage | undefined): boolean { + return proto3.util.equals(StorageValue, a, b); + } +} + +/** + * A single verifiable result of an Interchain Query of TX type. + * + * @generated from message neutron.interchainqueries.Block + */ +export class Block extends Message { + /** + * The header of the block next to the block the transaction is included in. It is needed to know + * block X+1 header to verify response of transaction for block X since LastResultsHash is root + * hash of all results of the txs from the previous block. + * + * @generated from field: google.protobuf.Any next_block_header = 1; + */ + nextBlockHeader?: Any; + + /** + * The header of the block the transaction is included in. It is needed to know block header to + * verify inclusion of the transaction. + * + * @generated from field: google.protobuf.Any header = 2; + */ + header?: Any; + + /** + * The transaction matched by the Interchain Query's transaction filter. + * + * @generated from field: neutron.interchainqueries.TxValue tx = 3; + */ + tx?: TxValue; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.Block"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_block_header", kind: "message", T: Any }, + { no: 2, name: "header", kind: "message", T: Any }, + { no: 3, name: "tx", kind: "message", T: TxValue }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Block { + return new Block().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Block { + return new Block().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Block { + return new Block().fromJsonString(jsonString, options); + } + + static equals(a: Block | PlainMessage | undefined, b: Block | PlainMessage | undefined): boolean { + return proto3.util.equals(Block, a, b); + } +} + +/** + * Contains transaction body, response, and proofs of inclusion and delivery. + * + * @generated from message neutron.interchainqueries.TxValue + */ +export class TxValue extends Message { + /** + * The result of the transaction execution. + * + * @generated from field: tendermint.abci.ExecTxResult response = 1; + */ + response?: ExecTxResult; + + /** + * The Merkle Proof which proves existence of response in the block next to the block the + * transaction is included in. + * + * @generated from field: tendermint.crypto.Proof delivery_proof = 2; + */ + deliveryProof?: Proof; + + /** + * The Merkle Proof which proves inclusion of the transaction in the block. + * + * @generated from field: tendermint.crypto.Proof inclusion_proof = 3; + */ + inclusionProof?: Proof; + + /** + * The arbitrary data typed body of the transaction. + * + * @generated from field: bytes data = 4; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.TxValue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "response", kind: "message", T: ExecTxResult }, + { no: 2, name: "delivery_proof", kind: "message", T: Proof }, + { no: 3, name: "inclusion_proof", kind: "message", T: Proof }, + { no: 4, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxValue { + return new TxValue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxValue { + return new TxValue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxValue { + return new TxValue().fromJsonString(jsonString, options); + } + + static equals(a: TxValue | PlainMessage | undefined, b: TxValue | PlainMessage | undefined): boolean { + return proto3.util.equals(TxValue, a, b); + } +} + +/** + * Response type for the Msg/SubmitQueryResult RPC method. + * + * @generated from message neutron.interchainqueries.MsgSubmitQueryResultResponse + */ +export class MsgSubmitQueryResultResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgSubmitQueryResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitQueryResultResponse { + return new MsgSubmitQueryResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitQueryResultResponse { + return new MsgSubmitQueryResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitQueryResultResponse { + return new MsgSubmitQueryResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitQueryResultResponse | PlainMessage | undefined, b: MsgSubmitQueryResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitQueryResultResponse, a, b); + } +} + +/** + * Request type for the Msg/RemoveInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgRemoveInterchainQueryRequest + */ +export class MsgRemoveInterchainQueryRequest extends Message { + /** + * The ID of the query to remove. + * + * @generated from field: uint64 query_id = 1; + */ + queryId = protoInt64.zero; + + /** + * The signer of the message. + * + * @generated from field: string sender = 2; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgRemoveInterchainQueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveInterchainQueryRequest { + return new MsgRemoveInterchainQueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveInterchainQueryRequest { + return new MsgRemoveInterchainQueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveInterchainQueryRequest { + return new MsgRemoveInterchainQueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveInterchainQueryRequest | PlainMessage | undefined, b: MsgRemoveInterchainQueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveInterchainQueryRequest, a, b); + } +} + +/** + * Response type for the Msg/RemoveInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgRemoveInterchainQueryResponse + */ +export class MsgRemoveInterchainQueryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgRemoveInterchainQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveInterchainQueryResponse { + return new MsgRemoveInterchainQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveInterchainQueryResponse { + return new MsgRemoveInterchainQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveInterchainQueryResponse { + return new MsgRemoveInterchainQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveInterchainQueryResponse | PlainMessage | undefined, b: MsgRemoveInterchainQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveInterchainQueryResponse, a, b); + } +} + +/** + * Request type for the Msg/UpdateInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgUpdateInterchainQueryRequest + */ +export class MsgUpdateInterchainQueryRequest extends Message { + /** + * The ID of the query to update. + * + * @generated from field: uint64 query_id = 1; + */ + queryId = protoInt64.zero; + + /** + * A new list of KV-storage keys for which to get values from the remote chain. Only applicable + * for a KV Interchain Query. Max amount of keys is limited by the module's `max_kv_query_keys_count` + * parameters. + * + * @generated from field: repeated neutron.interchainqueries.KVKey new_keys = 2; + */ + newKeys: KVKey[] = []; + + /** + * A new minimal delay between consecutive query executions. + * + * @generated from field: uint64 new_update_period = 3; + */ + newUpdatePeriod = protoInt64.zero; + + /** + * A new list of filters for remote transactions search. Only applicable for a TX Interchain + * Query. Example: "[{\"field\":\"tx.height\",\"op\":\"Gte\",\"value\":2644737}]". + * Supported operators: "eq", "lt", "gt", "lte", "gte". Max amount of filter conditions is + * limited by the module's `max_transactions_filters` parameters. + * + * @generated from field: string new_transactions_filter = 4; + */ + newTransactionsFilter = ""; + + /** + * The signer of the message. + * + * @generated from field: string sender = 5; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgUpdateInterchainQueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "new_keys", kind: "message", T: KVKey, repeated: true }, + { no: 3, name: "new_update_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "new_transactions_filter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInterchainQueryRequest { + return new MsgUpdateInterchainQueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInterchainQueryRequest { + return new MsgUpdateInterchainQueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInterchainQueryRequest { + return new MsgUpdateInterchainQueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInterchainQueryRequest | PlainMessage | undefined, b: MsgUpdateInterchainQueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInterchainQueryRequest, a, b); + } +} + +/** + * Response type for the Msg/UpdateInterchainQuery RPC method. + * + * @generated from message neutron.interchainqueries.MsgUpdateInterchainQueryResponse + */ +export class MsgUpdateInterchainQueryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgUpdateInterchainQueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInterchainQueryResponse { + return new MsgUpdateInterchainQueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInterchainQueryResponse { + return new MsgUpdateInterchainQueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInterchainQueryResponse { + return new MsgUpdateInterchainQueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateInterchainQueryResponse | PlainMessage | undefined, b: MsgUpdateInterchainQueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateInterchainQueryResponse, a, b); + } +} + +/** + * Request type for the Msg/UpdateParams RPC method. + * + * @generated from message neutron.interchainqueries.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * The address of the authority of the module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * The new parameters of the module. All parameters must be supplied. + * + * @generated from field: neutron.interchainqueries.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * Response type for the Msg/UpdateParams RPC method. + * + * @generated from message neutron.interchainqueries.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchainqueries.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/interchaintxs/v1/genesis_pb.ts b/src/protobufs/neutron/interchaintxs/v1/genesis_pb.ts new file mode 100644 index 00000000..6e77ddc2 --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/genesis.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the interchaintxs module's genesis state. + * + * @generated from message neutron.interchaintxs.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: neutron.interchaintxs.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/interchaintxs/v1/params_pb.ts b/src/protobufs/neutron/interchaintxs/v1/params_pb.ts new file mode 100644 index 00000000..30dc6352 --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/params_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/params.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message neutron.interchaintxs.v1.Params + */ +export class Params extends Message { + /** + * Defines maximum amount of messages to be passed in MsgSubmitTx + * + * @generated from field: uint64 msg_submit_tx_max_messages = 1; + */ + msgSubmitTxMaxMessages = protoInt64.zero; + + /** + * Defines a minimum fee required to register interchain account + * + * @generated from field: repeated cosmos.base.v1beta1.Coin register_fee = 2; + */ + registerFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "msg_submit_tx_max_messages", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "register_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/neutron/interchaintxs/v1/query_cosmes.ts b/src/protobufs/neutron/interchaintxs/v1/query_cosmes.ts new file mode 100644 index 00000000..e43cd7d9 --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/query_cosmes.ts @@ -0,0 +1,31 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/query.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryInterchainAccountAddressRequest, QueryInterchainAccountAddressResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.interchaintxs.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc neutron.interchaintxs.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * @generated from rpc neutron.interchaintxs.v1.Query.InterchainAccountAddress + */ +export const QueryInterchainAccountAddressService = { + typeName: TYPE_NAME, + method: "InterchainAccountAddress", + Request: QueryInterchainAccountAddressRequest, + Response: QueryInterchainAccountAddressResponse, +} as const; + diff --git a/src/protobufs/neutron/interchaintxs/v1/query_pb.ts b/src/protobufs/neutron/interchaintxs/v1/query_pb.ts new file mode 100644 index 00000000..e1c060c6 --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/query_pb.ts @@ -0,0 +1,182 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/query.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message neutron.interchaintxs.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message neutron.interchaintxs.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: neutron.interchaintxs.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message neutron.interchaintxs.v1.QueryInterchainAccountAddressRequest + */ +export class QueryInterchainAccountAddressRequest extends Message { + /** + * owner_address is the owner of the interchain account on the controller + * chain + * + * @generated from field: string owner_address = 1; + */ + ownerAddress = ""; + + /** + * interchain_account_id is an identifier of your interchain account from + * which you want to execute msgs + * + * @generated from field: string interchain_account_id = 2; + */ + interchainAccountId = ""; + + /** + * connection_id is an IBC connection identifier between Neutron and remote + * chain + * + * @generated from field: string connection_id = 3; + */ + connectionId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.QueryInterchainAccountAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interchain_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountAddressRequest { + return new QueryInterchainAccountAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountAddressRequest { + return new QueryInterchainAccountAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountAddressRequest { + return new QueryInterchainAccountAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterchainAccountAddressRequest | PlainMessage | undefined, b: QueryInterchainAccountAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterchainAccountAddressRequest, a, b); + } +} + +/** + * Query response for an interchain account address + * + * @generated from message neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse + */ +export class QueryInterchainAccountAddressResponse extends Message { + /** + * The corresponding interchain account address on the host chain + * + * @generated from field: string interchain_account_address = 1; + */ + interchainAccountAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.QueryInterchainAccountAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interchain_account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountAddressResponse { + return new QueryInterchainAccountAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountAddressResponse { + return new QueryInterchainAccountAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountAddressResponse { + return new QueryInterchainAccountAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInterchainAccountAddressResponse | PlainMessage | undefined, b: QueryInterchainAccountAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInterchainAccountAddressResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/interchaintxs/v1/tx_cosmes.ts b/src/protobufs/neutron/interchaintxs/v1/tx_cosmes.ts new file mode 100644 index 00000000..fcd2879d --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/tx_cosmes.ts @@ -0,0 +1,39 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/tx.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgRegisterInterchainAccount, MsgRegisterInterchainAccountResponse, MsgSubmitTx, MsgSubmitTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.interchaintxs.v1.Msg"; + +/** + * @generated from rpc neutron.interchaintxs.v1.Msg.RegisterInterchainAccount + */ +export const MsgRegisterInterchainAccountService = { + typeName: TYPE_NAME, + method: "RegisterInterchainAccount", + Request: MsgRegisterInterchainAccount, + Response: MsgRegisterInterchainAccountResponse, +} as const; + +/** + * @generated from rpc neutron.interchaintxs.v1.Msg.SubmitTx + */ +export const MsgSubmitTxService = { + typeName: TYPE_NAME, + method: "SubmitTx", + Request: MsgSubmitTx, + Response: MsgSubmitTxResponse, +} as const; + +/** + * @generated from rpc neutron.interchaintxs.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/interchaintxs/v1/tx_pb.ts b/src/protobufs/neutron/interchaintxs/v1/tx_pb.ts new file mode 100644 index 00000000..f5f5bc55 --- /dev/null +++ b/src/protobufs/neutron/interchaintxs/v1/tx_pb.ts @@ -0,0 +1,341 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/interchaintxs/v1/tx.proto (package neutron.interchaintxs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Order } from "../../../ibc/core/channel/v1/channel_pb.js"; +import { Fee } from "../../feerefunder/fee_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * MsgRegisterInterchainAccount is used to register an account on a remote zone. + * + * @generated from message neutron.interchaintxs.v1.MsgRegisterInterchainAccount + */ +export class MsgRegisterInterchainAccount extends Message { + /** + * @generated from field: string from_address = 1; + */ + fromAddress = ""; + + /** + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * @generated from field: string interchain_account_id = 3; + */ + interchainAccountId = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin register_fee = 4; + */ + registerFee: Coin[] = []; + + /** + * @generated from field: ibc.core.channel.v1.Order ordering = 5; + */ + ordering = Order.NONE_UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgRegisterInterchainAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "interchain_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "register_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccount | PlainMessage | undefined, b: MsgRegisterInterchainAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccount, a, b); + } +} + +/** + * MsgRegisterInterchainAccountResponse is the response type for + * MsgRegisterInterchainAccount. + * + * @generated from message neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse + */ +export class MsgRegisterInterchainAccountResponse extends Message { + /** + * @generated from field: string channel_id = 1; + */ + channelId = ""; + + /** + * @generated from field: string port_id = 2; + */ + portId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgRegisterInterchainAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccountResponse | PlainMessage | undefined, b: MsgRegisterInterchainAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccountResponse, a, b); + } +} + +/** + * MsgSubmitTx defines the payload for Msg/SubmitTx + * + * @generated from message neutron.interchaintxs.v1.MsgSubmitTx + */ +export class MsgSubmitTx extends Message { + /** + * @generated from field: string from_address = 1; + */ + fromAddress = ""; + + /** + * interchain_account_id is supposed to be the unique identifier, e.g., + * lido/kava. This allows contracts to have more than one interchain accounts + * on remote zone This identifier will be a part of the portID that we'll + * claim our capability for. + * + * @generated from field: string interchain_account_id = 2; + */ + interchainAccountId = ""; + + /** + * @generated from field: string connection_id = 3; + */ + connectionId = ""; + + /** + * @generated from field: repeated google.protobuf.Any msgs = 4; + */ + msgs: Any[] = []; + + /** + * @generated from field: string memo = 5; + */ + memo = ""; + + /** + * timeout in seconds after which the packet times out + * + * @generated from field: uint64 timeout = 6; + */ + timeout = protoInt64.zero; + + /** + * @generated from field: neutron.feerefunder.Fee fee = 7; + */ + fee?: Fee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgSubmitTx"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interchain_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "msgs", kind: "message", T: Any, repeated: true }, + { no: 5, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "fee", kind: "message", T: Fee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitTx { + return new MsgSubmitTx().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitTx { + return new MsgSubmitTx().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitTx { + return new MsgSubmitTx().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitTx | PlainMessage | undefined, b: MsgSubmitTx | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitTx, a, b); + } +} + +/** + * MsgSubmitTxResponse defines the response for Msg/SubmitTx + * + * @generated from message neutron.interchaintxs.v1.MsgSubmitTxResponse + */ +export class MsgSubmitTxResponse extends Message { + /** + * channel's sequence_id for outgoing ibc packet. Unique per a channel. + * + * @generated from field: uint64 sequence_id = 1; + */ + sequenceId = protoInt64.zero; + + /** + * channel src channel on neutron side transaction was submitted from + * + * @generated from field: string channel = 2; + */ + channel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgSubmitTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitTxResponse { + return new MsgSubmitTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitTxResponse { + return new MsgSubmitTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitTxResponse { + return new MsgSubmitTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitTxResponse | PlainMessage | undefined, b: MsgSubmitTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitTxResponse, a, b); + } +} + +/** + * MsgUpdateParams is the MsgUpdateParams request type. + * + * Since: 0.47 + * + * @generated from message neutron.interchaintxs.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * Authority is the address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/interchaintxs parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: neutron.interchaintxs.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: 0.47 + * + * @generated from message neutron.interchaintxs.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.interchaintxs.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/revenue/genesis_pb.ts b/src/protobufs/neutron/revenue/genesis_pb.ts new file mode 100644 index 00000000..856ca2a3 --- /dev/null +++ b/src/protobufs/neutron/revenue/genesis_pb.ts @@ -0,0 +1,389 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/revenue/genesis.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * Defines the revenue module's genesis state. + * + * @generated from message neutron.revenue.GenesisState + */ +export class GenesisState extends Message { + /** + * Revenue module parameters. + * + * @generated from field: neutron.revenue.Params params = 1; + */ + params?: Params; + + /** + * The current payment schedule. If nil, the module will use the respective payment schedule for + * the payment schedule type specified in the params. + * + * @generated from field: neutron.revenue.PaymentSchedule payment_schedule = 2; + */ + paymentSchedule?: PaymentSchedule; + + /** + * Revenue module list of validators. + * + * @generated from field: repeated neutron.revenue.ValidatorInfo validators = 3; + */ + validators: ValidatorInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "payment_schedule", kind: "message", T: PaymentSchedule }, + { no: 3, name: "validators", kind: "message", T: ValidatorInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * A model that contains information specific to the currently active payment schedule. The oneof + * implementations define conditions for payment periods ending and track the progress of the + * current payment period. This is a module's state variable. + * The inner oneof must correspond with the respective payment schedule type defined in the module + * params. In runtime, on a mismatch due to e.g. MsgUpdateParams execution, the module will switch + * to the payment schedule that corresponds to the payment schedule type automatically. + * + * @generated from message neutron.revenue.PaymentSchedule + */ +export class PaymentSchedule extends Message { + /** + * @generated from oneof neutron.revenue.PaymentSchedule.payment_schedule + */ + paymentSchedule: { + /** + * @generated from field: neutron.revenue.MonthlyPaymentSchedule monthly_payment_schedule = 1; + */ + value: MonthlyPaymentSchedule; + case: "monthlyPaymentSchedule"; + } | { + /** + * @generated from field: neutron.revenue.BlockBasedPaymentSchedule block_based_payment_schedule = 2; + */ + value: BlockBasedPaymentSchedule; + case: "blockBasedPaymentSchedule"; + } | { + /** + * @generated from field: neutron.revenue.EmptyPaymentSchedule empty_payment_schedule = 3; + */ + value: EmptyPaymentSchedule; + case: "emptyPaymentSchedule"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.PaymentSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "monthly_payment_schedule", kind: "message", T: MonthlyPaymentSchedule, oneof: "payment_schedule" }, + { no: 2, name: "block_based_payment_schedule", kind: "message", T: BlockBasedPaymentSchedule, oneof: "payment_schedule" }, + { no: 3, name: "empty_payment_schedule", kind: "message", T: EmptyPaymentSchedule, oneof: "payment_schedule" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PaymentSchedule { + return new PaymentSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PaymentSchedule { + return new PaymentSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PaymentSchedule { + return new PaymentSchedule().fromJsonString(jsonString, options); + } + + static equals(a: PaymentSchedule | PlainMessage | undefined, b: PaymentSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(PaymentSchedule, a, b); + } +} + +/** + * Contains information about a validator. + * + * @generated from message neutron.revenue.ValidatorInfo + */ +export class ValidatorInfo extends Message { + /** + * The validator's node operator address. + * + * @generated from field: string val_oper_address = 1; + */ + valOperAddress = ""; + + /** + * The number of blocks the validator has committed in the current payment period. + * + * @generated from field: uint64 commited_blocks_in_period = 2; + */ + commitedBlocksInPeriod = protoInt64.zero; + + /** + * The number of oracle votes the validator has submitted in the current payment period. + * + * @generated from field: uint64 commited_oracle_votes_in_period = 3; + */ + commitedOracleVotesInPeriod = protoInt64.zero; + + /** + * The number of blocks the validator has remained in the active validator set for in the + * current payment period. + * + * @generated from field: uint64 in_active_valset_for_blocks_in_period = 4; + */ + inActiveValsetForBlocksInPeriod = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.ValidatorInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "val_oper_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "commited_blocks_in_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "commited_oracle_votes_in_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "in_active_valset_for_blocks_in_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorInfo { + return new ValidatorInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorInfo { + return new ValidatorInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorInfo { + return new ValidatorInfo().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorInfo | PlainMessage | undefined, b: ValidatorInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorInfo, a, b); + } +} + +/** + * Represents a payment schedule where revenue payments are processed once a month. + * + * @generated from message neutron.revenue.MonthlyPaymentSchedule + */ +export class MonthlyPaymentSchedule extends Message { + /** + * The block height at which the current month started. + * + * @generated from field: uint64 current_month_start_block = 1; + */ + currentMonthStartBlock = protoInt64.zero; + + /** + * The timestamp of the block at which the current month started. + * + * @generated from field: uint64 current_month_start_block_ts = 2; + */ + currentMonthStartBlockTs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MonthlyPaymentSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_month_start_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "current_month_start_block_ts", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MonthlyPaymentSchedule { + return new MonthlyPaymentSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MonthlyPaymentSchedule { + return new MonthlyPaymentSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MonthlyPaymentSchedule { + return new MonthlyPaymentSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MonthlyPaymentSchedule | PlainMessage | undefined, b: MonthlyPaymentSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MonthlyPaymentSchedule, a, b); + } +} + +/** + * Represents a payment schedule where revenue payments are processed after a specified number + * of blocks. + * + * @generated from message neutron.revenue.BlockBasedPaymentSchedule + */ +export class BlockBasedPaymentSchedule extends Message { + /** + * The number of blocks in each payment period. + * + * @generated from field: uint64 blocks_per_period = 1; + */ + blocksPerPeriod = protoInt64.zero; + + /** + * The block height at which the current payment period started. + * + * @generated from field: uint64 current_period_start_block = 2; + */ + currentPeriodStartBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.BlockBasedPaymentSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "blocks_per_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "current_period_start_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlockBasedPaymentSchedule { + return new BlockBasedPaymentSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlockBasedPaymentSchedule { + return new BlockBasedPaymentSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlockBasedPaymentSchedule { + return new BlockBasedPaymentSchedule().fromJsonString(jsonString, options); + } + + static equals(a: BlockBasedPaymentSchedule | PlainMessage | undefined, b: BlockBasedPaymentSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(BlockBasedPaymentSchedule, a, b); + } +} + +/** + * Represents a payment schedule where revenue is never distributed. + * + * @generated from message neutron.revenue.EmptyPaymentSchedule + */ +export class EmptyPaymentSchedule extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.EmptyPaymentSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyPaymentSchedule { + return new EmptyPaymentSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyPaymentSchedule { + return new EmptyPaymentSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyPaymentSchedule { + return new EmptyPaymentSchedule().fromJsonString(jsonString, options); + } + + static equals(a: EmptyPaymentSchedule | PlainMessage | undefined, b: EmptyPaymentSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyPaymentSchedule, a, b); + } +} + +/** + * Represents a data structure that tracks the cumulative price of an asset over the entire + * observation period, along with the last absolute asset price and the timestamp when this + * price was last recorded. + * + * @generated from message neutron.revenue.RewardAssetPrice + */ +export class RewardAssetPrice extends Message { + /** + * The cumulative price of the reward asset within the TWAP window. It is calculated as: + * `cumulative_price_at_timestamp_t(n)` = `last_price_at_t(n-1)` * (t(n) - t(n-1)) + `cumulative_price_at_timestamp_t(n-1)` + * + * @generated from field: string cumulative_price = 1; + */ + cumulativePrice = ""; + + /** + * The price of the reward asset in reward quote asset that corresponds to the timestamp. + * + * @generated from field: string absolute_price = 2; + */ + absolutePrice = ""; + + /** + * The timestamp of the last update of the absolute and cumulative price. + * + * @generated from field: int64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.RewardAssetPrice"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cumulative_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "absolute_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardAssetPrice { + return new RewardAssetPrice().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardAssetPrice { + return new RewardAssetPrice().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardAssetPrice { + return new RewardAssetPrice().fromJsonString(jsonString, options); + } + + static equals(a: RewardAssetPrice | PlainMessage | undefined, b: RewardAssetPrice | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardAssetPrice, a, b); + } +} + diff --git a/src/protobufs/neutron/revenue/params_pb.ts b/src/protobufs/neutron/revenue/params_pb.ts new file mode 100644 index 00000000..7679a2e2 --- /dev/null +++ b/src/protobufs/neutron/revenue/params_pb.ts @@ -0,0 +1,367 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/revenue/params.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Defines the parameters for the module. + * + * @generated from message neutron.revenue.Params + */ +export class Params extends Message { + /** + * The asset used in revenue payments to validators. Expected to be a native token of the chain + * with its denom metadata registered in the bank module. The denom metadata must have a defined + * symbol field and contain a denom unit with an alias equal to the symbol and a specified + * exponent. + * + * @generated from field: string reward_asset = 1; + */ + rewardAsset = ""; + + /** + * Quotation of the reward asset. + * + * @generated from field: neutron.revenue.RewardQuote reward_quote = 2; + */ + rewardQuote?: RewardQuote; + + /** + * Specifies performance requirements for validators in scope of blocks signing and creation. If + * not met, the validator is not rewarded. + * + * @generated from field: neutron.revenue.PerformanceRequirement blocks_performance_requirement = 3; + */ + blocksPerformanceRequirement?: PerformanceRequirement; + + /** + * Specifies performance requirements for validators in scope of the oracle price votes. If not + * met, the validator is not rewarded. + * + * @generated from field: neutron.revenue.PerformanceRequirement oracle_votes_performance_requirement = 4; + */ + oracleVotesPerformanceRequirement?: PerformanceRequirement; + + /** + * Indicates the currently active type of payment schedule. + * + * @generated from field: neutron.revenue.PaymentScheduleType payment_schedule_type = 5; + */ + paymentScheduleType?: PaymentScheduleType; + + /** + * The time window, in seconds, used to calculate the TWAP of the reward asset. + * + * @generated from field: int64 twap_window = 6; + */ + twapWindow = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reward_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reward_quote", kind: "message", T: RewardQuote }, + { no: 3, name: "blocks_performance_requirement", kind: "message", T: PerformanceRequirement }, + { no: 4, name: "oracle_votes_performance_requirement", kind: "message", T: PerformanceRequirement }, + { no: 5, name: "payment_schedule_type", kind: "message", T: PaymentScheduleType }, + { no: 6, name: "twap_window", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Defines information about the reward quote. + * + * @generated from message neutron.revenue.RewardQuote + */ +export class RewardQuote extends Message { + /** + * The compensation amount measured in the quote asset. The amount is divided by the price of + * the reward asset to determine the base revenue amount. + * + * @generated from field: uint64 amount = 1; + */ + amount = protoInt64.zero; + + /** + * The name of the quote asset. It is used as a quote in price queries to the slinky oracle + * module to determine the price of the reward asset. + * + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.RewardQuote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardQuote { + return new RewardQuote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardQuote { + return new RewardQuote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardQuote { + return new RewardQuote().fromJsonString(jsonString, options); + } + + static equals(a: RewardQuote | PlainMessage | undefined, b: RewardQuote | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardQuote, a, b); + } +} + +/** + * A model that contains information specific to the currently active payment schedule type. The + * oneof implementations define the payment schedule that must be used currently. + * This is a module's parameter. It's not updated automatically in runtime in contrast to the + * payment schedule which is a state variable, but is updated via MsgUpdateParams. + * + * @generated from message neutron.revenue.PaymentScheduleType + */ +export class PaymentScheduleType extends Message { + /** + * @generated from oneof neutron.revenue.PaymentScheduleType.payment_schedule_type + */ + paymentScheduleType: { + /** + * @generated from field: neutron.revenue.MonthlyPaymentScheduleType monthly_payment_schedule_type = 4; + */ + value: MonthlyPaymentScheduleType; + case: "monthlyPaymentScheduleType"; + } | { + /** + * @generated from field: neutron.revenue.BlockBasedPaymentScheduleType block_based_payment_schedule_type = 5; + */ + value: BlockBasedPaymentScheduleType; + case: "blockBasedPaymentScheduleType"; + } | { + /** + * @generated from field: neutron.revenue.EmptyPaymentScheduleType empty_payment_schedule_type = 6; + */ + value: EmptyPaymentScheduleType; + case: "emptyPaymentScheduleType"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.PaymentScheduleType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 4, name: "monthly_payment_schedule_type", kind: "message", T: MonthlyPaymentScheduleType, oneof: "payment_schedule_type" }, + { no: 5, name: "block_based_payment_schedule_type", kind: "message", T: BlockBasedPaymentScheduleType, oneof: "payment_schedule_type" }, + { no: 6, name: "empty_payment_schedule_type", kind: "message", T: EmptyPaymentScheduleType, oneof: "payment_schedule_type" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PaymentScheduleType { + return new PaymentScheduleType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PaymentScheduleType { + return new PaymentScheduleType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PaymentScheduleType { + return new PaymentScheduleType().fromJsonString(jsonString, options); + } + + static equals(a: PaymentScheduleType | PlainMessage | undefined, b: PaymentScheduleType | PlainMessage | undefined): boolean { + return proto3.util.equals(PaymentScheduleType, a, b); + } +} + +/** + * Monthly periods with payments made at the end of each month. + * + * @generated from message neutron.revenue.MonthlyPaymentScheduleType + */ +export class MonthlyPaymentScheduleType extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MonthlyPaymentScheduleType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MonthlyPaymentScheduleType { + return new MonthlyPaymentScheduleType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MonthlyPaymentScheduleType { + return new MonthlyPaymentScheduleType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MonthlyPaymentScheduleType { + return new MonthlyPaymentScheduleType().fromJsonString(jsonString, options); + } + + static equals(a: MonthlyPaymentScheduleType | PlainMessage | undefined, b: MonthlyPaymentScheduleType | PlainMessage | undefined): boolean { + return proto3.util.equals(MonthlyPaymentScheduleType, a, b); + } +} + +/** + * Periods defined by a specific number of blocks, with payments made when the required block + * count is reached. + * + * @generated from message neutron.revenue.BlockBasedPaymentScheduleType + */ +export class BlockBasedPaymentScheduleType extends Message { + /** + * The number of blocks in a payment period. + * + * @generated from field: uint64 blocks_per_period = 1; + */ + blocksPerPeriod = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.BlockBasedPaymentScheduleType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "blocks_per_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlockBasedPaymentScheduleType { + return new BlockBasedPaymentScheduleType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlockBasedPaymentScheduleType { + return new BlockBasedPaymentScheduleType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlockBasedPaymentScheduleType { + return new BlockBasedPaymentScheduleType().fromJsonString(jsonString, options); + } + + static equals(a: BlockBasedPaymentScheduleType | PlainMessage | undefined, b: BlockBasedPaymentScheduleType | PlainMessage | undefined): boolean { + return proto3.util.equals(BlockBasedPaymentScheduleType, a, b); + } +} + +/** + * Endless periods with payments never made. + * + * @generated from message neutron.revenue.EmptyPaymentScheduleType + */ +export class EmptyPaymentScheduleType extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.EmptyPaymentScheduleType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyPaymentScheduleType { + return new EmptyPaymentScheduleType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyPaymentScheduleType { + return new EmptyPaymentScheduleType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmptyPaymentScheduleType { + return new EmptyPaymentScheduleType().fromJsonString(jsonString, options); + } + + static equals(a: EmptyPaymentScheduleType | PlainMessage | undefined, b: EmptyPaymentScheduleType | PlainMessage | undefined): boolean { + return proto3.util.equals(EmptyPaymentScheduleType, a, b); + } +} + +/** + * Specifies a performance criteria that validators must meet to qualify for network rewards. + * + * @generated from message neutron.revenue.PerformanceRequirement + */ +export class PerformanceRequirement extends Message { + /** + * The fraction of the total performance a validator can miss without affecting their reward. + * Represented as a decimal value in the range [0.0, 1.0], where 1.0 corresponds to 100%. + * + * @generated from field: string allowed_to_miss = 1; + */ + allowedToMiss = ""; + + /** + * The minimum fraction of the total performance a validator must achieve to be eligible for + * network rewards. Validators falling below this threshold will not receive any rewards. + * Represented as a decimal value in the range [0.0, 1.0], where 1.0 corresponds to 100%. + * + * @generated from field: string required_at_least = 2; + */ + requiredAtLeast = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.PerformanceRequirement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allowed_to_miss", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "required_at_least", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PerformanceRequirement { + return new PerformanceRequirement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PerformanceRequirement { + return new PerformanceRequirement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PerformanceRequirement { + return new PerformanceRequirement().fromJsonString(jsonString, options); + } + + static equals(a: PerformanceRequirement | PlainMessage | undefined, b: PerformanceRequirement | PlainMessage | undefined): boolean { + return proto3.util.equals(PerformanceRequirement, a, b); + } +} + diff --git a/src/protobufs/neutron/revenue/query_cosmes.ts b/src/protobufs/neutron/revenue/query_cosmes.ts new file mode 100644 index 00000000..f3cd4252 --- /dev/null +++ b/src/protobufs/neutron/revenue/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/revenue/query.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse, QueryPaymentInfoRequest, QueryPaymentInfoResponse, QueryValidatorsStatsRequest, QueryValidatorsStatsResponse, QueryValidatorStatsRequest, QueryValidatorStatsResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.revenue.Query"; + +/** + * Fetches the current parameters of the revenue module. + * + * @generated from rpc neutron.revenue.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Fetches the current payment info of the module such as payment schedule and revenue details. + * + * @generated from rpc neutron.revenue.Query.PaymentInfo + */ +export const QueryPaymentInfoService = { + typeName: TYPE_NAME, + method: "PaymentInfo", + Request: QueryPaymentInfoRequest, + Response: QueryPaymentInfoResponse, +} as const; + +/** + * Fetches a given validator's stats from the revenue module's state. + * + * @generated from rpc neutron.revenue.Query.ValidatorStats + */ +export const QueryValidatorStatsService = { + typeName: TYPE_NAME, + method: "ValidatorStats", + Request: QueryValidatorStatsRequest, + Response: QueryValidatorStatsResponse, +} as const; + +/** + * Fetches all validators' stats from the revenue module's state. + * + * @generated from rpc neutron.revenue.Query.ValidatorsStats + */ +export const QueryValidatorsStatsService = { + typeName: TYPE_NAME, + method: "ValidatorsStats", + Request: QueryValidatorsStatsRequest, + Response: QueryValidatorsStatsResponse, +} as const; + diff --git a/src/protobufs/neutron/revenue/query_pb.ts b/src/protobufs/neutron/revenue/query_pb.ts new file mode 100644 index 00000000..ddbc2993 --- /dev/null +++ b/src/protobufs/neutron/revenue/query_pb.ts @@ -0,0 +1,409 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/revenue/query.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PaymentSchedule, ValidatorInfo } from "./genesis_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Request type for the Query/Params RPC method. + * + * @generated from message neutron.revenue.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * Response type for the Query/Params RPC method. + * + * @generated from message neutron.revenue.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * Contains all parameters of the module. + * + * @generated from field: neutron.revenue.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * Request type for the Query/PaymentInfo RPC method. + * + * @generated from message neutron.revenue.QueryPaymentInfoRequest + */ +export class QueryPaymentInfoRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryPaymentInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaymentInfoRequest { + return new QueryPaymentInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaymentInfoRequest { + return new QueryPaymentInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaymentInfoRequest { + return new QueryPaymentInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaymentInfoRequest | PlainMessage | undefined, b: QueryPaymentInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaymentInfoRequest, a, b); + } +} + +/** + * Response type for the Query/PaymentInfo RPC method. + * + * @generated from message neutron.revenue.QueryPaymentInfoResponse + */ +export class QueryPaymentInfoResponse extends Message { + /** + * The current payment schedule. + * + * @generated from field: neutron.revenue.PaymentSchedule payment_schedule = 1; + */ + paymentSchedule?: PaymentSchedule; + + /** + * Revenue amount multiplier value that corresponds to the effective payment period progress. + * + * @generated from field: string effective_period_progress = 2; + */ + effectivePeriodProgress = ""; + + /** + * The current TWAP of the reward asset in quote asset. Is calculated as: + * twap_from_time_t(n)_to_time_t(m) = (cumulative_price_at_t(n) - cumulative_price_at_t(m)) / (t(n) - t(m)) + * + * @generated from field: string reward_asset_twap = 3; + */ + rewardAssetTwap = ""; + + /** + * The current evaluation of the base revenue amount. This is the maximum amount a validator can + * receive in the current price condition if not affected with reducing factors (e.g. imperfect + * performance, incomplete payment period, partial validator set presence). + * + * @generated from field: cosmos.base.v1beta1.Coin base_revenue_amount = 4; + */ + baseRevenueAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryPaymentInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "payment_schedule", kind: "message", T: PaymentSchedule }, + { no: 2, name: "effective_period_progress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_asset_twap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "base_revenue_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaymentInfoResponse { + return new QueryPaymentInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaymentInfoResponse { + return new QueryPaymentInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaymentInfoResponse { + return new QueryPaymentInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaymentInfoResponse | PlainMessage | undefined, b: QueryPaymentInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaymentInfoResponse, a, b); + } +} + +/** + * Request type for the Query/ValidatorStats RPC method. + * + * @generated from message neutron.revenue.QueryValidatorStatsRequest + */ +export class QueryValidatorStatsRequest extends Message { + /** + * The validator's node operator address. + * + * @generated from field: string val_oper_address = 1; + */ + valOperAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryValidatorStatsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "val_oper_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorStatsRequest { + return new QueryValidatorStatsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorStatsRequest { + return new QueryValidatorStatsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorStatsRequest { + return new QueryValidatorStatsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorStatsRequest | PlainMessage | undefined, b: QueryValidatorStatsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorStatsRequest, a, b); + } +} + +/** + * Response type for the Query/ValidatorStats RPC method. + * + * @generated from message neutron.revenue.QueryValidatorStatsResponse + */ +export class QueryValidatorStatsResponse extends Message { + /** + * Contains the validator's information. + * + * @generated from field: neutron.revenue.ValidatorStats stats = 1; + */ + stats?: ValidatorStats; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryValidatorStatsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stats", kind: "message", T: ValidatorStats }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorStatsResponse { + return new QueryValidatorStatsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorStatsResponse { + return new QueryValidatorStatsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorStatsResponse { + return new QueryValidatorStatsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorStatsResponse | PlainMessage | undefined, b: QueryValidatorStatsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorStatsResponse, a, b); + } +} + +/** + * Request type for the Query/ValidatorsStats RPC method. + * + * @generated from message neutron.revenue.QueryValidatorsStatsRequest + */ +export class QueryValidatorsStatsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryValidatorsStatsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsStatsRequest { + return new QueryValidatorsStatsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsStatsRequest { + return new QueryValidatorsStatsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsStatsRequest { + return new QueryValidatorsStatsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorsStatsRequest | PlainMessage | undefined, b: QueryValidatorsStatsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorsStatsRequest, a, b); + } +} + +/** + * Response type for the Query/ValidatorsStats RPC method. + * + * @generated from message neutron.revenue.QueryValidatorsStatsResponse + */ +export class QueryValidatorsStatsResponse extends Message { + /** + * Contains the validators' information. + * + * @generated from field: repeated neutron.revenue.ValidatorStats stats = 1; + */ + stats: ValidatorStats[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.QueryValidatorsStatsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stats", kind: "message", T: ValidatorStats, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsStatsResponse { + return new QueryValidatorsStatsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsStatsResponse { + return new QueryValidatorsStatsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsStatsResponse { + return new QueryValidatorsStatsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorsStatsResponse | PlainMessage | undefined, b: QueryValidatorsStatsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorsStatsResponse, a, b); + } +} + +/** + * Contains validator's info and their performance rating. + * + * @generated from message neutron.revenue.ValidatorStats + */ +export class ValidatorStats extends Message { + /** + * Contains the validator's information. + * + * @generated from field: neutron.revenue.ValidatorInfo validator_info = 1; + */ + validatorInfo?: ValidatorInfo; + + /** + * The total number of blocks produced by the chain in the current payment period. + * + * @generated from field: uint64 total_produced_blocks_in_period = 2; + */ + totalProducedBlocksInPeriod = protoInt64.zero; + + /** + * The validator's performance rating. Represented as a decimal value. + * + * @generated from field: string performance_rating = 3; + */ + performanceRating = ""; + + /** + * Contains expected revenue for the validator based on their performance rating in the current + * payment period, current reward asset TWAP, and duration of validator's presence in the active + * validator set. Does not take into account effective payment period progress. + * + * @generated from field: cosmos.base.v1beta1.Coin expected_revenue = 4; + */ + expectedRevenue?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.ValidatorStats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_info", kind: "message", T: ValidatorInfo }, + { no: 2, name: "total_produced_blocks_in_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "performance_rating", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expected_revenue", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorStats { + return new ValidatorStats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorStats { + return new ValidatorStats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorStats { + return new ValidatorStats().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorStats | PlainMessage | undefined, b: ValidatorStats | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorStats, a, b); + } +} + diff --git a/src/protobufs/neutron/revenue/tx_cosmes.ts b/src/protobufs/neutron/revenue/tx_cosmes.ts new file mode 100644 index 00000000..de11515a --- /dev/null +++ b/src/protobufs/neutron/revenue/tx_cosmes.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/revenue/tx.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgFundTreasury, MsgFundTreasuryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.revenue.Msg"; + +/** + * Updates the parameters of the revenue module. This action can only be performed by the + * module's authority. + * + * @generated from rpc neutron.revenue.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * FundTreasury funds the revenue treasury module account with the specified amount. + * + * @generated from rpc neutron.revenue.Msg.FundTreasury + */ +export const MsgFundTreasuryService = { + typeName: TYPE_NAME, + method: "FundTreasury", + Request: MsgFundTreasury, + Response: MsgFundTreasuryResponse, +} as const; + diff --git a/src/protobufs/neutron/revenue/tx_pb.ts b/src/protobufs/neutron/revenue/tx_pb.ts new file mode 100644 index 00000000..5ce24eb6 --- /dev/null +++ b/src/protobufs/neutron/revenue/tx_pb.ts @@ -0,0 +1,174 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/revenue/tx.proto (package neutron.revenue, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Request type for the Msg/UpdateParams RPC method. + * + * @generated from message neutron.revenue.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * The address of the authority of the module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * The new parameters of the module. All parameters must be supplied. + * + * @generated from field: neutron.revenue.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * Response type for the Msg/UpdateParams RPC method. + * + * @generated from message neutron.revenue.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * Request type for the Msg/FundTreasury RPC method. + * + * @generated from message neutron.revenue.MsgFundTreasury + */ +export class MsgFundTreasury extends Message { + /** + * The signer of the message. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * The amount of coins to fund the revenue treasury pool with. Must match the reward asset denom. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MsgFundTreasury"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundTreasury { + return new MsgFundTreasury().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundTreasury { + return new MsgFundTreasury().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundTreasury { + return new MsgFundTreasury().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundTreasury | PlainMessage | undefined, b: MsgFundTreasury | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundTreasury, a, b); + } +} + +/** + * Response type for the Msg/FundTreasury RPC method. + * + * @generated from message neutron.revenue.MsgFundTreasuryResponse + */ +export class MsgFundTreasuryResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.revenue.MsgFundTreasuryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundTreasuryResponse { + return new MsgFundTreasuryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundTreasuryResponse { + return new MsgFundTreasuryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgFundTreasuryResponse { + return new MsgFundTreasuryResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgFundTreasuryResponse | PlainMessage | undefined, b: MsgFundTreasuryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgFundTreasuryResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/state_verifier/v1/genesis_pb.ts b/src/protobufs/neutron/state_verifier/v1/genesis_pb.ts new file mode 100644 index 00000000..1cb46a30 --- /dev/null +++ b/src/protobufs/neutron/state_verifier/v1/genesis_pb.ts @@ -0,0 +1,97 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/state_verifier/v1/genesis.proto (package neutron.state_verifier.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ConsensusState as ConsensusState$1 } from "../../../ibc/lightclients/tendermint/v1/tendermint_pb.js"; + +/** + * Describes a "light" consensus state of the chain at a particular height + * + * @generated from message neutron.state_verifier.v1.ConsensusState + */ +export class ConsensusState extends Message { + /** + * Describes a block height for which the consensus height is saved + * + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * ConsensusState defines the consensus state from Tendermint + * + * @generated from field: ibc.lightclients.tendermint.v1.ConsensusState cs = 2; + */ + cs?: ConsensusState$1; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.ConsensusState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "cs", kind: "message", T: ConsensusState$1 }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { + return new ConsensusState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { + return new ConsensusState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConsensusState { + return new ConsensusState().fromJsonString(jsonString, options); + } + + static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { + return proto3.util.equals(ConsensusState, a, b); + } +} + +/** + * Defines the state verifier module's genesis state. + * + * @generated from message neutron.state_verifier.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated neutron.state_verifier.v1.ConsensusState states = 1; + */ + states: ConsensusState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "states", kind: "message", T: ConsensusState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/neutron/state_verifier/v1/query_cosmes.ts b/src/protobufs/neutron/state_verifier/v1/query_cosmes.ts new file mode 100644 index 00000000..f96ab6b6 --- /dev/null +++ b/src/protobufs/neutron/state_verifier/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/state_verifier/v1/query.proto (package neutron.state_verifier.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryConsensusStateRequest, QueryConsensusStateResponse, QueryVerifyStateValuesRequest, QueryVerifyStateValuesResponse } from "./query_pb.js"; + +const TYPE_NAME = "neutron.state_verifier.v1.Query"; + +/** + * Verifies the values and returns an error if values cannot be verified. The query returns `QueryVerifyStateValuesResponse` response. + * + * @generated from rpc neutron.state_verifier.v1.Query.VerifyStateValues + */ +export const QueryVerifyStateValuesService = { + typeName: TYPE_NAME, + method: "VerifyStateValues", + Request: QueryVerifyStateValuesRequest, + Response: QueryVerifyStateValuesResponse, +} as const; + +/** + * Queries saved consensus state by the height. The query returns `QueryConsensusStateResponse` response. + * + * @generated from rpc neutron.state_verifier.v1.Query.QueryConsensusState + */ +export const QueryQueryConsensusStateService = { + typeName: TYPE_NAME, + method: "QueryConsensusState", + Request: QueryConsensusStateRequest, + Response: QueryConsensusStateResponse, +} as const; + diff --git a/src/protobufs/neutron/state_verifier/v1/query_pb.ts b/src/protobufs/neutron/state_verifier/v1/query_pb.ts new file mode 100644 index 00000000..ed0c373c --- /dev/null +++ b/src/protobufs/neutron/state_verifier/v1/query_pb.ts @@ -0,0 +1,182 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/state_verifier/v1/query.proto (package neutron.state_verifier.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { StorageValue } from "../../interchainqueries/tx_pb.js"; +import { ConsensusState } from "./genesis_pb.js"; + +/** + * Describes a structure to verify storage values from the chain state from a particular height in the past + * + * @generated from message neutron.state_verifier.v1.QueryVerifyStateValuesRequest + */ +export class QueryVerifyStateValuesRequest extends Message { + /** + * Refers to the block height to which the storage values belong. + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + /** + * A slice of neutron.interchainqueries.StorageValue which relate to the specified height and must be verified against + * + * @generated from field: repeated neutron.interchainqueries.StorageValue storage_values = 2; + */ + storageValues: StorageValue[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.QueryVerifyStateValuesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "storage_values", kind: "message", T: StorageValue, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyStateValuesRequest { + return new QueryVerifyStateValuesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyStateValuesRequest { + return new QueryVerifyStateValuesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyStateValuesRequest { + return new QueryVerifyStateValuesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyStateValuesRequest | PlainMessage | undefined, b: QueryVerifyStateValuesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyStateValuesRequest, a, b); + } +} + +/** + * Describes a response structure for `VerifyStateValues` query + * + * @generated from message neutron.state_verifier.v1.QueryVerifyStateValuesResponse + */ +export class QueryVerifyStateValuesResponse extends Message { + /** + * The field describes a validity of all the storage values passed to the request at a specific height + * + * @generated from field: bool valid = 1; + */ + valid = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.QueryVerifyStateValuesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyStateValuesResponse { + return new QueryVerifyStateValuesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyStateValuesResponse { + return new QueryVerifyStateValuesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVerifyStateValuesResponse { + return new QueryVerifyStateValuesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVerifyStateValuesResponse | PlainMessage | undefined, b: QueryVerifyStateValuesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVerifyStateValuesResponse, a, b); + } +} + +/** + * Describes a structure to query ConsensusState by the specified height + * + * @generated from message neutron.state_verifier.v1.QueryConsensusStateRequest + */ +export class QueryConsensusStateRequest extends Message { + /** + * Refers to the block height for which you want to query ConsensusState + * + * @generated from field: uint64 height = 1; + */ + height = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.QueryConsensusStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateRequest { + return new QueryConsensusStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateRequest | PlainMessage | undefined, b: QueryConsensusStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateRequest, a, b); + } +} + +/** + * Describes a response structure for `QueryConsensusStateRequest` query + * + * @generated from message neutron.state_verifier.v1.QueryConsensusStateResponse + */ +export class QueryConsensusStateResponse extends Message { + /** + * ConsensusState defines the consensus state from the state-verifier module + * + * @generated from field: neutron.state_verifier.v1.ConsensusState cs = 2; + */ + cs?: ConsensusState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.state_verifier.v1.QueryConsensusStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "cs", kind: "message", T: ConsensusState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateResponse { + return new QueryConsensusStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryConsensusStateResponse | PlainMessage | undefined, b: QueryConsensusStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryConsensusStateResponse, a, b); + } +} + diff --git a/src/protobufs/neutron/transfer/v1/query_cosmes.ts b/src/protobufs/neutron/transfer/v1/query_cosmes.ts new file mode 100644 index 00000000..3cfacea5 --- /dev/null +++ b/src/protobufs/neutron/transfer/v1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/transfer/v1/query.proto (package neutron.transfer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDenomHashRequest, QueryDenomHashResponse, QueryDenomTraceRequest, QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsRequest, QueryParamsResponse } from "../../../ibc/applications/transfer/v1/query_pb.js"; + +const TYPE_NAME = "neutron.transfer.Query"; + +/** + * DenomTrace queries a denomination trace information. + * + * @generated from rpc neutron.transfer.Query.DenomTrace + */ +export const QueryDenomTraceService = { + typeName: TYPE_NAME, + method: "DenomTrace", + Request: QueryDenomTraceRequest, + Response: QueryDenomTraceResponse, +} as const; + +/** + * DenomTraces queries all denomination traces. + * + * @generated from rpc neutron.transfer.Query.DenomTraces + */ +export const QueryDenomTracesService = { + typeName: TYPE_NAME, + method: "DenomTraces", + Request: QueryDenomTracesRequest, + Response: QueryDenomTracesResponse, +} as const; + +/** + * Params queries all parameters of the ibc-transfer module. + * + * @generated from rpc neutron.transfer.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * DenomHash queries a denomination hash information. + * + * @generated from rpc neutron.transfer.Query.DenomHash + */ +export const QueryDenomHashService = { + typeName: TYPE_NAME, + method: "DenomHash", + Request: QueryDenomHashRequest, + Response: QueryDenomHashResponse, +} as const; + diff --git a/src/protobufs/neutron/transfer/v1/tx_cosmes.ts b/src/protobufs/neutron/transfer/v1/tx_cosmes.ts new file mode 100644 index 00000000..a474e303 --- /dev/null +++ b/src/protobufs/neutron/transfer/v1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file neutron/transfer/v1/tx.proto (package neutron.transfer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgTransfer, MsgTransferResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "neutron.transfer.Msg"; + +/** + * Transfer defines a rpc handler method for MsgTransfer. + * + * @generated from rpc neutron.transfer.Msg.Transfer + */ +export const MsgTransferService = { + typeName: TYPE_NAME, + method: "Transfer", + Request: MsgTransfer, + Response: MsgTransferResponse, +} as const; + +/** + * UpdateParams defines a rpc handler for MsgUpdateParams. + * + * @generated from rpc neutron.transfer.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/neutron/transfer/v1/tx_pb.ts b/src/protobufs/neutron/transfer/v1/tx_pb.ts new file mode 100644 index 00000000..45cf1e3d --- /dev/null +++ b/src/protobufs/neutron/transfer/v1/tx_pb.ts @@ -0,0 +1,248 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file neutron/transfer/v1/tx.proto (package neutron.transfer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; +import { Fee } from "../../feerefunder/fee_pb.js"; +import { Params } from "../../../ibc/applications/transfer/v1/transfer_pb.js"; + +/** + * @generated from message neutron.transfer.MsgTransfer + */ +export class MsgTransfer extends Message { + /** + * the port on which the packet will be sent + * + * @generated from field: string source_port = 1; + */ + sourcePort = ""; + + /** + * the channel by which the packet will be sent + * + * @generated from field: string source_channel = 2; + */ + sourceChannel = ""; + + /** + * the tokens to be transferred + * + * @generated from field: cosmos.base.v1beta1.Coin token = 3; + */ + token?: Coin; + + /** + * the sender address + * + * @generated from field: string sender = 4; + */ + sender = ""; + + /** + * the recipient address on the destination chain + * + * @generated from field: string receiver = 5; + */ + receiver = ""; + + /** + * Timeout height relative to the current block height. + * The timeout is disabled when set to 0. + * + * @generated from field: ibc.core.client.v1.Height timeout_height = 6; + */ + timeoutHeight?: Height; + + /** + * Timeout timestamp in absolute nanoseconds since unix epoch. + * The timeout is disabled when set to 0. + * + * @generated from field: uint64 timeout_timestamp = 7; + */ + timeoutTimestamp = protoInt64.zero; + + /** + * @generated from field: string memo = 8; + */ + memo = ""; + + /** + * @generated from field: neutron.feerefunder.Fee fee = 9; + */ + fee?: Fee; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.transfer.MsgTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token", kind: "message", T: Coin }, + { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "timeout_height", kind: "message", T: Height }, + { no: 7, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "fee", kind: "message", T: Fee }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransfer { + return new MsgTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransfer | PlainMessage | undefined, b: MsgTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransfer, a, b); + } +} + +/** + * MsgTransferResponse is the modified response type for + * ibc-go MsgTransfer. + * + * @generated from message neutron.transfer.MsgTransferResponse + */ +export class MsgTransferResponse extends Message { + /** + * channel's sequence_id for outgoing ibc packet. Unique per a channel. + * + * @generated from field: uint64 sequence_id = 1; + */ + sequenceId = protoInt64.zero; + + /** + * channel src channel on neutron side transaction was submitted from + * + * @generated from field: string channel = 2; + */ + channel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.transfer.MsgTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sequence_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferResponse | PlainMessage | undefined, b: MsgTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message neutron.transfer.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * signer address + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * params defines the transfer parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: ibc.applications.transfer.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.transfer.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message neutron.transfer.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "neutron.transfer.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/devgas/v1/devgas_pb.ts b/src/protobufs/nibiru/devgas/v1/devgas_pb.ts new file mode 100644 index 00000000..110260ff --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/devgas_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/devgas.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * FeeShare defines an instance that organizes fee distribution conditions for + * the owner of a given smart contract + * + * @generated from message nibiru.devgas.v1.FeeShare + */ +export class FeeShare extends Message { + /** + * contract_address is the bech32 address of a registered contract in string + * form + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * deployer_address is the bech32 address of message sender. It must be the + * same as the contracts admin address. + * + * @generated from field: string deployer_address = 2; + */ + deployerAddress = ""; + + /** + * withdrawer_address is the bech32 address of account receiving the + * transaction fees. + * + * @generated from field: string withdrawer_address = 3; + */ + withdrawerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.FeeShare"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deployer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "withdrawer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeShare { + return new FeeShare().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeShare { + return new FeeShare().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeShare { + return new FeeShare().fromJsonString(jsonString, options); + } + + static equals(a: FeeShare | PlainMessage | undefined, b: FeeShare | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeShare, a, b); + } +} + diff --git a/src/protobufs/nibiru/devgas/v1/event_pb.ts b/src/protobufs/nibiru/devgas/v1/event_pb.ts new file mode 100644 index 00000000..80bd5d09 --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/event_pb.ts @@ -0,0 +1,224 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/event.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * ABCI event emitted when a deployer registers a contract to receive fee + * sharing payouts, specifying the deployer, contract, and withdrawer addresses. + * + * @generated from message nibiru.devgas.v1.EventRegisterDevGas + */ +export class EventRegisterDevGas extends Message { + /** + * deployer is the addess of the account that registered the smart contract to + * receive dev gas royalties. + * + * @generated from field: string deployer = 1; + */ + deployer = ""; + + /** + * Address of the smart contract. This identifies the specific contract + * that will receive fee sharing payouts. + * + * @generated from field: string contract = 2; + */ + contract = ""; + + /** + * The address that will receive the fee sharing payouts for the registered + * contract. This could be the deployer address or a separate withdrawer + * address specified. + * + * @generated from field: string withdrawer = 3; + */ + withdrawer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.EventRegisterDevGas"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "withdrawer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRegisterDevGas { + return new EventRegisterDevGas().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRegisterDevGas { + return new EventRegisterDevGas().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRegisterDevGas { + return new EventRegisterDevGas().fromJsonString(jsonString, options); + } + + static equals(a: EventRegisterDevGas | PlainMessage | undefined, b: EventRegisterDevGas | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRegisterDevGas, a, b); + } +} + +/** + * ABCI event emitted when a deployer cancels fee sharing for a contract, + * specifying the deployer and contract addresses. + * + * @generated from message nibiru.devgas.v1.EventCancelDevGas + */ +export class EventCancelDevGas extends Message { + /** + * deployer is the addess of the account that registered the smart contract to + * receive dev gas royalties. + * + * @generated from field: string deployer = 1; + */ + deployer = ""; + + /** + * Address of the smart contract. This identifies the specific contract + * that will receive fee sharing payouts. + * + * @generated from field: string contract = 2; + */ + contract = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.EventCancelDevGas"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelDevGas { + return new EventCancelDevGas().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelDevGas { + return new EventCancelDevGas().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelDevGas { + return new EventCancelDevGas().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelDevGas | PlainMessage | undefined, b: EventCancelDevGas | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelDevGas, a, b); + } +} + +/** + * ABCI event emitted when a deployer updates the fee sharing registration for a + * contract, specifying updated deployer, contract, and/or withdrawer addresses. + * + * @generated from message nibiru.devgas.v1.EventUpdateDevGas + */ +export class EventUpdateDevGas extends Message { + /** + * deployer is the addess of the account that registered the smart contract to + * receive dev gas royalties. + * + * @generated from field: string deployer = 1; + */ + deployer = ""; + + /** + * Address of the smart contract. This identifies the specific contract + * that will receive fee sharing payouts. + * + * @generated from field: string contract = 2; + */ + contract = ""; + + /** + * The address that will receive the fee sharing payouts for the registered + * contract. This could be the deployer address or a separate withdrawer + * address specified. + * + * @generated from field: string withdrawer = 3; + */ + withdrawer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.EventUpdateDevGas"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "withdrawer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUpdateDevGas { + return new EventUpdateDevGas().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUpdateDevGas { + return new EventUpdateDevGas().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUpdateDevGas { + return new EventUpdateDevGas().fromJsonString(jsonString, options); + } + + static equals(a: EventUpdateDevGas | PlainMessage | undefined, b: EventUpdateDevGas | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUpdateDevGas, a, b); + } +} + +/** + * ABCI event emitted when fee sharing payouts are made, containing details on + * the payouts in JSON format. + * + * @generated from message nibiru.devgas.v1.EventPayoutDevGas + */ +export class EventPayoutDevGas extends Message { + /** + * @generated from field: string payouts = 1; + */ + payouts = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.EventPayoutDevGas"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "payouts", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPayoutDevGas { + return new EventPayoutDevGas().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPayoutDevGas { + return new EventPayoutDevGas().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPayoutDevGas { + return new EventPayoutDevGas().fromJsonString(jsonString, options); + } + + static equals(a: EventPayoutDevGas | PlainMessage | undefined, b: EventPayoutDevGas | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPayoutDevGas, a, b); + } +} + diff --git a/src/protobufs/nibiru/devgas/v1/genesis_pb.ts b/src/protobufs/nibiru/devgas/v1/genesis_pb.ts new file mode 100644 index 00000000..a67674b1 --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/genesis_pb.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/genesis.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FeeShare } from "./devgas_pb.js"; + +/** + * GenesisState defines the module's genesis state. + * + * @generated from message nibiru.devgas.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params are the feeshare module parameters + * + * @generated from field: nibiru.devgas.v1.ModuleParams params = 1; + */ + params?: ModuleParams; + + /** + * FeeShare is a slice of active registered contracts for fee distribution + * + * @generated from field: repeated nibiru.devgas.v1.FeeShare fee_share = 2; + */ + feeShare: FeeShare[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: ModuleParams }, + { no: 2, name: "fee_share", kind: "message", T: FeeShare, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * ModuleParams defines the params for the devgas module + * + * @generated from message nibiru.devgas.v1.ModuleParams + */ +export class ModuleParams extends Message { + /** + * enable_feeshare defines a parameter to enable the feeshare module + * + * @generated from field: bool enable_fee_share = 1; + */ + enableFeeShare = false; + + /** + * developer_shares defines the proportion of the transaction fees to be + * distributed to the registered contract owner + * + * @generated from field: string developer_shares = 2; + */ + developerShares = ""; + + /** + * allowed_denoms defines the list of denoms that are allowed to be paid to + * the contract withdraw addresses. If said denom is not in the list, the fees + * will ONLY be sent to the community pool. + * If this list is empty, all denoms are allowed. + * + * @generated from field: repeated string allowed_denoms = 3; + */ + allowedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.ModuleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "enable_fee_share", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "developer_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allowed_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleParams { + return new ModuleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleParams { + return new ModuleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleParams { + return new ModuleParams().fromJsonString(jsonString, options); + } + + static equals(a: ModuleParams | PlainMessage | undefined, b: ModuleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleParams, a, b); + } +} + diff --git a/src/protobufs/nibiru/devgas/v1/query_cosmes.ts b/src/protobufs/nibiru/devgas/v1/query_cosmes.ts new file mode 100644 index 00000000..d6840a2f --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/query.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryFeeShareRequest, QueryFeeShareResponse, QueryFeeSharesByWithdrawerRequest, QueryFeeSharesByWithdrawerResponse, QueryFeeSharesRequest, QueryFeeSharesResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.devgas.v1.Query"; + +/** + * FeeShares retrieves all FeeShares that a deployer has + * registered + * + * @generated from rpc nibiru.devgas.v1.Query.FeeShares + */ +export const QueryFeeSharesService = { + typeName: TYPE_NAME, + method: "FeeShares", + Request: QueryFeeSharesRequest, + Response: QueryFeeSharesResponse, +} as const; + +/** + * FeeShare retrieves a registered FeeShare for a given contract address + * + * @generated from rpc nibiru.devgas.v1.Query.FeeShare + */ +export const QueryFeeShareService = { + typeName: TYPE_NAME, + method: "FeeShare", + Request: QueryFeeShareRequest, + Response: QueryFeeShareResponse, +} as const; + +/** + * Params retrieves the module params + * + * @generated from rpc nibiru.devgas.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * FeeSharesByWithdrawer retrieves all FeeShares with a given withdrawer + * address + * + * @generated from rpc nibiru.devgas.v1.Query.FeeSharesByWithdrawer + */ +export const QueryFeeSharesByWithdrawerService = { + typeName: TYPE_NAME, + method: "FeeSharesByWithdrawer", + Request: QueryFeeSharesByWithdrawerRequest, + Response: QueryFeeSharesByWithdrawerResponse, +} as const; + diff --git a/src/protobufs/nibiru/devgas/v1/query_pb.ts b/src/protobufs/nibiru/devgas/v1/query_pb.ts new file mode 100644 index 00000000..1ecce4fb --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/query_pb.ts @@ -0,0 +1,335 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/query.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FeeShare } from "./devgas_pb.js"; +import { ModuleParams } from "./genesis_pb.js"; + +/** + * QueryFeeSharesRequest is the request type for the Query/FeeShares RPC method. + * + * @generated from message nibiru.devgas.v1.QueryFeeSharesRequest + */ +export class QueryFeeSharesRequest extends Message { + /** + * TODO feat(devgas): re-implement the paginated version + * TODO feat(colletions): add automatic pagination generation + * + * pagination defines an optional pagination for the request. + * cosmos.base.query.v1beta1.PageRequest pagination = 1; + * + * @generated from field: string deployer = 1; + */ + deployer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeSharesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeSharesRequest { + return new QueryFeeSharesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeSharesRequest { + return new QueryFeeSharesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeSharesRequest { + return new QueryFeeSharesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeSharesRequest | PlainMessage | undefined, b: QueryFeeSharesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeSharesRequest, a, b); + } +} + +/** + * QueryFeeSharesResponse is the response type for the Query/FeeShares RPC + * method. + * + * @generated from message nibiru.devgas.v1.QueryFeeSharesResponse + */ +export class QueryFeeSharesResponse extends Message { + /** + * FeeShare is the slice of all stored Reveneue for the deployer + * + * @generated from field: repeated nibiru.devgas.v1.FeeShare feeshare = 1; + */ + feeshare: FeeShare[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeshare", kind: "message", T: FeeShare, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeSharesResponse { + return new QueryFeeSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeSharesResponse { + return new QueryFeeSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeSharesResponse { + return new QueryFeeSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeSharesResponse | PlainMessage | undefined, b: QueryFeeSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeSharesResponse, a, b); + } +} + +/** + * QueryFeeShareRequest is the request type for the Query/FeeShare RPC method. + * + * @generated from message nibiru.devgas.v1.QueryFeeShareRequest + */ +export class QueryFeeShareRequest extends Message { + /** + * contract_address of a registered contract in bech32 format + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeShareRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeShareRequest { + return new QueryFeeShareRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeShareRequest { + return new QueryFeeShareRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeShareRequest { + return new QueryFeeShareRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeShareRequest | PlainMessage | undefined, b: QueryFeeShareRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeShareRequest, a, b); + } +} + +/** + * QueryFeeShareResponse is the response type for the Query/FeeShare RPC method. + * + * @generated from message nibiru.devgas.v1.QueryFeeShareResponse + */ +export class QueryFeeShareResponse extends Message { + /** + * FeeShare is a stored Reveneue for the queried contract + * + * @generated from field: nibiru.devgas.v1.FeeShare feeshare = 1; + */ + feeshare?: FeeShare; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeShareResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeshare", kind: "message", T: FeeShare }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeShareResponse { + return new QueryFeeShareResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeShareResponse { + return new QueryFeeShareResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeShareResponse { + return new QueryFeeShareResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeShareResponse | PlainMessage | undefined, b: QueryFeeShareResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeShareResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message nibiru.devgas.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message nibiru.devgas.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params is the returned FeeShare parameter + * + * @generated from field: nibiru.devgas.v1.ModuleParams params = 1; + */ + params?: ModuleParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: ModuleParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryFeeSharesByWithdrawerRequest is the request type for the + * Query/FeeSharesByWithdrawer RPC method. + * + * @generated from message nibiru.devgas.v1.QueryFeeSharesByWithdrawerRequest + */ +export class QueryFeeSharesByWithdrawerRequest extends Message { + /** + * withdrawer_address in bech32 format + * + * @generated from field: string withdrawer_address = 1; + */ + withdrawerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeSharesByWithdrawerRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "withdrawer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeSharesByWithdrawerRequest { + return new QueryFeeSharesByWithdrawerRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeSharesByWithdrawerRequest { + return new QueryFeeSharesByWithdrawerRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeSharesByWithdrawerRequest { + return new QueryFeeSharesByWithdrawerRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeSharesByWithdrawerRequest | PlainMessage | undefined, b: QueryFeeSharesByWithdrawerRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeSharesByWithdrawerRequest, a, b); + } +} + +/** + * QueryFeeSharesByWithdrawerResponse is the response type for the + * Query/FeeSharesByWithdrawer RPC method. + * + * @generated from message nibiru.devgas.v1.QueryFeeSharesByWithdrawerResponse + */ +export class QueryFeeSharesByWithdrawerResponse extends Message { + /** + * @generated from field: repeated nibiru.devgas.v1.FeeShare feeshare = 1; + */ + feeshare: FeeShare[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.QueryFeeSharesByWithdrawerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeshare", kind: "message", T: FeeShare, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeSharesByWithdrawerResponse { + return new QueryFeeSharesByWithdrawerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeSharesByWithdrawerResponse { + return new QueryFeeSharesByWithdrawerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeeSharesByWithdrawerResponse { + return new QueryFeeSharesByWithdrawerResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeeSharesByWithdrawerResponse | PlainMessage | undefined, b: QueryFeeSharesByWithdrawerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeeSharesByWithdrawerResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/devgas/v1/tx_cosmes.ts b/src/protobufs/nibiru/devgas/v1/tx_cosmes.ts new file mode 100644 index 00000000..4ef0d192 --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/tx_cosmes.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/tx.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgCancelFeeShare, MsgCancelFeeShareResponse, MsgRegisterFeeShare, MsgRegisterFeeShareResponse, MsgUpdateFeeShare, MsgUpdateFeeShareResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "nibiru.devgas.v1.Msg"; + +/** + * RegisterFeeShare registers a new contract for receiving transaction fees + * + * @generated from rpc nibiru.devgas.v1.Msg.RegisterFeeShare + */ +export const MsgRegisterFeeShareService = { + typeName: TYPE_NAME, + method: "RegisterFeeShare", + Request: MsgRegisterFeeShare, + Response: MsgRegisterFeeShareResponse, +} as const; + +/** + * UpdateFeeShare updates the withdrawer address of a FeeShare + * + * @generated from rpc nibiru.devgas.v1.Msg.UpdateFeeShare + */ +export const MsgUpdateFeeShareService = { + typeName: TYPE_NAME, + method: "UpdateFeeShare", + Request: MsgUpdateFeeShare, + Response: MsgUpdateFeeShareResponse, +} as const; + +/** + * CancelFeeShare cancels a contract's fee registration and further receival + * of transaction fees + * + * @generated from rpc nibiru.devgas.v1.Msg.CancelFeeShare + */ +export const MsgCancelFeeShareService = { + typeName: TYPE_NAME, + method: "CancelFeeShare", + Request: MsgCancelFeeShare, + Response: MsgCancelFeeShareResponse, +} as const; + +/** + * Update the params of the module through gov v1 type. + * + * @generated from rpc nibiru.devgas.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/nibiru/devgas/v1/tx_pb.ts b/src/protobufs/nibiru/devgas/v1/tx_pb.ts new file mode 100644 index 00000000..5311399e --- /dev/null +++ b/src/protobufs/nibiru/devgas/v1/tx_pb.ts @@ -0,0 +1,367 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/devgas/v1/tx.proto (package nibiru.devgas.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ModuleParams } from "./genesis_pb.js"; + +/** + * MsgRegisterFeeShare defines a message that registers a FeeShare + * + * @generated from message nibiru.devgas.v1.MsgRegisterFeeShare + */ +export class MsgRegisterFeeShare extends Message { + /** + * contract_address in bech32 format + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * deployer_address is the bech32 address of message sender. It must be the + * same the contract's admin address + * + * @generated from field: string deployer_address = 2; + */ + deployerAddress = ""; + + /** + * withdrawer_address is the bech32 address of account receiving the + * transaction fees + * + * @generated from field: string withdrawer_address = 3; + */ + withdrawerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgRegisterFeeShare"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deployer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "withdrawer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterFeeShare { + return new MsgRegisterFeeShare().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterFeeShare { + return new MsgRegisterFeeShare().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterFeeShare { + return new MsgRegisterFeeShare().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterFeeShare | PlainMessage | undefined, b: MsgRegisterFeeShare | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterFeeShare, a, b); + } +} + +/** + * MsgRegisterFeeShareResponse defines the MsgRegisterFeeShare response type + * + * @generated from message nibiru.devgas.v1.MsgRegisterFeeShareResponse + */ +export class MsgRegisterFeeShareResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgRegisterFeeShareResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterFeeShareResponse { + return new MsgRegisterFeeShareResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterFeeShareResponse { + return new MsgRegisterFeeShareResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterFeeShareResponse { + return new MsgRegisterFeeShareResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterFeeShareResponse | PlainMessage | undefined, b: MsgRegisterFeeShareResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterFeeShareResponse, a, b); + } +} + +/** + * MsgUpdateFeeShare defines a message that updates the withdrawer address for a + * registered FeeShare + * + * @generated from message nibiru.devgas.v1.MsgUpdateFeeShare + */ +export class MsgUpdateFeeShare extends Message { + /** + * contract_address in bech32 format + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * deployer_address is the bech32 address of message sender. It must be the + * same the contract's admin address + * + * @generated from field: string deployer_address = 2; + */ + deployerAddress = ""; + + /** + * withdrawer_address is the bech32 address of account receiving the + * transaction fees + * + * @generated from field: string withdrawer_address = 3; + */ + withdrawerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgUpdateFeeShare"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deployer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "withdrawer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateFeeShare { + return new MsgUpdateFeeShare().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateFeeShare { + return new MsgUpdateFeeShare().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateFeeShare { + return new MsgUpdateFeeShare().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateFeeShare | PlainMessage | undefined, b: MsgUpdateFeeShare | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateFeeShare, a, b); + } +} + +/** + * MsgUpdateFeeShareResponse defines the MsgUpdateFeeShare response type + * + * @generated from message nibiru.devgas.v1.MsgUpdateFeeShareResponse + */ +export class MsgUpdateFeeShareResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgUpdateFeeShareResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateFeeShareResponse { + return new MsgUpdateFeeShareResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateFeeShareResponse { + return new MsgUpdateFeeShareResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateFeeShareResponse { + return new MsgUpdateFeeShareResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateFeeShareResponse | PlainMessage | undefined, b: MsgUpdateFeeShareResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateFeeShareResponse, a, b); + } +} + +/** + * MsgCancelFeeShare defines a message that cancels a registered FeeShare + * + * @generated from message nibiru.devgas.v1.MsgCancelFeeShare + */ +export class MsgCancelFeeShare extends Message { + /** + * contract_address in bech32 format + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * deployer_address is the bech32 address of message sender. It must be the + * same the contract's admin address + * + * @generated from field: string deployer_address = 2; + */ + deployerAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgCancelFeeShare"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deployer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelFeeShare { + return new MsgCancelFeeShare().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelFeeShare { + return new MsgCancelFeeShare().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelFeeShare { + return new MsgCancelFeeShare().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelFeeShare | PlainMessage | undefined, b: MsgCancelFeeShare | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelFeeShare, a, b); + } +} + +/** + * MsgCancelFeeShareResponse defines the MsgCancelFeeShare response type + * + * @generated from message nibiru.devgas.v1.MsgCancelFeeShareResponse + */ +export class MsgCancelFeeShareResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgCancelFeeShareResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelFeeShareResponse { + return new MsgCancelFeeShareResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelFeeShareResponse { + return new MsgCancelFeeShareResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelFeeShareResponse { + return new MsgCancelFeeShareResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelFeeShareResponse | PlainMessage | undefined, b: MsgCancelFeeShareResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelFeeShareResponse, a, b); + } +} + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message nibiru.devgas.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the x/feeshare parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: nibiru.devgas.v1.ModuleParams params = 2; + */ + params?: ModuleParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: ModuleParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * Since: cosmos-sdk 0.47 + * + * @generated from message nibiru.devgas.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.devgas.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/epochs/module/module_pb.ts b/src/protobufs/nibiru/epochs/module/module_pb.ts new file mode 100644 index 00000000..c32cf0f2 --- /dev/null +++ b/src/protobufs/nibiru/epochs/module/module_pb.ts @@ -0,0 +1,109 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/epochs/module/module.proto (package nibiru.epochs.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the epochs module. + * + * @generated from message nibiru.epochs.module.v1.Module + */ +export class Module extends Message { + /** + * hooks_order specifies the order of staking hooks and should be a list + * of module names which provide a staking hooks instance. If no order is + * provided, then hooks will be applied in alphabetical order of module names. + * + * @generated from field: repeated string hooks_order = 1; + */ + hooksOrder: string[] = []; + + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 2; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hooks_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.epochs.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/nibiru/epochs/v1/event_pb.ts b/src/protobufs/nibiru/epochs/v1/event_pb.ts new file mode 100644 index 00000000..e145eeae --- /dev/null +++ b/src/protobufs/nibiru/epochs/v1/event_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/epochs/v1/event.proto (package nibiru.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * @generated from message nibiru.epochs.v1.EventEpochStart + */ +export class EventEpochStart extends Message { + /** + * Epoch number, starting from 1. + * + * @generated from field: uint64 epoch_number = 1; + */ + epochNumber = protoInt64.zero; + + /** + * The start timestamp of the epoch. + * + * @generated from field: google.protobuf.Timestamp epoch_start_time = 2; + */ + epochStartTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.EventEpochStart"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "epoch_start_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventEpochStart { + return new EventEpochStart().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventEpochStart { + return new EventEpochStart().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventEpochStart { + return new EventEpochStart().fromJsonString(jsonString, options); + } + + static equals(a: EventEpochStart | PlainMessage | undefined, b: EventEpochStart | PlainMessage | undefined): boolean { + return proto3.util.equals(EventEpochStart, a, b); + } +} + +/** + * @generated from message nibiru.epochs.v1.EventEpochEnd + */ +export class EventEpochEnd extends Message { + /** + * Epoch number, starting from 1. + * + * @generated from field: uint64 epoch_number = 1; + */ + epochNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.EventEpochEnd"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventEpochEnd { + return new EventEpochEnd().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventEpochEnd { + return new EventEpochEnd().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventEpochEnd { + return new EventEpochEnd().fromJsonString(jsonString, options); + } + + static equals(a: EventEpochEnd | PlainMessage | undefined, b: EventEpochEnd | PlainMessage | undefined): boolean { + return proto3.util.equals(EventEpochEnd, a, b); + } +} + diff --git a/src/protobufs/nibiru/epochs/v1/genesis_pb.ts b/src/protobufs/nibiru/epochs/v1/genesis_pb.ts new file mode 100644 index 00000000..a59cd618 --- /dev/null +++ b/src/protobufs/nibiru/epochs/v1/genesis_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/epochs/v1/genesis.proto (package nibiru.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { EpochInfo } from "./state_pb.js"; + +/** + * GenesisState defines the epochs module's genesis state. + * + * @generated from message nibiru.epochs.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated nibiru.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/nibiru/epochs/v1/query_cosmes.ts b/src/protobufs/nibiru/epochs/v1/query_cosmes.ts new file mode 100644 index 00000000..d0574331 --- /dev/null +++ b/src/protobufs/nibiru/epochs/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/epochs/v1/query.proto (package nibiru.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCurrentEpochRequest, QueryCurrentEpochResponse, QueryEpochInfosRequest, QueryEpochInfosResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.epochs.v1.Query"; + +/** + * EpochInfos provide running epochInfos + * + * @generated from rpc nibiru.epochs.v1.Query.EpochInfos + */ +export const QueryEpochInfosService = { + typeName: TYPE_NAME, + method: "EpochInfos", + Request: QueryEpochInfosRequest, + Response: QueryEpochInfosResponse, +} as const; + +/** + * CurrentEpoch provide current epoch of specified identifier + * + * @generated from rpc nibiru.epochs.v1.Query.CurrentEpoch + */ +export const QueryCurrentEpochService = { + typeName: TYPE_NAME, + method: "CurrentEpoch", + Request: QueryCurrentEpochRequest, + Response: QueryCurrentEpochResponse, +} as const; + diff --git a/src/protobufs/nibiru/epochs/v1/query_pb.ts b/src/protobufs/nibiru/epochs/v1/query_pb.ts new file mode 100644 index 00000000..30704a2d --- /dev/null +++ b/src/protobufs/nibiru/epochs/v1/query_pb.ts @@ -0,0 +1,151 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/epochs/v1/query.proto (package nibiru.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { EpochInfo } from "./state_pb.js"; + +/** + * @generated from message nibiru.epochs.v1.QueryEpochInfosRequest + */ +export class QueryEpochInfosRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.QueryEpochInfosRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfosRequest { + return new QueryEpochInfosRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfosRequest { + return new QueryEpochInfosRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfosRequest { + return new QueryEpochInfosRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochInfosRequest | PlainMessage | undefined, b: QueryEpochInfosRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochInfosRequest, a, b); + } +} + +/** + * @generated from message nibiru.epochs.v1.QueryEpochInfosResponse + */ +export class QueryEpochInfosResponse extends Message { + /** + * @generated from field: repeated nibiru.epochs.v1.EpochInfo epochs = 1; + */ + epochs: EpochInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.QueryEpochInfosResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfosResponse { + return new QueryEpochInfosResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfosResponse { + return new QueryEpochInfosResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfosResponse { + return new QueryEpochInfosResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochInfosResponse | PlainMessage | undefined, b: QueryEpochInfosResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochInfosResponse, a, b); + } +} + +/** + * @generated from message nibiru.epochs.v1.QueryCurrentEpochRequest + */ +export class QueryCurrentEpochRequest extends Message { + /** + * @generated from field: string identifier = 1; + */ + identifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.QueryCurrentEpochRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { + return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochRequest, a, b); + } +} + +/** + * @generated from message nibiru.epochs.v1.QueryCurrentEpochResponse + */ +export class QueryCurrentEpochResponse extends Message { + /** + * @generated from field: uint64 current_epoch = 1; + */ + currentEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.QueryCurrentEpochResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { + return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCurrentEpochResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/epochs/v1/state_pb.ts b/src/protobufs/nibiru/epochs/v1/state_pb.ts new file mode 100644 index 00000000..8a9d7af8 --- /dev/null +++ b/src/protobufs/nibiru/epochs/v1/state_pb.ts @@ -0,0 +1,96 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/epochs/v1/state.proto (package nibiru.epochs.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * @generated from message nibiru.epochs.v1.EpochInfo + */ +export class EpochInfo extends Message { + /** + * A string identifier for the epoch. e.g. "15min" or "1hour" + * + * @generated from field: string identifier = 1; + */ + identifier = ""; + + /** + * When the epoch repetitino should start. + * + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime?: Timestamp; + + /** + * How long each epoch lasts for. + * + * @generated from field: google.protobuf.Duration duration = 3; + */ + duration?: Duration; + + /** + * The current epoch number, starting from 1. + * + * @generated from field: uint64 current_epoch = 4; + */ + currentEpoch = protoInt64.zero; + + /** + * The start timestamp of the current epoch. + * + * @generated from field: google.protobuf.Timestamp current_epoch_start_time = 5; + */ + currentEpochStartTime?: Timestamp; + + /** + * Whether or not this epoch has started. Set to true if current blocktime >= + * start_time. + * + * @generated from field: bool epoch_counting_started = 6; + */ + epochCountingStarted = false; + + /** + * The block height at which the current epoch started at. + * + * @generated from field: int64 current_epoch_start_height = 7; + */ + currentEpochStartHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.epochs.v1.EpochInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_time", kind: "message", T: Timestamp }, + { no: 3, name: "duration", kind: "message", T: Duration }, + { no: 4, name: "current_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "current_epoch_start_time", kind: "message", T: Timestamp }, + { no: 6, name: "epoch_counting_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "current_epoch_start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EpochInfo { + return new EpochInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EpochInfo { + return new EpochInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EpochInfo { + return new EpochInfo().fromJsonString(jsonString, options); + } + + static equals(a: EpochInfo | PlainMessage | undefined, b: EpochInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(EpochInfo, a, b); + } +} + diff --git a/src/protobufs/nibiru/genmsg/v1/genmsg_pb.ts b/src/protobufs/nibiru/genmsg/v1/genmsg_pb.ts new file mode 100644 index 00000000..19f978f2 --- /dev/null +++ b/src/protobufs/nibiru/genmsg/v1/genmsg_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/genmsg/v1/genmsg.proto (package nibiru.genmsg.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * GenesisState represents the messages to be processed during genesis by the genmsg module. + * + * @generated from message nibiru.genmsg.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated google.protobuf.Any messages = 1; + */ + messages: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.genmsg.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/module/module_pb.ts b/src/protobufs/nibiru/inflation/module/module_pb.ts new file mode 100644 index 00000000..209731ff --- /dev/null +++ b/src/protobufs/nibiru/inflation/module/module_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/module/module.proto (package nibiru.inflation.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the inflation module. + * + * @generated from message nibiru.inflation.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.inflation.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/v1/event_pb.ts b/src/protobufs/nibiru/inflation/v1/event_pb.ts new file mode 100644 index 00000000..b6a9dfee --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/event_pb.ts @@ -0,0 +1,61 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/event.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * EventInflationDistribution: Emitted when NIBI tokens are minted on the + * network based on Nibiru's inflation schedule. + * + * @generated from message nibiru.inflation.v1.EventInflationDistribution + */ +export class EventInflationDistribution extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin staking_rewards = 1; + */ + stakingRewards?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin strategic_reserve = 2; + */ + strategicReserve?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin community_pool = 3; + */ + communityPool?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.EventInflationDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_rewards", kind: "message", T: Coin }, + { no: 2, name: "strategic_reserve", kind: "message", T: Coin }, + { no: 3, name: "community_pool", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventInflationDistribution { + return new EventInflationDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventInflationDistribution { + return new EventInflationDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventInflationDistribution { + return new EventInflationDistribution().fromJsonString(jsonString, options); + } + + static equals(a: EventInflationDistribution | PlainMessage | undefined, b: EventInflationDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(EventInflationDistribution, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/v1/genesis_pb.ts b/src/protobufs/nibiru/inflation/v1/genesis_pb.ts new file mode 100644 index 00000000..9d27a819 --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/genesis_pb.ts @@ -0,0 +1,162 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/genesis.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { InflationDistribution } from "./inflation_pb.js"; + +/** + * GenesisState defines the inflation module's genesis state. + * + * @generated from message nibiru.inflation.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: nibiru.inflation.v1.Params params = 1; + */ + params?: Params; + + /** + * period is the amount of past periods, based on the epochs per period param + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * skipped_epochs is the number of epochs that have passed while inflation is + * disabled + * + * @generated from field: uint64 skipped_epochs = 3; + */ + skippedEpochs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "skipped_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * Params holds parameters for the inflation module. + * + * @generated from message nibiru.inflation.v1.Params + */ +export class Params extends Message { + /** + * inflation_enabled is the parameter that enables inflation and halts + * increasing the skipped_epochs + * + * @generated from field: bool inflation_enabled = 1; + */ + inflationEnabled = false; + + /** + * polynomial_factors takes in the variables to calculate polynomial + * inflation + * + * @generated from field: repeated string polynomial_factors = 2; + */ + polynomialFactors: string[] = []; + + /** + * inflation_distribution of the minted denom + * + * @generated from field: nibiru.inflation.v1.InflationDistribution inflation_distribution = 3; + */ + inflationDistribution?: InflationDistribution; + + /** + * epochs_per_period is the number of epochs that must pass before a new + * period is created + * + * @generated from field: uint64 epochs_per_period = 4; + */ + epochsPerPeriod = protoInt64.zero; + + /** + * periods_per_year is the number of periods that occur in a year + * + * @generated from field: uint64 periods_per_year = 5; + */ + periodsPerYear = protoInt64.zero; + + /** + * max_period is the maximum number of periods that have inflation being + * paid off. After this period, inflation will be disabled. + * + * @generated from field: uint64 max_period = 6; + */ + maxPeriod = protoInt64.zero; + + /** + * has_inflation_started is the parameter that indicates if inflation has + * started. It's set to false at the starts, and stays at true when we toggle + * inflation on. It's used to track num skipped epochs + * + * @generated from field: bool has_inflation_started = 7; + */ + hasInflationStarted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "polynomial_factors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "inflation_distribution", kind: "message", T: InflationDistribution }, + { no: 4, name: "epochs_per_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "periods_per_year", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "max_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "has_inflation_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/v1/inflation_pb.ts b/src/protobufs/nibiru/inflation/v1/inflation_pb.ts new file mode 100644 index 00000000..716fbb29 --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/inflation_pb.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/inflation.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * InflationDistribution defines the distribution in which inflation is + * allocated through minting on each epoch (staking, community, strategic). It + * excludes the team vesting distribution. + * + * @generated from message nibiru.inflation.v1.InflationDistribution + */ +export class InflationDistribution extends Message { + /** + * staking_rewards defines the proportion of the minted_denom that is + * to be allocated as staking rewards + * + * @generated from field: string staking_rewards = 1; + */ + stakingRewards = ""; + + /** + * community_pool defines the proportion of the minted_denom that is to + * be allocated to the community pool + * + * @generated from field: string community_pool = 2; + */ + communityPool = ""; + + /** + * strategic_reserves defines the proportion of the minted_denom that + * is to be allocated to the strategic reserves module address + * + * @generated from field: string strategic_reserves = 3; + */ + strategicReserves = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.InflationDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "strategic_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InflationDistribution { + return new InflationDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InflationDistribution { + return new InflationDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InflationDistribution { + return new InflationDistribution().fromJsonString(jsonString, options); + } + + static equals(a: InflationDistribution | PlainMessage | undefined, b: InflationDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(InflationDistribution, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/v1/query_cosmes.ts b/src/protobufs/nibiru/inflation/v1/query_cosmes.ts new file mode 100644 index 00000000..d100a77a --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/query_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/query.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCirculatingSupplyRequest, QueryCirculatingSupplyResponse, QueryEpochMintProvisionRequest, QueryEpochMintProvisionResponse, QueryInflationRateRequest, QueryInflationRateResponse, QueryParamsRequest, QueryParamsResponse, QueryPeriodRequest, QueryPeriodResponse, QuerySkippedEpochsRequest, QuerySkippedEpochsResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.inflation.v1.Query"; + +/** + * Period retrieves current period. + * + * @generated from rpc nibiru.inflation.v1.Query.Period + */ +export const QueryPeriodService = { + typeName: TYPE_NAME, + method: "Period", + Request: QueryPeriodRequest, + Response: QueryPeriodResponse, +} as const; + +/** + * EpochMintProvision retrieves current minting epoch provision value. + * + * @generated from rpc nibiru.inflation.v1.Query.EpochMintProvision + */ +export const QueryEpochMintProvisionService = { + typeName: TYPE_NAME, + method: "EpochMintProvision", + Request: QueryEpochMintProvisionRequest, + Response: QueryEpochMintProvisionResponse, +} as const; + +/** + * SkippedEpochs retrieves the total number of skipped epochs. + * + * @generated from rpc nibiru.inflation.v1.Query.SkippedEpochs + */ +export const QuerySkippedEpochsService = { + typeName: TYPE_NAME, + method: "SkippedEpochs", + Request: QuerySkippedEpochsRequest, + Response: QuerySkippedEpochsResponse, +} as const; + +/** + * CirculatingSupply retrieves the total number of tokens that are in + * circulation (i.e. excluding unvested tokens). + * + * @generated from rpc nibiru.inflation.v1.Query.CirculatingSupply + */ +export const QueryCirculatingSupplyService = { + typeName: TYPE_NAME, + method: "CirculatingSupply", + Request: QueryCirculatingSupplyRequest, + Response: QueryCirculatingSupplyResponse, +} as const; + +/** + * InflationRate retrieves the inflation rate of the current period. + * + * @generated from rpc nibiru.inflation.v1.Query.InflationRate + */ +export const QueryInflationRateService = { + typeName: TYPE_NAME, + method: "InflationRate", + Request: QueryInflationRateRequest, + Response: QueryInflationRateResponse, +} as const; + +/** + * Params retrieves the total set of minting parameters. + * + * @generated from rpc nibiru.inflation.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/nibiru/inflation/v1/query_pb.ts b/src/protobufs/nibiru/inflation/v1/query_pb.ts new file mode 100644 index 00000000..1e8c3751 --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/query_pb.ts @@ -0,0 +1,463 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/query.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./genesis_pb.js"; + +/** + * QueryPeriodRequest is the request type for the Query/Period RPC method. + * + * @generated from message nibiru.inflation.v1.QueryPeriodRequest + */ +export class QueryPeriodRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryPeriodRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeriodRequest { + return new QueryPeriodRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeriodRequest | PlainMessage | undefined, b: QueryPeriodRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeriodRequest, a, b); + } +} + +/** + * QueryPeriodResponse is the response type for the Query/Period RPC method. + * + * @generated from message nibiru.inflation.v1.QueryPeriodResponse + */ +export class QueryPeriodResponse extends Message { + /** + * period is the current minting per epoch provision value. + * + * @generated from field: uint64 period = 1; + */ + period = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryPeriodResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeriodResponse { + return new QueryPeriodResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeriodResponse | PlainMessage | undefined, b: QueryPeriodResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeriodResponse, a, b); + } +} + +/** + * QueryEpochMintProvisionRequest is the request type for the + * Query/EpochMintProvision RPC method. + * + * @generated from message nibiru.inflation.v1.QueryEpochMintProvisionRequest + */ +export class QueryEpochMintProvisionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryEpochMintProvisionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochMintProvisionRequest { + return new QueryEpochMintProvisionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochMintProvisionRequest | PlainMessage | undefined, b: QueryEpochMintProvisionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochMintProvisionRequest, a, b); + } +} + +/** + * QueryEpochMintProvisionResponse is the response type for the + * Query/EpochMintProvision RPC method. + * + * @generated from message nibiru.inflation.v1.QueryEpochMintProvisionResponse + */ +export class QueryEpochMintProvisionResponse extends Message { + /** + * epoch_mint_provision is the current minting per epoch provision value. + * + * @generated from field: cosmos.base.v1beta1.DecCoin epoch_mint_provision = 1; + */ + epochMintProvision?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryEpochMintProvisionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_mint_provision", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochMintProvisionResponse { + return new QueryEpochMintProvisionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochMintProvisionResponse | PlainMessage | undefined, b: QueryEpochMintProvisionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochMintProvisionResponse, a, b); + } +} + +/** + * QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC + * method. + * + * @generated from message nibiru.inflation.v1.QuerySkippedEpochsRequest + */ +export class QuerySkippedEpochsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QuerySkippedEpochsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySkippedEpochsRequest { + return new QuerySkippedEpochsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySkippedEpochsRequest | PlainMessage | undefined, b: QuerySkippedEpochsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySkippedEpochsRequest, a, b); + } +} + +/** + * QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs + * RPC method. + * + * @generated from message nibiru.inflation.v1.QuerySkippedEpochsResponse + */ +export class QuerySkippedEpochsResponse extends Message { + /** + * skipped_epochs is the number of epochs that the inflation module has been + * disabled. + * + * @generated from field: uint64 skipped_epochs = 1; + */ + skippedEpochs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QuerySkippedEpochsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "skipped_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySkippedEpochsResponse { + return new QuerySkippedEpochsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySkippedEpochsResponse | PlainMessage | undefined, b: QuerySkippedEpochsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySkippedEpochsResponse, a, b); + } +} + +/** + * QueryCirculatingSupplyRequest is the request type for the + * Query/CirculatingSupply RPC method. + * + * @generated from message nibiru.inflation.v1.QueryCirculatingSupplyRequest + */ +export class QueryCirculatingSupplyRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryCirculatingSupplyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyRequest { + return new QueryCirculatingSupplyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyRequest | PlainMessage | undefined, b: QueryCirculatingSupplyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyRequest, a, b); + } +} + +/** + * QueryCirculatingSupplyResponse is the response type for the + * Query/CirculatingSupply RPC method. + * + * @generated from message nibiru.inflation.v1.QueryCirculatingSupplyResponse + */ +export class QueryCirculatingSupplyResponse extends Message { + /** + * circulating_supply is the total amount of coins in circulation + * + * @generated from field: cosmos.base.v1beta1.DecCoin circulating_supply = 1; + */ + circulatingSupply?: DecCoin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryCirculatingSupplyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "circulating_supply", kind: "message", T: DecCoin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCirculatingSupplyResponse { + return new QueryCirculatingSupplyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCirculatingSupplyResponse | PlainMessage | undefined, b: QueryCirculatingSupplyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCirculatingSupplyResponse, a, b); + } +} + +/** + * QueryInflationRateRequest is the request type for the Query/InflationRate RPC + * method. + * + * @generated from message nibiru.inflation.v1.QueryInflationRateRequest + */ +export class QueryInflationRateRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryInflationRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationRateRequest { + return new QueryInflationRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationRateRequest | PlainMessage | undefined, b: QueryInflationRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationRateRequest, a, b); + } +} + +/** + * QueryInflationRateResponse is the response type for the Query/InflationRate + * RPC method. + * + * @generated from message nibiru.inflation.v1.QueryInflationRateResponse + */ +export class QueryInflationRateResponse extends Message { + /** + * inflation_rate by which the total supply increases within one period + * + * @generated from field: string inflation_rate = 1; + */ + inflationRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryInflationRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationRateResponse { + return new QueryInflationRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationRateResponse | PlainMessage | undefined, b: QueryInflationRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationRateResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message nibiru.inflation.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message nibiru.inflation.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: nibiru.inflation.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/inflation/v1/tx_cosmes.ts b/src/protobufs/nibiru/inflation/v1/tx_cosmes.ts new file mode 100644 index 00000000..dbdf785c --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/tx_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/tx.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgEditInflationParams, MsgEditInflationParamsResponse, MsgToggleInflation, MsgToggleInflationResponse } from "./tx_pb.js"; + +const TYPE_NAME = "nibiru.inflation.v1.Msg"; + +/** + * ToggleInflation defines a method to enable or disable inflation. + * + * @generated from rpc nibiru.inflation.v1.Msg.ToggleInflation + */ +export const MsgToggleInflationService = { + typeName: TYPE_NAME, + method: "ToggleInflation", + Request: MsgToggleInflation, + Response: MsgToggleInflationResponse, +} as const; + +/** + * EditInflationParams defines a method to edit the inflation params. + * + * @generated from rpc nibiru.inflation.v1.Msg.EditInflationParams + */ +export const MsgEditInflationParamsService = { + typeName: TYPE_NAME, + method: "EditInflationParams", + Request: MsgEditInflationParams, + Response: MsgEditInflationParamsResponse, +} as const; + diff --git a/src/protobufs/nibiru/inflation/v1/tx_pb.ts b/src/protobufs/nibiru/inflation/v1/tx_pb.ts new file mode 100644 index 00000000..4d2db18e --- /dev/null +++ b/src/protobufs/nibiru/inflation/v1/tx_pb.ts @@ -0,0 +1,266 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/inflation/v1/tx.proto (package nibiru.inflation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { InflationDistribution } from "./inflation_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgToggleInflation defines a message to enable or disable inflation. + * + * @generated from message nibiru.inflation.v1.MsgToggleInflation + */ +export class MsgToggleInflation extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: bool enable = 2; + */ + enable = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgToggleInflation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleInflation { + return new MsgToggleInflation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleInflation { + return new MsgToggleInflation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleInflation { + return new MsgToggleInflation().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleInflation | PlainMessage | undefined, b: MsgToggleInflation | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleInflation, a, b); + } +} + +/** + * @generated from message nibiru.inflation.v1.MsgEditInflationParams + */ +export class MsgEditInflationParams extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: bool inflation_enabled = 2; + */ + inflationEnabled = false; + + /** + * @generated from field: repeated string polynomial_factors = 3; + */ + polynomialFactors: string[] = []; + + /** + * @generated from field: nibiru.inflation.v1.InflationDistribution inflation_distribution = 4; + */ + inflationDistribution?: InflationDistribution; + + /** + * @generated from field: string epochs_per_period = 5; + */ + epochsPerPeriod = ""; + + /** + * @generated from field: string periods_per_year = 6; + */ + periodsPerYear = ""; + + /** + * @generated from field: string max_period = 7; + */ + maxPeriod = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgEditInflationParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "inflation_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "polynomial_factors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "inflation_distribution", kind: "message", T: InflationDistribution }, + { no: 5, name: "epochs_per_period", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "periods_per_year", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "max_period", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditInflationParams { + return new MsgEditInflationParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditInflationParams { + return new MsgEditInflationParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditInflationParams { + return new MsgEditInflationParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditInflationParams | PlainMessage | undefined, b: MsgEditInflationParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditInflationParams, a, b); + } +} + +/** + * @generated from message nibiru.inflation.v1.MsgToggleInflationResponse + */ +export class MsgToggleInflationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgToggleInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgToggleInflationResponse { + return new MsgToggleInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgToggleInflationResponse { + return new MsgToggleInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgToggleInflationResponse { + return new MsgToggleInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgToggleInflationResponse | PlainMessage | undefined, b: MsgToggleInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgToggleInflationResponse, a, b); + } +} + +/** + * @generated from message nibiru.inflation.v1.MsgEditInflationParamsResponse + */ +export class MsgEditInflationParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgEditInflationParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditInflationParamsResponse { + return new MsgEditInflationParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditInflationParamsResponse { + return new MsgEditInflationParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditInflationParamsResponse { + return new MsgEditInflationParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditInflationParamsResponse | PlainMessage | undefined, b: MsgEditInflationParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditInflationParamsResponse, a, b); + } +} + +/** + * MsgBurn: allows burning of any token + * + * @generated from message nibiru.inflation.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 2; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * @generated from message nibiru.inflation.v1.MsgBurnResponse + */ +export class MsgBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.inflation.v1.MsgBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/module/module_pb.ts b/src/protobufs/nibiru/oracle/module/module_pb.ts new file mode 100644 index 00000000..35e552c1 --- /dev/null +++ b/src/protobufs/nibiru/oracle/module/module_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/module/module.proto (package nibiru.oracle.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the oracle module. + * + * @generated from message nibiru.oracle.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.oracle.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/event_pb.ts b/src/protobufs/nibiru/oracle/v1/event_pb.ts new file mode 100644 index 00000000..f2f3b257 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/event_pb.ts @@ -0,0 +1,297 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/event.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { ExchangeRateTuple } from "./oracle_pb.js"; + +/** + * Emitted when a price is posted + * + * @generated from message nibiru.oracle.v1.EventPriceUpdate + */ +export class EventPriceUpdate extends Message { + /** + * @generated from field: string pair = 1; + */ + pair = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: int64 timestamp_ms = 3; + */ + timestampMs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.EventPriceUpdate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPriceUpdate { + return new EventPriceUpdate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPriceUpdate { + return new EventPriceUpdate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPriceUpdate { + return new EventPriceUpdate().fromJsonString(jsonString, options); + } + + static equals(a: EventPriceUpdate | PlainMessage | undefined, b: EventPriceUpdate | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPriceUpdate, a, b); + } +} + +/** + * Emitted when a valoper delegates oracle voting rights to a feeder address. + * + * @generated from message nibiru.oracle.v1.EventDelegateFeederConsent + */ +export class EventDelegateFeederConsent extends Message { + /** + * Validator is the Bech32 address that is delegating voting rights. + * + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * Feeder is the delegate or representative that will be able to send + * vote and prevote transaction messages. + * + * @generated from field: string feeder = 2; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.EventDelegateFeederConsent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDelegateFeederConsent { + return new EventDelegateFeederConsent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDelegateFeederConsent { + return new EventDelegateFeederConsent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDelegateFeederConsent { + return new EventDelegateFeederConsent().fromJsonString(jsonString, options); + } + + static equals(a: EventDelegateFeederConsent | PlainMessage | undefined, b: EventDelegateFeederConsent | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDelegateFeederConsent, a, b); + } +} + +/** + * Emitted by MsgAggregateExchangeVote when an aggregate vote is added to state + * + * @generated from message nibiru.oracle.v1.EventAggregateVote + */ +export class EventAggregateVote extends Message { + /** + * Validator is the Bech32 address to which the vote will be credited. + * + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * Feeder is the delegate or representative that will send vote and prevote + * transaction messages on behalf of the voting validator. + * + * @generated from field: string feeder = 2; + */ + feeder = ""; + + /** + * @generated from field: repeated nibiru.oracle.v1.ExchangeRateTuple prices = 3; + */ + prices: ExchangeRateTuple[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.EventAggregateVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "prices", kind: "message", T: ExchangeRateTuple, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAggregateVote { + return new EventAggregateVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAggregateVote { + return new EventAggregateVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAggregateVote { + return new EventAggregateVote().fromJsonString(jsonString, options); + } + + static equals(a: EventAggregateVote | PlainMessage | undefined, b: EventAggregateVote | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAggregateVote, a, b); + } +} + +/** + * Emitted by MsgAggregateExchangePrevote when an aggregate prevote is added + * to state + * + * @generated from message nibiru.oracle.v1.EventAggregatePrevote + */ +export class EventAggregatePrevote extends Message { + /** + * Validator is the Bech32 address to which the vote will be credited. + * + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * Feeder is the delegate or representative that will send vote and prevote + * transaction messages on behalf of the voting validator. + * + * @generated from field: string feeder = 2; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.EventAggregatePrevote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAggregatePrevote { + return new EventAggregatePrevote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAggregatePrevote { + return new EventAggregatePrevote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAggregatePrevote { + return new EventAggregatePrevote().fromJsonString(jsonString, options); + } + + static equals(a: EventAggregatePrevote | PlainMessage | undefined, b: EventAggregatePrevote | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAggregatePrevote, a, b); + } +} + +/** + * @generated from message nibiru.oracle.v1.EventValidatorPerformance + */ +export class EventValidatorPerformance extends Message { + /** + * Validator is the Bech32 address to which the vote will be credited. + * + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * Tendermint consensus voting power + * + * @generated from field: int64 voting_power = 2; + */ + votingPower = protoInt64.zero; + + /** + * RewardWeight: Weight of rewards the validator should receive in units of + * consensus power. + * + * @generated from field: int64 reward_weight = 3; + */ + rewardWeight = protoInt64.zero; + + /** + * Number of valid votes for which the validator will be rewarded + * + * @generated from field: int64 win_count = 4; + */ + winCount = protoInt64.zero; + + /** + * Number of abstained votes for which there will be no reward or punishment + * + * @generated from field: int64 abstain_count = 5; + */ + abstainCount = protoInt64.zero; + + /** + * Number of invalid/punishable votes + * + * @generated from field: int64 miss_count = 6; + */ + missCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.EventValidatorPerformance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "reward_weight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "win_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "abstain_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "miss_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventValidatorPerformance { + return new EventValidatorPerformance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventValidatorPerformance { + return new EventValidatorPerformance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventValidatorPerformance { + return new EventValidatorPerformance().fromJsonString(jsonString, options); + } + + static equals(a: EventValidatorPerformance | PlainMessage | undefined, b: EventValidatorPerformance | PlainMessage | undefined): boolean { + return proto3.util.equals(EventValidatorPerformance, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/genesis_pb.ts b/src/protobufs/nibiru/oracle/v1/genesis_pb.ts new file mode 100644 index 00000000..e00b8794 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/genesis_pb.ts @@ -0,0 +1,183 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/genesis.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AggregateExchangeRatePrevote, AggregateExchangeRateVote, ExchangeRateTuple, Params, Rewards } from "./oracle_pb.js"; + +/** + * GenesisState defines the oracle module's genesis state. + * + * @generated from message nibiru.oracle.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: nibiru.oracle.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated nibiru.oracle.v1.FeederDelegation feeder_delegations = 2; + */ + feederDelegations: FeederDelegation[] = []; + + /** + * @generated from field: repeated nibiru.oracle.v1.ExchangeRateTuple exchange_rates = 3; + */ + exchangeRates: ExchangeRateTuple[] = []; + + /** + * @generated from field: repeated nibiru.oracle.v1.MissCounter miss_counters = 4; + */ + missCounters: MissCounter[] = []; + + /** + * @generated from field: repeated nibiru.oracle.v1.AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5; + */ + aggregateExchangeRatePrevotes: AggregateExchangeRatePrevote[] = []; + + /** + * @generated from field: repeated nibiru.oracle.v1.AggregateExchangeRateVote aggregate_exchange_rate_votes = 6; + */ + aggregateExchangeRateVotes: AggregateExchangeRateVote[] = []; + + /** + * @generated from field: repeated string pairs = 7; + */ + pairs: string[] = []; + + /** + * @generated from field: repeated nibiru.oracle.v1.Rewards rewards = 8; + */ + rewards: Rewards[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "feeder_delegations", kind: "message", T: FeederDelegation, repeated: true }, + { no: 3, name: "exchange_rates", kind: "message", T: ExchangeRateTuple, repeated: true }, + { no: 4, name: "miss_counters", kind: "message", T: MissCounter, repeated: true }, + { no: 5, name: "aggregate_exchange_rate_prevotes", kind: "message", T: AggregateExchangeRatePrevote, repeated: true }, + { no: 6, name: "aggregate_exchange_rate_votes", kind: "message", T: AggregateExchangeRateVote, repeated: true }, + { no: 7, name: "pairs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "rewards", kind: "message", T: Rewards, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * FeederDelegation is the address for where oracle feeder authority are + * delegated to. By default this struct is only used at genesis to feed in + * default feeder addresses. + * + * @generated from message nibiru.oracle.v1.FeederDelegation + */ +export class FeederDelegation extends Message { + /** + * @generated from field: string feeder_address = 1; + */ + feederAddress = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.FeederDelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeederDelegation { + return new FeederDelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeederDelegation { + return new FeederDelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeederDelegation { + return new FeederDelegation().fromJsonString(jsonString, options); + } + + static equals(a: FeederDelegation | PlainMessage | undefined, b: FeederDelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(FeederDelegation, a, b); + } +} + +/** + * MissCounter defines an miss counter and validator address pair used in + * oracle module's genesis state + * + * @generated from message nibiru.oracle.v1.MissCounter + */ +export class MissCounter extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: uint64 miss_counter = 2; + */ + missCounter = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MissCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "miss_counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MissCounter { + return new MissCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MissCounter { + return new MissCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MissCounter { + return new MissCounter().fromJsonString(jsonString, options); + } + + static equals(a: MissCounter | PlainMessage | undefined, b: MissCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(MissCounter, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/oracle_pb.ts b/src/protobufs/nibiru/oracle/v1/oracle_pb.ts new file mode 100644 index 00000000..30c65c4e --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/oracle_pb.ts @@ -0,0 +1,399 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/oracle.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the module parameters for the x/oracle module. + * + * @generated from message nibiru.oracle.v1.Params + */ +export class Params extends Message { + /** + * VotePeriod defines the number of blocks during which voting takes place. + * + * @generated from field: uint64 vote_period = 1; + */ + votePeriod = protoInt64.zero; + + /** + * VoteThreshold specifies the minimum proportion of votes that must be + * received for a ballot to pass. + * + * @generated from field: string vote_threshold = 2; + */ + voteThreshold = ""; + + /** + * RewardBand defines a maximum divergence that a price vote can have from the + * weighted median in the ballot. If a vote lies within the valid range + * defined by: + * μ := weightedMedian, + * validRange := μ ± (μ * rewardBand / 2), + * then rewards are added to the validator performance. + * Note that if the reward band is smaller than 1 standard + * deviation, the band is taken to be 1 standard deviation.a price + * + * @generated from field: string reward_band = 3; + */ + rewardBand = ""; + + /** + * The set of whitelisted markets, or asset pairs, for the module. + * Ex. '["unibi:uusd","ubtc:uusd"]' + * + * @generated from field: repeated string whitelist = 4; + */ + whitelist: string[] = []; + + /** + * SlashFraction returns the proportion of an oracle's stake that gets + * slashed in the event of slashing. `SlashFraction` specifies the exact + * penalty for failing a voting period. + * + * @generated from field: string slash_fraction = 5; + */ + slashFraction = ""; + + /** + * SlashWindow returns the number of voting periods that specify a + * "slash window". After each slash window, all oracles that have missed more + * than the penalty threshold are slashed. Missing the penalty threshold is + * synonymous with submitting fewer valid votes than `MinValidPerWindow`. + * + * @generated from field: uint64 slash_window = 6; + */ + slashWindow = protoInt64.zero; + + /** + * @generated from field: string min_valid_per_window = 7; + */ + minValidPerWindow = ""; + + /** + * Amount of time to look back for TWAP calculations. + * Ex: "900.000000069s" corresponds to 900 seconds and 69 nanoseconds in JSON. + * + * @generated from field: google.protobuf.Duration twap_lookback_window = 8; + */ + twapLookbackWindow?: Duration; + + /** + * The minimum number of voters (i.e. oracle validators) per pair for it to be + * considered a passing ballot. Recommended at least 4. + * + * @generated from field: uint64 min_voters = 9; + */ + minVoters = protoInt64.zero; + + /** + * The validator fee ratio that is given to validators every epoch. + * + * @generated from field: string validator_fee_ratio = 10; + */ + validatorFeeRatio = ""; + + /** + * @generated from field: uint64 expiration_blocks = 11; + */ + expirationBlocks = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "vote_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_band", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "slash_fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "slash_window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "min_valid_per_window", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "twap_lookback_window", kind: "message", T: Duration }, + { no: 9, name: "min_voters", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "validator_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "expiration_blocks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Struct for aggregate prevoting on the ExchangeRateVote. + * The purpose of aggregate prevote is to hide vote exchange rates with hash + * which is formatted as hex string in + * SHA256("{salt}:({pair},{exchange_rate})|...|({pair},{exchange_rate}):{voter}") + * + * @generated from message nibiru.oracle.v1.AggregateExchangeRatePrevote + */ +export class AggregateExchangeRatePrevote extends Message { + /** + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * @generated from field: string voter = 2; + */ + voter = ""; + + /** + * @generated from field: uint64 submit_block = 3; + */ + submitBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.AggregateExchangeRatePrevote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "submit_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AggregateExchangeRatePrevote { + return new AggregateExchangeRatePrevote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AggregateExchangeRatePrevote { + return new AggregateExchangeRatePrevote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AggregateExchangeRatePrevote { + return new AggregateExchangeRatePrevote().fromJsonString(jsonString, options); + } + + static equals(a: AggregateExchangeRatePrevote | PlainMessage | undefined, b: AggregateExchangeRatePrevote | PlainMessage | undefined): boolean { + return proto3.util.equals(AggregateExchangeRatePrevote, a, b); + } +} + +/** + * MsgAggregateExchangeRateVote - struct for voting on + * the exchange rates different assets. + * + * @generated from message nibiru.oracle.v1.AggregateExchangeRateVote + */ +export class AggregateExchangeRateVote extends Message { + /** + * @generated from field: repeated nibiru.oracle.v1.ExchangeRateTuple exchange_rate_tuples = 1; + */ + exchangeRateTuples: ExchangeRateTuple[] = []; + + /** + * @generated from field: string voter = 2; + */ + voter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.AggregateExchangeRateVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exchange_rate_tuples", kind: "message", T: ExchangeRateTuple, repeated: true }, + { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AggregateExchangeRateVote { + return new AggregateExchangeRateVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AggregateExchangeRateVote { + return new AggregateExchangeRateVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AggregateExchangeRateVote { + return new AggregateExchangeRateVote().fromJsonString(jsonString, options); + } + + static equals(a: AggregateExchangeRateVote | PlainMessage | undefined, b: AggregateExchangeRateVote | PlainMessage | undefined): boolean { + return proto3.util.equals(AggregateExchangeRateVote, a, b); + } +} + +/** + * ExchangeRateTuple - struct to store interpreted exchange rates data to store + * + * @generated from message nibiru.oracle.v1.ExchangeRateTuple + */ +export class ExchangeRateTuple extends Message { + /** + * @generated from field: string pair = 1; + */ + pair = ""; + + /** + * @generated from field: string exchange_rate = 2; + */ + exchangeRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.ExchangeRateTuple"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExchangeRateTuple { + return new ExchangeRateTuple().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExchangeRateTuple { + return new ExchangeRateTuple().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExchangeRateTuple { + return new ExchangeRateTuple().fromJsonString(jsonString, options); + } + + static equals(a: ExchangeRateTuple | PlainMessage | undefined, b: ExchangeRateTuple | PlainMessage | undefined): boolean { + return proto3.util.equals(ExchangeRateTuple, a, b); + } +} + +/** + * @generated from message nibiru.oracle.v1.ExchangeRateAtBlock + */ +export class ExchangeRateAtBlock extends Message { + /** + * @generated from field: string exchange_rate = 1; + */ + exchangeRate = ""; + + /** + * @generated from field: uint64 created_block = 2; + */ + createdBlock = protoInt64.zero; + + /** + * Block timestamp for the block where the oracle came to consensus for this + * price. This timestamp is a conventional Unix millisecond time, i.e. the + * number of milliseconds elapsed since January 1, 1970 UTC. + * + * @generated from field: int64 block_timestamp_ms = 3; + */ + blockTimestampMs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.ExchangeRateAtBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "created_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "block_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExchangeRateAtBlock { + return new ExchangeRateAtBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExchangeRateAtBlock { + return new ExchangeRateAtBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExchangeRateAtBlock { + return new ExchangeRateAtBlock().fromJsonString(jsonString, options); + } + + static equals(a: ExchangeRateAtBlock | PlainMessage | undefined, b: ExchangeRateAtBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(ExchangeRateAtBlock, a, b); + } +} + +/** + * Rewards defines a credit object towards validators + * which provide prices faithfully for different pairs. + * + * @generated from message nibiru.oracle.v1.Rewards + */ +export class Rewards extends Message { + /** + * id uniquely identifies the rewards instance of the pair + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * vote_periods defines the vote periods left in which rewards will be + * distributed. + * + * @generated from field: uint64 vote_periods = 2; + */ + votePeriods = protoInt64.zero; + + /** + * Coins defines the amount of coins to distribute in a single vote period. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; + */ + coins: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.Rewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "vote_periods", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Rewards { + return new Rewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Rewards { + return new Rewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Rewards { + return new Rewards().fromJsonString(jsonString, options); + } + + static equals(a: Rewards | PlainMessage | undefined, b: Rewards | PlainMessage | undefined): boolean { + return proto3.util.equals(Rewards, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/query_cosmes.ts b/src/protobufs/nibiru/oracle/v1/query_cosmes.ts new file mode 100644 index 00000000..dd7c2fc6 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/query_cosmes.ts @@ -0,0 +1,154 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/query.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryActivesRequest, QueryActivesResponse, QueryAggregatePrevoteRequest, QueryAggregatePrevoteResponse, QueryAggregatePrevotesRequest, QueryAggregatePrevotesResponse, QueryAggregateVoteRequest, QueryAggregateVoteResponse, QueryAggregateVotesRequest, QueryAggregateVotesResponse, QueryExchangeRateRequest, QueryExchangeRateResponse, QueryExchangeRatesRequest, QueryExchangeRatesResponse, QueryFeederDelegationRequest, QueryFeederDelegationResponse, QueryMissCounterRequest, QueryMissCounterResponse, QueryParamsRequest, QueryParamsResponse, QueryVoteTargetsRequest, QueryVoteTargetsResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.oracle.v1.Query"; + +/** + * ExchangeRate returns exchange rate of a pair along with the block height and + * block time that the exchange rate was set by the oracle module. + * + * @generated from rpc nibiru.oracle.v1.Query.ExchangeRate + */ +export const QueryExchangeRateService = { + typeName: TYPE_NAME, + method: "ExchangeRate", + Request: QueryExchangeRateRequest, + Response: QueryExchangeRateResponse, +} as const; + +/** + * ExchangeRateTwap returns twap exchange rate of a pair + * + * @generated from rpc nibiru.oracle.v1.Query.ExchangeRateTwap + */ +export const QueryExchangeRateTwapService = { + typeName: TYPE_NAME, + method: "ExchangeRateTwap", + Request: QueryExchangeRateRequest, + Response: QueryExchangeRateResponse, +} as const; + +/** + * ExchangeRates returns exchange rates of all pairs + * + * @generated from rpc nibiru.oracle.v1.Query.ExchangeRates + */ +export const QueryExchangeRatesService = { + typeName: TYPE_NAME, + method: "ExchangeRates", + Request: QueryExchangeRatesRequest, + Response: QueryExchangeRatesResponse, +} as const; + +/** + * Actives returns all active pairs + * + * @generated from rpc nibiru.oracle.v1.Query.Actives + */ +export const QueryActivesService = { + typeName: TYPE_NAME, + method: "Actives", + Request: QueryActivesRequest, + Response: QueryActivesResponse, +} as const; + +/** + * VoteTargets returns all vote target for pairs + * + * @generated from rpc nibiru.oracle.v1.Query.VoteTargets + */ +export const QueryVoteTargetsService = { + typeName: TYPE_NAME, + method: "VoteTargets", + Request: QueryVoteTargetsRequest, + Response: QueryVoteTargetsResponse, +} as const; + +/** + * FeederDelegation returns feeder delegation of a validator + * + * @generated from rpc nibiru.oracle.v1.Query.FeederDelegation + */ +export const QueryFeederDelegationService = { + typeName: TYPE_NAME, + method: "FeederDelegation", + Request: QueryFeederDelegationRequest, + Response: QueryFeederDelegationResponse, +} as const; + +/** + * MissCounter returns oracle miss counter of a validator + * + * @generated from rpc nibiru.oracle.v1.Query.MissCounter + */ +export const QueryMissCounterService = { + typeName: TYPE_NAME, + method: "MissCounter", + Request: QueryMissCounterRequest, + Response: QueryMissCounterResponse, +} as const; + +/** + * AggregatePrevote returns an aggregate prevote of a validator + * + * @generated from rpc nibiru.oracle.v1.Query.AggregatePrevote + */ +export const QueryAggregatePrevoteService = { + typeName: TYPE_NAME, + method: "AggregatePrevote", + Request: QueryAggregatePrevoteRequest, + Response: QueryAggregatePrevoteResponse, +} as const; + +/** + * AggregatePrevotes returns aggregate prevotes of all validators + * + * @generated from rpc nibiru.oracle.v1.Query.AggregatePrevotes + */ +export const QueryAggregatePrevotesService = { + typeName: TYPE_NAME, + method: "AggregatePrevotes", + Request: QueryAggregatePrevotesRequest, + Response: QueryAggregatePrevotesResponse, +} as const; + +/** + * AggregateVote returns an aggregate vote of a validator + * + * @generated from rpc nibiru.oracle.v1.Query.AggregateVote + */ +export const QueryAggregateVoteService = { + typeName: TYPE_NAME, + method: "AggregateVote", + Request: QueryAggregateVoteRequest, + Response: QueryAggregateVoteResponse, +} as const; + +/** + * AggregateVotes returns aggregate votes of all validators + * + * @generated from rpc nibiru.oracle.v1.Query.AggregateVotes + */ +export const QueryAggregateVotesService = { + typeName: TYPE_NAME, + method: "AggregateVotes", + Request: QueryAggregateVotesRequest, + Response: QueryAggregateVotesResponse, +} as const; + +/** + * Params queries all parameters. + * + * @generated from rpc nibiru.oracle.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/nibiru/oracle/v1/query_pb.ts b/src/protobufs/nibiru/oracle/v1/query_pb.ts new file mode 100644 index 00000000..eeeff41a --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/query_pb.ts @@ -0,0 +1,914 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/query.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AggregateExchangeRatePrevote, AggregateExchangeRateVote, ExchangeRateTuple, Params } from "./oracle_pb.js"; + +/** + * QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC + * method. + * + * @generated from message nibiru.oracle.v1.QueryExchangeRateRequest + */ +export class QueryExchangeRateRequest extends Message { + /** + * pair defines the pair to query for. + * + * @generated from field: string pair = 1; + */ + pair = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryExchangeRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeRateRequest { + return new QueryExchangeRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeRateRequest { + return new QueryExchangeRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeRateRequest { + return new QueryExchangeRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeRateRequest | PlainMessage | undefined, b: QueryExchangeRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeRateRequest, a, b); + } +} + +/** + * QueryExchangeRateResponse is response type for the + * Query/ExchangeRate RPC method. + * + * @generated from message nibiru.oracle.v1.QueryExchangeRateResponse + */ +export class QueryExchangeRateResponse extends Message { + /** + * exchange_rate defines the exchange rate of assets voted by validators + * + * @generated from field: string exchange_rate = 1; + */ + exchangeRate = ""; + + /** + * Block timestamp for the block where the oracle came to consensus for this + * price. This timestamp is a conventional Unix millisecond time, i.e. the + * number of milliseconds elapsed since January 1, 1970 UTC. + * + * @generated from field: int64 block_timestamp_ms = 2; + */ + blockTimestampMs = protoInt64.zero; + + /** + * Block height when the oracle came to consensus for this price. + * + * @generated from field: uint64 block_height = 3; + */ + blockHeight = protoInt64.zero; + + /** + * True if this exchange rate has passed its expiration window. + * + * @generated from field: bool is_vintage = 4; + */ + isVintage = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryExchangeRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "is_vintage", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeRateResponse { + return new QueryExchangeRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeRateResponse { + return new QueryExchangeRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeRateResponse { + return new QueryExchangeRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeRateResponse | PlainMessage | undefined, b: QueryExchangeRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeRateResponse, a, b); + } +} + +/** + * QueryExchangeRatesRequest is the request type for the Query/ExchangeRates RPC + * method. + * + * @generated from message nibiru.oracle.v1.QueryExchangeRatesRequest + */ +export class QueryExchangeRatesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryExchangeRatesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeRatesRequest { + return new QueryExchangeRatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeRatesRequest { + return new QueryExchangeRatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeRatesRequest { + return new QueryExchangeRatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeRatesRequest | PlainMessage | undefined, b: QueryExchangeRatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeRatesRequest, a, b); + } +} + +/** + * QueryExchangeRatesResponse is response type for the + * Query/ExchangeRates RPC method. + * + * @generated from message nibiru.oracle.v1.QueryExchangeRatesResponse + */ +export class QueryExchangeRatesResponse extends Message { + /** + * exchange_rates defines a list of the exchange rate for all whitelisted + * pairs. + * + * @generated from field: repeated nibiru.oracle.v1.ExchangeRateTuple exchange_rates = 1; + */ + exchangeRates: ExchangeRateTuple[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryExchangeRatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exchange_rates", kind: "message", T: ExchangeRateTuple, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExchangeRatesResponse { + return new QueryExchangeRatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExchangeRatesResponse { + return new QueryExchangeRatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExchangeRatesResponse { + return new QueryExchangeRatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExchangeRatesResponse | PlainMessage | undefined, b: QueryExchangeRatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExchangeRatesResponse, a, b); + } +} + +/** + * QueryActivesRequest is the request type for the Query/Actives RPC method. + * + * @generated from message nibiru.oracle.v1.QueryActivesRequest + */ +export class QueryActivesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryActivesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActivesRequest { + return new QueryActivesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActivesRequest { + return new QueryActivesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActivesRequest { + return new QueryActivesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryActivesRequest | PlainMessage | undefined, b: QueryActivesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActivesRequest, a, b); + } +} + +/** + * QueryActivesResponse is response type for the + * Query/Actives RPC method. + * + * @generated from message nibiru.oracle.v1.QueryActivesResponse + */ +export class QueryActivesResponse extends Message { + /** + * actives defines a list of the pair which oracle prices agreed upon. + * + * @generated from field: repeated string actives = 1; + */ + actives: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryActivesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actives", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryActivesResponse { + return new QueryActivesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryActivesResponse { + return new QueryActivesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryActivesResponse { + return new QueryActivesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryActivesResponse | PlainMessage | undefined, b: QueryActivesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryActivesResponse, a, b); + } +} + +/** + * QueryVoteTargetsRequest is the request type for the Query/VoteTargets RPC + * method. + * + * @generated from message nibiru.oracle.v1.QueryVoteTargetsRequest + */ +export class QueryVoteTargetsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryVoteTargetsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteTargetsRequest { + return new QueryVoteTargetsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteTargetsRequest { + return new QueryVoteTargetsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteTargetsRequest { + return new QueryVoteTargetsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteTargetsRequest | PlainMessage | undefined, b: QueryVoteTargetsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteTargetsRequest, a, b); + } +} + +/** + * QueryVoteTargetsResponse is response type for the + * Query/VoteTargets RPC method. + * + * @generated from message nibiru.oracle.v1.QueryVoteTargetsResponse + */ +export class QueryVoteTargetsResponse extends Message { + /** + * vote_targets defines a list of the pairs in which everyone + * should vote in the current vote period. + * + * @generated from field: repeated string vote_targets = 1; + */ + voteTargets: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryVoteTargetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_targets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteTargetsResponse { + return new QueryVoteTargetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteTargetsResponse { + return new QueryVoteTargetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteTargetsResponse { + return new QueryVoteTargetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteTargetsResponse | PlainMessage | undefined, b: QueryVoteTargetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteTargetsResponse, a, b); + } +} + +/** + * QueryFeederDelegationRequest is the request type for the + * Query/FeederDelegation RPC method. + * + * @generated from message nibiru.oracle.v1.QueryFeederDelegationRequest + */ +export class QueryFeederDelegationRequest extends Message { + /** + * validator defines the validator address to query for. + * + * @generated from field: string validator_addr = 1; + */ + validatorAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryFeederDelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeederDelegationRequest { + return new QueryFeederDelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeederDelegationRequest { + return new QueryFeederDelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeederDelegationRequest { + return new QueryFeederDelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeederDelegationRequest | PlainMessage | undefined, b: QueryFeederDelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeederDelegationRequest, a, b); + } +} + +/** + * QueryFeederDelegationResponse is response type for the + * Query/FeederDelegation RPC method. + * + * @generated from message nibiru.oracle.v1.QueryFeederDelegationResponse + */ +export class QueryFeederDelegationResponse extends Message { + /** + * feeder_addr defines the feeder delegation of a validator + * + * @generated from field: string feeder_addr = 1; + */ + feederAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryFeederDelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeederDelegationResponse { + return new QueryFeederDelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeederDelegationResponse { + return new QueryFeederDelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryFeederDelegationResponse { + return new QueryFeederDelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryFeederDelegationResponse | PlainMessage | undefined, b: QueryFeederDelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryFeederDelegationResponse, a, b); + } +} + +/** + * QueryMissCounterRequest is the request type for the Query/MissCounter RPC + * method. + * + * @generated from message nibiru.oracle.v1.QueryMissCounterRequest + */ +export class QueryMissCounterRequest extends Message { + /** + * validator defines the validator address to query for. + * + * @generated from field: string validator_addr = 1; + */ + validatorAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryMissCounterRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMissCounterRequest { + return new QueryMissCounterRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMissCounterRequest { + return new QueryMissCounterRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMissCounterRequest { + return new QueryMissCounterRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMissCounterRequest | PlainMessage | undefined, b: QueryMissCounterRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMissCounterRequest, a, b); + } +} + +/** + * QueryMissCounterResponse is response type for the + * Query/MissCounter RPC method. + * + * @generated from message nibiru.oracle.v1.QueryMissCounterResponse + */ +export class QueryMissCounterResponse extends Message { + /** + * miss_counter defines the oracle miss counter of a validator + * + * @generated from field: uint64 miss_counter = 1; + */ + missCounter = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryMissCounterResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "miss_counter", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMissCounterResponse { + return new QueryMissCounterResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMissCounterResponse { + return new QueryMissCounterResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMissCounterResponse { + return new QueryMissCounterResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMissCounterResponse | PlainMessage | undefined, b: QueryMissCounterResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMissCounterResponse, a, b); + } +} + +/** + * QueryAggregatePrevoteRequest is the request type for the + * Query/AggregatePrevote RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregatePrevoteRequest + */ +export class QueryAggregatePrevoteRequest extends Message { + /** + * validator defines the validator address to query for. + * + * @generated from field: string validator_addr = 1; + */ + validatorAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregatePrevoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregatePrevoteRequest { + return new QueryAggregatePrevoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregatePrevoteRequest { + return new QueryAggregatePrevoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregatePrevoteRequest { + return new QueryAggregatePrevoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregatePrevoteRequest | PlainMessage | undefined, b: QueryAggregatePrevoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregatePrevoteRequest, a, b); + } +} + +/** + * QueryAggregatePrevoteResponse is response type for the + * Query/AggregatePrevote RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregatePrevoteResponse + */ +export class QueryAggregatePrevoteResponse extends Message { + /** + * aggregate_prevote defines oracle aggregate prevote submitted by a validator + * in the current vote period + * + * @generated from field: nibiru.oracle.v1.AggregateExchangeRatePrevote aggregate_prevote = 1; + */ + aggregatePrevote?: AggregateExchangeRatePrevote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregatePrevoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_prevote", kind: "message", T: AggregateExchangeRatePrevote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregatePrevoteResponse { + return new QueryAggregatePrevoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregatePrevoteResponse { + return new QueryAggregatePrevoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregatePrevoteResponse { + return new QueryAggregatePrevoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregatePrevoteResponse | PlainMessage | undefined, b: QueryAggregatePrevoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregatePrevoteResponse, a, b); + } +} + +/** + * QueryAggregatePrevotesRequest is the request type for the + * Query/AggregatePrevotes RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregatePrevotesRequest + */ +export class QueryAggregatePrevotesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregatePrevotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregatePrevotesRequest { + return new QueryAggregatePrevotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregatePrevotesRequest { + return new QueryAggregatePrevotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregatePrevotesRequest { + return new QueryAggregatePrevotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregatePrevotesRequest | PlainMessage | undefined, b: QueryAggregatePrevotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregatePrevotesRequest, a, b); + } +} + +/** + * QueryAggregatePrevotesResponse is response type for the + * Query/AggregatePrevotes RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregatePrevotesResponse + */ +export class QueryAggregatePrevotesResponse extends Message { + /** + * aggregate_prevotes defines all oracle aggregate prevotes submitted in the + * current vote period + * + * @generated from field: repeated nibiru.oracle.v1.AggregateExchangeRatePrevote aggregate_prevotes = 1; + */ + aggregatePrevotes: AggregateExchangeRatePrevote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregatePrevotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_prevotes", kind: "message", T: AggregateExchangeRatePrevote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregatePrevotesResponse { + return new QueryAggregatePrevotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregatePrevotesResponse { + return new QueryAggregatePrevotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregatePrevotesResponse { + return new QueryAggregatePrevotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregatePrevotesResponse | PlainMessage | undefined, b: QueryAggregatePrevotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregatePrevotesResponse, a, b); + } +} + +/** + * QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC + * method. + * + * @generated from message nibiru.oracle.v1.QueryAggregateVoteRequest + */ +export class QueryAggregateVoteRequest extends Message { + /** + * validator defines the validator address to query for. + * + * @generated from field: string validator_addr = 1; + */ + validatorAddr = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregateVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVoteRequest { + return new QueryAggregateVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVoteRequest { + return new QueryAggregateVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVoteRequest { + return new QueryAggregateVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVoteRequest | PlainMessage | undefined, b: QueryAggregateVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVoteRequest, a, b); + } +} + +/** + * QueryAggregateVoteResponse is response type for the + * Query/AggregateVote RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregateVoteResponse + */ +export class QueryAggregateVoteResponse extends Message { + /** + * aggregate_vote defines oracle aggregate vote submitted by a validator in + * the current vote period + * + * @generated from field: nibiru.oracle.v1.AggregateExchangeRateVote aggregate_vote = 1; + */ + aggregateVote?: AggregateExchangeRateVote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregateVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_vote", kind: "message", T: AggregateExchangeRateVote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVoteResponse { + return new QueryAggregateVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVoteResponse { + return new QueryAggregateVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVoteResponse { + return new QueryAggregateVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVoteResponse | PlainMessage | undefined, b: QueryAggregateVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVoteResponse, a, b); + } +} + +/** + * QueryAggregateVotesRequest is the request type for the Query/AggregateVotes + * RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregateVotesRequest + */ +export class QueryAggregateVotesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregateVotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVotesRequest { + return new QueryAggregateVotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVotesRequest { + return new QueryAggregateVotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVotesRequest { + return new QueryAggregateVotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVotesRequest | PlainMessage | undefined, b: QueryAggregateVotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVotesRequest, a, b); + } +} + +/** + * QueryAggregateVotesResponse is response type for the + * Query/AggregateVotes RPC method. + * + * @generated from message nibiru.oracle.v1.QueryAggregateVotesResponse + */ +export class QueryAggregateVotesResponse extends Message { + /** + * aggregate_votes defines all oracle aggregate votes submitted in the current + * vote period + * + * @generated from field: repeated nibiru.oracle.v1.AggregateExchangeRateVote aggregate_votes = 1; + */ + aggregateVotes: AggregateExchangeRateVote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryAggregateVotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "aggregate_votes", kind: "message", T: AggregateExchangeRateVote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAggregateVotesResponse { + return new QueryAggregateVotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAggregateVotesResponse { + return new QueryAggregateVotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAggregateVotesResponse { + return new QueryAggregateVotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAggregateVotesResponse | PlainMessage | undefined, b: QueryAggregateVotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAggregateVotesResponse, a, b); + } +} + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message nibiru.oracle.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message nibiru.oracle.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: nibiru.oracle.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/state_pb.ts b/src/protobufs/nibiru/oracle/v1/state_pb.ts new file mode 100644 index 00000000..354852b6 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/state_pb.ts @@ -0,0 +1,61 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/state.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * a snapshot of the prices at a given point in time + * + * @generated from message nibiru.oracle.v1.PriceSnapshot + */ +export class PriceSnapshot extends Message { + /** + * @generated from field: string pair = 1; + */ + pair = ""; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * milliseconds since unix epoch + * + * @generated from field: int64 timestamp_ms = 3; + */ + timestampMs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.PriceSnapshot"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PriceSnapshot { + return new PriceSnapshot().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PriceSnapshot { + return new PriceSnapshot().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PriceSnapshot { + return new PriceSnapshot().fromJsonString(jsonString, options); + } + + static equals(a: PriceSnapshot | PlainMessage | undefined, b: PriceSnapshot | PlainMessage | undefined): boolean { + return proto3.util.equals(PriceSnapshot, a, b); + } +} + diff --git a/src/protobufs/nibiru/oracle/v1/tx_cosmes.ts b/src/protobufs/nibiru/oracle/v1/tx_cosmes.ts new file mode 100644 index 00000000..b1342b27 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/tx_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/tx.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAggregateExchangeRatePrevote, MsgAggregateExchangeRatePrevoteResponse, MsgAggregateExchangeRateVote, MsgAggregateExchangeRateVoteResponse, MsgDelegateFeedConsent, MsgDelegateFeedConsentResponse, MsgEditOracleParams, MsgEditOracleParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "nibiru.oracle.v1.Msg"; + +/** + * AggregateExchangeRatePrevote defines a method for submitting + * aggregate exchange rate prevote + * + * @generated from rpc nibiru.oracle.v1.Msg.AggregateExchangeRatePrevote + */ +export const MsgAggregateExchangeRatePrevoteService = { + typeName: TYPE_NAME, + method: "AggregateExchangeRatePrevote", + Request: MsgAggregateExchangeRatePrevote, + Response: MsgAggregateExchangeRatePrevoteResponse, +} as const; + +/** + * AggregateExchangeRateVote defines a method for submitting + * aggregate exchange rate vote + * + * @generated from rpc nibiru.oracle.v1.Msg.AggregateExchangeRateVote + */ +export const MsgAggregateExchangeRateVoteService = { + typeName: TYPE_NAME, + method: "AggregateExchangeRateVote", + Request: MsgAggregateExchangeRateVote, + Response: MsgAggregateExchangeRateVoteResponse, +} as const; + +/** + * DelegateFeedConsent defines a method for delegating oracle voting rights + * to another address known as a price feeder. + * See https://github.com/NibiruChain/pricefeeder. + * + * @generated from rpc nibiru.oracle.v1.Msg.DelegateFeedConsent + */ +export const MsgDelegateFeedConsentService = { + typeName: TYPE_NAME, + method: "DelegateFeedConsent", + Request: MsgDelegateFeedConsent, + Response: MsgDelegateFeedConsentResponse, +} as const; + +/** + * @generated from rpc nibiru.oracle.v1.Msg.EditOracleParams + */ +export const MsgEditOracleParamsService = { + typeName: TYPE_NAME, + method: "EditOracleParams", + Request: MsgEditOracleParams, + Response: MsgEditOracleParamsResponse, +} as const; + diff --git a/src/protobufs/nibiru/oracle/v1/tx_pb.ts b/src/protobufs/nibiru/oracle/v1/tx_pb.ts new file mode 100644 index 00000000..6db438d4 --- /dev/null +++ b/src/protobufs/nibiru/oracle/v1/tx_pb.ts @@ -0,0 +1,482 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/oracle/v1/tx.proto (package nibiru.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * MsgAggregateExchangeRatePrevote represents a message to submit + * aggregate exchange rate prevote. + * + * @generated from message nibiru.oracle.v1.MsgAggregateExchangeRatePrevote + */ +export class MsgAggregateExchangeRatePrevote extends Message { + /** + * @generated from field: string hash = 1; + */ + hash = ""; + + /** + * Feeder is the Bech32 address of the price feeder. A validator may + * specify multiple price feeders by delegating them consent. The validator + * address is also a valid feeder by default. + * + * @generated from field: string feeder = 2; + */ + feeder = ""; + + /** + * Validator is the Bech32 address to which the prevote will be credited. + * + * @generated from field: string validator = 3; + */ + validator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgAggregateExchangeRatePrevote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAggregateExchangeRatePrevote { + return new MsgAggregateExchangeRatePrevote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAggregateExchangeRatePrevote { + return new MsgAggregateExchangeRatePrevote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAggregateExchangeRatePrevote { + return new MsgAggregateExchangeRatePrevote().fromJsonString(jsonString, options); + } + + static equals(a: MsgAggregateExchangeRatePrevote | PlainMessage | undefined, b: MsgAggregateExchangeRatePrevote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAggregateExchangeRatePrevote, a, b); + } +} + +/** + * MsgAggregateExchangeRatePrevoteResponse defines the + * Msg/AggregateExchangeRatePrevote response type. + * + * @generated from message nibiru.oracle.v1.MsgAggregateExchangeRatePrevoteResponse + */ +export class MsgAggregateExchangeRatePrevoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgAggregateExchangeRatePrevoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAggregateExchangeRatePrevoteResponse { + return new MsgAggregateExchangeRatePrevoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAggregateExchangeRatePrevoteResponse { + return new MsgAggregateExchangeRatePrevoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAggregateExchangeRatePrevoteResponse { + return new MsgAggregateExchangeRatePrevoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAggregateExchangeRatePrevoteResponse | PlainMessage | undefined, b: MsgAggregateExchangeRatePrevoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAggregateExchangeRatePrevoteResponse, a, b); + } +} + +/** + * MsgAggregateExchangeRateVote represents a message to submit + * aggregate exchange rate vote. + * + * @generated from message nibiru.oracle.v1.MsgAggregateExchangeRateVote + */ +export class MsgAggregateExchangeRateVote extends Message { + /** + * @generated from field: string salt = 1; + */ + salt = ""; + + /** + * @generated from field: string exchange_rates = 2; + */ + exchangeRates = ""; + + /** + * Feeder is the Bech32 address of the price feeder. A validator may + * specify multiple price feeders by delegating them consent. The validator + * address is also a valid feeder by default. + * + * @generated from field: string feeder = 3; + */ + feeder = ""; + + /** + * Validator is the Bech32 address to which the vote will be credited. + * + * @generated from field: string validator = 4; + */ + validator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgAggregateExchangeRateVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "exchange_rates", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAggregateExchangeRateVote { + return new MsgAggregateExchangeRateVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAggregateExchangeRateVote { + return new MsgAggregateExchangeRateVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAggregateExchangeRateVote { + return new MsgAggregateExchangeRateVote().fromJsonString(jsonString, options); + } + + static equals(a: MsgAggregateExchangeRateVote | PlainMessage | undefined, b: MsgAggregateExchangeRateVote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAggregateExchangeRateVote, a, b); + } +} + +/** + * MsgAggregateExchangeRateVoteResponse defines the + * Msg/AggregateExchangeRateVote response type. + * + * @generated from message nibiru.oracle.v1.MsgAggregateExchangeRateVoteResponse + */ +export class MsgAggregateExchangeRateVoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgAggregateExchangeRateVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAggregateExchangeRateVoteResponse { + return new MsgAggregateExchangeRateVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAggregateExchangeRateVoteResponse { + return new MsgAggregateExchangeRateVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAggregateExchangeRateVoteResponse { + return new MsgAggregateExchangeRateVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAggregateExchangeRateVoteResponse | PlainMessage | undefined, b: MsgAggregateExchangeRateVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAggregateExchangeRateVoteResponse, a, b); + } +} + +/** + * MsgDelegateFeedConsent represents a message to delegate oracle voting rights + * to another address. + * + * @generated from message nibiru.oracle.v1.MsgDelegateFeedConsent + */ +export class MsgDelegateFeedConsent extends Message { + /** + * @generated from field: string operator = 1; + */ + operator = ""; + + /** + * @generated from field: string delegate = 2; + */ + delegate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgDelegateFeedConsent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "delegate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateFeedConsent { + return new MsgDelegateFeedConsent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateFeedConsent { + return new MsgDelegateFeedConsent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateFeedConsent { + return new MsgDelegateFeedConsent().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateFeedConsent | PlainMessage | undefined, b: MsgDelegateFeedConsent | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateFeedConsent, a, b); + } +} + +/** + * MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response + * type. + * + * @generated from message nibiru.oracle.v1.MsgDelegateFeedConsentResponse + */ +export class MsgDelegateFeedConsentResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgDelegateFeedConsentResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateFeedConsentResponse { + return new MsgDelegateFeedConsentResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateFeedConsentResponse { + return new MsgDelegateFeedConsentResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelegateFeedConsentResponse { + return new MsgDelegateFeedConsentResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelegateFeedConsentResponse | PlainMessage | undefined, b: MsgDelegateFeedConsentResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelegateFeedConsentResponse, a, b); + } +} + +/** + * @generated from message nibiru.oracle.v1.MsgEditOracleParams + */ +export class MsgEditOracleParams extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: nibiru.oracle.v1.OracleParamsMsg params = 2; + */ + params?: OracleParamsMsg; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgEditOracleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: OracleParamsMsg }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditOracleParams { + return new MsgEditOracleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditOracleParams { + return new MsgEditOracleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditOracleParams { + return new MsgEditOracleParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditOracleParams | PlainMessage | undefined, b: MsgEditOracleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditOracleParams, a, b); + } +} + +/** + * @generated from message nibiru.oracle.v1.MsgEditOracleParamsResponse + */ +export class MsgEditOracleParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.MsgEditOracleParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditOracleParamsResponse { + return new MsgEditOracleParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditOracleParamsResponse { + return new MsgEditOracleParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditOracleParamsResponse { + return new MsgEditOracleParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditOracleParamsResponse | PlainMessage | undefined, b: MsgEditOracleParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditOracleParamsResponse, a, b); + } +} + +/** + * @generated from message nibiru.oracle.v1.OracleParamsMsg + */ +export class OracleParamsMsg extends Message { + /** + * VotePeriod defines the number of blocks during which voting takes place. + * + * @generated from field: uint64 vote_period = 1; + */ + votePeriod = protoInt64.zero; + + /** + * VoteThreshold specifies the minimum proportion of votes that must be + * received for a ballot to pass. + * + * @generated from field: string vote_threshold = 2; + */ + voteThreshold = ""; + + /** + * RewardBand defines a maxium divergence that a price vote can have from the + * weighted median in the ballot. If a vote lies within the valid range + * defined by: + * μ := weightedMedian, + * validRange := μ ± (μ * rewardBand / 2), + * then rewards are added to the validator performance. + * Note that if the reward band is smaller than 1 standard + * deviation, the band is taken to be 1 standard deviation.a price + * + * @generated from field: string reward_band = 3; + */ + rewardBand = ""; + + /** + * The set of whitelisted markets, or asset pairs, for the module. + * Ex. '["unibi:uusd","ubtc:uusd"]' + * + * @generated from field: repeated string whitelist = 4; + */ + whitelist: string[] = []; + + /** + * SlashFraction returns the proportion of an oracle's stake that gets + * slashed in the event of slashing. `SlashFraction` specifies the exact + * penalty for failing a voting period. + * + * @generated from field: string slash_fraction = 5; + */ + slashFraction = ""; + + /** + * SlashWindow returns the number of voting periods that specify a + * "slash window". After each slash window, all oracles that have missed more + * than the penalty threshold are slashed. Missing the penalty threshold is + * synonymous with submitting fewer valid votes than `MinValidPerWindow`. + * + * @generated from field: uint64 slash_window = 6; + */ + slashWindow = protoInt64.zero; + + /** + * @generated from field: string min_valid_per_window = 7; + */ + minValidPerWindow = ""; + + /** + * Amount of time to look back for TWAP calculations + * + * @generated from field: google.protobuf.Duration twap_lookback_window = 8; + */ + twapLookbackWindow?: Duration; + + /** + * The minimum number of voters (i.e. oracle validators) per pair for it to be + * considered a passing ballot. Recommended at least 4. + * + * @generated from field: uint64 min_voters = 9; + */ + minVoters = protoInt64.zero; + + /** + * The validator fee ratio that is given to validators every epoch. + * + * @generated from field: string validator_fee_ratio = 10; + */ + validatorFeeRatio = ""; + + /** + * @generated from field: uint64 expiration_blocks = 11; + */ + expirationBlocks = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.oracle.v1.OracleParamsMsg"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "vote_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_band", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "slash_fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "slash_window", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "min_valid_per_window", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "twap_lookback_window", kind: "message", T: Duration }, + { no: 9, name: "min_voters", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "validator_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "expiration_blocks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OracleParamsMsg { + return new OracleParamsMsg().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OracleParamsMsg { + return new OracleParamsMsg().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OracleParamsMsg { + return new OracleParamsMsg().fromJsonString(jsonString, options); + } + + static equals(a: OracleParamsMsg | PlainMessage | undefined, b: OracleParamsMsg | PlainMessage | undefined): boolean { + return proto3.util.equals(OracleParamsMsg, a, b); + } +} + diff --git a/src/protobufs/nibiru/sudo/module/module_pb.ts b/src/protobufs/nibiru/sudo/module/module_pb.ts new file mode 100644 index 00000000..5674b955 --- /dev/null +++ b/src/protobufs/nibiru/sudo/module/module_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/sudo/module/module.proto (package nibiru.sudo.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the sudo module. + * + * @generated from message nibiru.sudo.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.sudo.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/nibiru/sudo/v1/event_pb.ts b/src/protobufs/nibiru/sudo/v1/event_pb.ts new file mode 100644 index 00000000..2b8279bb --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/event_pb.ts @@ -0,0 +1,56 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/event.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Sudoers } from "./state_pb.js"; + +/** + * EventUpdateSudoers: ABCI event emitted upon execution of "MsgEditSudoers". + * + * @generated from message nibiru.sudo.v1.EventUpdateSudoers + */ +export class EventUpdateSudoers extends Message { + /** + * @generated from field: nibiru.sudo.v1.Sudoers sudoers = 1; + */ + sudoers?: Sudoers; + + /** + * Action is the type of update that occurred to the "sudoers" + * + * @generated from field: string action = 2; + */ + action = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.EventUpdateSudoers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sudoers", kind: "message", T: Sudoers }, + { no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUpdateSudoers { + return new EventUpdateSudoers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUpdateSudoers { + return new EventUpdateSudoers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUpdateSudoers { + return new EventUpdateSudoers().fromJsonString(jsonString, options); + } + + static equals(a: EventUpdateSudoers | PlainMessage | undefined, b: EventUpdateSudoers | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUpdateSudoers, a, b); + } +} + diff --git a/src/protobufs/nibiru/sudo/v1/query_cosmes.ts b/src/protobufs/nibiru/sudo/v1/query_cosmes.ts new file mode 100644 index 00000000..5b570c14 --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/query.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QuerySudoersRequest, QuerySudoersResponse, QueryZeroGasActorsRequest, QueryZeroGasActorsResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.sudo.v1.Query"; + +/** + * @generated from rpc nibiru.sudo.v1.Query.QuerySudoers + */ +export const QueryQuerySudoersService = { + typeName: TYPE_NAME, + method: "QuerySudoers", + Request: QuerySudoersRequest, + Response: QuerySudoersResponse, +} as const; + +/** + * QueryZeroGasActors returns the "ZeroGasActors" state. Zero gas actors are + * a set of accounts that can execute zero gas transactions against a + * whitelisted set of smart contracts. + * + * @generated from rpc nibiru.sudo.v1.Query.QueryZeroGasActors + */ +export const QueryQueryZeroGasActorsService = { + typeName: TYPE_NAME, + method: "QueryZeroGasActors", + Request: QueryZeroGasActorsRequest, + Response: QueryZeroGasActorsResponse, +} as const; + diff --git a/src/protobufs/nibiru/sudo/v1/query_pb.ts b/src/protobufs/nibiru/sudo/v1/query_pb.ts new file mode 100644 index 00000000..452b0743 --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/query_pb.ts @@ -0,0 +1,157 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/query.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Sudoers, ZeroGasActors } from "./state_pb.js"; + +/** + * QuerySudoersRequest is the request type for the gRPC query method, + * "/nibiru.sudo.v1.Query/QuerySudoers". + * + * @generated from message nibiru.sudo.v1.QuerySudoersRequest + */ +export class QuerySudoersRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.QuerySudoersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySudoersRequest { + return new QuerySudoersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySudoersRequest { + return new QuerySudoersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySudoersRequest { + return new QuerySudoersRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySudoersRequest | PlainMessage | undefined, b: QuerySudoersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySudoersRequest, a, b); + } +} + +/** + * QuerySudoersResponse is the response type for the gRPC query method, + * "/nibiru.sudo.v1.Query/QuerySudoers" + * + * @generated from message nibiru.sudo.v1.QuerySudoersResponse + */ +export class QuerySudoersResponse extends Message { + /** + * @generated from field: nibiru.sudo.v1.Sudoers sudoers = 1; + */ + sudoers?: Sudoers; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.QuerySudoersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sudoers", kind: "message", T: Sudoers }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySudoersResponse { + return new QuerySudoersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySudoersResponse { + return new QuerySudoersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySudoersResponse { + return new QuerySudoersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySudoersResponse | PlainMessage | undefined, b: QuerySudoersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySudoersResponse, a, b); + } +} + +/** + * QueryZeroGasActorsRequest is the request type for the gRPC query method, + * "/nibiru.sudo.v1.Query/QueryZeroGasActors" + * + * @generated from message nibiru.sudo.v1.QueryZeroGasActorsRequest + */ +export class QueryZeroGasActorsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.QueryZeroGasActorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZeroGasActorsRequest { + return new QueryZeroGasActorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZeroGasActorsRequest { + return new QueryZeroGasActorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryZeroGasActorsRequest { + return new QueryZeroGasActorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryZeroGasActorsRequest | PlainMessage | undefined, b: QueryZeroGasActorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryZeroGasActorsRequest, a, b); + } +} + +/** + * QueryZeroGasActorsResponse is the response type for the gRPC query method, + * "/nibiru.sudo.v1.Query/QueryZeroGasActors" + * + * @generated from message nibiru.sudo.v1.QueryZeroGasActorsResponse + */ +export class QueryZeroGasActorsResponse extends Message { + /** + * @generated from field: nibiru.sudo.v1.ZeroGasActors actors = 1; + */ + actors?: ZeroGasActors; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.QueryZeroGasActorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actors", kind: "message", T: ZeroGasActors }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZeroGasActorsResponse { + return new QueryZeroGasActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZeroGasActorsResponse { + return new QueryZeroGasActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryZeroGasActorsResponse { + return new QueryZeroGasActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryZeroGasActorsResponse | PlainMessage | undefined, b: QueryZeroGasActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryZeroGasActorsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/sudo/v1/state_pb.ts b/src/protobufs/nibiru/sudo/v1/state_pb.ts new file mode 100644 index 00000000..33edaea4 --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/state_pb.ts @@ -0,0 +1,152 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/state.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message nibiru.sudo.v1.Sudoers + */ +export class Sudoers extends Message { + /** + * Root: The "root" user. + * + * @generated from field: string root = 1; + */ + root = ""; + + /** + * Contracts: The set of contracts with elevated permissions. + * + * @generated from field: repeated string contracts = 2; + */ + contracts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.Sudoers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Sudoers { + return new Sudoers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Sudoers { + return new Sudoers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Sudoers { + return new Sudoers().fromJsonString(jsonString, options); + } + + static equals(a: Sudoers | PlainMessage | undefined, b: Sudoers | PlainMessage | undefined): boolean { + return proto3.util.equals(Sudoers, a, b); + } +} + +/** + * GenesisState: State for migrations and genesis for the x/sudo module. + * + * @generated from message nibiru.sudo.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: nibiru.sudo.v1.Sudoers sudoers = 1; + */ + sudoers?: Sudoers; + + /** + * @generated from field: nibiru.sudo.v1.ZeroGasActors zero_gas_actors = 2; + */ + zeroGasActors?: ZeroGasActors; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sudoers", kind: "message", T: Sudoers }, + { no: 2, name: "zero_gas_actors", kind: "message", T: ZeroGasActors }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * ZeroGasActors: Actors that can execute zero gas transactions against a set of + * smart contracts. + * + * @generated from message nibiru.sudo.v1.ZeroGasActors + */ +export class ZeroGasActors extends Message { + /** + * Senders: Addresses that can sign for zero gas transactions from the contract + * set. + * + * @generated from field: repeated string senders = 1; + */ + senders: string[] = []; + + /** + * Contracts: contract addresses that can be invoked by "senders" with zero gas + * costs. + * + * @generated from field: repeated string contracts = 2; + */ + contracts: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.ZeroGasActors"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "senders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ZeroGasActors { + return new ZeroGasActors().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ZeroGasActors { + return new ZeroGasActors().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ZeroGasActors { + return new ZeroGasActors().fromJsonString(jsonString, options); + } + + static equals(a: ZeroGasActors | PlainMessage | undefined, b: ZeroGasActors | PlainMessage | undefined): boolean { + return proto3.util.equals(ZeroGasActors, a, b); + } +} + diff --git a/src/protobufs/nibiru/sudo/v1/tx_cosmes.ts b/src/protobufs/nibiru/sudo/v1/tx_cosmes.ts new file mode 100644 index 00000000..8fb979ce --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/tx_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/tx.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgChangeRoot, MsgChangeRootResponse, MsgEditSudoers, MsgEditSudoersResponse, MsgEditZeroGasActors, MsgEditZeroGasActorsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "nibiru.sudo.v1.Msg"; + +/** + * EditSudoers updates the "Sudoers" state + * + * @generated from rpc nibiru.sudo.v1.Msg.EditSudoers + */ +export const MsgEditSudoersService = { + typeName: TYPE_NAME, + method: "EditSudoers", + Request: MsgEditSudoers, + Response: MsgEditSudoersResponse, +} as const; + +/** + * @generated from rpc nibiru.sudo.v1.Msg.ChangeRoot + */ +export const MsgChangeRootService = { + typeName: TYPE_NAME, + method: "ChangeRoot", + Request: MsgChangeRoot, + Response: MsgChangeRootResponse, +} as const; + +/** + * EditZeroGasActors updates the "ZeroGasActors" state. Zero gas actors are + * a set of accounts that can execute zero gas transactions against a + * whitelisted set of smart contracts. + * + * @generated from rpc nibiru.sudo.v1.Msg.EditZeroGasActors + */ +export const MsgEditZeroGasActorsService = { + typeName: TYPE_NAME, + method: "EditZeroGasActors", + Request: MsgEditZeroGasActors, + Response: MsgEditZeroGasActorsResponse, +} as const; + diff --git a/src/protobufs/nibiru/sudo/v1/tx_pb.ts b/src/protobufs/nibiru/sudo/v1/tx_pb.ts new file mode 100644 index 00000000..dcbc7ff4 --- /dev/null +++ b/src/protobufs/nibiru/sudo/v1/tx_pb.ts @@ -0,0 +1,267 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/sudo/v1/tx.proto (package nibiru.sudo.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ZeroGasActors } from "./state_pb.js"; + +/** + * MsgEditSudoers: Msg to update the "Sudoers" state. + * + * @generated from message nibiru.sudo.v1.MsgEditSudoers + */ +export class MsgEditSudoers extends Message { + /** + * Action: identifier for the type of edit that will take place. Using this + * action field prevents us from needing to create several similar message + * types. + * + * @generated from field: string action = 1; + */ + action = ""; + + /** + * Contracts: An input payload. + * + * @generated from field: repeated string contracts = 2; + */ + contracts: string[] = []; + + /** + * Sender: Address for the signer of the transaction. + * + * @generated from field: string sender = 3; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgEditSudoers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditSudoers { + return new MsgEditSudoers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditSudoers { + return new MsgEditSudoers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditSudoers { + return new MsgEditSudoers().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditSudoers | PlainMessage | undefined, b: MsgEditSudoers | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditSudoers, a, b); + } +} + +/** + * MsgEditSudoersResponse indicates the successful execution of MsgEditSudeors. + * + * @generated from message nibiru.sudo.v1.MsgEditSudoersResponse + */ +export class MsgEditSudoersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgEditSudoersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditSudoersResponse { + return new MsgEditSudoersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditSudoersResponse { + return new MsgEditSudoersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditSudoersResponse { + return new MsgEditSudoersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditSudoersResponse | PlainMessage | undefined, b: MsgEditSudoersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditSudoersResponse, a, b); + } +} + +/** + * MsgChangeRoot: Msg to update the "Sudoers" state. + * + * @generated from message nibiru.sudo.v1.MsgChangeRoot + */ +export class MsgChangeRoot extends Message { + /** + * Sender: Address for the signer of the transaction. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * NewRoot: New root address. + * + * @generated from field: string new_root = 2; + */ + newRoot = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgChangeRoot"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeRoot { + return new MsgChangeRoot().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeRoot { + return new MsgChangeRoot().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeRoot { + return new MsgChangeRoot().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeRoot | PlainMessage | undefined, b: MsgChangeRoot | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeRoot, a, b); + } +} + +/** + * MsgChangeRootResponse indicates the successful execution of MsgChangeRoot. + * + * @generated from message nibiru.sudo.v1.MsgChangeRootResponse + */ +export class MsgChangeRootResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgChangeRootResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeRootResponse { + return new MsgChangeRootResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeRootResponse { + return new MsgChangeRootResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeRootResponse { + return new MsgChangeRootResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeRootResponse | PlainMessage | undefined, b: MsgChangeRootResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeRootResponse, a, b); + } +} + +/** + * MsgEditZeroGasActors: Tx msg to update the "ZeroGasActors" state. + * + * @generated from message nibiru.sudo.v1.MsgEditZeroGasActors + */ +export class MsgEditZeroGasActors extends Message { + /** + * Actors that can execute zero gas transactions against a set of + * smart contracts. + * + * @generated from field: nibiru.sudo.v1.ZeroGasActors actors = 1; + */ + actors?: ZeroGasActors; + + /** + * Sender: Nibiru Bech32 Address for the signer of the transaction. + * + * @generated from field: string sender = 2; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgEditZeroGasActors"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actors", kind: "message", T: ZeroGasActors }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditZeroGasActors { + return new MsgEditZeroGasActors().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditZeroGasActors { + return new MsgEditZeroGasActors().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditZeroGasActors { + return new MsgEditZeroGasActors().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditZeroGasActors | PlainMessage | undefined, b: MsgEditZeroGasActors | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditZeroGasActors, a, b); + } +} + +/** + * MsgEditZeroGasActorsResponse indicates the successful execution of + * MsgEditZeroGasActors. + * + * @generated from message nibiru.sudo.v1.MsgEditZeroGasActorsResponse + */ +export class MsgEditZeroGasActorsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.sudo.v1.MsgEditZeroGasActorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditZeroGasActorsResponse { + return new MsgEditZeroGasActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditZeroGasActorsResponse { + return new MsgEditZeroGasActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgEditZeroGasActorsResponse { + return new MsgEditZeroGasActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgEditZeroGasActorsResponse | PlainMessage | undefined, b: MsgEditZeroGasActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgEditZeroGasActorsResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/tokenfactory/module/module_pb.ts b/src/protobufs/nibiru/tokenfactory/module/module_pb.ts new file mode 100644 index 00000000..fc84688c --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/module/module_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/module/module.proto (package nibiru.tokenfactory.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the tokenfactory module. + * + * @generated from message nibiru.tokenfactory.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * ModuleAccountPermission represents permissions for a module account. + * + * @generated from message nibiru.tokenfactory.module.v1.ModuleAccountPermission + */ +export class ModuleAccountPermission extends Message { + /** + * account is the name of the module. + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * permissions are the permissions this module has. Currently recognized + * values are minter, burner and staking. + * + * @generated from field: repeated string permissions = 2; + */ + permissions: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.module.v1.ModuleAccountPermission"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { + return new ModuleAccountPermission().fromJsonString(jsonString, options); + } + + static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleAccountPermission, a, b); + } +} + diff --git a/src/protobufs/nibiru/tokenfactory/v1/event_pb.ts b/src/protobufs/nibiru/tokenfactory/v1/event_pb.ts new file mode 100644 index 00000000..901134e7 --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/event_pb.ts @@ -0,0 +1,252 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/event.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; + +/** + * @generated from message nibiru.tokenfactory.v1.EventCreateDenom + */ +export class EventCreateDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.EventCreateDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreateDenom { + return new EventCreateDenom().fromJsonString(jsonString, options); + } + + static equals(a: EventCreateDenom | PlainMessage | undefined, b: EventCreateDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreateDenom, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.EventChangeAdmin + */ +export class EventChangeAdmin extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string new_admin = 2; + */ + newAdmin = ""; + + /** + * @generated from field: string old_admin = 3; + */ + oldAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.EventChangeAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "old_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventChangeAdmin { + return new EventChangeAdmin().fromJsonString(jsonString, options); + } + + static equals(a: EventChangeAdmin | PlainMessage | undefined, b: EventChangeAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(EventChangeAdmin, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.EventMint + */ +export class EventMint extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 1; + */ + coin?: Coin; + + /** + * @generated from field: string to_addr = 2; + */ + toAddr = ""; + + /** + * @generated from field: string caller = 3; + */ + caller = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.EventMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin", kind: "message", T: Coin }, + { no: 2, name: "to_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "caller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventMint { + return new EventMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventMint { + return new EventMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventMint { + return new EventMint().fromJsonString(jsonString, options); + } + + static equals(a: EventMint | PlainMessage | undefined, b: EventMint | PlainMessage | undefined): boolean { + return proto3.util.equals(EventMint, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.EventBurn + */ +export class EventBurn extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 1; + */ + coin?: Coin; + + /** + * @generated from field: string from_addr = 2; + */ + fromAddr = ""; + + /** + * @generated from field: string caller = 3; + */ + caller = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.EventBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "coin", kind: "message", T: Coin }, + { no: 2, name: "from_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "caller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBurn { + return new EventBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBurn { + return new EventBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBurn { + return new EventBurn().fromJsonString(jsonString, options); + } + + static equals(a: EventBurn | PlainMessage | undefined, b: EventBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBurn, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.EventSetDenomMetadata + */ +export class EventSetDenomMetadata extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * Metadata: Official x/bank metadata for the denom. All token factory denoms + * are standard, native assets. The "metadata.base" is the denom. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + /** + * @generated from field: string caller = 3; + */ + caller = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.EventSetDenomMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + { no: 3, name: "caller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetDenomMetadata { + return new EventSetDenomMetadata().fromJsonString(jsonString, options); + } + + static equals(a: EventSetDenomMetadata | PlainMessage | undefined, b: EventSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetDenomMetadata, a, b); + } +} + diff --git a/src/protobufs/nibiru/tokenfactory/v1/query_cosmes.ts b/src/protobufs/nibiru/tokenfactory/v1/query_cosmes.ts new file mode 100644 index 00000000..260dbcf9 --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/query.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDenomInfoRequest, QueryDenomInfoResponse, QueryDenomsRequest, QueryDenomsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "nibiru.tokenfactory.v1.Query"; + +/** + * Params retrieves the module params + * + * @generated from rpc nibiru.tokenfactory.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Denoms retrieves all registered denoms for a given creator + * + * @generated from rpc nibiru.tokenfactory.v1.Query.Denoms + */ +export const QueryDenomsService = { + typeName: TYPE_NAME, + method: "Denoms", + Request: QueryDenomsRequest, + Response: QueryDenomsResponse, +} as const; + +/** + * DenomInfo retrieves the denom metadata and admin info + * + * @generated from rpc nibiru.tokenfactory.v1.Query.DenomInfo + */ +export const QueryDenomInfoService = { + typeName: TYPE_NAME, + method: "DenomInfo", + Request: QueryDenomInfoRequest, + Response: QueryDenomInfoResponse, +} as const; + diff --git a/src/protobufs/nibiru/tokenfactory/v1/query_pb.ts b/src/protobufs/nibiru/tokenfactory/v1/query_pb.ts new file mode 100644 index 00000000..119ca7e3 --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/query_pb.ts @@ -0,0 +1,251 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/query.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ModuleParams } from "./state_pb.js"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message nibiru.tokenfactory.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message nibiru.tokenfactory.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * Module parameters stored in state + * + * @generated from field: nibiru.tokenfactory.v1.ModuleParams params = 1; + */ + params?: ModuleParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: ModuleParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDenomsRequest: gRPC query for all denoms registered for a creator + * + * @generated from message nibiru.tokenfactory.v1.QueryDenomsRequest + */ +export class QueryDenomsRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryDenomsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsRequest { + return new QueryDenomsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsRequest | PlainMessage | undefined, b: QueryDenomsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsRequest, a, b); + } +} + +/** + * QueryDenomsResponse: All registered denoms for a creator + * + * @generated from message nibiru.tokenfactory.v1.QueryDenomsResponse + */ +export class QueryDenomsResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryDenomsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsResponse { + return new QueryDenomsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsResponse | PlainMessage | undefined, b: QueryDenomsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsResponse, a, b); + } +} + +/** + * QueryDenomInfoRequest: gRPC query for the denom admin and x/bank metadata + * + * @generated from message nibiru.tokenfactory.v1.QueryDenomInfoRequest + */ +export class QueryDenomInfoRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryDenomInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomInfoRequest { + return new QueryDenomInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomInfoRequest { + return new QueryDenomInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomInfoRequest { + return new QueryDenomInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomInfoRequest | PlainMessage | undefined, b: QueryDenomInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomInfoRequest, a, b); + } +} + +/** + * QueryDenomInfoResponse: All registered denoms for a creator + * + * @generated from message nibiru.tokenfactory.v1.QueryDenomInfoResponse + */ +export class QueryDenomInfoResponse extends Message { + /** + * Admin of the token factory denom + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * Metadata: Official x/bank metadata for the denom. All token factory denoms + * are standard, native assets. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.QueryDenomInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomInfoResponse { + return new QueryDenomInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomInfoResponse { + return new QueryDenomInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomInfoResponse { + return new QueryDenomInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomInfoResponse | PlainMessage | undefined, b: QueryDenomInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomInfoResponse, a, b); + } +} + diff --git a/src/protobufs/nibiru/tokenfactory/v1/state_pb.ts b/src/protobufs/nibiru/tokenfactory/v1/state_pb.ts new file mode 100644 index 00000000..5332fdce --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/state_pb.ts @@ -0,0 +1,260 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/state.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * DenomAuthorityMetadata specifies metadata foraddresses that have specific + * capabilities over a token factory denom. Right now there is only one Admin + * permission, but is planned to be extended to the future. + * + * @generated from message nibiru.tokenfactory.v1.DenomAuthorityMetadata + */ +export class DenomAuthorityMetadata extends Message { + /** + * Admin: Bech32 address of the admin for the tokefactory denom. Can be empty + * for no admin. + * + * @generated from field: string admin = 1; + */ + admin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.DenomAuthorityMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJsonString(jsonString, options); + } + + static equals(a: DenomAuthorityMetadata | PlainMessage | undefined, b: DenomAuthorityMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomAuthorityMetadata, a, b); + } +} + +/** + * ModuleParams defines the parameters for the tokenfactory module. + * + * ### On Denom Creation Costs + * + * We'd like for fees to be paid by the user/signer of a ransaction, but in many + * casess, token creation is abstracted away behind a smart contract. Setting a + * nonzero `denom_creation_fee` would force each contract to handle collecting + * and paying a fees for denom (factory/{contract-addr}/{subdenom}) creation on + * behalf of the end user. + * + * For IBC token transfers, it's unclear who should pay the fee—the contract, + * the relayer, or the original sender? + * > "Charging fees will mess up composability, the same way Terra transfer tax + * caused all kinds of headaches for contract devs." - @ethanfrey + * + * ### Recommended Solution + * + * Have the end user (signer) pay fees directly in the form of higher gas costs. + * This way, contracts won't need to handle collecting or paying fees. And for + * IBC, the gas costs are already paid by the original sender and can be + * estimated by the relayer. It's easier to tune gas costs to make spam + * prohibitively expensive since there are per-transaction and per-block gas + * limits. + * + * See https://github.com/CosmWasm/token-factory/issues/11 for the initial + * discussion of the issue with @ethanfrey and @valardragon. + * + * @generated from message nibiru.tokenfactory.v1.ModuleParams + */ +export class ModuleParams extends Message { + /** + * Adds gas consumption to the execution of `MsgCreateDenom` as a method of + * spam prevention. Defaults to 10 NIBI. + * + * @generated from field: uint64 denom_creation_gas_consume = 1; + */ + denomCreationGasConsume = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.ModuleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleParams { + return new ModuleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleParams { + return new ModuleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleParams { + return new ModuleParams().fromJsonString(jsonString, options); + } + + static equals(a: ModuleParams | PlainMessage | undefined, b: ModuleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleParams, a, b); + } +} + +/** + * TFDenom is a token factory (TF) denom. The canonical representation is + * "tf/{creator}/{subdenom}", its unique denomination in the x/bank module. + * + * @generated from message nibiru.tokenfactory.v1.TFDenom + */ +export class TFDenom extends Message { + /** + * Creator: Bech32 address of the creator of the denom. + * + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * Subdenom: Unique suffix of a token factory denom. A subdenom is specific + * to a given creator. It is the name given during a token factory "Mint". + * + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.TFDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TFDenom { + return new TFDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TFDenom { + return new TFDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TFDenom { + return new TFDenom().fromJsonString(jsonString, options); + } + + static equals(a: TFDenom | PlainMessage | undefined, b: TFDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(TFDenom, a, b); + } +} + +/** + * GenesisState for the Token Factory module. + * + * @generated from message nibiru.tokenfactory.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: nibiru.tokenfactory.v1.ModuleParams params = 1; + */ + params?: ModuleParams; + + /** + * @generated from field: repeated nibiru.tokenfactory.v1.GenesisDenom factory_denoms = 2; + */ + factoryDenoms: GenesisDenom[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: ModuleParams }, + { no: 2, name: "factory_denoms", kind: "message", T: GenesisDenom, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisDenom defines a tokenfactory denoms in the genesis state. + * + * @generated from message nibiru.tokenfactory.v1.GenesisDenom + */ +export class GenesisDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: nibiru.tokenfactory.v1.DenomAuthorityMetadata authority_metadata = 2; + */ + authorityMetadata?: DenomAuthorityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.GenesisDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDenom { + return new GenesisDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJsonString(jsonString, options); + } + + static equals(a: GenesisDenom | PlainMessage | undefined, b: GenesisDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisDenom, a, b); + } +} + diff --git a/src/protobufs/nibiru/tokenfactory/v1/tx_cosmes.ts b/src/protobufs/nibiru/tokenfactory/v1/tx_cosmes.ts new file mode 100644 index 00000000..c8785899 --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/tx_cosmes.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/tx.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurn, MsgBurnNative, MsgBurnNativeResponse, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse, MsgCreateDenom, MsgCreateDenomResponse, MsgMint, MsgMintResponse, MsgSetDenomMetadata, MsgSetDenomMetadataResponse, MsgSudoSetDenomMetadata, MsgSudoSetDenomMetadataResponse, MsgUpdateModuleParams, MsgUpdateModuleParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "nibiru.tokenfactory.v1.Msg"; + +/** + * CreateDenom: registers a token factory denom. + * + * @generated from rpc nibiru.tokenfactory.v1.Msg.CreateDenom + */ +export const MsgCreateDenomService = { + typeName: TYPE_NAME, + method: "CreateDenom", + Request: MsgCreateDenom, + Response: MsgCreateDenomResponse, +} as const; + +/** + * @generated from rpc nibiru.tokenfactory.v1.Msg.ChangeAdmin + */ +export const MsgChangeAdminService = { + typeName: TYPE_NAME, + method: "ChangeAdmin", + Request: MsgChangeAdmin, + Response: MsgChangeAdminResponse, +} as const; + +/** + * UpdateModuleParams: A governance operation for updating the x/tokenfactory + * module parameters. + * + * @generated from rpc nibiru.tokenfactory.v1.Msg.UpdateModuleParams + */ +export const MsgUpdateModuleParamsService = { + typeName: TYPE_NAME, + method: "UpdateModuleParams", + Request: MsgUpdateModuleParams, + Response: MsgUpdateModuleParamsResponse, +} as const; + +/** + * @generated from rpc nibiru.tokenfactory.v1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: MsgMintResponse, +} as const; + +/** + * @generated from rpc nibiru.tokenfactory.v1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: MsgBurnResponse, +} as const; + +/** + * @generated from rpc nibiru.tokenfactory.v1.Msg.SetDenomMetadata + */ +export const MsgSetDenomMetadataService = { + typeName: TYPE_NAME, + method: "SetDenomMetadata", + Request: MsgSetDenomMetadata, + Response: MsgSetDenomMetadataResponse, +} as const; + +/** + * SudoSetDenomMetadata: sdk.Msg (TxMsg) enabling Nibiru's "sudoers" to + * change bank metadata. [SUDO] Only callable by sudoers. + * + * @generated from rpc nibiru.tokenfactory.v1.Msg.SudoSetDenomMetadata + */ +export const MsgSudoSetDenomMetadataService = { + typeName: TYPE_NAME, + method: "SudoSetDenomMetadata", + Request: MsgSudoSetDenomMetadata, + Response: MsgSudoSetDenomMetadataResponse, +} as const; + +/** + * burns a native token such as unibi + * + * @generated from rpc nibiru.tokenfactory.v1.Msg.BurnNative + */ +export const MsgBurnNativeService = { + typeName: TYPE_NAME, + method: "BurnNative", + Request: MsgBurnNative, + Response: MsgBurnNativeResponse, +} as const; + diff --git a/src/protobufs/nibiru/tokenfactory/v1/tx_pb.ts b/src/protobufs/nibiru/tokenfactory/v1/tx_pb.ts new file mode 100644 index 00000000..868b8839 --- /dev/null +++ b/src/protobufs/nibiru/tokenfactory/v1/tx_pb.ts @@ -0,0 +1,700 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file nibiru/tokenfactory/v1/tx.proto (package nibiru.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ModuleParams } from "./state_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; + +/** + * MsgCreateDenom: sdk.Msg that registers an a token factory denom. + * A denom has the form "tf/[creatorAddr]/[subdenom]". + * - Denoms become unique x/bank tokens, so the creator-subdenom pair that + * defines a denom cannot be reused. + * - The resulting denom's admin is originally set to be the creator, but the + * admin can be changed later. + * + * @generated from message nibiru.tokenfactory.v1.MsgCreateDenom + */ +export class MsgCreateDenom extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * subdenom can be up to 44 "alphanumeric" characters long. + * + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgCreateDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenom | PlainMessage | undefined, b: MsgCreateDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenom, a, b); + } +} + +/** + * MsgCreateDenomResponse is the return value of MsgCreateDenom + * + * @generated from message nibiru.tokenfactory.v1.MsgCreateDenomResponse + */ +export class MsgCreateDenomResponse extends Message { + /** + * NewTokenDenom: identifier for the newly created token factory denom. + * + * @generated from field: string new_token_denom = 1; + */ + newTokenDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgCreateDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenomResponse | PlainMessage | undefined, b: MsgCreateDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenomResponse, a, b); + } +} + +/** + * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to change + * admin of a denom to a new account + * + * @generated from message nibiru.tokenfactory.v1.MsgChangeAdmin + */ +export class MsgChangeAdmin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgChangeAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdmin | PlainMessage | undefined, b: MsgChangeAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdmin, a, b); + } +} + +/** + * MsgChangeAdminResponse is the gRPC response for the MsgChangeAdmin TxMsg. + * + * @generated from message nibiru.tokenfactory.v1.MsgChangeAdminResponse + */ +export class MsgChangeAdminResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgChangeAdminResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdminResponse | PlainMessage | undefined, b: MsgChangeAdminResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdminResponse, a, b); + } +} + +/** + * MsgUpdateModuleParams: sdk.Msg for updating the x/tokenfactory module params + * + * @generated from message nibiru.tokenfactory.v1.MsgUpdateModuleParams + */ +export class MsgUpdateModuleParams extends Message { + /** + * Authority: Address of the governance module account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: nibiru.tokenfactory.v1.ModuleParams params = 2; + */ + params?: ModuleParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgUpdateModuleParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: ModuleParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateModuleParams { + return new MsgUpdateModuleParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateModuleParams { + return new MsgUpdateModuleParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateModuleParams { + return new MsgUpdateModuleParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateModuleParams | PlainMessage | undefined, b: MsgUpdateModuleParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateModuleParams, a, b); + } +} + +/** + * MsgUpdateModuleParamsResponse is the gRPC response for the + * MsgUpdateModuleParams TxMsg. + * + * @generated from message nibiru.tokenfactory.v1.MsgUpdateModuleParamsResponse + */ +export class MsgUpdateModuleParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgUpdateModuleParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateModuleParamsResponse { + return new MsgUpdateModuleParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateModuleParamsResponse { + return new MsgUpdateModuleParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateModuleParamsResponse { + return new MsgUpdateModuleParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateModuleParamsResponse | PlainMessage | undefined, b: MsgUpdateModuleParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateModuleParamsResponse, a, b); + } +} + +/** + * MsgMint: sdk.Msg (TxMsg) where an denom admin mints more of the token. + * + * @generated from message nibiru.tokenfactory.v1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * coin: The denom identifier and amount to mint. + * + * @generated from field: cosmos.base.v1beta1.Coin coin = 2; + */ + coin?: Coin; + + /** + * mint_to_addr: An address to which tokens will be minted. If blank, + * tokens are minted to the "sender". + * + * @generated from field: string mint_to = 3; + */ + mintTo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin", kind: "message", T: Coin }, + { no: 3, name: "mint_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.MsgMintResponse + */ +export class MsgMintResponse extends Message { + /** + * @generated from field: string mint_to = 1; + */ + mintTo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgMintResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintResponse, a, b); + } +} + +/** + * MsgBurn: sdk.Msg (TxMsg) where a denom admin burns some of the token. + * The reason that the sender isn't automatically the "burn_from" address + * is to support smart contracts (primary use case). In this situation, the + * contract is the message signer and sender, while "burn_from" is based on the + * contract logic. + * + * @generated from message nibiru.tokenfactory.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * coin: The denom identifier and amount to burn. + * + * @generated from field: cosmos.base.v1beta1.Coin coin = 2; + */ + coin?: Coin; + + /** + * burn_from: The address from which tokens will be burned. + * + * @generated from field: string burn_from = 3; + */ + burnFrom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin", kind: "message", T: Coin }, + { no: 3, name: "burn_from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.MsgBurnResponse + */ +export class MsgBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnResponse, a, b); + } +} + +/** + * MsgSetDenomMetadata: sdk.Msg (TxMsg) enabling the denom admin to change its + * bank metadata. + * + * @generated from message nibiru.tokenfactory.v1.MsgSetDenomMetadata + */ +export class MsgSetDenomMetadata extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Metadata: Official x/bank metadata for the denom. All token factory denoms + * are standard, native assets. The "metadata.base" is the denom. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgSetDenomMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadata | PlainMessage | undefined, b: MsgSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadata, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.MsgSetDenomMetadataResponse + */ +export class MsgSetDenomMetadataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgSetDenomMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSetDenomMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadataResponse, a, b); + } +} + +/** + * MsgSudoSetDenomMetadata: sdk.Msg (TxMsg) enabling Nibiru's "sudoers" to change + * bank metadata. + * [SUDO] Only callable by sudoers. + * + * Use Cases: + * - To define metadata for ICS20 assets brought + * over to the chain via IBC, as they don't have metadata by default. + * - To set metadata for Bank Coins created via the Token Factory + * module in case the admin forgets to do so. This is important because of + * the relationship Token Factory assets can have with ERC20s with the + * [FunToken Mechanism]. + * + * [FunToken Mechanism]: https://nibiru.fi/docs/evm/funtoken.html + * + * @generated from message nibiru.tokenfactory.v1.MsgSudoSetDenomMetadata + */ +export class MsgSudoSetDenomMetadata extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Metadata: Official x/bank metadata for the denom. The "metadata.base" is + * the denom. + * + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgSudoSetDenomMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoSetDenomMetadata { + return new MsgSudoSetDenomMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoSetDenomMetadata { + return new MsgSudoSetDenomMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSudoSetDenomMetadata { + return new MsgSudoSetDenomMetadata().fromJsonString(jsonString, options); + } + + static equals(a: MsgSudoSetDenomMetadata | PlainMessage | undefined, b: MsgSudoSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSudoSetDenomMetadata, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.MsgSudoSetDenomMetadataResponse + */ +export class MsgSudoSetDenomMetadataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgSudoSetDenomMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoSetDenomMetadataResponse { + return new MsgSudoSetDenomMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoSetDenomMetadataResponse { + return new MsgSudoSetDenomMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSudoSetDenomMetadataResponse { + return new MsgSudoSetDenomMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSudoSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSudoSetDenomMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSudoSetDenomMetadataResponse, a, b); + } +} + +/** + * Burn a native token such as unibi + * + * @generated from message nibiru.tokenfactory.v1.MsgBurnNative + */ +export class MsgBurnNative extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin coin = 2; + */ + coin?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgBurnNative"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coin", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnNative { + return new MsgBurnNative().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnNative { + return new MsgBurnNative().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnNative { + return new MsgBurnNative().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnNative | PlainMessage | undefined, b: MsgBurnNative | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnNative, a, b); + } +} + +/** + * @generated from message nibiru.tokenfactory.v1.MsgBurnNativeResponse + */ +export class MsgBurnNativeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "nibiru.tokenfactory.v1.MsgBurnNativeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnNativeResponse { + return new MsgBurnNativeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnNativeResponse { + return new MsgBurnNativeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnNativeResponse { + return new MsgBurnNativeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnNativeResponse | PlainMessage | undefined, b: MsgBurnNativeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnNativeResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/module/v1/module_pb.ts b/src/protobufs/noble/dollar/module/v1/module_pb.ts new file mode 100644 index 00000000..c842bd94 --- /dev/null +++ b/src/protobufs/noble/dollar/module/v1/module_pb.ts @@ -0,0 +1,92 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/module/v1/module.proto (package noble.dollar.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Module is the config object of the Noble Dollar module. + * + * @generated from message noble.dollar.module.v1.Module + */ +export class Module extends Message { + /** + * denom defines the smallest denomination of the Noble Dollar. + * This is configurable in case we want different denominations on testnet and mainnet. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * authority defines the custom module authority. + * + * @generated from field: string authority = 2; + */ + authority = ""; + + /** + * vaults_minimum_lock defines the minimum required amount to lock into a Noble Dollar Vault. + * + * @generated from field: int64 vaults_minimum_lock = 3; + */ + vaultsMinimumLock = protoInt64.zero; + + /** + * vaults_minimum_unlock defines the minimum required amount to unlock from a Noble Dollar Vault. + * + * @generated from field: int64 vaults_minimum_unlock = 4; + */ + vaultsMinimumUnlock = protoInt64.zero; + + /** + * vaults_season_one_end_timestamp defines the Unix timestamp in seconds when Vaults Season One ends. + * + * @generated from field: int64 vaults_season_one_end_timestamp = 5 [deprecated = true]; + * @deprecated + */ + vaultsSeasonOneEndTimestamp = protoInt64.zero; + + /** + * vaults_season_two_yield_collector defines the address to collect Staked vault yield during Season Two. + * + * @generated from field: string vaults_season_two_yield_collector = 6 [deprecated = true]; + * @deprecated + */ + vaultsSeasonTwoYieldCollector = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vaults_minimum_lock", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "vaults_minimum_unlock", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "vaults_season_one_end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "vaults_season_two_yield_collector", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/ntt/v1/manager_pb.ts b/src/protobufs/noble/dollar/portal/ntt/v1/manager_pb.ts new file mode 100644 index 00000000..bd444685 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/ntt/v1/manager_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/ntt/v1/manager.proto (package noble.dollar.portal.ntt.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * ManagerMessage is the type that stores information about a manager message. + * + * The wire format of the message is as follows: + * - id - 32 bytes + * - sender - 32 bytes + * - payloadLength - 2 bytes + * - payload - `payloadLength` bytes + * + * https://github.com/wormhole-foundation/native-token-transfers/blob/67df54701e0f4b3793b6c621719911804c9875a3/evm/src/libraries/TransceiverStructs.sol#L41-L56 + * + * @generated from message noble.dollar.portal.ntt.v1.ManagerMessage + */ +export class ManagerMessage extends Message { + /** + * @generated from field: bytes id = 1; + */ + id = new Uint8Array(0); + + /** + * @generated from field: bytes sender = 2; + */ + sender = new Uint8Array(0); + + /** + * @generated from field: bytes payload = 3; + */ + payload = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.ntt.v1.ManagerMessage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "sender", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ManagerMessage { + return new ManagerMessage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ManagerMessage { + return new ManagerMessage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ManagerMessage { + return new ManagerMessage().fromJsonString(jsonString, options); + } + + static equals(a: ManagerMessage | PlainMessage | undefined, b: ManagerMessage | PlainMessage | undefined): boolean { + return proto3.util.equals(ManagerMessage, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/ntt/v1/ntt_pb.ts b/src/protobufs/noble/dollar/portal/ntt/v1/ntt_pb.ts new file mode 100644 index 00000000..48414be7 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/ntt/v1/ntt_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/ntt/v1/ntt.proto (package noble.dollar.portal.ntt.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * NativeTokenTransfer is the type that stores information about a native token transfer. + * + * The wire format of the payload is as follows: + * - NativeTokenTransferPrefix - 4 bytes + * - numDecimals - 1 byte + * - amount - 8 bytes + * - sourceToken - 32 bytes + * - to - 32 bytes + * - toChain - 2 bytes + * - additionalPayloadLength - 2 bytes, optional + * - additionalPayload - `additionalPayloadLength` bytes + * + * https://github.com/wormhole-foundation/native-token-transfers/blob/67df54701e0f4b3793b6c621719911804c9875a3/evm/src/libraries/TransceiverStructs.sol#L97-L119 + * + * @generated from message noble.dollar.portal.ntt.v1.NativeTokenTransfer + */ +export class NativeTokenTransfer extends Message { + /** + * @generated from field: uint64 amount = 1; + */ + amount = protoInt64.zero; + + /** + * @generated from field: bytes source_token = 2; + */ + sourceToken = new Uint8Array(0); + + /** + * @generated from field: bytes to = 3; + */ + to = new Uint8Array(0); + + /** + * @generated from field: uint32 to_chain = 4; + */ + toChain = 0; + + /** + * @generated from field: bytes additional_payload = 5; + */ + additionalPayload = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.ntt.v1.NativeTokenTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "source_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "to", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "to_chain", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "additional_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NativeTokenTransfer { + return new NativeTokenTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NativeTokenTransfer { + return new NativeTokenTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NativeTokenTransfer { + return new NativeTokenTransfer().fromJsonString(jsonString, options); + } + + static equals(a: NativeTokenTransfer | PlainMessage | undefined, b: NativeTokenTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(NativeTokenTransfer, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/ntt/v1/transceiver_pb.ts b/src/protobufs/noble/dollar/portal/ntt/v1/transceiver_pb.ts new file mode 100644 index 00000000..9dbb3b6a --- /dev/null +++ b/src/protobufs/noble/dollar/portal/ntt/v1/transceiver_pb.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/ntt/v1/transceiver.proto (package noble.dollar.portal.ntt.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * TransceiverMessage is the type that stores information about a transceiver message. + * + * The wire format of the message is as follows: + * - prefix - 4 bytes + * - sourceManagerAddress - 32 bytes + * - recipientManagerAddress - 32 bytes + * - managerPayloadLength - 2 bytes + * - managerPayload - `managerPayloadLength` bytes + * - transceiverPayloadLength - 2 bytes + * - transceiverPayload - `transceiverPayloadLength` bytes + * + * https://github.com/wormhole-foundation/native-token-transfers/blob/67df54701e0f4b3793b6c621719911804c9875a3/evm/src/libraries/TransceiverStructs.sol#L97-L119 + * + * @generated from message noble.dollar.portal.ntt.v1.TransceiverMessage + */ +export class TransceiverMessage extends Message { + /** + * @generated from field: bytes source_manager_address = 1; + */ + sourceManagerAddress = new Uint8Array(0); + + /** + * @generated from field: bytes recipient_manager_address = 2; + */ + recipientManagerAddress = new Uint8Array(0); + + /** + * @generated from field: bytes manager_payload = 3; + */ + managerPayload = new Uint8Array(0); + + /** + * @generated from field: bytes transceiver_payload = 4; + */ + transceiverPayload = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.ntt.v1.TransceiverMessage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_manager_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "recipient_manager_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "manager_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "transceiver_payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransceiverMessage { + return new TransceiverMessage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransceiverMessage { + return new TransceiverMessage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransceiverMessage { + return new TransceiverMessage().fromJsonString(jsonString, options); + } + + static equals(a: TransceiverMessage | PlainMessage | undefined, b: TransceiverMessage | PlainMessage | undefined): boolean { + return proto3.util.equals(TransceiverMessage, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/events_pb.ts b/src/protobufs/noble/dollar/portal/v1/events_pb.ts new file mode 100644 index 00000000..7ec1aba1 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/events_pb.ts @@ -0,0 +1,475 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/events.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Delivered is the event emitted when a vaa is successfully delivered. + * + * @generated from message noble.dollar.portal.v1.Delivered + */ +export class Delivered extends Message { + /** + * @generated from field: bytes vaa = 1; + */ + vaa = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.Delivered"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vaa", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Delivered { + return new Delivered().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Delivered { + return new Delivered().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Delivered { + return new Delivered().fromJsonString(jsonString, options); + } + + static equals(a: Delivered | PlainMessage | undefined, b: Delivered | PlainMessage | undefined): boolean { + return proto3.util.equals(Delivered, a, b); + } +} + +/** + * MTokenReceived is the event emitted when M tokens are received on Noble. + * + * https://github.com/m0-foundation/m-portal/blob/682481178808005a160e41d5318242c1abc2f88f/src/Portal.sol#L382-L382 + * + * @generated from message noble.dollar.portal.v1.MTokenReceived + */ +export class MTokenReceived extends Message { + /** + * @generated from field: uint32 source_chain_id = 1; + */ + sourceChainId = 0; + + /** + * @generated from field: bytes destination_token = 2; + */ + destinationToken = new Uint8Array(0); + + /** + * @generated from field: bytes sender = 3; + */ + sender = new Uint8Array(0); + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + /** + * @generated from field: string amount = 5; + */ + amount = ""; + + /** + * @generated from field: int64 index = 6; + */ + index = protoInt64.zero; + + /** + * @generated from field: bytes message_id = 7; + */ + messageId = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MTokenReceived"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "sender", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "message_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MTokenReceived { + return new MTokenReceived().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MTokenReceived { + return new MTokenReceived().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MTokenReceived { + return new MTokenReceived().fromJsonString(jsonString, options); + } + + static equals(a: MTokenReceived | PlainMessage | undefined, b: MTokenReceived | PlainMessage | undefined): boolean { + return proto3.util.equals(MTokenReceived, a, b); + } +} + +/** + * TransferRedeemed is an event emitted when a transfer has been redeemed. + * + * https://github.com/m0-foundation/m-portal/blob/682481178808005a160e41d5318242c1abc2f88f/src/Portal.sol#L384-L385 + * + * @generated from message noble.dollar.portal.v1.TransferRedeemed + */ +export class TransferRedeemed extends Message { + /** + * @generated from field: bytes digest = 1; + */ + digest = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.TransferRedeemed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "digest", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransferRedeemed { + return new TransferRedeemed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransferRedeemed { + return new TransferRedeemed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransferRedeemed { + return new TransferRedeemed().fromJsonString(jsonString, options); + } + + static equals(a: TransferRedeemed | PlainMessage | undefined, b: TransferRedeemed | PlainMessage | undefined): boolean { + return proto3.util.equals(TransferRedeemed, a, b); + } +} + +/** + * USDNTokenSent is an event emitted after transferring USDN tokens via Wormhole. + * + * https://github.com/m0-foundation/m-portal/blob/682481178808005a160e41d5318242c1abc2f88f/src/Portal.sol#L240-L249 + * + * @generated from message noble.dollar.portal.v1.USDNTokenSent + */ +export class USDNTokenSent extends Message { + /** + * @generated from field: string source_token = 1; + */ + sourceToken = ""; + + /** + * @generated from field: uint32 destination_chain_id = 2; + */ + destinationChainId = 0; + + /** + * @generated from field: bytes destination_token = 3; + */ + destinationToken = new Uint8Array(0); + + /** + * @generated from field: string sender = 4; + */ + sender = ""; + + /** + * @generated from field: bytes recipient = 5; + */ + recipient = new Uint8Array(0); + + /** + * @generated from field: string amount = 6; + */ + amount = ""; + + /** + * @generated from field: int64 index = 7; + */ + index = protoInt64.zero; + + /** + * @generated from field: bytes message_id = 8; + */ + messageId = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.USDNTokenSent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "source_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "recipient", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "message_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): USDNTokenSent { + return new USDNTokenSent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): USDNTokenSent { + return new USDNTokenSent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): USDNTokenSent { + return new USDNTokenSent().fromJsonString(jsonString, options); + } + + static equals(a: USDNTokenSent | PlainMessage | undefined, b: USDNTokenSent | PlainMessage | undefined): boolean { + return proto3.util.equals(USDNTokenSent, a, b); + } +} + +/** + * PeerUpdated is an event emitted whenever a peer is updated. + * + * @generated from message noble.dollar.portal.v1.PeerUpdated + */ +export class PeerUpdated extends Message { + /** + * @generated from field: uint32 chain = 1; + */ + chain = 0; + + /** + * @generated from field: bytes old_transceiver = 2; + */ + oldTransceiver = new Uint8Array(0); + + /** + * @generated from field: bytes new_transceiver = 3; + */ + newTransceiver = new Uint8Array(0); + + /** + * @generated from field: bytes old_manager = 4; + */ + oldManager = new Uint8Array(0); + + /** + * @generated from field: bytes new_manager = 5; + */ + newManager = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.PeerUpdated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "old_transceiver", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "new_transceiver", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "old_manager", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "new_manager", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PeerUpdated { + return new PeerUpdated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PeerUpdated { + return new PeerUpdated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PeerUpdated { + return new PeerUpdated().fromJsonString(jsonString, options); + } + + static equals(a: PeerUpdated | PlainMessage | undefined, b: PeerUpdated | PlainMessage | undefined): boolean { + return proto3.util.equals(PeerUpdated, a, b); + } +} + +/** + * BridgingPathSet is an event emitted whenever a supported bridging path is set. + * + * @generated from message noble.dollar.portal.v1.BridgingPathSet + */ +export class BridgingPathSet extends Message { + /** + * @generated from field: uint32 destination_chain_id = 1; + */ + destinationChainId = 0; + + /** + * @generated from field: bytes destination_token = 2; + */ + destinationToken = new Uint8Array(0); + + /** + * @generated from field: bool supported = 3; + */ + supported = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.BridgingPathSet"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BridgingPathSet { + return new BridgingPathSet().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BridgingPathSet { + return new BridgingPathSet().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BridgingPathSet { + return new BridgingPathSet().fromJsonString(jsonString, options); + } + + static equals(a: BridgingPathSet | PlainMessage | undefined, b: BridgingPathSet | PlainMessage | undefined): boolean { + return proto3.util.equals(BridgingPathSet, a, b); + } +} + +/** + * OwnershipTransferred is an event emitted whenever an ownership transfer occurs. + * + * @generated from message noble.dollar.portal.v1.OwnershipTransferred + */ +export class OwnershipTransferred extends Message { + /** + * @generated from field: string previous_owner = 1; + */ + previousOwner = ""; + + /** + * @generated from field: string new_owner = 2; + */ + newOwner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.OwnershipTransferred"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "previous_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OwnershipTransferred { + return new OwnershipTransferred().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OwnershipTransferred { + return new OwnershipTransferred().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OwnershipTransferred { + return new OwnershipTransferred().fromJsonString(jsonString, options); + } + + static equals(a: OwnershipTransferred | PlainMessage | undefined, b: OwnershipTransferred | PlainMessage | undefined): boolean { + return proto3.util.equals(OwnershipTransferred, a, b); + } +} + +/** + * Paused is an event emitted when the portal pause + * state is changed to paused. + * + * @generated from message noble.dollar.portal.v1.Paused + */ +export class Paused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.Paused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Paused { + return new Paused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Paused { + return new Paused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Paused { + return new Paused().fromJsonString(jsonString, options); + } + + static equals(a: Paused | PlainMessage | undefined, b: Paused | PlainMessage | undefined): boolean { + return proto3.util.equals(Paused, a, b); + } +} + +/** + * Unpaused is an event emitted when the portal pause + * state is changed to unpaused. + * + * @generated from message noble.dollar.portal.v1.Unpaused + */ +export class Unpaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.Unpaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Unpaused { + return new Unpaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Unpaused { + return new Unpaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Unpaused { + return new Unpaused().fromJsonString(jsonString, options); + } + + static equals(a: Unpaused | PlainMessage | undefined, b: Unpaused | PlainMessage | undefined): boolean { + return proto3.util.equals(Unpaused, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/genesis_pb.ts b/src/protobufs/noble/dollar/portal/v1/genesis_pb.ts new file mode 100644 index 00000000..520bb4ca --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/genesis_pb.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/genesis.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { BridgingPath, Peer } from "./portal_pb.js"; + +/** + * GenesisState defines the genesis state of the Noble Dollar Portal submodule. + * + * @generated from message noble.dollar.portal.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * owner is the account that controls the Noble Dollar Portal. + * + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * paused contains the genesis paused state of the Noble Dollar Portal. + * + * @generated from field: bool paused = 2; + */ + paused = false; + + /** + * peers contains the genesis peers of the Noble Dollar Portal. + * + * @generated from field: map peers = 3; + */ + peers: { [key: number]: Peer } = {}; + + /** + * bridging_paths contains the genesis supported bridging paths of the Noble Dollar Portal. + * + * @generated from field: repeated noble.dollar.portal.v1.BridgingPath bridging_paths = 4; + */ + bridgingPaths: BridgingPath[] = []; + + /** + * nonce contains the next available nonce used for transfers out of the Noble Dollar Portal. + * + * @generated from field: uint32 nonce = 5; + */ + nonce = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "peers", kind: "map", K: 13 /* ScalarType.UINT32 */, V: {kind: "message", T: Peer} }, + { no: 4, name: "bridging_paths", kind: "message", T: BridgingPath, repeated: true }, + { no: 5, name: "nonce", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/injection_pb.ts b/src/protobufs/noble/dollar/portal/v1/injection_pb.ts new file mode 100644 index 00000000..2914fde3 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/injection_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/injection.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MsgDeliverInjection is an internal message type used for delivering Noble + * Dollar Portal messages. It is specifically used to insert VAA's into the top + * of a block via ABCI++. + * + * @generated from message noble.dollar.portal.v1.MsgDeliverInjection + */ +export class MsgDeliverInjection extends Message { + /** + * @generated from field: bytes vaa = 1; + */ + vaa = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgDeliverInjection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vaa", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeliverInjection { + return new MsgDeliverInjection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeliverInjection { + return new MsgDeliverInjection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeliverInjection { + return new MsgDeliverInjection().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeliverInjection | PlainMessage | undefined, b: MsgDeliverInjection | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeliverInjection, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/portal_pb.ts b/src/protobufs/noble/dollar/portal/v1/portal_pb.ts new file mode 100644 index 00000000..1d9bb84b --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/portal_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/portal.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Peer is the type that stores information about a peer. + * + * @generated from message noble.dollar.portal.v1.Peer + */ +export class Peer extends Message { + /** + * @generated from field: bytes transceiver = 1; + */ + transceiver = new Uint8Array(0); + + /** + * @generated from field: bytes manager = 2; + */ + manager = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.Peer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "transceiver", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "manager", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Peer { + return new Peer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Peer { + return new Peer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Peer { + return new Peer().fromJsonString(jsonString, options); + } + + static equals(a: Peer | PlainMessage | undefined, b: Peer | PlainMessage | undefined): boolean { + return proto3.util.equals(Peer, a, b); + } +} + +/** + * BridgingPath is the type that stores information about a supported bridging path. + * + * @generated from message noble.dollar.portal.v1.BridgingPath + */ +export class BridgingPath extends Message { + /** + * @generated from field: uint32 destination_chain_id = 1; + */ + destinationChainId = 0; + + /** + * @generated from field: bytes destination_token = 2; + */ + destinationToken = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.BridgingPath"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BridgingPath { + return new BridgingPath().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BridgingPath { + return new BridgingPath().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BridgingPath { + return new BridgingPath().fromJsonString(jsonString, options); + } + + static equals(a: BridgingPath | PlainMessage | undefined, b: BridgingPath | PlainMessage | undefined): boolean { + return proto3.util.equals(BridgingPath, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/query_cosmes.ts b/src/protobufs/noble/dollar/portal/v1/query_cosmes.ts new file mode 100644 index 00000000..4c386017 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/query.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDestinationTokens, QueryDestinationTokensResponse, QueryNonce, QueryNonceResponse, QueryOwner, QueryOwnerResponse, QueryPaused, QueryPausedResponse, QueryPeers, QueryPeersResponse } from "./query_pb.js"; + +const TYPE_NAME = "noble.dollar.portal.v1.Query"; + +/** + * @generated from rpc noble.dollar.portal.v1.Query.Owner + */ +export const QueryOwnerService = { + typeName: TYPE_NAME, + method: "Owner", + Request: QueryOwner, + Response: QueryOwnerResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Query.Paused + */ +export const QueryPausedService = { + typeName: TYPE_NAME, + method: "Paused", + Request: QueryPaused, + Response: QueryPausedResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Query.Peers + */ +export const QueryPeersService = { + typeName: TYPE_NAME, + method: "Peers", + Request: QueryPeers, + Response: QueryPeersResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Query.DestinationTokens + */ +export const QueryDestinationTokensService = { + typeName: TYPE_NAME, + method: "DestinationTokens", + Request: QueryDestinationTokens, + Response: QueryDestinationTokensResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Query.Nonce + */ +export const QueryNonceService = { + typeName: TYPE_NAME, + method: "Nonce", + Request: QueryNonce, + Response: QueryNonceResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/portal/v1/query_pb.ts b/src/protobufs/noble/dollar/portal/v1/query_pb.ts new file mode 100644 index 00000000..2a903e76 --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/query_pb.ts @@ -0,0 +1,355 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/query.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Peer } from "./portal_pb.js"; + +/** + * @generated from message noble.dollar.portal.v1.QueryOwner + */ +export class QueryOwner extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryOwner"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwner { + return new QueryOwner().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwner { + return new QueryOwner().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOwner { + return new QueryOwner().fromJsonString(jsonString, options); + } + + static equals(a: QueryOwner | PlainMessage | undefined, b: QueryOwner | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOwner, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryOwnerResponse + */ +export class QueryOwnerResponse extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryOwnerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwnerResponse { + return new QueryOwnerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwnerResponse { + return new QueryOwnerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOwnerResponse { + return new QueryOwnerResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOwnerResponse | PlainMessage | undefined, b: QueryOwnerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOwnerResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryPaused + */ +export class QueryPaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaused { + return new QueryPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaused { + return new QueryPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaused { + return new QueryPaused().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaused | PlainMessage | undefined, b: QueryPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaused, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryPausedResponse + */ +export class QueryPausedResponse extends Message { + /** + * @generated from field: bool paused = 1; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryPausedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPausedResponse | PlainMessage | undefined, b: QueryPausedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPausedResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryPeers + */ +export class QueryPeers extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryPeers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeers { + return new QueryPeers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeers { + return new QueryPeers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeers { + return new QueryPeers().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeers | PlainMessage | undefined, b: QueryPeers | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeers, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryPeersResponse + */ +export class QueryPeersResponse extends Message { + /** + * @generated from field: map peers = 1; + */ + peers: { [key: number]: Peer } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryPeersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "peers", kind: "map", K: 13 /* ScalarType.UINT32 */, V: {kind: "message", T: Peer} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPeersResponse { + return new QueryPeersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPeersResponse { + return new QueryPeersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPeersResponse { + return new QueryPeersResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPeersResponse | PlainMessage | undefined, b: QueryPeersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPeersResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryDestinationTokens + */ +export class QueryDestinationTokens extends Message { + /** + * @generated from field: uint32 chain_id = 1; + */ + chainId = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryDestinationTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDestinationTokens { + return new QueryDestinationTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDestinationTokens { + return new QueryDestinationTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDestinationTokens { + return new QueryDestinationTokens().fromJsonString(jsonString, options); + } + + static equals(a: QueryDestinationTokens | PlainMessage | undefined, b: QueryDestinationTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDestinationTokens, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryDestinationTokensResponse + */ +export class QueryDestinationTokensResponse extends Message { + /** + * @generated from field: repeated bytes destination_tokens = 2; + */ + destinationTokens: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryDestinationTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "destination_tokens", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDestinationTokensResponse { + return new QueryDestinationTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDestinationTokensResponse { + return new QueryDestinationTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDestinationTokensResponse { + return new QueryDestinationTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDestinationTokensResponse | PlainMessage | undefined, b: QueryDestinationTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDestinationTokensResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryNonce + */ +export class QueryNonce extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryNonce"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNonce { + return new QueryNonce().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNonce { + return new QueryNonce().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNonce { + return new QueryNonce().fromJsonString(jsonString, options); + } + + static equals(a: QueryNonce | PlainMessage | undefined, b: QueryNonce | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNonce, a, b); + } +} + +/** + * @generated from message noble.dollar.portal.v1.QueryNonceResponse + */ +export class QueryNonceResponse extends Message { + /** + * @generated from field: uint32 nonce = 1; + */ + nonce = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.QueryNonceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nonce", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryNonceResponse { + return new QueryNonceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryNonceResponse { + return new QueryNonceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryNonceResponse { + return new QueryNonceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryNonceResponse | PlainMessage | undefined, b: QueryNonceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryNonceResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/portal/v1/tx_cosmes.ts b/src/protobufs/noble/dollar/portal/v1/tx_cosmes.ts new file mode 100644 index 00000000..62b086ad --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/tx_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/tx.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDeliver, MsgDeliverResponse, MsgSetBridgingPath, MsgSetBridgingPathResponse, MsgSetPausedState, MsgSetPausedStateResponse, MsgSetPeer, MsgSetPeerResponse, MsgTransfer, MsgTransferOwnership, MsgTransferOwnershipResponse, MsgTransferResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.dollar.portal.v1.Msg"; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.Deliver + */ +export const MsgDeliverService = { + typeName: TYPE_NAME, + method: "Deliver", + Request: MsgDeliver, + Response: MsgDeliverResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.Transfer + */ +export const MsgTransferService = { + typeName: TYPE_NAME, + method: "Transfer", + Request: MsgTransfer, + Response: MsgTransferResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.SetPausedState + */ +export const MsgSetPausedStateService = { + typeName: TYPE_NAME, + method: "SetPausedState", + Request: MsgSetPausedState, + Response: MsgSetPausedStateResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.SetPeer + */ +export const MsgSetPeerService = { + typeName: TYPE_NAME, + method: "SetPeer", + Request: MsgSetPeer, + Response: MsgSetPeerResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.SetBridgingPath + */ +export const MsgSetBridgingPathService = { + typeName: TYPE_NAME, + method: "SetBridgingPath", + Request: MsgSetBridgingPath, + Response: MsgSetBridgingPathResponse, +} as const; + +/** + * @generated from rpc noble.dollar.portal.v1.Msg.TransferOwnership + */ +export const MsgTransferOwnershipService = { + typeName: TYPE_NAME, + method: "TransferOwnership", + Request: MsgTransferOwnership, + Response: MsgTransferOwnershipResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/portal/v1/tx_pb.ts b/src/protobufs/noble/dollar/portal/v1/tx_pb.ts new file mode 100644 index 00000000..fe11a1cd --- /dev/null +++ b/src/protobufs/noble/dollar/portal/v1/tx_pb.ts @@ -0,0 +1,520 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/portal/v1/tx.proto (package noble.dollar.portal.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MsgDeliver is the entrypoint for delivering Noble Dollar Portal messages. + * This is the public message to enable permissionless manual relaying, and + * MsgDeliverInjection is an internal message used only by validators. + * + * @generated from message noble.dollar.portal.v1.MsgDeliver + */ +export class MsgDeliver extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: bytes vaa = 2; + */ + vaa = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgDeliver"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vaa", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeliver { + return new MsgDeliver().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeliver { + return new MsgDeliver().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeliver { + return new MsgDeliver().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeliver | PlainMessage | undefined, b: MsgDeliver | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeliver, a, b); + } +} + +/** + * MsgDeliverResponse is the response of the Deliver message. + * + * @generated from message noble.dollar.portal.v1.MsgDeliverResponse + */ +export class MsgDeliverResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgDeliverResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeliverResponse { + return new MsgDeliverResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeliverResponse { + return new MsgDeliverResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeliverResponse { + return new MsgDeliverResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeliverResponse | PlainMessage | undefined, b: MsgDeliverResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeliverResponse, a, b); + } +} + +/** + * MsgTransfer is the entrypoint for transferring the Noble Dollar cross-chain. + * + * @generated from message noble.dollar.portal.v1.MsgTransfer + */ +export class MsgTransfer extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: uint32 destination_chain_id = 3; + */ + destinationChainId = 0; + + /** + * @generated from field: bytes destination_token = 4; + */ + destinationToken = new Uint8Array(0); + + /** + * @generated from field: bytes recipient = 5; + */ + recipient = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "recipient", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransfer { + return new MsgTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransfer { + return new MsgTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransfer | PlainMessage | undefined, b: MsgTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransfer, a, b); + } +} + +/** + * MsgTransferResponse is the response of the Transfer message. + * + * @generated from message noble.dollar.portal.v1.MsgTransferResponse + */ +export class MsgTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferResponse { + return new MsgTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferResponse | PlainMessage | undefined, b: MsgTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferResponse, a, b); + } +} + +/** + * MsgSetPausedState allows the authority to configure the Noble Dollar Portal paused state. + * + * @generated from message noble.dollar.portal.v1.MsgSetPausedState + */ +export class MsgSetPausedState extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: bool paused = 2; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetPausedState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedState | PlainMessage | undefined, b: MsgSetPausedState | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedState, a, b); + } +} + +/** + * MsgSetPausedStateResponse is the response of the SetPausedState message. + * + * @generated from message noble.dollar.portal.v1.MsgSetPausedStateResponse + */ +export class MsgSetPausedStateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetPausedStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedStateResponse | PlainMessage | undefined, b: MsgSetPausedStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedStateResponse, a, b); + } +} + +/** + * MsgSetPeer allows the Noble Dollar Portal owner to set external peers. + * + * @generated from message noble.dollar.portal.v1.MsgSetPeer + */ +export class MsgSetPeer extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: uint32 chain = 2; + */ + chain = 0; + + /** + * @generated from field: bytes transceiver = 3; + */ + transceiver = new Uint8Array(0); + + /** + * @generated from field: bytes manager = 4; + */ + manager = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetPeer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "transceiver", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "manager", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPeer { + return new MsgSetPeer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPeer { + return new MsgSetPeer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPeer { + return new MsgSetPeer().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPeer | PlainMessage | undefined, b: MsgSetPeer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPeer, a, b); + } +} + +/** + * MsgSetPeerResponse is the response of the SetPeer message. + * + * @generated from message noble.dollar.portal.v1.MsgSetPeerResponse + */ +export class MsgSetPeerResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetPeerResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPeerResponse { + return new MsgSetPeerResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPeerResponse { + return new MsgSetPeerResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPeerResponse { + return new MsgSetPeerResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPeerResponse | PlainMessage | undefined, b: MsgSetPeerResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPeerResponse, a, b); + } +} + +/** + * MsgSetBridgingPath allows the Noble Dollar Portal owner to set supported bridging paths. + * + * @generated from message noble.dollar.portal.v1.MsgSetBridgingPath + */ +export class MsgSetBridgingPath extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: uint32 destination_chain_id = 2; + */ + destinationChainId = 0; + + /** + * @generated from field: bytes destination_token = 3; + */ + destinationToken = new Uint8Array(0); + + /** + * @generated from field: bool supported = 4; + */ + supported = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetBridgingPath"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "destination_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "destination_token", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBridgingPath { + return new MsgSetBridgingPath().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBridgingPath { + return new MsgSetBridgingPath().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBridgingPath { + return new MsgSetBridgingPath().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBridgingPath | PlainMessage | undefined, b: MsgSetBridgingPath | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBridgingPath, a, b); + } +} + +/** + * MsgSetBridgingPathResponse is the response of the SetBridgingPath message. + * + * @generated from message noble.dollar.portal.v1.MsgSetBridgingPathResponse + */ +export class MsgSetBridgingPathResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgSetBridgingPathResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBridgingPathResponse { + return new MsgSetBridgingPathResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBridgingPathResponse { + return new MsgSetBridgingPathResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBridgingPathResponse { + return new MsgSetBridgingPathResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBridgingPathResponse | PlainMessage | undefined, b: MsgSetBridgingPathResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBridgingPathResponse, a, b); + } +} + +/** + * MsgTransferOwnership allows the Noble Dollar Portal ownership to be transferred. + * + * @generated from message noble.dollar.portal.v1.MsgTransferOwnership + */ +export class MsgTransferOwnership extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: string new_owner = 2; + */ + newOwner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgTransferOwnership"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "new_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferOwnership { + return new MsgTransferOwnership().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferOwnership { + return new MsgTransferOwnership().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferOwnership { + return new MsgTransferOwnership().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferOwnership | PlainMessage | undefined, b: MsgTransferOwnership | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferOwnership, a, b); + } +} + +/** + * MsgTransferOwnershipResponse is the response of the TransferOwnership message. + * + * @generated from message noble.dollar.portal.v1.MsgTransferOwnershipResponse + */ +export class MsgTransferOwnershipResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.portal.v1.MsgTransferOwnershipResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferOwnershipResponse { + return new MsgTransferOwnershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferOwnershipResponse { + return new MsgTransferOwnershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgTransferOwnershipResponse { + return new MsgTransferOwnershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgTransferOwnershipResponse | PlainMessage | undefined, b: MsgTransferOwnershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgTransferOwnershipResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v1/dollar_pb.ts b/src/protobufs/noble/dollar/v1/dollar_pb.ts new file mode 100644 index 00000000..5978118f --- /dev/null +++ b/src/protobufs/noble/dollar/v1/dollar_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v1/dollar.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message noble.dollar.v1.Stats + */ +export class Stats extends Message { + /** + * @generated from field: uint64 total_holders = 1; + */ + totalHolders = protoInt64.zero; + + /** + * @generated from field: string total_principal = 2; + */ + totalPrincipal = ""; + + /** + * @generated from field: string total_yield_accrued = 3; + */ + totalYieldAccrued = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.Stats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_holders", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_yield_accrued", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Stats { + return new Stats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Stats { + return new Stats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Stats { + return new Stats().fromJsonString(jsonString, options); + } + + static equals(a: Stats | PlainMessage | undefined, b: Stats | PlainMessage | undefined): boolean { + return proto3.util.equals(Stats, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v1/events_pb.ts b/src/protobufs/noble/dollar/v1/events_pb.ts new file mode 100644 index 00000000..cd47e960 --- /dev/null +++ b/src/protobufs/noble/dollar/v1/events_pb.ts @@ -0,0 +1,179 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v1/events.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Paused is an event emitted when the module pause + * state is changed to paused. + * + * @generated from message noble.dollar.v1.Paused + */ +export class Paused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.Paused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Paused { + return new Paused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Paused { + return new Paused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Paused { + return new Paused().fromJsonString(jsonString, options); + } + + static equals(a: Paused | PlainMessage | undefined, b: Paused | PlainMessage | undefined): boolean { + return proto3.util.equals(Paused, a, b); + } +} + +/** + * Unpaused is an event emitted when the module pause + * state is changed to unpaused. + * + * @generated from message noble.dollar.v1.Unpaused + */ +export class Unpaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.Unpaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Unpaused { + return new Unpaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Unpaused { + return new Unpaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Unpaused { + return new Unpaused().fromJsonString(jsonString, options); + } + + static equals(a: Unpaused | PlainMessage | undefined, b: Unpaused | PlainMessage | undefined): boolean { + return proto3.util.equals(Unpaused, a, b); + } +} + +/** + * YieldClaimed is an event emitted whenever a user claims + * accrued yield. + * + * @generated from message noble.dollar.v1.YieldClaimed + */ +export class YieldClaimed extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.YieldClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): YieldClaimed { + return new YieldClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): YieldClaimed { + return new YieldClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): YieldClaimed { + return new YieldClaimed().fromJsonString(jsonString, options); + } + + static equals(a: YieldClaimed | PlainMessage | undefined, b: YieldClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(YieldClaimed, a, b); + } +} + +/** + * IndexUpdated is an event emitted when the index is updated. + * + * @generated from message noble.dollar.v1.IndexUpdated + */ +export class IndexUpdated extends Message { + /** + * @generated from field: int64 old_index = 1; + */ + oldIndex = protoInt64.zero; + + /** + * @generated from field: int64 new_index = 2; + */ + newIndex = protoInt64.zero; + + /** + * @generated from field: string total_principal = 3; + */ + totalPrincipal = ""; + + /** + * @generated from field: string yield_accrued = 4; + */ + yieldAccrued = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.IndexUpdated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "old_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "new_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "yield_accrued", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IndexUpdated { + return new IndexUpdated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IndexUpdated { + return new IndexUpdated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IndexUpdated { + return new IndexUpdated().fromJsonString(jsonString, options); + } + + static equals(a: IndexUpdated | PlainMessage | undefined, b: IndexUpdated | PlainMessage | undefined): boolean { + return proto3.util.equals(IndexUpdated, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v1/genesis_pb.ts b/src/protobufs/noble/dollar/v1/genesis_pb.ts new file mode 100644 index 00000000..d9ac60be --- /dev/null +++ b/src/protobufs/noble/dollar/v1/genesis_pb.ts @@ -0,0 +1,92 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v1/genesis.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { GenesisState as GenesisState$1 } from "../portal/v1/genesis_pb.js"; +import { GenesisState as GenesisState$2 } from "../vaults/v1/genesis_pb.js"; +import { Stats } from "./dollar_pb.js"; + +/** + * GenesisState defines the genesis state of the Noble Dollar module. + * + * @generated from message noble.dollar.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * portal contains the genesis state of the Noble Dollar Portal submodule. + * + * @generated from field: noble.dollar.portal.v1.GenesisState portal = 1; + */ + portal?: GenesisState$1; + + /** + * vaults contains the genesis state of the Noble Dollar Vaults submodule. + * + * @generated from field: noble.dollar.vaults.v1.GenesisState vaults = 2; + */ + vaults?: GenesisState$2; + + /** + * paused contains the genesis paused state of the Noble Dollar. + * + * @generated from field: bool paused = 3; + */ + paused = false; + + /** + * index contains the genesis index of the Noble Dollar, used for rebasing. + * + * @generated from field: int64 index = 4; + */ + index = protoInt64.zero; + + /** + * principal contains the genesis principal amounts of Noble Dollar holders. + * + * @generated from field: map principal = 5; + */ + principal: { [key: string]: string } = {}; + + /** + * stats contains the genesis statistics around the Noble Dollar. + * + * @generated from field: noble.dollar.v1.Stats stats = 6; + */ + stats?: Stats; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "portal", kind: "message", T: GenesisState$1 }, + { no: 2, name: "vaults", kind: "message", T: GenesisState$2 }, + { no: 3, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "principal", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 6, name: "stats", kind: "message", T: Stats }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v1/query_cosmes.ts b/src/protobufs/noble/dollar/v1/query_cosmes.ts new file mode 100644 index 00000000..9ac97c32 --- /dev/null +++ b/src/protobufs/noble/dollar/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/v1/query.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryIndex, QueryIndexResponse, QueryPaused, QueryPausedResponse, QueryPrincipal, QueryPrincipalResponse, QueryStats, QueryStatsResponse, QueryYield, QueryYieldResponse } from "./query_pb.js"; + +const TYPE_NAME = "noble.dollar.v1.Query"; + +/** + * @generated from rpc noble.dollar.v1.Query.Index + */ +export const QueryIndexService = { + typeName: TYPE_NAME, + method: "Index", + Request: QueryIndex, + Response: QueryIndexResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v1.Query.Paused + */ +export const QueryPausedService = { + typeName: TYPE_NAME, + method: "Paused", + Request: QueryPaused, + Response: QueryPausedResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v1.Query.Principal + */ +export const QueryPrincipalService = { + typeName: TYPE_NAME, + method: "Principal", + Request: QueryPrincipal, + Response: QueryPrincipalResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v1.Query.Yield + */ +export const QueryYieldService = { + typeName: TYPE_NAME, + method: "Yield", + Request: QueryYield, + Response: QueryYieldResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v1.Query.Stats + */ +export const QueryStatsService = { + typeName: TYPE_NAME, + method: "Stats", + Request: QueryStats, + Response: QueryStatsResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/v1/query_pb.ts b/src/protobufs/noble/dollar/v1/query_pb.ts new file mode 100644 index 00000000..2806f9f4 --- /dev/null +++ b/src/protobufs/noble/dollar/v1/query_pb.ts @@ -0,0 +1,372 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v1/query.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message noble.dollar.v1.QueryIndex + */ +export class QueryIndex extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryIndex"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIndex { + return new QueryIndex().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIndex { + return new QueryIndex().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIndex { + return new QueryIndex().fromJsonString(jsonString, options); + } + + static equals(a: QueryIndex | PlainMessage | undefined, b: QueryIndex | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIndex, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryIndexResponse + */ +export class QueryIndexResponse extends Message { + /** + * @generated from field: string index = 1; + */ + index = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryIndexResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIndexResponse { + return new QueryIndexResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIndexResponse { + return new QueryIndexResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIndexResponse { + return new QueryIndexResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIndexResponse | PlainMessage | undefined, b: QueryIndexResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIndexResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryPaused + */ +export class QueryPaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaused { + return new QueryPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaused { + return new QueryPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaused { + return new QueryPaused().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaused | PlainMessage | undefined, b: QueryPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaused, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryPausedResponse + */ +export class QueryPausedResponse extends Message { + /** + * @generated from field: bool paused = 1; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryPausedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPausedResponse | PlainMessage | undefined, b: QueryPausedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPausedResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryPrincipal + */ +export class QueryPrincipal extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryPrincipal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPrincipal { + return new QueryPrincipal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPrincipal { + return new QueryPrincipal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPrincipal { + return new QueryPrincipal().fromJsonString(jsonString, options); + } + + static equals(a: QueryPrincipal | PlainMessage | undefined, b: QueryPrincipal | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPrincipal, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryPrincipalResponse + */ +export class QueryPrincipalResponse extends Message { + /** + * @generated from field: string principal = 1; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryPrincipalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPrincipalResponse { + return new QueryPrincipalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPrincipalResponse { + return new QueryPrincipalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPrincipalResponse { + return new QueryPrincipalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPrincipalResponse | PlainMessage | undefined, b: QueryPrincipalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPrincipalResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryYield + */ +export class QueryYield extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryYield"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYield { + return new QueryYield().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYield { + return new QueryYield().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYield { + return new QueryYield().fromJsonString(jsonString, options); + } + + static equals(a: QueryYield | PlainMessage | undefined, b: QueryYield | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYield, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryYieldResponse + */ +export class QueryYieldResponse extends Message { + /** + * @generated from field: string claimable_amount = 1; + */ + claimableAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryYieldResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "claimable_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYieldResponse { + return new QueryYieldResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYieldResponse { + return new QueryYieldResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYieldResponse { + return new QueryYieldResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryYieldResponse | PlainMessage | undefined, b: QueryYieldResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYieldResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryStats + */ +export class QueryStats extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryStats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStats { + return new QueryStats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStats { + return new QueryStats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStats { + return new QueryStats().fromJsonString(jsonString, options); + } + + static equals(a: QueryStats | PlainMessage | undefined, b: QueryStats | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStats, a, b); + } +} + +/** + * @generated from message noble.dollar.v1.QueryStatsResponse + */ +export class QueryStatsResponse extends Message { + /** + * @generated from field: uint64 total_holders = 1; + */ + totalHolders = protoInt64.zero; + + /** + * @generated from field: string total_principal = 2; + */ + totalPrincipal = ""; + + /** + * @generated from field: string total_yield_accrued = 3; + */ + totalYieldAccrued = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.QueryStatsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_holders", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_yield_accrued", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStatsResponse | PlainMessage | undefined, b: QueryStatsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStatsResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v1/tx_cosmes.ts b/src/protobufs/noble/dollar/v1/tx_cosmes.ts new file mode 100644 index 00000000..83c5a6b7 --- /dev/null +++ b/src/protobufs/noble/dollar/v1/tx_cosmes.ts @@ -0,0 +1,29 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/v1/tx.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimYield, MsgClaimYieldResponse, MsgSetPausedState, MsgSetPausedStateResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.dollar.v1.Msg"; + +/** + * @generated from rpc noble.dollar.v1.Msg.ClaimYield + */ +export const MsgClaimYieldService = { + typeName: TYPE_NAME, + method: "ClaimYield", + Request: MsgClaimYield, + Response: MsgClaimYieldResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v1.Msg.SetPausedState + */ +export const MsgSetPausedStateService = { + typeName: TYPE_NAME, + method: "SetPausedState", + Request: MsgSetPausedState, + Response: MsgSetPausedStateResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/v1/tx_pb.ts b/src/protobufs/noble/dollar/v1/tx_pb.ts new file mode 100644 index 00000000..3eef9289 --- /dev/null +++ b/src/protobufs/noble/dollar/v1/tx_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v1/tx.proto (package noble.dollar.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MsgClaimYield is a message holders of the Noble Dollar can use to claim their yield. + * + * @generated from message noble.dollar.v1.MsgClaimYield + */ +export class MsgClaimYield extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.MsgClaimYield"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimYield { + return new MsgClaimYield().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimYield { + return new MsgClaimYield().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimYield { + return new MsgClaimYield().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimYield | PlainMessage | undefined, b: MsgClaimYield | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimYield, a, b); + } +} + +/** + * MsgClaimYieldResponse is the response of the ClaimYield message. + * + * @generated from message noble.dollar.v1.MsgClaimYieldResponse + */ +export class MsgClaimYieldResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.MsgClaimYieldResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimYieldResponse { + return new MsgClaimYieldResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimYieldResponse { + return new MsgClaimYieldResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimYieldResponse { + return new MsgClaimYieldResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimYieldResponse | PlainMessage | undefined, b: MsgClaimYieldResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimYieldResponse, a, b); + } +} + +/** + * MsgSetPausedState allows the authority to configure the Noble Dollar Portal paused state. + * + * @generated from message noble.dollar.v1.MsgSetPausedState + */ +export class MsgSetPausedState extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: bool paused = 2; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.MsgSetPausedState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedState | PlainMessage | undefined, b: MsgSetPausedState | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedState, a, b); + } +} + +/** + * MsgSetPausedStateResponse is the response of the SetPausedState message. + * + * @generated from message noble.dollar.v1.MsgSetPausedStateResponse + */ +export class MsgSetPausedStateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v1.MsgSetPausedStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedStateResponse | PlainMessage | undefined, b: MsgSetPausedStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedStateResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v2/dollar_pb.ts b/src/protobufs/noble/dollar/v2/dollar_pb.ts new file mode 100644 index 00000000..83080df5 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/dollar_pb.ts @@ -0,0 +1,79 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v2/dollar.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from enum noble.dollar.v2.Provider + */ +export enum Provider { + /** + * @generated from enum value: IBC = 0; + */ + IBC = 0, + + /** + * @generated from enum value: HYPERLANE = 1; + */ + HYPERLANE = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(Provider) +proto3.util.setEnumType(Provider, "noble.dollar.v2.Provider", [ + { no: 0, name: "IBC" }, + { no: 1, name: "HYPERLANE" }, +]); + +/** + * Stats is copied from the v1 definition to avoid cyclic imports. + * + * @generated from message noble.dollar.v2.Stats + */ +export class Stats extends Message { + /** + * @generated from field: uint64 total_holders = 1; + */ + totalHolders = protoInt64.zero; + + /** + * @generated from field: string total_principal = 2; + */ + totalPrincipal = ""; + + /** + * @generated from field: string total_yield_accrued = 3; + */ + totalYieldAccrued = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.Stats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_holders", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_yield_accrued", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Stats { + return new Stats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Stats { + return new Stats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Stats { + return new Stats().fromJsonString(jsonString, options); + } + + static equals(a: Stats | PlainMessage | undefined, b: Stats | PlainMessage | undefined): boolean { + return proto3.util.equals(Stats, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v2/events_pb.ts b/src/protobufs/noble/dollar/v2/events_pb.ts new file mode 100644 index 00000000..491c876b --- /dev/null +++ b/src/protobufs/noble/dollar/v2/events_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v2/events.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Provider } from "./dollar_pb.js"; + +/** + * YieldRecipientSet is an event emitted when the yield recipient for an IBC channel is set. + * + * @generated from message noble.dollar.v2.YieldRecipientSet + */ +export class YieldRecipientSet extends Message { + /** + * @generated from field: noble.dollar.v2.Provider provider = 1; + */ + provider = Provider.IBC; + + /** + * @generated from field: string identifier = 2; + */ + identifier = ""; + + /** + * @generated from field: string recipient = 3; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.YieldRecipientSet"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) }, + { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): YieldRecipientSet { + return new YieldRecipientSet().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): YieldRecipientSet { + return new YieldRecipientSet().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): YieldRecipientSet { + return new YieldRecipientSet().fromJsonString(jsonString, options); + } + + static equals(a: YieldRecipientSet | PlainMessage | undefined, b: YieldRecipientSet | PlainMessage | undefined): boolean { + return proto3.util.equals(YieldRecipientSet, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v2/genesis_pb.ts b/src/protobufs/noble/dollar/v2/genesis_pb.ts new file mode 100644 index 00000000..70824500 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/genesis_pb.ts @@ -0,0 +1,116 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v2/genesis.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { GenesisState as GenesisState$1 } from "../portal/v1/genesis_pb.js"; +import { GenesisState as GenesisState$2 } from "../vaults/v1/genesis_pb.js"; +import { Stats } from "./dollar_pb.js"; + +/** + * GenesisState defines the genesis state of the Noble Dollar module. + * + * @generated from message noble.dollar.v2.GenesisState + */ +export class GenesisState extends Message { + /** + * portal contains the genesis state of the Noble Dollar Portal submodule. + * + * @generated from field: noble.dollar.portal.v1.GenesisState portal = 1; + */ + portal?: GenesisState$1; + + /** + * vaults contains the genesis state of the Noble Dollar Vaults submodule. + * + * @generated from field: noble.dollar.vaults.v1.GenesisState vaults = 2; + */ + vaults?: GenesisState$2; + + /** + * paused contains the genesis paused state of the Noble Dollar. + * + * @generated from field: bool paused = 3; + */ + paused = false; + + /** + * index contains the genesis index of the Noble Dollar, used for rebasing. + * + * @generated from field: int64 index = 4; + */ + index = protoInt64.zero; + + /** + * principal contains the genesis principal amounts of Noble Dollar holders. + * + * @generated from field: map principal = 5; + */ + principal: { [key: string]: string } = {}; + + /** + * stats contains the genesis statistics around the Noble Dollar. + * + * @generated from field: noble.dollar.v2.Stats stats = 6; + */ + stats?: Stats; + + /** + * total_external_yield contains the genesis statistics around yield accrued on external chains. + * + * @generated from field: map total_external_yield = 7; + */ + totalExternalYield: { [key: string]: string } = {}; + + /** + * yield_recipients contains the genesis yield recipients for external chains. + * + * @generated from field: map yield_recipients = 8; + */ + yieldRecipients: { [key: string]: string } = {}; + + /** + * retry_amounts contains the genesis retry amounts of yield for external chains. + * + * @generated from field: map retry_amounts = 9; + */ + retryAmounts: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "portal", kind: "message", T: GenesisState$1 }, + { no: 2, name: "vaults", kind: "message", T: GenesisState$2 }, + { no: 3, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "principal", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 6, name: "stats", kind: "message", T: Stats }, + { no: 7, name: "total_external_yield", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 8, name: "yield_recipients", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 9, name: "retry_amounts", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v2/query_cosmes.ts b/src/protobufs/noble/dollar/v2/query_cosmes.ts new file mode 100644 index 00000000..cf602674 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/v2/query.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryRetryAmount, QueryRetryAmountResponse, QueryRetryAmounts, QueryRetryAmountsResponse, QueryStats, QueryStatsResponse, QueryYieldRecipient, QueryYieldRecipientResponse, QueryYieldRecipients, QueryYieldRecipientsResponse } from "./query_pb.js"; + +const TYPE_NAME = "noble.dollar.v2.Query"; + +/** + * @generated from rpc noble.dollar.v2.Query.Stats + */ +export const QueryStatsService = { + typeName: TYPE_NAME, + method: "Stats", + Request: QueryStats, + Response: QueryStatsResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v2.Query.YieldRecipients + */ +export const QueryYieldRecipientsService = { + typeName: TYPE_NAME, + method: "YieldRecipients", + Request: QueryYieldRecipients, + Response: QueryYieldRecipientsResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v2.Query.YieldRecipient + */ +export const QueryYieldRecipientService = { + typeName: TYPE_NAME, + method: "YieldRecipient", + Request: QueryYieldRecipient, + Response: QueryYieldRecipientResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v2.Query.RetryAmounts + */ +export const QueryRetryAmountsService = { + typeName: TYPE_NAME, + method: "RetryAmounts", + Request: QueryRetryAmounts, + Response: QueryRetryAmountsResponse, +} as const; + +/** + * @generated from rpc noble.dollar.v2.Query.RetryAmount + */ +export const QueryRetryAmountService = { + typeName: TYPE_NAME, + method: "RetryAmount", + Request: QueryRetryAmount, + Response: QueryRetryAmountResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/v2/query_pb.ts b/src/protobufs/noble/dollar/v2/query_pb.ts new file mode 100644 index 00000000..1762b985 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/query_pb.ts @@ -0,0 +1,434 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v2/query.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Provider } from "./dollar_pb.js"; + +/** + * @generated from message noble.dollar.v2.QueryStats + */ +export class QueryStats extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryStats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStats { + return new QueryStats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStats { + return new QueryStats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStats { + return new QueryStats().fromJsonString(jsonString, options); + } + + static equals(a: QueryStats | PlainMessage | undefined, b: QueryStats | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStats, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryStatsResponse + */ +export class QueryStatsResponse extends Message { + /** + * @generated from field: uint64 total_holders = 1; + */ + totalHolders = protoInt64.zero; + + /** + * @generated from field: string total_principal = 2; + */ + totalPrincipal = ""; + + /** + * @generated from field: string total_yield_accrued = 3; + */ + totalYieldAccrued = ""; + + /** + * @generated from field: map total_external_yield = 4; + */ + totalExternalYield: { [key: string]: QueryStatsResponse_ExternalYield } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryStatsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_holders", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_yield_accrued", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_external_yield", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: QueryStatsResponse_ExternalYield} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStatsResponse | PlainMessage | undefined, b: QueryStatsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStatsResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryStatsResponse.ExternalYield + */ +export class QueryStatsResponse_ExternalYield extends Message { + /** + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryStatsResponse.ExternalYield"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStatsResponse_ExternalYield { + return new QueryStatsResponse_ExternalYield().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStatsResponse_ExternalYield { + return new QueryStatsResponse_ExternalYield().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStatsResponse_ExternalYield { + return new QueryStatsResponse_ExternalYield().fromJsonString(jsonString, options); + } + + static equals(a: QueryStatsResponse_ExternalYield | PlainMessage | undefined, b: QueryStatsResponse_ExternalYield | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStatsResponse_ExternalYield, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryYieldRecipients + */ +export class QueryYieldRecipients extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryYieldRecipients"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYieldRecipients { + return new QueryYieldRecipients().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYieldRecipients { + return new QueryYieldRecipients().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYieldRecipients { + return new QueryYieldRecipients().fromJsonString(jsonString, options); + } + + static equals(a: QueryYieldRecipients | PlainMessage | undefined, b: QueryYieldRecipients | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYieldRecipients, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryYieldRecipientsResponse + */ +export class QueryYieldRecipientsResponse extends Message { + /** + * @generated from field: map yield_recipients = 1; + */ + yieldRecipients: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryYieldRecipientsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yield_recipients", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYieldRecipientsResponse { + return new QueryYieldRecipientsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYieldRecipientsResponse { + return new QueryYieldRecipientsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYieldRecipientsResponse { + return new QueryYieldRecipientsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryYieldRecipientsResponse | PlainMessage | undefined, b: QueryYieldRecipientsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYieldRecipientsResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryYieldRecipient + */ +export class QueryYieldRecipient extends Message { + /** + * @generated from field: noble.dollar.v2.Provider provider = 1; + */ + provider = Provider.IBC; + + /** + * @generated from field: string identifier = 2; + */ + identifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryYieldRecipient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) }, + { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYieldRecipient { + return new QueryYieldRecipient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYieldRecipient { + return new QueryYieldRecipient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYieldRecipient { + return new QueryYieldRecipient().fromJsonString(jsonString, options); + } + + static equals(a: QueryYieldRecipient | PlainMessage | undefined, b: QueryYieldRecipient | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYieldRecipient, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryYieldRecipientResponse + */ +export class QueryYieldRecipientResponse extends Message { + /** + * @generated from field: string yield_recipient = 1; + */ + yieldRecipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryYieldRecipientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yield_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYieldRecipientResponse { + return new QueryYieldRecipientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYieldRecipientResponse { + return new QueryYieldRecipientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYieldRecipientResponse { + return new QueryYieldRecipientResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryYieldRecipientResponse | PlainMessage | undefined, b: QueryYieldRecipientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYieldRecipientResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryRetryAmounts + */ +export class QueryRetryAmounts extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryRetryAmounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRetryAmounts { + return new QueryRetryAmounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRetryAmounts { + return new QueryRetryAmounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRetryAmounts { + return new QueryRetryAmounts().fromJsonString(jsonString, options); + } + + static equals(a: QueryRetryAmounts | PlainMessage | undefined, b: QueryRetryAmounts | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRetryAmounts, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryRetryAmountsResponse + */ +export class QueryRetryAmountsResponse extends Message { + /** + * @generated from field: map retry_amounts = 1; + */ + retryAmounts: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryRetryAmountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "retry_amounts", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRetryAmountsResponse { + return new QueryRetryAmountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRetryAmountsResponse { + return new QueryRetryAmountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRetryAmountsResponse { + return new QueryRetryAmountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRetryAmountsResponse | PlainMessage | undefined, b: QueryRetryAmountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRetryAmountsResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryRetryAmount + */ +export class QueryRetryAmount extends Message { + /** + * @generated from field: noble.dollar.v2.Provider provider = 1; + */ + provider = Provider.IBC; + + /** + * @generated from field: string identifier = 2; + */ + identifier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryRetryAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) }, + { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRetryAmount { + return new QueryRetryAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRetryAmount { + return new QueryRetryAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRetryAmount { + return new QueryRetryAmount().fromJsonString(jsonString, options); + } + + static equals(a: QueryRetryAmount | PlainMessage | undefined, b: QueryRetryAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRetryAmount, a, b); + } +} + +/** + * @generated from message noble.dollar.v2.QueryRetryAmountResponse + */ +export class QueryRetryAmountResponse extends Message { + /** + * @generated from field: string retry_amount = 1; + */ + retryAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.QueryRetryAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "retry_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRetryAmountResponse { + return new QueryRetryAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRetryAmountResponse { + return new QueryRetryAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRetryAmountResponse { + return new QueryRetryAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRetryAmountResponse | PlainMessage | undefined, b: QueryRetryAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRetryAmountResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/v2/tx_cosmes.ts b/src/protobufs/noble/dollar/v2/tx_cosmes.ts new file mode 100644 index 00000000..73e9faf9 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/v2/tx.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSetYieldRecipient, MsgSetYieldRecipientResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.dollar.v2.Msg"; + +/** + * @generated from rpc noble.dollar.v2.Msg.SetYieldRecipient + */ +export const MsgSetYieldRecipientService = { + typeName: TYPE_NAME, + method: "SetYieldRecipient", + Request: MsgSetYieldRecipient, + Response: MsgSetYieldRecipientResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/v2/tx_pb.ts b/src/protobufs/noble/dollar/v2/tx_pb.ts new file mode 100644 index 00000000..7c99e7d8 --- /dev/null +++ b/src/protobufs/noble/dollar/v2/tx_pb.ts @@ -0,0 +1,99 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/v2/tx.proto (package noble.dollar.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Provider } from "./dollar_pb.js"; + +/** + * MsgSetYieldRecipient allows the authority to set a yield recipient for an external chain. + * + * @generated from message noble.dollar.v2.MsgSetYieldRecipient + */ +export class MsgSetYieldRecipient extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: noble.dollar.v2.Provider provider = 2; + */ + provider = Provider.IBC; + + /** + * @generated from field: string identifier = 3; + */ + identifier = ""; + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.MsgSetYieldRecipient"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) }, + { no: 3, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetYieldRecipient { + return new MsgSetYieldRecipient().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetYieldRecipient { + return new MsgSetYieldRecipient().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetYieldRecipient { + return new MsgSetYieldRecipient().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetYieldRecipient | PlainMessage | undefined, b: MsgSetYieldRecipient | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetYieldRecipient, a, b); + } +} + +/** + * MsgSetYieldRecipientResponse is the response of the SetYieldRecipient message. + * + * @generated from message noble.dollar.v2.MsgSetYieldRecipientResponse + */ +export class MsgSetYieldRecipientResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.v2.MsgSetYieldRecipientResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetYieldRecipientResponse { + return new MsgSetYieldRecipientResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetYieldRecipientResponse { + return new MsgSetYieldRecipientResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetYieldRecipientResponse { + return new MsgSetYieldRecipientResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetYieldRecipientResponse | PlainMessage | undefined, b: MsgSetYieldRecipientResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetYieldRecipientResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/vaults/v1/events_pb.ts b/src/protobufs/noble/dollar/vaults/v1/events_pb.ts new file mode 100644 index 00000000..b301186a --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/events_pb.ts @@ -0,0 +1,219 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/events.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * PositionLocked is an event emitted when a user locks $USDN into a Vault. + * + * @generated from message noble.dollar.vaults.v1.PositionLocked + */ +export class PositionLocked extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string vault_type = 2; + */ + vaultType = ""; + + /** + * @generated from field: int64 index = 3; + */ + index = protoInt64.zero; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + /** + * @generated from field: string principal = 5; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.PositionLocked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionLocked { + return new PositionLocked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionLocked { + return new PositionLocked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionLocked { + return new PositionLocked().fromJsonString(jsonString, options); + } + + static equals(a: PositionLocked | PlainMessage | undefined, b: PositionLocked | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionLocked, a, b); + } +} + +/** + * PositionUnlocked is an event emitted when a user unlocks their $USDN from a Vault. + * + * @generated from message noble.dollar.vaults.v1.PositionUnlocked + */ +export class PositionUnlocked extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string vault_type = 2; + */ + vaultType = ""; + + /** + * @generated from field: int64 index = 3; + */ + index = protoInt64.zero; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + /** + * @generated from field: string principal = 5; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.PositionUnlocked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionUnlocked { + return new PositionUnlocked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionUnlocked { + return new PositionUnlocked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionUnlocked { + return new PositionUnlocked().fromJsonString(jsonString, options); + } + + static equals(a: PositionUnlocked | PlainMessage | undefined, b: PositionUnlocked | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionUnlocked, a, b); + } +} + +/** + * PausedStateUpdated is an event emitted when the module pause + * state is changed. + * + * @generated from message noble.dollar.vaults.v1.PausedStateUpdated + */ +export class PausedStateUpdated extends Message { + /** + * @generated from field: string paused = 1; + */ + paused = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.PausedStateUpdated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PausedStateUpdated { + return new PausedStateUpdated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PausedStateUpdated { + return new PausedStateUpdated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PausedStateUpdated { + return new PausedStateUpdated().fromJsonString(jsonString, options); + } + + static equals(a: PausedStateUpdated | PlainMessage | undefined, b: PausedStateUpdated | PlainMessage | undefined): boolean { + return proto3.util.equals(PausedStateUpdated, a, b); + } +} + +/** + * RewardClaimed is an event emitted whenever a user claim their rewards. + * + * @generated from message noble.dollar.vaults.v1.RewardClaimed + */ +export class RewardClaimed extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.RewardClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RewardClaimed { + return new RewardClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RewardClaimed { + return new RewardClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RewardClaimed { + return new RewardClaimed().fromJsonString(jsonString, options); + } + + static equals(a: RewardClaimed | PlainMessage | undefined, b: RewardClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(RewardClaimed, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/vaults/v1/genesis_pb.ts b/src/protobufs/noble/dollar/vaults/v1/genesis_pb.ts new file mode 100644 index 00000000..386c80ef --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/genesis_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/genesis.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PausedType, PositionEntry, Reward, Stats } from "./vaults_pb.js"; + +/** + * GenesisState defines the genesis state of the Noble Dollar Vaults submodule. + * + * @generated from message noble.dollar.vaults.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * total_flexible_principal contains all the users positions inside Vaults. + * + * @generated from field: repeated noble.dollar.vaults.v1.PositionEntry positions = 2; + */ + positions: PositionEntry[] = []; + + /** + * rewards maps the rewards amounts by the index. + * + * @generated from field: repeated noble.dollar.vaults.v1.Reward rewards = 3; + */ + rewards: Reward[] = []; + + /** + * total_flexible_principal contains the total principal amount contained in the flexible Vault. + * + * @generated from field: string total_flexible_principal = 4; + */ + totalFlexiblePrincipal = ""; + + /** + * paused represents the current pausing state of the Vaults. + * + * @generated from field: noble.dollar.vaults.v1.PausedType paused = 5; + */ + paused = PausedType.NONE; + + /** + * stats contains the genesis statistics around the Noble Dollar Vaults. + * + * @generated from field: noble.dollar.vaults.v1.Stats stats = 6; + */ + stats?: Stats; + + /** + * season_one_ended indicates whether Vaults Season One has ended. + * + * @generated from field: bool season_one_ended = 7; + */ + seasonOneEnded = false; + + /** + * season_two_yield_collector defines the yield collector during Vaults Season Two. + * + * @generated from field: string season_two_yield_collector = 8; + */ + seasonTwoYieldCollector = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "positions", kind: "message", T: PositionEntry, repeated: true }, + { no: 3, name: "rewards", kind: "message", T: Reward, repeated: true }, + { no: 4, name: "total_flexible_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "paused", kind: "enum", T: proto3.getEnumType(PausedType) }, + { no: 6, name: "stats", kind: "message", T: Stats }, + { no: 7, name: "season_one_ended", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "season_two_yield_collector", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/vaults/v1/query_cosmes.ts b/src/protobufs/noble/dollar/vaults/v1/query_cosmes.ts new file mode 100644 index 00000000..9c2fd2f9 --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/query.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryPaused, QueryPausedResponse, QueryPendingRewards, QueryPendingRewardsByProvider, QueryPendingRewardsByProviderResponse, QueryPendingRewardsResponse, QueryPositionsByProvider, QueryPositionsByProviderResponse, QueryStats, QueryStatsResponse } from "./query_pb.js"; + +const TYPE_NAME = "noble.dollar.vaults.v1.Query"; + +/** + * @generated from rpc noble.dollar.vaults.v1.Query.PositionsByProvider + */ +export const QueryPositionsByProviderService = { + typeName: TYPE_NAME, + method: "PositionsByProvider", + Request: QueryPositionsByProvider, + Response: QueryPositionsByProviderResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Query.PendingRewards + */ +export const QueryPendingRewardsService = { + typeName: TYPE_NAME, + method: "PendingRewards", + Request: QueryPendingRewards, + Response: QueryPendingRewardsResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Query.PendingRewardsByProvider + */ +export const QueryPendingRewardsByProviderService = { + typeName: TYPE_NAME, + method: "PendingRewardsByProvider", + Request: QueryPendingRewardsByProvider, + Response: QueryPendingRewardsByProviderResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Query.Paused + */ +export const QueryPausedService = { + typeName: TYPE_NAME, + method: "Paused", + Request: QueryPaused, + Response: QueryPausedResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Query.Stats + */ +export const QueryStatsService = { + typeName: TYPE_NAME, + method: "Stats", + Request: QueryStats, + Response: QueryStatsResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/vaults/v1/query_pb.ts b/src/protobufs/noble/dollar/vaults/v1/query_pb.ts new file mode 100644 index 00000000..afb52afb --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/query_pb.ts @@ -0,0 +1,391 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/query.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PausedType, PositionEntry, PositionRewards } from "./vaults_pb.js"; + +/** + * @generated from message noble.dollar.vaults.v1.QueryPositionsByProvider + */ +export class QueryPositionsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPositionsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsByProvider | PlainMessage | undefined, b: QueryPositionsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsByProvider, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPositionsByProviderResponse + */ +export class QueryPositionsByProviderResponse extends Message { + /** + * @generated from field: repeated noble.dollar.vaults.v1.PositionEntry positions = 1; + */ + positions: PositionEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPositionsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsByProviderResponse | PlainMessage | undefined, b: QueryPositionsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPaused + */ +export class QueryPaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaused { + return new QueryPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaused { + return new QueryPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaused { + return new QueryPaused().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaused | PlainMessage | undefined, b: QueryPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaused, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPausedResponse + */ +export class QueryPausedResponse extends Message { + /** + * @generated from field: noble.dollar.vaults.v1.PausedType paused = 1; + */ + paused = PausedType.NONE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPausedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "enum", T: proto3.getEnumType(PausedType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPausedResponse | PlainMessage | undefined, b: QueryPausedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPausedResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPendingRewards + */ +export class QueryPendingRewards extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPendingRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewards { + return new QueryPendingRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewards { + return new QueryPendingRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewards { + return new QueryPendingRewards().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewards | PlainMessage | undefined, b: QueryPendingRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewards, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPendingRewardsResponse + */ +export class QueryPendingRewardsResponse extends Message { + /** + * @generated from field: string pending_rewards = 1; + */ + pendingRewards = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPendingRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewardsResponse { + return new QueryPendingRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewardsResponse | PlainMessage | undefined, b: QueryPendingRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewardsResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPendingRewardsByProvider + */ +export class QueryPendingRewardsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPendingRewardsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewardsByProvider { + return new QueryPendingRewardsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewardsByProvider { + return new QueryPendingRewardsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewardsByProvider { + return new QueryPendingRewardsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewardsByProvider | PlainMessage | undefined, b: QueryPendingRewardsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewardsByProvider, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryPendingRewardsByProviderResponse + */ +export class QueryPendingRewardsByProviderResponse extends Message { + /** + * @generated from field: string pending_rewards = 1; + */ + pendingRewards = ""; + + /** + * @generated from field: repeated noble.dollar.vaults.v1.PositionRewards positions_rewards = 2; + */ + positionsRewards: PositionRewards[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryPendingRewardsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "positions_rewards", kind: "message", T: PositionRewards, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingRewardsByProviderResponse { + return new QueryPendingRewardsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingRewardsByProviderResponse { + return new QueryPendingRewardsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingRewardsByProviderResponse { + return new QueryPendingRewardsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPendingRewardsByProviderResponse | PlainMessage | undefined, b: QueryPendingRewardsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPendingRewardsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryStats + */ +export class QueryStats extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryStats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStats { + return new QueryStats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStats { + return new QueryStats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStats { + return new QueryStats().fromJsonString(jsonString, options); + } + + static equals(a: QueryStats | PlainMessage | undefined, b: QueryStats | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStats, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.QueryStatsResponse + */ +export class QueryStatsResponse extends Message { + /** + * @generated from field: string flexible_total_principal = 1; + */ + flexibleTotalPrincipal = ""; + + /** + * @generated from field: uint64 flexible_total_users = 2; + */ + flexibleTotalUsers = protoInt64.zero; + + /** + * @generated from field: string flexible_total_distributed_rewards_principal = 3; + */ + flexibleTotalDistributedRewardsPrincipal = ""; + + /** + * @generated from field: string staked_total_principal = 4; + */ + stakedTotalPrincipal = ""; + + /** + * @generated from field: uint64 staked_total_users = 5; + */ + stakedTotalUsers = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.QueryStatsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flexible_total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "flexible_total_users", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "flexible_total_distributed_rewards_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "staked_total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "staked_total_users", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryStatsResponse { + return new QueryStatsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryStatsResponse | PlainMessage | undefined, b: QueryStatsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryStatsResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/vaults/v1/tx_cosmes.ts b/src/protobufs/noble/dollar/vaults/v1/tx_cosmes.ts new file mode 100644 index 00000000..74887408 --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/tx_cosmes.ts @@ -0,0 +1,39 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/tx.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgLock, MsgLockResponse, MsgSetPausedState, MsgSetPausedStateResponse, MsgUnlock, MsgUnlockResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.dollar.vaults.v1.Msg"; + +/** + * @generated from rpc noble.dollar.vaults.v1.Msg.Lock + */ +export const MsgLockService = { + typeName: TYPE_NAME, + method: "Lock", + Request: MsgLock, + Response: MsgLockResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Msg.Unlock + */ +export const MsgUnlockService = { + typeName: TYPE_NAME, + method: "Unlock", + Request: MsgUnlock, + Response: MsgUnlockResponse, +} as const; + +/** + * @generated from rpc noble.dollar.vaults.v1.Msg.SetPausedState + */ +export const MsgSetPausedStateService = { + typeName: TYPE_NAME, + method: "SetPausedState", + Request: MsgSetPausedState, + Response: MsgSetPausedStateResponse, +} as const; + diff --git a/src/protobufs/noble/dollar/vaults/v1/tx_pb.ts b/src/protobufs/noble/dollar/vaults/v1/tx_pb.ts new file mode 100644 index 00000000..bba1cc90 --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/tx_pb.ts @@ -0,0 +1,255 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/tx.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PausedType, VaultType } from "./vaults_pb.js"; + +/** + * MsgLock is a message holders of the Noble Dollar can use to lock their $USDN into a Vault to earn rewards. + * + * @generated from message noble.dollar.vaults.v1.MsgLock + */ +export class MsgLock extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: noble.dollar.vaults.v1.VaultType vault = 2; + */ + vault = VaultType.UNSPECIFIED; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgLock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault", kind: "enum", T: proto3.getEnumType(VaultType) }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLock { + return new MsgLock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLock { + return new MsgLock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLock { + return new MsgLock().fromJsonString(jsonString, options); + } + + static equals(a: MsgLock | PlainMessage | undefined, b: MsgLock | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLock, a, b); + } +} + +/** + * MsgLockResponse is the response of the Lock message. + * + * @generated from message noble.dollar.vaults.v1.MsgLockResponse + */ +export class MsgLockResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgLockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockResponse { + return new MsgLockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockResponse { + return new MsgLockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgLockResponse { + return new MsgLockResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgLockResponse | PlainMessage | undefined, b: MsgLockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgLockResponse, a, b); + } +} + +/** + * MsgUnlock is a message that allows holders of the Noble Dollar to unlock their $USDN from a Vault, releasing their funds and claiming any available rewards. + * + * @generated from message noble.dollar.vaults.v1.MsgUnlock + */ +export class MsgUnlock extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: noble.dollar.vaults.v1.VaultType vault = 2; + */ + vault = VaultType.UNSPECIFIED; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgUnlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vault", kind: "enum", T: proto3.getEnumType(VaultType) }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlock { + return new MsgUnlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlock { + return new MsgUnlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlock { + return new MsgUnlock().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlock | PlainMessage | undefined, b: MsgUnlock | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlock, a, b); + } +} + +/** + * MsgLockResponse is the response of the Unlock message. + * + * @generated from message noble.dollar.vaults.v1.MsgUnlockResponse + */ +export class MsgUnlockResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgUnlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockResponse { + return new MsgUnlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockResponse { + return new MsgUnlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlockResponse { + return new MsgUnlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlockResponse | PlainMessage | undefined, b: MsgUnlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlockResponse, a, b); + } +} + +/** + * MsgSetPausedState allows the authority to configure the Noble Dollar Vault paused state, enabling or disabling Lock and Unlock actions. + * + * @generated from message noble.dollar.vaults.v1.MsgSetPausedState + */ +export class MsgSetPausedState extends Message { + /** + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * @generated from field: noble.dollar.vaults.v1.PausedType paused = 2; + */ + paused = PausedType.NONE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgSetPausedState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paused", kind: "enum", T: proto3.getEnumType(PausedType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedState { + return new MsgSetPausedState().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedState | PlainMessage | undefined, b: MsgSetPausedState | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedState, a, b); + } +} + +/** + * MsgSetPausedStateResponse is the response of the SetPausedState message. + * + * @generated from message noble.dollar.vaults.v1.MsgSetPausedStateResponse + */ +export class MsgSetPausedStateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.MsgSetPausedStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPausedStateResponse { + return new MsgSetPausedStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPausedStateResponse | PlainMessage | undefined, b: MsgSetPausedStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPausedStateResponse, a, b); + } +} + diff --git a/src/protobufs/noble/dollar/vaults/v1/vaults_pb.ts b/src/protobufs/noble/dollar/vaults/v1/vaults_pb.ts new file mode 100644 index 00000000..fdce02c3 --- /dev/null +++ b/src/protobufs/noble/dollar/vaults/v1/vaults_pb.ts @@ -0,0 +1,349 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/dollar/vaults/v1/vaults.proto (package noble.dollar.vaults.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * buf:lint:ignore ENUM_VALUE_PREFIX + * + * @generated from enum noble.dollar.vaults.v1.VaultType + */ +export enum VaultType { + /** + * buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX + * + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: STAKED = 1; + */ + STAKED = 1, + + /** + * @generated from enum value: FLEXIBLE = 2; + */ + FLEXIBLE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(VaultType) +proto3.util.setEnumType(VaultType, "noble.dollar.vaults.v1.VaultType", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "STAKED" }, + { no: 2, name: "FLEXIBLE" }, +]); + +/** + * buf:lint:ignore ENUM_VALUE_PREFIX + * + * @generated from enum noble.dollar.vaults.v1.PausedType + */ +export enum PausedType { + /** + * buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX + * + * @generated from enum value: NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: LOCK = 1; + */ + LOCK = 1, + + /** + * @generated from enum value: UNLOCK = 2; + */ + UNLOCK = 2, + + /** + * @generated from enum value: ALL = 3; + */ + ALL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(PausedType) +proto3.util.setEnumType(PausedType, "noble.dollar.vaults.v1.PausedType", [ + { no: 0, name: "NONE" }, + { no: 1, name: "LOCK" }, + { no: 2, name: "UNLOCK" }, + { no: 3, name: "ALL" }, +]); + +/** + * @generated from message noble.dollar.vaults.v1.Reward + */ +export class Reward extends Message { + /** + * @generated from field: int64 index = 1; + */ + index = protoInt64.zero; + + /** + * @generated from field: string total = 2; + */ + total = ""; + + /** + * @generated from field: string rewards = 3; + */ + rewards = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.Reward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "total", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Reward { + return new Reward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Reward { + return new Reward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Reward { + return new Reward().fromJsonString(jsonString, options); + } + + static equals(a: Reward | PlainMessage | undefined, b: Reward | PlainMessage | undefined): boolean { + return proto3.util.equals(Reward, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.Position + */ +export class Position extends Message { + /** + * @generated from field: string principal = 1; + */ + principal = ""; + + /** + * @generated from field: int64 index = 2; + */ + index = protoInt64.zero; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * @generated from field: google.protobuf.Timestamp time = 4; + */ + time?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.PositionRewards + */ +export class PositionRewards extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + /** + * @generated from field: string pending_rewards = 2; + */ + pendingRewards = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.PositionRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pending_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionRewards { + return new PositionRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionRewards { + return new PositionRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionRewards { + return new PositionRewards().fromJsonString(jsonString, options); + } + + static equals(a: PositionRewards | PlainMessage | undefined, b: PositionRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionRewards, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.PositionEntry + */ +export class PositionEntry extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + /** + * @generated from field: noble.dollar.vaults.v1.VaultType vault = 2; + */ + vault = VaultType.UNSPECIFIED; + + /** + * @generated from field: string principal = 3; + */ + principal = ""; + + /** + * @generated from field: int64 index = 4; + */ + index = protoInt64.zero; + + /** + * @generated from field: string amount = 5; + */ + amount = ""; + + /** + * @generated from field: google.protobuf.Timestamp time = 6; + */ + time?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.PositionEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "vault", kind: "enum", T: proto3.getEnumType(VaultType) }, + { no: 3, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionEntry { + return new PositionEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionEntry { + return new PositionEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionEntry { + return new PositionEntry().fromJsonString(jsonString, options); + } + + static equals(a: PositionEntry | PlainMessage | undefined, b: PositionEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionEntry, a, b); + } +} + +/** + * @generated from message noble.dollar.vaults.v1.Stats + */ +export class Stats extends Message { + /** + * @generated from field: string flexible_total_principal = 1; + */ + flexibleTotalPrincipal = ""; + + /** + * @generated from field: uint64 flexible_total_users = 2; + */ + flexibleTotalUsers = protoInt64.zero; + + /** + * @generated from field: string flexible_total_distributed_rewards_principal = 3; + */ + flexibleTotalDistributedRewardsPrincipal = ""; + + /** + * @generated from field: string staked_total_principal = 4; + */ + stakedTotalPrincipal = ""; + + /** + * @generated from field: uint64 staked_total_users = 5; + */ + stakedTotalUsers = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.dollar.vaults.v1.Stats"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flexible_total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "flexible_total_users", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "flexible_total_distributed_rewards_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "staked_total_principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "staked_total_users", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Stats { + return new Stats().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Stats { + return new Stats().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Stats { + return new Stats().fromJsonString(jsonString, options); + } + + static equals(a: Stats | PlainMessage | undefined, b: Stats | PlainMessage | undefined): boolean { + return proto3.util.equals(Stats, a, b); + } +} + diff --git a/src/protobufs/noble/swap/module/v1/module_pb.ts b/src/protobufs/noble/swap/module/v1/module_pb.ts new file mode 100644 index 00000000..6f0087d8 --- /dev/null +++ b/src/protobufs/noble/swap/module/v1/module_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/module/v1/module.proto (package noble.swap.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Module is the config object of the Noble Swap module. + * + * @generated from message noble.swap.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * base_denom defines the base denom that is used as the standard pairing denomination for all liquidity pools. + * + * @generated from field: string base_denom = 2; + */ + baseDenom = ""; + + /** + * base_minimum_deposit specifies the minimum amount of the base token required for depositing into liquidity pools. + * + * @generated from field: int64 base_minimum_deposit = 3; + */ + baseMinimumDeposit = protoInt64.zero; + + /** + * max_add_liquidity_slippage_percentage specifies the maximum slippage a user may encounter when adding liquidity. + * + * @generated from field: int64 max_add_liquidity_slippage_percentage = 4; + */ + maxAddLiquiditySlippagePercentage = protoInt64.zero; + + /** + * stableswap contains the custom attributes and configurations required for the StableSwap module. + * + * @generated from field: noble.swap.module.v1.StableSwap stableswap = 5; + */ + stableswap?: StableSwap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "base_minimum_deposit", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "max_add_liquidity_slippage_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "stableswap", kind: "message", T: StableSwap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + +/** + * @generated from message noble.swap.module.v1.StableSwap + */ +export class StableSwap extends Message { + /** + * unbonding_block_delta defines the number of blocks between unbonding BeginBlocker executions. + * + * @generated from field: int64 unbonding_block_delta = 1; + */ + unbondingBlockDelta = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.module.v1.StableSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_block_delta", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StableSwap { + return new StableSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StableSwap { + return new StableSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StableSwap { + return new StableSwap().fromJsonString(jsonString, options); + } + + static equals(a: StableSwap | PlainMessage | undefined, b: StableSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(StableSwap, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/events_pb.ts b/src/protobufs/noble/swap/stableswap/v1/events_pb.ts new file mode 100644 index 00000000..c1ba89c5 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/events_pb.ts @@ -0,0 +1,333 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/events.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.stableswap.v1.PoolCreated + */ +export class PoolCreated extends Message { + /** + * ID of the newly created pool. + * + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * Algorithm of the pool. + * + * @generated from field: string algorithm = 2; + */ + algorithm = ""; + + /** + * Pair asset denom in the pool. + * + * @generated from field: string pair = 3; + */ + pair = ""; + + /** + * Protocol fee percentage for the pool. + * + * @generated from field: int64 protocol_fee_percentage = 4; + */ + protocolFeePercentage = protoInt64.zero; + + /** + * Rewards fee for the pool. + * + * @generated from field: int64 rewards_fee = 5; + */ + rewardsFee = protoInt64.zero; + + /** + * Initial amplification coefficient. + * + * @generated from field: int64 initial_a = 6; + */ + initialA = protoInt64.zero; + + /** + * Initial amplification coefficient. + * + * @generated from field: int64 initial_a_time = 7; + */ + initialATime = protoInt64.zero; + + /** + * Future amplification coefficient. + * + * @generated from field: int64 future_a = 8; + */ + futureA = protoInt64.zero; + + /** + * Time when the amplification change will take full effect. + * + * @generated from field: int64 future_a_time = 9; + */ + futureATime = protoInt64.zero; + + /** + * Rate multipliers applied to the coins. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rate_multipliers = 10; + */ + rateMultipliers: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.PoolCreated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "protocol_fee_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "rewards_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "initial_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "initial_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "future_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 9, name: "future_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "rate_multipliers", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolCreated { + return new PoolCreated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolCreated { + return new PoolCreated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolCreated { + return new PoolCreated().fromJsonString(jsonString, options); + } + + static equals(a: PoolCreated | PlainMessage | undefined, b: PoolCreated | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolCreated, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.PoolUpdated + */ +export class PoolUpdated extends Message { + /** + * ID of the updated pool. + * + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * Protocol fee percentage for the pool. + * + * @generated from field: int64 protocol_fee_percentage = 2; + */ + protocolFeePercentage = protoInt64.zero; + + /** + * Rewards fee for the pool. + * + * @generated from field: int64 rewards_fee = 3; + */ + rewardsFee = protoInt64.zero; + + /** + * Future amplification coefficient. + * + * @generated from field: int64 future_a = 4; + */ + futureA = protoInt64.zero; + + /** + * Time when the amplification change will take full effect. + * + * @generated from field: int64 future_a_time = 5; + */ + futureATime = protoInt64.zero; + + /** + * Rate multipliers applied to the coins. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rate_multipliers = 6; + */ + rateMultipliers: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.PoolUpdated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "protocol_fee_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "rewards_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "future_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "future_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "rate_multipliers", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolUpdated { + return new PoolUpdated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolUpdated { + return new PoolUpdated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolUpdated { + return new PoolUpdated().fromJsonString(jsonString, options); + } + + static equals(a: PoolUpdated | PlainMessage | undefined, b: PoolUpdated | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolUpdated, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.LiquidityAdded + */ +export class LiquidityAdded extends Message { + /** + * Address of the liquidity provider. + * + * @generated from field: string provider = 1; + */ + provider = ""; + + /** + * ID of the pool. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * Liquidity amount being added. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + /** + * Shares issued for the added liquidity. + * + * @generated from field: string shares = 4; + */ + shares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.LiquidityAdded"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityAdded { + return new LiquidityAdded().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityAdded { + return new LiquidityAdded().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiquidityAdded { + return new LiquidityAdded().fromJsonString(jsonString, options); + } + + static equals(a: LiquidityAdded | PlainMessage | undefined, b: LiquidityAdded | PlainMessage | undefined): boolean { + return proto3.util.equals(LiquidityAdded, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.LiquidityRemoved + */ +export class LiquidityRemoved extends Message { + /** + * Provider address of the liquidity + * + * @generated from field: string provider = 1; + */ + provider = ""; + + /** + * ID of the pool. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * Liquidity amount being removed. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + /** + * Shares burned for the removed liquidity. + * + * @generated from field: string shares = 4; + */ + shares = ""; + + /** + * Time when the removed liquidity will be unlocked. + * + * @generated from field: google.protobuf.Timestamp unlock_time = 5; + */ + unlockTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.LiquidityRemoved"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "unlock_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityRemoved { + return new LiquidityRemoved().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityRemoved { + return new LiquidityRemoved().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiquidityRemoved { + return new LiquidityRemoved().fromJsonString(jsonString, options); + } + + static equals(a: LiquidityRemoved | PlainMessage | undefined, b: LiquidityRemoved | PlainMessage | undefined): boolean { + return proto3.util.equals(LiquidityRemoved, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/genesis_pb.ts b/src/protobufs/noble/swap/stableswap/v1/genesis_pb.ts new file mode 100644 index 00000000..6da5fdc1 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/genesis_pb.ts @@ -0,0 +1,330 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/genesis.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Pool } from "./pool_pb.js"; +import { BondedPosition, UnbondingPosition } from "./position_pb.js"; + +/** + * GenesisState defines the StableSwap genesis state. + * + * @generated from message noble.swap.stableswap.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: map pools = 1; + */ + pools: { [key: string]: Pool } = {}; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.PoolsTotalUnbondingSharesEntry pools_total_unbonding_shares = 2; + */ + poolsTotalUnbondingShares: PoolsTotalUnbondingSharesEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.UsersTotalBondedSharesEntry users_total_bonded_shares = 3; + */ + usersTotalBondedShares: UsersTotalBondedSharesEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.UsersTotalUnbondingSharesEntry users_total_unbonding_shares = 4; + */ + usersTotalUnbondingShares: UsersTotalUnbondingSharesEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.BondedPositionEntry bonded_positions = 5; + */ + bondedPositions: BondedPositionEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.UnbondingPositionEntry unbonding_positions = 6; + */ + unbondingPositions: UnbondingPositionEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "map", K: 4 /* ScalarType.UINT64 */, V: {kind: "message", T: Pool} }, + { no: 2, name: "pools_total_unbonding_shares", kind: "message", T: PoolsTotalUnbondingSharesEntry, repeated: true }, + { no: 3, name: "users_total_bonded_shares", kind: "message", T: UsersTotalBondedSharesEntry, repeated: true }, + { no: 4, name: "users_total_unbonding_shares", kind: "message", T: UsersTotalUnbondingSharesEntry, repeated: true }, + { no: 5, name: "bonded_positions", kind: "message", T: BondedPositionEntry, repeated: true }, + { no: 6, name: "unbonding_positions", kind: "message", T: UnbondingPositionEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.BondedPositionEntry + */ +export class BondedPositionEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: int64 timestamp = 3; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: noble.swap.stableswap.v1.BondedPosition bonded_position = 4; + */ + bondedPosition?: BondedPosition; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.BondedPositionEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "bonded_position", kind: "message", T: BondedPosition }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BondedPositionEntry { + return new BondedPositionEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BondedPositionEntry { + return new BondedPositionEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BondedPositionEntry { + return new BondedPositionEntry().fromJsonString(jsonString, options); + } + + static equals(a: BondedPositionEntry | PlainMessage | undefined, b: BondedPositionEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(BondedPositionEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.UnbondingPositionEntry + */ +export class UnbondingPositionEntry extends Message { + /** + * @generated from field: int64 timestamp = 1; + */ + timestamp = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: noble.swap.stableswap.v1.UnbondingPosition unbonding_position = 4; + */ + unbondingPosition?: UnbondingPosition; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.UnbondingPositionEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "unbonding_position", kind: "message", T: UnbondingPosition }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingPositionEntry { + return new UnbondingPositionEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingPositionEntry { + return new UnbondingPositionEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingPositionEntry { + return new UnbondingPositionEntry().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingPositionEntry | PlainMessage | undefined, b: UnbondingPositionEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingPositionEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.PoolsTotalUnbondingSharesEntry + */ +export class PoolsTotalUnbondingSharesEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string shares = 2; + */ + shares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.PoolsTotalUnbondingSharesEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolsTotalUnbondingSharesEntry { + return new PoolsTotalUnbondingSharesEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolsTotalUnbondingSharesEntry { + return new PoolsTotalUnbondingSharesEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolsTotalUnbondingSharesEntry { + return new PoolsTotalUnbondingSharesEntry().fromJsonString(jsonString, options); + } + + static equals(a: PoolsTotalUnbondingSharesEntry | PlainMessage | undefined, b: PoolsTotalUnbondingSharesEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolsTotalUnbondingSharesEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.UsersTotalBondedSharesEntry + */ +export class UsersTotalBondedSharesEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: string shares = 3; + */ + shares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.UsersTotalBondedSharesEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UsersTotalBondedSharesEntry { + return new UsersTotalBondedSharesEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UsersTotalBondedSharesEntry { + return new UsersTotalBondedSharesEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UsersTotalBondedSharesEntry { + return new UsersTotalBondedSharesEntry().fromJsonString(jsonString, options); + } + + static equals(a: UsersTotalBondedSharesEntry | PlainMessage | undefined, b: UsersTotalBondedSharesEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UsersTotalBondedSharesEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.UsersTotalUnbondingSharesEntry + */ +export class UsersTotalUnbondingSharesEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: string shares = 3; + */ + shares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.UsersTotalUnbondingSharesEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UsersTotalUnbondingSharesEntry { + return new UsersTotalUnbondingSharesEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UsersTotalUnbondingSharesEntry { + return new UsersTotalUnbondingSharesEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UsersTotalUnbondingSharesEntry { + return new UsersTotalUnbondingSharesEntry().fromJsonString(jsonString, options); + } + + static equals(a: UsersTotalUnbondingSharesEntry | PlainMessage | undefined, b: UsersTotalUnbondingSharesEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UsersTotalUnbondingSharesEntry, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/pool_pb.ts b/src/protobufs/noble/swap/stableswap/v1/pool_pb.ts new file mode 100644 index 00000000..3d760ef8 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/pool_pb.ts @@ -0,0 +1,112 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/pool.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.stableswap.v1.Pool + */ +export class Pool extends Message { + /** + * Protocol fee percentage for the pool. + * + * @generated from field: int64 protocol_fee_percentage = 1; + */ + protocolFeePercentage = protoInt64.zero; + + /** + * Rewards fee for the pool. + * + * @generated from field: int64 rewards_fee = 2; + */ + rewardsFee = protoInt64.zero; + + /** + * Initial amplification coefficient. + * + * @generated from field: int64 initial_a = 3; + */ + initialA = protoInt64.zero; + + /** + * Future amplification coefficient. + * + * @generated from field: int64 future_a = 4; + */ + futureA = protoInt64.zero; + + /** + * Time when the amplification starts taking effect. + * + * @generated from field: int64 initial_a_time = 5; + */ + initialATime = protoInt64.zero; + + /** + * Time when the amplification change will take full effect. + * + * @generated from field: int64 future_a_time = 6; + */ + futureATime = protoInt64.zero; + + /** + * Rate multipliers applied to the coins. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rate_multipliers = 7; + */ + rateMultipliers: Coin[] = []; + + /** + * Total shares issued within the Pool. + * + * @generated from field: string total_shares = 8; + */ + totalShares = ""; + + /** + * Time when the first liquidity was added to start tracking rewards. + * + * @generated from field: google.protobuf.Timestamp initial_rewards_time = 9; + */ + initialRewardsTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "protocol_fee_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "rewards_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "initial_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "future_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "initial_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "future_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "rate_multipliers", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "initial_rewards_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/position_pb.ts b/src/protobufs/noble/swap/stableswap/v1/position_pb.ts new file mode 100644 index 00000000..698d2872 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/position_pb.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/position.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.stableswap.v1.BondedPosition + */ +export class BondedPosition extends Message { + /** + * Balance of bonded shares. + * + * @generated from field: string balance = 1; + */ + balance = ""; + + /** + * Time when the liquidity was added. + * + * @generated from field: google.protobuf.Timestamp timestamp = 2; + */ + timestamp?: Timestamp; + + /** + * Time when the rewards were collected. + * + * @generated from field: google.protobuf.Timestamp rewards_period_start = 3; + */ + rewardsPeriodStart?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.BondedPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "message", T: Timestamp }, + { no: 3, name: "rewards_period_start", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BondedPosition { + return new BondedPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BondedPosition { + return new BondedPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BondedPosition { + return new BondedPosition().fromJsonString(jsonString, options); + } + + static equals(a: BondedPosition | PlainMessage | undefined, b: BondedPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(BondedPosition, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.UnbondingPosition + */ +export class UnbondingPosition extends Message { + /** + * Amount of shares removed. + * + * @generated from field: string shares = 1; + */ + shares = ""; + + /** + * Liquidity amount being removed. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + /** + * Time when the removed liquidity will be unlocked. + * + * @generated from field: google.protobuf.Timestamp end_time = 3; + */ + endTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.UnbondingPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "end_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingPosition { + return new UnbondingPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingPosition { + return new UnbondingPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingPosition { + return new UnbondingPosition().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingPosition | PlainMessage | undefined, b: UnbondingPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingPosition, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/query_cosmes.ts b/src/protobufs/noble/swap/stableswap/v1/query_cosmes.ts new file mode 100644 index 00000000..909bf058 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/query.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBondedPositionsByProvider, QueryBondedPositionsByProviderResponse, QueryPositionsByProvider, QueryPositionsByProviderResponse, QueryRewardsByProvider, QueryRewardsByProviderResponse, QueryUnbondingPositionsByProvider, QueryUnbondingPositionsByProviderResponse } from "./query_pb.js"; + +const TYPE_NAME = "noble.swap.stableswap.v1.Query"; + +/** + * Retrieves all the positions by a specific provider, including bonded/unbonded positions and rewards. + * + * @generated from rpc noble.swap.stableswap.v1.Query.PositionsByProvider + */ +export const QueryPositionsByProviderService = { + typeName: TYPE_NAME, + method: "PositionsByProvider", + Request: QueryPositionsByProvider, + Response: QueryPositionsByProviderResponse, +} as const; + +/** + * Retrieves all the bonded positions by a specific provider. + * + * @generated from rpc noble.swap.stableswap.v1.Query.BondedPositionsByProvider + */ +export const QueryBondedPositionsByProviderService = { + typeName: TYPE_NAME, + method: "BondedPositionsByProvider", + Request: QueryBondedPositionsByProvider, + Response: QueryBondedPositionsByProviderResponse, +} as const; + +/** + * Retrieves all the unbonding positions by a specific provider. + * + * @generated from rpc noble.swap.stableswap.v1.Query.UnbondingPositionsByProvider + */ +export const QueryUnbondingPositionsByProviderService = { + typeName: TYPE_NAME, + method: "UnbondingPositionsByProvider", + Request: QueryUnbondingPositionsByProvider, + Response: QueryUnbondingPositionsByProviderResponse, +} as const; + +/** + * Retrieves all the rewards by a specific provider. + * + * @generated from rpc noble.swap.stableswap.v1.Query.RewardsByProvider + */ +export const QueryRewardsByProviderService = { + typeName: TYPE_NAME, + method: "RewardsByProvider", + Request: QueryRewardsByProvider, + Response: QueryRewardsByProviderResponse, +} as const; + diff --git a/src/protobufs/noble/swap/stableswap/v1/query_pb.ts b/src/protobufs/noble/swap/stableswap/v1/query_pb.ts new file mode 100644 index 00000000..f3292828 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/query_pb.ts @@ -0,0 +1,458 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/query.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.stableswap.v1.QueryPositionsByProvider + */ +export class QueryPositionsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryPositionsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsByProvider { + return new QueryPositionsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsByProvider | PlainMessage | undefined, b: QueryPositionsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsByProvider, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryPositionsByProviderResponse + */ +export class QueryPositionsByProviderResponse extends Message { + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryBondedPositionResponseEntry bonded_positions = 1; + */ + bondedPositions: QueryBondedPositionResponseEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryUnbondingPositionResponseEntry unbonding_positions = 2; + */ + unbondingPositions: QueryUnbondingPositionResponseEntry[] = []; + + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryRewardsResponseEntry rewards = 3; + */ + rewards: QueryRewardsResponseEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryPositionsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bonded_positions", kind: "message", T: QueryBondedPositionResponseEntry, repeated: true }, + { no: 2, name: "unbonding_positions", kind: "message", T: QueryUnbondingPositionResponseEntry, repeated: true }, + { no: 3, name: "rewards", kind: "message", T: QueryRewardsResponseEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsByProviderResponse { + return new QueryPositionsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsByProviderResponse | PlainMessage | undefined, b: QueryPositionsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryBondedPositionsByProvider + */ +export class QueryBondedPositionsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryBondedPositionsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBondedPositionsByProvider { + return new QueryBondedPositionsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBondedPositionsByProvider { + return new QueryBondedPositionsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBondedPositionsByProvider { + return new QueryBondedPositionsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryBondedPositionsByProvider | PlainMessage | undefined, b: QueryBondedPositionsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBondedPositionsByProvider, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryBondedPositionsByProviderResponse + */ +export class QueryBondedPositionsByProviderResponse extends Message { + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryBondedPositionResponseEntry bonded_positions = 1; + */ + bondedPositions: QueryBondedPositionResponseEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryBondedPositionsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bonded_positions", kind: "message", T: QueryBondedPositionResponseEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBondedPositionsByProviderResponse { + return new QueryBondedPositionsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBondedPositionsByProviderResponse { + return new QueryBondedPositionsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBondedPositionsByProviderResponse { + return new QueryBondedPositionsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBondedPositionsByProviderResponse | PlainMessage | undefined, b: QueryBondedPositionsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBondedPositionsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryUnbondingPositionsByProvider + */ +export class QueryUnbondingPositionsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryUnbondingPositionsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingPositionsByProvider { + return new QueryUnbondingPositionsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingPositionsByProvider { + return new QueryUnbondingPositionsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingPositionsByProvider { + return new QueryUnbondingPositionsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnbondingPositionsByProvider | PlainMessage | undefined, b: QueryUnbondingPositionsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnbondingPositionsByProvider, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryUnbondingPositionsByProviderResponse + */ +export class QueryUnbondingPositionsByProviderResponse extends Message { + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryUnbondingPositionResponseEntry unbonding_positions = 1; + */ + unbondingPositions: QueryUnbondingPositionResponseEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryUnbondingPositionsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_positions", kind: "message", T: QueryUnbondingPositionResponseEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingPositionsByProviderResponse { + return new QueryUnbondingPositionsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingPositionsByProviderResponse { + return new QueryUnbondingPositionsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingPositionsByProviderResponse { + return new QueryUnbondingPositionsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnbondingPositionsByProviderResponse | PlainMessage | undefined, b: QueryUnbondingPositionsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnbondingPositionsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryRewardsByProvider + */ +export class QueryRewardsByProvider extends Message { + /** + * @generated from field: string provider = 1; + */ + provider = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryRewardsByProvider"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsByProvider { + return new QueryRewardsByProvider().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsByProvider { + return new QueryRewardsByProvider().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsByProvider { + return new QueryRewardsByProvider().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsByProvider | PlainMessage | undefined, b: QueryRewardsByProvider | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsByProvider, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryRewardsByProviderResponse + */ +export class QueryRewardsByProviderResponse extends Message { + /** + * @generated from field: repeated noble.swap.stableswap.v1.QueryRewardsResponseEntry rewards = 1; + */ + rewards: QueryRewardsResponseEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryRewardsByProviderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: QueryRewardsResponseEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsByProviderResponse { + return new QueryRewardsByProviderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsByProviderResponse { + return new QueryRewardsByProviderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsByProviderResponse { + return new QueryRewardsByProviderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsByProviderResponse | PlainMessage | undefined, b: QueryRewardsByProviderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsByProviderResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryBondedPositionResponseEntry + */ +export class QueryBondedPositionResponseEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string shares = 2; + */ + shares = ""; + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryBondedPositionResponseEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBondedPositionResponseEntry { + return new QueryBondedPositionResponseEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBondedPositionResponseEntry { + return new QueryBondedPositionResponseEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBondedPositionResponseEntry { + return new QueryBondedPositionResponseEntry().fromJsonString(jsonString, options); + } + + static equals(a: QueryBondedPositionResponseEntry | PlainMessage | undefined, b: QueryBondedPositionResponseEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBondedPositionResponseEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryUnbondingPositionResponseEntry + */ +export class QueryUnbondingPositionResponseEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string unbonding_shares = 2; + */ + unbondingShares = ""; + + /** + * @generated from field: google.protobuf.Timestamp end_time = 3; + */ + endTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryUnbondingPositionResponseEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "unbonding_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "end_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingPositionResponseEntry { + return new QueryUnbondingPositionResponseEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingPositionResponseEntry { + return new QueryUnbondingPositionResponseEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingPositionResponseEntry { + return new QueryUnbondingPositionResponseEntry().fromJsonString(jsonString, options); + } + + static equals(a: QueryUnbondingPositionResponseEntry | PlainMessage | undefined, b: QueryUnbondingPositionResponseEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryUnbondingPositionResponseEntry, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.QueryRewardsResponseEntry + */ +export class QueryRewardsResponseEntry extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.QueryRewardsResponseEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardsResponseEntry { + return new QueryRewardsResponseEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardsResponseEntry { + return new QueryRewardsResponseEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardsResponseEntry { + return new QueryRewardsResponseEntry().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardsResponseEntry | PlainMessage | undefined, b: QueryRewardsResponseEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardsResponseEntry, a, b); + } +} + diff --git a/src/protobufs/noble/swap/stableswap/v1/tx_cosmes.ts b/src/protobufs/noble/swap/stableswap/v1/tx_cosmes.ts new file mode 100644 index 00000000..88b99c4a --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/tx_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/tx.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddLiquidity, MsgAddLiquidityResponse, MsgCreatePool, MsgCreatePoolResponse, MsgRemoveLiquidity, MsgRemoveLiquidityResponse, MsgUpdatePool, MsgUpdatePoolResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.swap.stableswap.v1.Msg"; + +/** + * CreatePool creates a new `StableSwap` Pool. + * + * @generated from rpc noble.swap.stableswap.v1.Msg.CreatePool + */ +export const MsgCreatePoolService = { + typeName: TYPE_NAME, + method: "CreatePool", + Request: MsgCreatePool, + Response: MsgCreatePoolResponse, +} as const; + +/** + * UpdatePool updates the params of a `StableSwap` Pool. + * + * @generated from rpc noble.swap.stableswap.v1.Msg.UpdatePool + */ +export const MsgUpdatePoolService = { + typeName: TYPE_NAME, + method: "UpdatePool", + Request: MsgUpdatePool, + Response: MsgUpdatePoolResponse, +} as const; + +/** + * AddLiquidity allows a user to add liquidity to a `StableSwap` liquidity pool. + * + * @generated from rpc noble.swap.stableswap.v1.Msg.AddLiquidity + */ +export const MsgAddLiquidityService = { + typeName: TYPE_NAME, + method: "AddLiquidity", + Request: MsgAddLiquidity, + Response: MsgAddLiquidityResponse, +} as const; + +/** + * RemoveLiquidity allows a user to remove liquidity from a `StableSwap` liquidity pool. + * + * @generated from rpc noble.swap.stableswap.v1.Msg.RemoveLiquidity + */ +export const MsgRemoveLiquidityService = { + typeName: TYPE_NAME, + method: "RemoveLiquidity", + Request: MsgRemoveLiquidity, + Response: MsgRemoveLiquidityResponse, +} as const; + diff --git a/src/protobufs/noble/swap/stableswap/v1/tx_pb.ts b/src/protobufs/noble/swap/stableswap/v1/tx_pb.ts new file mode 100644 index 00000000..c7029748 --- /dev/null +++ b/src/protobufs/noble/swap/stableswap/v1/tx_pb.ts @@ -0,0 +1,457 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/stableswap/v1/tx.proto (package noble.swap.stableswap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.stableswap.v1.MsgCreatePool + */ +export class MsgCreatePool extends Message { + /** + * The address of the authority creating the pool. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The asset pair that will be part of the pool. + * + * @generated from field: string pair = 2; + */ + pair = ""; + + /** + * The protocol fee percentage. + * + * @generated from field: int64 protocol_fee_percentage = 3; + */ + protocolFeePercentage = protoInt64.zero; + + /** + * The rewards fee value. + * + * @generated from field: int64 rewards_fee = 4; + */ + rewardsFee = protoInt64.zero; + + /** + * The initial A parameter for the pool. + * + * @generated from field: int64 initial_a = 5; + */ + initialA = protoInt64.zero; + + /** + * The future A parameter for pool rebalancing. + * + * @generated from field: int64 future_a = 6; + */ + futureA = protoInt64.zero; + + /** + * The time to reach the future A parameter. + * + * @generated from field: int64 future_a_time = 7; + */ + futureATime = protoInt64.zero; + + /** + * The coins rate multipliers. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rate_multipliers = 8; + */ + rateMultipliers: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgCreatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "protocol_fee_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "rewards_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "initial_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "future_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "future_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "rate_multipliers", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePool | PlainMessage | undefined, b: MsgCreatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePool, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgCreatePoolResponse + */ +export class MsgCreatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgCreatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePoolResponse | PlainMessage | undefined, b: MsgCreatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePoolResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgUpdatePool + */ +export class MsgUpdatePool extends Message { + /** + * Address of the authority updating the pool. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * ID of the pool being updated. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * The new protocol fee percentage. + * + * @generated from field: int64 protocol_fee_percentage = 3; + */ + protocolFeePercentage = protoInt64.zero; + + /** + * The new rewards fee value. + * + * @generated from field: int64 rewards_fee = 4; + */ + rewardsFee = protoInt64.zero; + + /** + * The new initial A parameter. + * + * @generated from field: int64 initial_a = 5; + */ + initialA = protoInt64.zero; + + /** + * The new future A parameter. + * + * @generated from field: int64 future_a = 6; + */ + futureA = protoInt64.zero; + + /** + * The time to reach the future A parameter. + * + * @generated from field: int64 future_a_time = 7; + */ + futureATime = protoInt64.zero; + + /** + * The coins rate multipliers. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rate_multipliers = 8; + */ + rateMultipliers: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgUpdatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "protocol_fee_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "rewards_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "initial_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "future_a", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "future_a_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "rate_multipliers", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePool { + return new MsgUpdatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePool | PlainMessage | undefined, b: MsgUpdatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePool, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgUpdatePoolResponse + */ +export class MsgUpdatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgUpdatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePoolResponse { + return new MsgUpdatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdatePoolResponse | PlainMessage | undefined, b: MsgUpdatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdatePoolResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgAddLiquidity + */ +export class MsgAddLiquidity extends Message { + /** + * The address of the user adding liquidity. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The ID of the pool to which liquidity is being added. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * The coins amount to add to the pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + /** + * Maximum acceptable slippage percentage. + * + * @generated from field: int64 slippage_percentage = 4; + */ + slippagePercentage = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgAddLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "slippage_percentage", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddLiquidity { + return new MsgAddLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddLiquidity { + return new MsgAddLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddLiquidity { + return new MsgAddLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddLiquidity | PlainMessage | undefined, b: MsgAddLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddLiquidity, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgAddLiquidityResponse + */ +export class MsgAddLiquidityResponse extends Message { + /** + * The amount of liquidity pool shares minted for the user. + * + * @generated from field: int64 minted_shares = 1; + */ + mintedShares = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgAddLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minted_shares", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddLiquidityResponse { + return new MsgAddLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddLiquidityResponse { + return new MsgAddLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddLiquidityResponse { + return new MsgAddLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddLiquidityResponse | PlainMessage | undefined, b: MsgAddLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddLiquidityResponse, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgRemoveLiquidity + */ +export class MsgRemoveLiquidity extends Message { + /** + * The address of the user removing liquidity. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The ID of the pool from which liquidity is being removed. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * The percentage of liquidity to remove. + * + * @generated from field: string percentage = 3; + */ + percentage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgRemoveLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveLiquidity { + return new MsgRemoveLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveLiquidity { + return new MsgRemoveLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveLiquidity { + return new MsgRemoveLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveLiquidity | PlainMessage | undefined, b: MsgRemoveLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveLiquidity, a, b); + } +} + +/** + * @generated from message noble.swap.stableswap.v1.MsgRemoveLiquidityResponse + */ +export class MsgRemoveLiquidityResponse extends Message { + /** + * The amount of shares that are unbonding. + * + * @generated from field: string unbonding_shares = 1; + */ + unbondingShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.stableswap.v1.MsgRemoveLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveLiquidityResponse { + return new MsgRemoveLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveLiquidityResponse { + return new MsgRemoveLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveLiquidityResponse { + return new MsgRemoveLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveLiquidityResponse | PlainMessage | undefined, b: MsgRemoveLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveLiquidityResponse, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/algorithm_pb.ts b/src/protobufs/noble/swap/v1/algorithm_pb.ts new file mode 100644 index 00000000..b89a3289 --- /dev/null +++ b/src/protobufs/noble/swap/v1/algorithm_pb.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/algorithm.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * buf:lint:ignore ENUM_VALUE_PREFIX + * + * @generated from enum noble.swap.v1.Algorithm + */ +export enum Algorithm { + /** + * buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX + * + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: STABLESWAP = 1; + */ + STABLESWAP = 1, + + /** + * @generated from enum value: PERFECTPRICE = 2; + */ + PERFECTPRICE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Algorithm) +proto3.util.setEnumType(Algorithm, "noble.swap.v1.Algorithm", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "STABLESWAP" }, + { no: 2, name: "PERFECTPRICE" }, +]); + diff --git a/src/protobufs/noble/swap/v1/events_pb.ts b/src/protobufs/noble/swap/v1/events_pb.ts new file mode 100644 index 00000000..ae2d0165 --- /dev/null +++ b/src/protobufs/noble/swap/v1/events_pb.ts @@ -0,0 +1,253 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/events.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Route } from "./swap_pb.js"; + +/** + * @generated from message noble.swap.v1.PoolsPaused + */ +export class PoolsPaused extends Message { + /** + * IDs of the pools paused. + * + * @generated from field: repeated uint64 pool_ids = 1; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.PoolsPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolsPaused { + return new PoolsPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolsPaused { + return new PoolsPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolsPaused { + return new PoolsPaused().fromJsonString(jsonString, options); + } + + static equals(a: PoolsPaused | PlainMessage | undefined, b: PoolsPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolsPaused, a, b); + } +} + +/** + * @generated from message noble.swap.v1.PoolsUnpaused + */ +export class PoolsUnpaused extends Message { + /** + * IDs of the pools unpaused. + * + * @generated from field: repeated uint64 pool_ids = 1; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.PoolsUnpaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolsUnpaused { + return new PoolsUnpaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolsUnpaused { + return new PoolsUnpaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolsUnpaused { + return new PoolsUnpaused().fromJsonString(jsonString, options); + } + + static equals(a: PoolsUnpaused | PlainMessage | undefined, b: PoolsUnpaused | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolsUnpaused, a, b); + } +} + +/** + * @generated from message noble.swap.v1.Swapped + */ +export class Swapped extends Message { + /** + * Address of the user initiating the swap. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * Coin input by the user. + * + * @generated from field: cosmos.base.v1beta1.Coin input = 2; + */ + input?: Coin; + + /** + * Final output coin from the swap. + * + * @generated from field: cosmos.base.v1beta1.Coin output = 3; + */ + output?: Coin; + + /** + * Routing outing of the swap. + * + * @generated from field: repeated noble.swap.v1.Route routes = 4; + */ + routes: Route[] = []; + + /** + * Amount of fees incurred during the swap. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin fees = 5; + */ + fees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.Swapped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "input", kind: "message", T: Coin }, + { no: 3, name: "output", kind: "message", T: Coin }, + { no: 4, name: "routes", kind: "message", T: Route, repeated: true }, + { no: 5, name: "fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Swapped { + return new Swapped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Swapped { + return new Swapped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Swapped { + return new Swapped().fromJsonString(jsonString, options); + } + + static equals(a: Swapped | PlainMessage | undefined, b: Swapped | PlainMessage | undefined): boolean { + return proto3.util.equals(Swapped, a, b); + } +} + +/** + * @generated from message noble.swap.v1.WithdrawnProtocolFees + */ +export class WithdrawnProtocolFees extends Message { + /** + * Address to which the fees are transferred + * + * @generated from field: string to = 1; + */ + to = ""; + + /** + * Amount of rewards withdrawn. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 2; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.WithdrawnProtocolFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WithdrawnProtocolFees { + return new WithdrawnProtocolFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WithdrawnProtocolFees { + return new WithdrawnProtocolFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WithdrawnProtocolFees { + return new WithdrawnProtocolFees().fromJsonString(jsonString, options); + } + + static equals(a: WithdrawnProtocolFees | PlainMessage | undefined, b: WithdrawnProtocolFees | PlainMessage | undefined): boolean { + return proto3.util.equals(WithdrawnProtocolFees, a, b); + } +} + +/** + * @generated from message noble.swap.v1.WithdrawnRewards + */ +export class WithdrawnRewards extends Message { + /** + * Address of the user withdrawing rewards. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * Amount of rewards withdrawn. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 2; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.WithdrawnRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WithdrawnRewards { + return new WithdrawnRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WithdrawnRewards { + return new WithdrawnRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WithdrawnRewards { + return new WithdrawnRewards().fromJsonString(jsonString, options); + } + + static equals(a: WithdrawnRewards | PlainMessage | undefined, b: WithdrawnRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(WithdrawnRewards, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/genesis_pb.ts b/src/protobufs/noble/swap/v1/genesis_pb.ts new file mode 100644 index 00000000..e2c37e3b --- /dev/null +++ b/src/protobufs/noble/swap/v1/genesis_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/genesis.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Pool } from "./pool_pb.js"; +import { GenesisState as GenesisState$1 } from "../stableswap/v1/genesis_pb.js"; + +/** + * GenesisState defines the Swap genesis state. + * + * @generated from message noble.swap.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: uint64 next_pool_id = 1; + */ + nextPoolId = protoInt64.zero; + + /** + * @generated from field: map pools = 2; + */ + pools: { [key: string]: Pool } = {}; + + /** + * @generated from field: map paused = 3; + */ + paused: { [key: string]: boolean } = {}; + + /** + * @generated from field: noble.swap.stableswap.v1.GenesisState stableswap_state = 4; + */ + stableswapState?: GenesisState$1; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "next_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pools", kind: "map", K: 4 /* ScalarType.UINT64 */, V: {kind: "message", T: Pool} }, + { no: 3, name: "paused", kind: "map", K: 4 /* ScalarType.UINT64 */, V: {kind: "scalar", T: 8 /* ScalarType.BOOL */} }, + { no: 4, name: "stableswap_state", kind: "message", T: GenesisState$1 }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/pool_pb.ts b/src/protobufs/noble/swap/v1/pool_pb.ts new file mode 100644 index 00000000..7af713de --- /dev/null +++ b/src/protobufs/noble/swap/v1/pool_pb.ts @@ -0,0 +1,168 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/pool.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Algorithm } from "./algorithm_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.v1.Pool + */ +export class Pool extends Message { + /** + * ID of the Pool. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Address of the Pool. + * + * @generated from field: string address = 2; + */ + address = ""; + + /** + * Algorithm of the pool. + * + * @generated from field: noble.swap.v1.Algorithm algorithm = 3; + */ + algorithm = Algorithm.UNSPECIFIED; + + /** + * Pair asset denom in the pool. + * + * @generated from field: string pair = 4; + */ + pair = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + { no: 4, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * @generated from message noble.swap.v1.PoolDetails + */ +export class PoolDetails extends Message { + /** + * ID of the Pool. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Address of the Pool. + * + * @generated from field: string address = 2; + */ + address = ""; + + /** + * Algorithm of the pool. + * + * @generated from field: noble.swap.v1.Algorithm algorithm = 3; + */ + algorithm = Algorithm.UNSPECIFIED; + + /** + * Pair asset denom in the pool. + * + * @generated from field: string pair = 4; + */ + pair = ""; + + /** + * Details of the Underlying Pool with the specific custom attributes. + * + * @generated from field: google.protobuf.Any details = 5; + */ + details?: Any; + + /** + * Amount of liquidity in the Pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 6; + */ + liquidity: Coin[] = []; + + /** + * Amount of protocol fees currently collected. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fees = 7; + */ + protocolFees: Coin[] = []; + + /** + * Amount of rewards fees currently collected. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin reward_fees = 8; + */ + rewardFees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.PoolDetails"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + { no: 4, name: "pair", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "details", kind: "message", T: Any }, + { no: 6, name: "liquidity", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "protocol_fees", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "reward_fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolDetails { + return new PoolDetails().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolDetails { + return new PoolDetails().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolDetails { + return new PoolDetails().fromJsonString(jsonString, options); + } + + static equals(a: PoolDetails | PlainMessage | undefined, b: PoolDetails | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolDetails, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/query_cosmes.ts b/src/protobufs/noble/swap/v1/query_cosmes.ts new file mode 100644 index 00000000..28c39109 --- /dev/null +++ b/src/protobufs/noble/swap/v1/query_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/swap/v1/query.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryPaused, QueryPausedResponse, QueryPool, QueryPoolResponse, QueryPools, QueryPoolsResponse, QueryRate, QueryRateResponse, QueryRates, QueryRatesResponse, QuerySimulateSwap } from "./query_pb.js"; +import { MsgSwapResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.swap.v1.Query"; + +/** + * Retrieves a list of the currently paused Pools. + * + * @generated from rpc noble.swap.v1.Query.Paused + */ +export const QueryPausedService = { + typeName: TYPE_NAME, + method: "Paused", + Request: QueryPaused, + Response: QueryPausedResponse, +} as const; + +/** + * Retrieves the details of all Pools. + * + * @generated from rpc noble.swap.v1.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryPools, + Response: QueryPoolsResponse, +} as const; + +/** + * Retrieves details of a specific Pool. + * + * @generated from rpc noble.swap.v1.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryPool, + Response: QueryPoolResponse, +} as const; + +/** + * Simulates a token swap simulation. + * + * @generated from rpc noble.swap.v1.Query.SimulateSwap + */ +export const QuerySimulateSwapService = { + typeName: TYPE_NAME, + method: "SimulateSwap", + Request: QuerySimulateSwap, + Response: MsgSwapResponse, +} as const; + +/** + * Retrieves exchange rates for all tokens, with the optionality of filtering by algorithm. + * + * @generated from rpc noble.swap.v1.Query.Rates + */ +export const QueryRatesService = { + typeName: TYPE_NAME, + method: "Rates", + Request: QueryRates, + Response: QueryRatesResponse, +} as const; + +/** + * Retrieves exchange rates for a specific token, with the optionality of filtering by algorithm. + * + * @generated from rpc noble.swap.v1.Query.Rate + */ +export const QueryRateService = { + typeName: TYPE_NAME, + method: "Rate", + Request: QueryRate, + Response: QueryRateResponse, +} as const; + diff --git a/src/protobufs/noble/swap/v1/query_pb.ts b/src/protobufs/noble/swap/v1/query_pb.ts new file mode 100644 index 00000000..255c2f32 --- /dev/null +++ b/src/protobufs/noble/swap/v1/query_pb.ts @@ -0,0 +1,433 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/query.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Algorithm } from "./algorithm_pb.js"; +import { Rate } from "./rate_pb.js"; +import { PoolDetails } from "./pool_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Route } from "./swap_pb.js"; + +/** + * @generated from message noble.swap.v1.QueryRates + */ +export class QueryRates extends Message { + /** + * @generated from field: noble.swap.v1.Algorithm algorithm = 1; + */ + algorithm = Algorithm.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryRates"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRates { + return new QueryRates().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRates { + return new QueryRates().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRates { + return new QueryRates().fromJsonString(jsonString, options); + } + + static equals(a: QueryRates | PlainMessage | undefined, b: QueryRates | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRates, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryRatesResponse + */ +export class QueryRatesResponse extends Message { + /** + * @generated from field: repeated noble.swap.v1.Rate rates = 1; + */ + rates: Rate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryRatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rates", kind: "message", T: Rate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRatesResponse { + return new QueryRatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRatesResponse { + return new QueryRatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRatesResponse { + return new QueryRatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRatesResponse | PlainMessage | undefined, b: QueryRatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRatesResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryRate + */ +export class QueryRate extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: noble.swap.v1.Algorithm algorithm = 2; + */ + algorithm = Algorithm.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryRate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRate { + return new QueryRate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRate { + return new QueryRate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRate { + return new QueryRate().fromJsonString(jsonString, options); + } + + static equals(a: QueryRate | PlainMessage | undefined, b: QueryRate | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRate, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryRateResponse + */ +export class QueryRateResponse extends Message { + /** + * @generated from field: repeated noble.swap.v1.Rate rates = 1; + */ + rates: Rate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rates", kind: "message", T: Rate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRateResponse { + return new QueryRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRateResponse { + return new QueryRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRateResponse { + return new QueryRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRateResponse | PlainMessage | undefined, b: QueryRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRateResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPaused + */ +export class QueryPaused extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPaused { + return new QueryPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPaused { + return new QueryPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPaused { + return new QueryPaused().fromJsonString(jsonString, options); + } + + static equals(a: QueryPaused | PlainMessage | undefined, b: QueryPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPaused, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPausedResponse + */ +export class QueryPausedResponse extends Message { + /** + * @generated from field: repeated uint64 paused_pools = 1; + */ + pausedPools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPausedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPausedResponse { + return new QueryPausedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPausedResponse | PlainMessage | undefined, b: QueryPausedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPausedResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPools + */ +export class QueryPools extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPools"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPools { + return new QueryPools().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPools { + return new QueryPools().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPools { + return new QueryPools().fromJsonString(jsonString, options); + } + + static equals(a: QueryPools | PlainMessage | undefined, b: QueryPools | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPools, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPoolsResponse + */ +export class QueryPoolsResponse extends Message { + /** + * @generated from field: repeated noble.swap.v1.PoolDetails pools = 1; + */ + pools: PoolDetails[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: PoolDetails, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPool + */ +export class QueryPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPool { + return new QueryPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPool { + return new QueryPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPool { + return new QueryPool().fromJsonString(jsonString, options); + } + + static equals(a: QueryPool | PlainMessage | undefined, b: QueryPool | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPool, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QueryPoolResponse + */ +export class QueryPoolResponse extends Message { + /** + * @generated from field: noble.swap.v1.PoolDetails pool = 1; + */ + pool?: PoolDetails; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QueryPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: PoolDetails }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.QuerySimulateSwap + */ +export class QuerySimulateSwap extends Message { + /** + * @generated from field: string signer = 1 [deprecated = true]; + * @deprecated + */ + signer = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: repeated noble.swap.v1.Route routes = 3; + */ + routes: Route[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin min = 4; + */ + min?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.QuerySimulateSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "routes", kind: "message", T: Route, repeated: true }, + { no: 4, name: "min", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateSwap { + return new QuerySimulateSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateSwap { + return new QuerySimulateSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateSwap { + return new QuerySimulateSwap().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateSwap | PlainMessage | undefined, b: QuerySimulateSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateSwap, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/rate_pb.ts b/src/protobufs/noble/swap/v1/rate_pb.ts new file mode 100644 index 00000000..6bfc4881 --- /dev/null +++ b/src/protobufs/noble/swap/v1/rate_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/rate.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Algorithm } from "./algorithm_pb.js"; + +/** + * @generated from message noble.swap.v1.Rate + */ +export class Rate extends Message { + /** + * Denomination of the base currency. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * Denomination of the counter currency. + * + * @generated from field: string vs = 2; + */ + vs = ""; + + /** + * Exchange rate between the base and counter currency. + * + * @generated from field: string price = 3; + */ + price = ""; + + /** + * Algorithm of the underlying Pool used for the calculation. + * + * @generated from field: noble.swap.v1.Algorithm algorithm = 4; + */ + algorithm = Algorithm.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.Rate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Rate { + return new Rate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Rate { + return new Rate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Rate { + return new Rate().fromJsonString(jsonString, options); + } + + static equals(a: Rate | PlainMessage | undefined, b: Rate | PlainMessage | undefined): boolean { + return proto3.util.equals(Rate, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/swap_pb.ts b/src/protobufs/noble/swap/v1/swap_pb.ts new file mode 100644 index 00000000..c0246758 --- /dev/null +++ b/src/protobufs/noble/swap/v1/swap_pb.ts @@ -0,0 +1,119 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/swap.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message noble.swap.v1.Route + */ +export class Route extends Message { + /** + * ID of the Pool. + * + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * Destination denom after the Swap in the Pool. + * + * @generated from field: string denom_to = 2; + */ + denomTo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.Route"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Route { + return new Route().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Route { + return new Route().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Route { + return new Route().fromJsonString(jsonString, options); + } + + static equals(a: Route | PlainMessage | undefined, b: Route | PlainMessage | undefined): boolean { + return proto3.util.equals(Route, a, b); + } +} + +/** + * @generated from message noble.swap.v1.Swap + */ +export class Swap extends Message { + /** + * ID of the pool used in the swap. + * + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * The input coin for the swap. + * + * @generated from field: cosmos.base.v1beta1.Coin in = 2; + */ + in?: Coin; + + /** + * The output coin after the swap. + * + * @generated from field: cosmos.base.v1beta1.Coin out = 3; + */ + out?: Coin; + + /** + * Any fees incurred during the swap. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin fees = 4; + */ + fees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.Swap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "in", kind: "message", T: Coin }, + { no: 3, name: "out", kind: "message", T: Coin }, + { no: 4, name: "fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Swap { + return new Swap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Swap { + return new Swap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Swap { + return new Swap().fromJsonString(jsonString, options); + } + + static equals(a: Swap | PlainMessage | undefined, b: Swap | PlainMessage | undefined): boolean { + return proto3.util.equals(Swap, a, b); + } +} + diff --git a/src/protobufs/noble/swap/v1/tx_cosmes.ts b/src/protobufs/noble/swap/v1/tx_cosmes.ts new file mode 100644 index 00000000..26725700 --- /dev/null +++ b/src/protobufs/noble/swap/v1/tx_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file noble/swap/v1/tx.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgPauseByAlgorithm, MsgPauseByAlgorithmResponse, MsgPauseByPoolIds, MsgPauseByPoolIdsResponse, MsgSwap, MsgSwapResponse, MsgUnpauseByAlgorithm, MsgUnpauseByAlgorithmResponse, MsgUnpauseByPoolIds, MsgUnpauseByPoolIdsResponse, MsgWithdrawProtocolFees, MsgWithdrawProtocolFeesResponse, MsgWithdrawRewards, MsgWithdrawRewardsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "noble.swap.v1.Msg"; + +/** + * Swap allows a user to swap one type of token for another, using multiple routes. + * + * @generated from rpc noble.swap.v1.Msg.Swap + */ +export const MsgSwapService = { + typeName: TYPE_NAME, + method: "Swap", + Request: MsgSwap, + Response: MsgSwapResponse, +} as const; + +/** + * WithdrawProtocolFees allows the protocol to withdraw accumulated fees and move them to another account. + * + * @generated from rpc noble.swap.v1.Msg.WithdrawProtocolFees + */ +export const MsgWithdrawProtocolFeesService = { + typeName: TYPE_NAME, + method: "WithdrawProtocolFees", + Request: MsgWithdrawProtocolFees, + Response: MsgWithdrawProtocolFeesResponse, +} as const; + +/** + * WithdrawRewards allows a user to claim their accumulated rewards. + * + * @generated from rpc noble.swap.v1.Msg.WithdrawRewards + */ +export const MsgWithdrawRewardsService = { + typeName: TYPE_NAME, + method: "WithdrawRewards", + Request: MsgWithdrawRewards, + Response: MsgWithdrawRewardsResponse, +} as const; + +/** + * PauseByAlgorithm pauses all pools using a specific algorithm. + * + * @generated from rpc noble.swap.v1.Msg.PauseByAlgorithm + */ +export const MsgPauseByAlgorithmService = { + typeName: TYPE_NAME, + method: "PauseByAlgorithm", + Request: MsgPauseByAlgorithm, + Response: MsgPauseByAlgorithmResponse, +} as const; + +/** + * PauseByPoolIds pauses specific pools identified by their pool IDs. + * + * @generated from rpc noble.swap.v1.Msg.PauseByPoolIds + */ +export const MsgPauseByPoolIdsService = { + typeName: TYPE_NAME, + method: "PauseByPoolIds", + Request: MsgPauseByPoolIds, + Response: MsgPauseByPoolIdsResponse, +} as const; + +/** + * UnpauseByAlgorithm unpauses all pools using a specific algorithm. + * + * @generated from rpc noble.swap.v1.Msg.UnpauseByAlgorithm + */ +export const MsgUnpauseByAlgorithmService = { + typeName: TYPE_NAME, + method: "UnpauseByAlgorithm", + Request: MsgUnpauseByAlgorithm, + Response: MsgUnpauseByAlgorithmResponse, +} as const; + +/** + * UnpauseByPoolIds unpauses specific pools identified by their pool IDs. + * + * @generated from rpc noble.swap.v1.Msg.UnpauseByPoolIds + */ +export const MsgUnpauseByPoolIdsService = { + typeName: TYPE_NAME, + method: "UnpauseByPoolIds", + Request: MsgUnpauseByPoolIds, + Response: MsgUnpauseByPoolIdsResponse, +} as const; + diff --git a/src/protobufs/noble/swap/v1/tx_pb.ts b/src/protobufs/noble/swap/v1/tx_pb.ts new file mode 100644 index 00000000..5497bad5 --- /dev/null +++ b/src/protobufs/noble/swap/v1/tx_pb.ts @@ -0,0 +1,621 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file noble/swap/v1/tx.proto (package noble.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Route, Swap } from "./swap_pb.js"; +import { Algorithm } from "./algorithm_pb.js"; + +/** + * @generated from message noble.swap.v1.MsgWithdrawProtocolFees + */ +export class MsgWithdrawProtocolFees extends Message { + /** + * Address of the signer who is requesting the fee withdrawal. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * Address to which the withdrawn fees will be sent. + * + * @generated from field: string to = 2; + */ + to = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgWithdrawProtocolFees"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProtocolFees { + return new MsgWithdrawProtocolFees().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProtocolFees { + return new MsgWithdrawProtocolFees().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProtocolFees { + return new MsgWithdrawProtocolFees().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawProtocolFees | PlainMessage | undefined, b: MsgWithdrawProtocolFees | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawProtocolFees, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgWithdrawProtocolFeesResponse + */ +export class MsgWithdrawProtocolFeesResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgWithdrawProtocolFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProtocolFeesResponse { + return new MsgWithdrawProtocolFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProtocolFeesResponse { + return new MsgWithdrawProtocolFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProtocolFeesResponse { + return new MsgWithdrawProtocolFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawProtocolFeesResponse | PlainMessage | undefined, b: MsgWithdrawProtocolFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawProtocolFeesResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgWithdrawRewards + */ +export class MsgWithdrawRewards extends Message { + /** + * Address of the signer who is requesting the reward withdrawal. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgWithdrawRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawRewards { + return new MsgWithdrawRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawRewards { + return new MsgWithdrawRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawRewards { + return new MsgWithdrawRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawRewards | PlainMessage | undefined, b: MsgWithdrawRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawRewards, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgWithdrawRewardsResponse + */ +export class MsgWithdrawRewardsResponse extends Message { + /** + * List of rewards withdrawn by the user. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 1; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgWithdrawRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawRewardsResponse { + return new MsgWithdrawRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawRewardsResponse { + return new MsgWithdrawRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawRewardsResponse { + return new MsgWithdrawRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWithdrawRewardsResponse | PlainMessage | undefined, b: MsgWithdrawRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWithdrawRewardsResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgSwap + */ +export class MsgSwap extends Message { + /** + * Address of the signer who is initiating the swap. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The coin to be swapped. + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * The routes through which the swap will occur. + * + * @generated from field: repeated noble.swap.v1.Route routes = 3; + */ + routes: Route[] = []; + + /** + * The minimum amount of tokens expected after the swap. + * + * @generated from field: cosmos.base.v1beta1.Coin min = 4; + */ + min?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "routes", kind: "message", T: Route, repeated: true }, + { no: 4, name: "min", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwap { + return new MsgSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwap { + return new MsgSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwap { + return new MsgSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwap | PlainMessage | undefined, b: MsgSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwap, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgSwapResponse + */ +export class MsgSwapResponse extends Message { + /** + * The resulting amount of tokens after the swap. + * + * @generated from field: cosmos.base.v1beta1.Coin result = 1; + */ + result?: Coin; + + /** + * Details of each individual swap involved in the process. + * + * @generated from field: repeated noble.swap.v1.Swap swaps = 2; + */ + swaps: Swap[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: Coin }, + { no: 2, name: "swaps", kind: "message", T: Swap, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapResponse { + return new MsgSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapResponse { + return new MsgSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapResponse { + return new MsgSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapResponse | PlainMessage | undefined, b: MsgSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgPauseByAlgorithm + */ +export class MsgPauseByAlgorithm extends Message { + /** + * Address of the signer who is requesting to pause the pools. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The algorithm used by the pools to be paused. + * + * @generated from field: noble.swap.v1.Algorithm algorithm = 2; + */ + algorithm = Algorithm.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgPauseByAlgorithm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPauseByAlgorithm { + return new MsgPauseByAlgorithm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPauseByAlgorithm { + return new MsgPauseByAlgorithm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPauseByAlgorithm { + return new MsgPauseByAlgorithm().fromJsonString(jsonString, options); + } + + static equals(a: MsgPauseByAlgorithm | PlainMessage | undefined, b: MsgPauseByAlgorithm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPauseByAlgorithm, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgPauseByAlgorithmResponse + */ +export class MsgPauseByAlgorithmResponse extends Message { + /** + * List of IDs of the paused pools. + * + * @generated from field: repeated uint64 paused_pools = 1; + */ + pausedPools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgPauseByAlgorithmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPauseByAlgorithmResponse { + return new MsgPauseByAlgorithmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPauseByAlgorithmResponse { + return new MsgPauseByAlgorithmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPauseByAlgorithmResponse { + return new MsgPauseByAlgorithmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPauseByAlgorithmResponse | PlainMessage | undefined, b: MsgPauseByAlgorithmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPauseByAlgorithmResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgPauseByPoolIds + */ +export class MsgPauseByPoolIds extends Message { + /** + * Address of the signer who is requesting to pause the pools. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * List of IDs of the pools to be paused. + * + * @generated from field: repeated uint64 pool_ids = 2; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgPauseByPoolIds"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPauseByPoolIds { + return new MsgPauseByPoolIds().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPauseByPoolIds { + return new MsgPauseByPoolIds().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPauseByPoolIds { + return new MsgPauseByPoolIds().fromJsonString(jsonString, options); + } + + static equals(a: MsgPauseByPoolIds | PlainMessage | undefined, b: MsgPauseByPoolIds | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPauseByPoolIds, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgPauseByPoolIdsResponse + */ +export class MsgPauseByPoolIdsResponse extends Message { + /** + * List of IDs of the paused pools. + * + * @generated from field: repeated uint64 paused_pools = 1; + */ + pausedPools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgPauseByPoolIdsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPauseByPoolIdsResponse { + return new MsgPauseByPoolIdsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPauseByPoolIdsResponse { + return new MsgPauseByPoolIdsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPauseByPoolIdsResponse { + return new MsgPauseByPoolIdsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPauseByPoolIdsResponse | PlainMessage | undefined, b: MsgPauseByPoolIdsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPauseByPoolIdsResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgUnpauseByAlgorithm + */ +export class MsgUnpauseByAlgorithm extends Message { + /** + * Address of the signer who is requesting to unpause the pools. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * The algorithm used by the pools to be unpaused. + * + * @generated from field: noble.swap.v1.Algorithm algorithm = 2; + */ + algorithm = Algorithm.UNSPECIFIED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgUnpauseByAlgorithm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "algorithm", kind: "enum", T: proto3.getEnumType(Algorithm) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpauseByAlgorithm { + return new MsgUnpauseByAlgorithm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpauseByAlgorithm { + return new MsgUnpauseByAlgorithm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpauseByAlgorithm { + return new MsgUnpauseByAlgorithm().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpauseByAlgorithm | PlainMessage | undefined, b: MsgUnpauseByAlgorithm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpauseByAlgorithm, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgUnpauseByAlgorithmResponse + */ +export class MsgUnpauseByAlgorithmResponse extends Message { + /** + * List of IDs of the unpaused pools. + * + * @generated from field: repeated uint64 unpaused_pools = 1; + */ + unpausedPools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgUnpauseByAlgorithmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unpaused_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpauseByAlgorithmResponse { + return new MsgUnpauseByAlgorithmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpauseByAlgorithmResponse { + return new MsgUnpauseByAlgorithmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpauseByAlgorithmResponse { + return new MsgUnpauseByAlgorithmResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpauseByAlgorithmResponse | PlainMessage | undefined, b: MsgUnpauseByAlgorithmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpauseByAlgorithmResponse, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgUnpauseByPoolIds + */ +export class MsgUnpauseByPoolIds extends Message { + /** + * Address of the signer who is requesting to unpause the pools. + * + * @generated from field: string signer = 1; + */ + signer = ""; + + /** + * List of IDs of the pools to be unpaused. + * + * @generated from field: repeated uint64 pool_ids = 2; + */ + poolIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgUnpauseByPoolIds"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpauseByPoolIds { + return new MsgUnpauseByPoolIds().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpauseByPoolIds { + return new MsgUnpauseByPoolIds().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpauseByPoolIds { + return new MsgUnpauseByPoolIds().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpauseByPoolIds | PlainMessage | undefined, b: MsgUnpauseByPoolIds | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpauseByPoolIds, a, b); + } +} + +/** + * @generated from message noble.swap.v1.MsgUnpauseByPoolIdsResponse + */ +export class MsgUnpauseByPoolIdsResponse extends Message { + /** + * List of IDs of the unpaused pools. + * + * @generated from field: repeated uint64 unpaused_pools = 1; + */ + unpausedPools: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "noble.swap.v1.MsgUnpauseByPoolIdsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unpaused_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpauseByPoolIdsResponse { + return new MsgUnpauseByPoolIdsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpauseByPoolIdsResponse { + return new MsgUnpauseByPoolIdsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnpauseByPoolIdsResponse { + return new MsgUnpauseByPoolIdsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnpauseByPoolIdsResponse | PlainMessage | undefined, b: MsgUnpauseByPoolIdsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnpauseByPoolIdsResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/concentratedliquidity/params_pb.ts b/src/protobufs/osmosis/concentratedliquidity/params_pb.ts index 4ef4764e..9be285f4 100644 --- a/src/protobufs/osmosis/concentratedliquidity/params_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/params_pb.ts @@ -38,15 +38,17 @@ export class Params extends Message { balancerSharesRewardDiscount = ""; /** - * authorized_quote_denoms is a list of quote denoms that can be used as - * token1 when creating a pool. We limit the quote assets to a small set for - * the purposes of having convenient price increments stemming from tick to - * price conversion. These increments are in a human readable magnitude only - * for token1 as a quote. For limit orders in the future, this will be a - * desirable property in terms of UX as to allow users to set limit orders at - * prices in terms of token1 (quote asset) that are easy to reason about. + * DEPRECATED: authorized_quote_denoms is a list of quote denoms that can be + * used as token1 when creating a pool. We limit the quote assets to a small + * set for the purposes of having convenient price increments stemming from + * tick to price conversion. These increments are in a human readable + * magnitude only for token1 as a quote. For limit orders in the future, this + * will be a desirable property in terms of UX as to allow users to set limit + * orders at prices in terms of token1 (quote asset) that are easy to reason + * about. * - * @generated from field: repeated string authorized_quote_denoms = 4; + * @generated from field: repeated string authorized_quote_denoms = 4 [deprecated = true]; + * @deprecated */ authorizedQuoteDenoms: string[] = []; diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts index f16221da..c105b5a6 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { TickInfo } from "./tickInfo_pb.js"; +import { TickInfo } from "./tick_info_pb.js"; import { IncentiveRecord } from "./incentive_record_pb.js"; import { Position } from "./position_pb.js"; import { AccumulatorContent, Record } from "../../accum/v1beta1/accum_pb.js"; @@ -234,6 +234,11 @@ export class GenesisState extends Message { */ incentivesAccumulatorPoolIdMigrationThreshold = protoInt64.zero; + /** + * @generated from field: uint64 spread_factor_pool_id_migration_threshold = 7; + */ + spreadFactorPoolIdMigrationThreshold = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -248,6 +253,7 @@ export class GenesisState extends Message { { no: 4, name: "next_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "next_incentive_record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "incentives_accumulator_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "spread_factor_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts index 10bf9013..48596f29 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts @@ -9,7 +9,7 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pa import { FullPositionBreakdown, PositionWithPeriodLock } from "./position_pb.js"; import { Params } from "../params_pb.js"; import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { UptimeTracker } from "./tickInfo_pb.js"; +import { UptimeTracker } from "./tick_info_pb.js"; import { IncentiveRecord } from "./incentive_record_pb.js"; /** diff --git a/src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts b/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts similarity index 98% rename from src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts rename to src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts index 145502cd..4395280c 100644 --- a/src/protobufs/osmosis/concentratedliquidity/v1beta1/tickInfo_pb.ts +++ b/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/tickInfo.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) +// @generated from file osmosis/concentratedliquidity/v1beta1/tick_info.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts b/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts new file mode 100644 index 00000000..accd5f6c --- /dev/null +++ b/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts @@ -0,0 +1,182 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg.proto (package osmosis.cosmwasmpool.v1beta1.model.v3, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * ===================== ShareDenomResponse + * + * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.ShareDenomResponse + */ +export class ShareDenomResponse extends Message { + /** + * share_denom is the share denomination. + * + * @generated from field: string share_denom = 1; + */ + shareDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.ShareDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ShareDenomResponse { + return new ShareDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ShareDenomResponse { + return new ShareDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ShareDenomResponse { + return new ShareDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: ShareDenomResponse | PlainMessage | undefined, b: ShareDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ShareDenomResponse, a, b); + } +} + +/** + * ===================== TotalPoolLiquidityResponse + * + * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.TotalPoolLiquidityResponse + */ +export class TotalPoolLiquidityResponse extends Message { + /** + * total_pool_liquidity is the total liquidity in the pool denominated in + * coins. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin total_pool_liquidity = 1; + */ + totalPoolLiquidity: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.TotalPoolLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_pool_liquidity", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityResponse { + return new TotalPoolLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityResponse { + return new TotalPoolLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityResponse { + return new TotalPoolLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: TotalPoolLiquidityResponse | PlainMessage | undefined, b: TotalPoolLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalPoolLiquidityResponse, a, b); + } +} + +/** + * ===================== AssetConfig + * + * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig + */ +export class AssetConfig extends Message { + /** + * denom is the asset denomination. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * normalization_factor is the normalization factor for the asset. + * + * @generated from field: string normalization_factor = 2; + */ + normalizationFactor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "normalization_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetConfig { + return new AssetConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetConfig { + return new AssetConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetConfig { + return new AssetConfig().fromJsonString(jsonString, options); + } + + static equals(a: AssetConfig | PlainMessage | undefined, b: AssetConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetConfig, a, b); + } +} + +/** + * ===================== ListAssetConfigsResponse + * + * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.ListAssetConfigsResponse + */ +export class ListAssetConfigsResponse extends Message { + /** + * asset_configs is the list of asset configurations. + * + * @generated from field: repeated osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig asset_configs = 1; + */ + assetConfigs: AssetConfig[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.ListAssetConfigsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_configs", kind: "message", T: AssetConfig, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListAssetConfigsResponse { + return new ListAssetConfigsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListAssetConfigsResponse { + return new ListAssetConfigsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListAssetConfigsResponse { + return new ListAssetConfigsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListAssetConfigsResponse | PlainMessage | undefined, b: ListAssetConfigsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListAssetConfigsResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts index 4ba6a2bd..c789a841 100644 --- a/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { ContractInfoByPoolIdRequest, ContractInfoByPoolIdResponse, ParamsRequest, ParamsResponse, PoolsRequest, PoolsResponse } from "./query_pb.js"; +import { ContractInfoByPoolIdRequest, ContractInfoByPoolIdResponse, ParamsRequest, ParamsResponse, PoolRawFilteredStateRequest, PoolRawFilteredStateResponse, PoolsRequest, PoolsResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.cosmwasmpool.v1beta1.Query"; @@ -41,3 +41,13 @@ export const QueryContractInfoByPoolIdService = { Response: ContractInfoByPoolIdResponse, } as const; +/** + * @generated from rpc osmosis.cosmwasmpool.v1beta1.Query.PoolRawFilteredState + */ +export const QueryPoolRawFilteredStateService = { + typeName: TYPE_NAME, + method: "PoolRawFilteredState", + Request: PoolRawFilteredStateRequest, + Response: PoolRawFilteredStateResponse, +} as const; + diff --git a/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts b/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts index 81645152..374887ba 100644 --- a/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts @@ -253,3 +253,99 @@ export class ContractInfoByPoolIdResponse extends Message { + /** + * pool_id is the pool id of the requested pool. + * + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * key_filter is the key filter of the requested pool. + * + * @generated from field: string key_filter = 2; + */ + keyFilter = ""; + + /** + * value_filter is the value filter of the requested pool. + * + * @generated from field: string value_filter = 3; + */ + valueFilter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.PoolRawFilteredStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "key_filter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "value_filter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRawFilteredStateRequest { + return new PoolRawFilteredStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRawFilteredStateRequest { + return new PoolRawFilteredStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRawFilteredStateRequest { + return new PoolRawFilteredStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: PoolRawFilteredStateRequest | PlainMessage | undefined, b: PoolRawFilteredStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRawFilteredStateRequest, a, b); + } +} + +/** + * @generated from message osmosis.cosmwasmpool.v1beta1.PoolRawFilteredStateResponse + */ +export class PoolRawFilteredStateResponse extends Message { + /** + * values represents the list of values in the pool. + * + * @generated from field: repeated bytes values = 1; + */ + values: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.cosmwasmpool.v1beta1.PoolRawFilteredStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRawFilteredStateResponse { + return new PoolRawFilteredStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRawFilteredStateResponse { + return new PoolRawFilteredStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRawFilteredStateResponse { + return new PoolRawFilteredStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: PoolRawFilteredStateResponse | PlainMessage | undefined, b: PoolRawFilteredStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRawFilteredStateResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts b/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts index 0c5437a2..1854763b 100644 --- a/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts +++ b/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts @@ -109,7 +109,7 @@ export class Pool extends Message { poolLiquidity: Coin[] = []; /** - * for calculation amognst assets with different precisions + * for calculation amongst assets with different precisions * * @generated from field: repeated uint64 scaling_factors = 7; */ diff --git a/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts index 249f877d..212c6bc3 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts @@ -5,48 +5,9 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; import { MigrationRecords } from "./shared_pb.js"; -/** - * Params holds parameters for the incentives module - * - * @generated from message osmosis.gamm.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin pool_creation_fee = 1; - */ - poolCreationFee: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_creation_fee", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - /** * GenesisState defines the gamm module's genesis state. * diff --git a/src/protobufs/dymension/incentives/params_pb.ts b/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts similarity index 69% rename from src/protobufs/dymension/incentives/params_pb.ts rename to src/protobufs/osmosis/gamm/v1beta1/params_pb.ts index 7fc44ec6..e5c07588 100644 --- a/src/protobufs/dymension/incentives/params_pb.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts @@ -1,24 +1,22 @@ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/params.proto (package dymensionxyz.dymension.incentives, syntax proto3) +// @generated from file osmosis/gamm/v1beta1/params.proto (package osmosis.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * Params holds parameters for the incentives module * - * @generated from message dymensionxyz.dymension.incentives.Params + * @generated from message osmosis.gamm.v1beta1.Params */ export class Params extends Message { /** - * distr_epoch_identifier is what epoch type distribution will be triggered by - * (day, week, etc.) - * - * @generated from field: string distr_epoch_identifier = 1; + * @generated from field: repeated cosmos.base.v1beta1.Coin pool_creation_fee = 1; */ - distrEpochIdentifier = ""; + poolCreationFee: Coin[] = []; constructor(data?: PartialMessage) { super(); @@ -26,9 +24,9 @@ export class Params extends Message { } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dymensionxyz.dymension.incentives.Params"; + static readonly typeName = "osmosis.gamm.v1beta1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "distr_epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "pool_creation_fee", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts index 1fb46b4a..3f0a5790 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryCFMMConcentratedPoolLinksRequest, QueryCFMMConcentratedPoolLinksResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse } from "./query_pb.js"; +import { ParamsRequest, ParamsResponse, QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryCFMMConcentratedPoolLinksRequest, QueryCFMMConcentratedPoolLinksResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.gamm.v1beta1.Query"; @@ -212,3 +212,15 @@ export const QueryCFMMConcentratedPoolLinksService = { Response: QueryCFMMConcentratedPoolLinksResponse, } as const; +/** + * Params returns gamm module params. + * + * @generated from rpc osmosis.gamm.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: ParamsRequest, + Response: ParamsResponse, +} as const; + diff --git a/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts b/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts index 656e76db..eb0189a6 100644 --- a/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts @@ -5,11 +5,82 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; import { MigrationRecords } from "./shared_pb.js"; +/** + * =============================== Params + * + * @generated from message osmosis.gamm.v1beta1.ParamsRequest + */ +export class ParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.ParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { + return new ParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsRequest, a, b); + } +} + +/** + * @generated from message osmosis.gamm.v1beta1.ParamsResponse + */ +export class ParamsResponse extends Message { + /** + * @generated from field: osmosis.gamm.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.gamm.v1beta1.ParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { + return new ParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsResponse, a, b); + } +} + /** * =============================== Pool * Deprecated: please use the alternative in x/poolmanager @@ -839,6 +910,14 @@ export class QuerySpotPriceRequest extends Message { */ quoteAssetDenom = ""; + /** + * DEPRECATED + * + * @generated from field: bool withSwapFee = 4 [deprecated = true]; + * @deprecated + */ + withSwapFee = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -850,6 +929,7 @@ export class QuerySpotPriceRequest extends Message { { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "withSwapFee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { diff --git a/src/protobufs/osmosis/gamm/v2/query_pb.ts b/src/protobufs/osmosis/gamm/v2/query_pb.ts index f3f49494..0efbee65 100644 --- a/src/protobufs/osmosis/gamm/v2/query_pb.ts +++ b/src/protobufs/osmosis/gamm/v2/query_pb.ts @@ -28,6 +28,14 @@ export class QuerySpotPriceRequest extends Message { */ quoteAssetDenom = ""; + /** + * DEPRECATED + * + * @generated from field: bool withSwapFee = 4 [deprecated = true]; + * @deprecated + */ + withSwapFee = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -39,6 +47,7 @@ export class QuerySpotPriceRequest extends Message { { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "withSwapFee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { diff --git a/src/protobufs/osmosis/ibchooks/params_pb.ts b/src/protobufs/osmosis/ibchooks/params_pb.ts index c1e93460..e9da012c 100644 --- a/src/protobufs/osmosis/ibchooks/params_pb.ts +++ b/src/protobufs/osmosis/ibchooks/params_pb.ts @@ -11,6 +11,8 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export class Params extends Message { /** + * List of contract addresses allowed to send asynchronous acknowledgments. + * * @generated from field: repeated string allowed_async_ack_contracts = 1; */ allowedAsyncAckContracts: string[] = []; diff --git a/src/protobufs/osmosis/incentives/params_pb.ts b/src/protobufs/osmosis/incentives/params_pb.ts index 8dc6c8d3..8c1c13bb 100644 --- a/src/protobufs/osmosis/incentives/params_pb.ts +++ b/src/protobufs/osmosis/incentives/params_pb.ts @@ -56,6 +56,17 @@ export class Params extends Message { */ internalUptime?: Duration; + /** + * min_value_for_distribution is the minimum amount a token must be worth + * in order to be eligible for distribution. If the token is worth + * less than this amount (or the route between the two denoms is not + * registered), it will not be distributed and is forfeited to the remaining + * distributees that are eligible. + * + * @generated from field: cosmos.base.v1beta1.Coin min_value_for_distribution = 5; + */ + minValueForDistribution?: Coin; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -68,6 +79,7 @@ export class Params extends Message { { no: 2, name: "group_creation_fee", kind: "message", T: Coin, repeated: true }, { no: 3, name: "unrestricted_creator_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "internal_uptime", kind: "message", T: Duration }, + { no: 5, name: "min_value_for_distribution", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { diff --git a/src/protobufs/osmosis/incentives/query_cosmes.ts b/src/protobufs/osmosis/incentives/query_cosmes.ts index 010016e8..6d64d4b8 100644 --- a/src/protobufs/osmosis/incentives/query_cosmes.ts +++ b/src/protobufs/osmosis/incentives/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomResponse, ActiveGaugesRequest, ActiveGaugesResponse, GaugeByIDRequest, GaugeByIDResponse, GaugesRequest, GaugesResponse, ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsResponse, QueryAllGroupsGaugesRequest, QueryAllGroupsGaugesResponse, QueryAllGroupsRequest, QueryAllGroupsResponse, QueryAllGroupsWithGaugeRequest, QueryAllGroupsWithGaugeResponse, QueryCurrentWeightByGroupGaugeIDRequest, QueryCurrentWeightByGroupGaugeIDResponse, QueryGroupByGroupGaugeIDRequest, QueryGroupByGroupGaugeIDResponse, QueryLockableDurationsRequest, QueryLockableDurationsResponse, RewardsEstRequest, RewardsEstResponse, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomResponse, UpcomingGaugesRequest, UpcomingGaugesResponse } from "./query_pb.js"; +import { ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomResponse, ActiveGaugesRequest, ActiveGaugesResponse, GaugeByIDRequest, GaugeByIDResponse, GaugesRequest, GaugesResponse, ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsResponse, ParamsRequest, ParamsResponse, QueryAllGroupsGaugesRequest, QueryAllGroupsGaugesResponse, QueryAllGroupsRequest, QueryAllGroupsResponse, QueryAllGroupsWithGaugeRequest, QueryAllGroupsWithGaugeResponse, QueryCurrentWeightByGroupGaugeIDRequest, QueryCurrentWeightByGroupGaugeIDResponse, QueryExternalGaugesRequest, QueryExternalGaugesResponse, QueryGaugesByPoolIDRequest, QueryGaugesByPoolIDResponse, QueryGroupByGroupGaugeIDRequest, QueryGroupByGroupGaugeIDResponse, QueryInternalGaugesRequest, QueryInternalGaugesResponse, QueryLockableDurationsRequest, QueryLockableDurationsResponse, RewardsEstRequest, RewardsEstResponse, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomResponse, UpcomingGaugesRequest, UpcomingGaugesResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.incentives.Query"; @@ -180,3 +180,45 @@ export const QueryCurrentWeightByGroupGaugeIDService = { Response: QueryCurrentWeightByGroupGaugeIDResponse, } as const; +/** + * @generated from rpc osmosis.incentives.Query.InternalGauges + */ +export const QueryInternalGaugesService = { + typeName: TYPE_NAME, + method: "InternalGauges", + Request: QueryInternalGaugesRequest, + Response: QueryInternalGaugesResponse, +} as const; + +/** + * @generated from rpc osmosis.incentives.Query.ExternalGauges + */ +export const QueryExternalGaugesService = { + typeName: TYPE_NAME, + method: "ExternalGauges", + Request: QueryExternalGaugesRequest, + Response: QueryExternalGaugesResponse, +} as const; + +/** + * @generated from rpc osmosis.incentives.Query.GaugesByPoolID + */ +export const QueryGaugesByPoolIDService = { + typeName: TYPE_NAME, + method: "GaugesByPoolID", + Request: QueryGaugesByPoolIDRequest, + Response: QueryGaugesByPoolIDResponse, +} as const; + +/** + * Params returns incentives module params. + * + * @generated from rpc osmosis.incentives.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: ParamsRequest, + Response: ParamsResponse, +} as const; + diff --git a/src/protobufs/osmosis/incentives/query_pb.ts b/src/protobufs/osmosis/incentives/query_pb.ts index a612c7e4..199b52fc 100644 --- a/src/protobufs/osmosis/incentives/query_pb.ts +++ b/src/protobufs/osmosis/incentives/query_pb.ts @@ -9,6 +9,7 @@ import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; import { Gauge } from "./gauge_pb.js"; import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; import { Group, GroupsWithGauge } from "./group_pb.js"; +import { Params } from "./params_pb.js"; /** * @generated from message osmosis.incentives.ModuleToDistributeCoinsRequest @@ -85,7 +86,7 @@ export class ModuleToDistributeCoinsResponse extends Message { /** - * Gague ID being queried + * Gauge ID being queried * * @generated from field: uint64 id = 1; */ @@ -124,7 +125,7 @@ export class GaugeByIDRequest extends Message { */ export class GaugeByIDResponse extends Message { /** - * Gauge that corresponds to provided gague ID + * Gauge that corresponds to provided gauge ID * * @generated from field: osmosis.incentives.Gauge gauge = 1; */ @@ -288,7 +289,7 @@ export class ActiveGaugesRequest extends Message { */ export class ActiveGaugesResponse extends Message { /** - * Active gagues only + * Active gauges only * * @generated from field: repeated osmosis.incentives.Gauge data = 1; */ @@ -335,7 +336,7 @@ export class ActiveGaugesResponse extends Message { */ export class ActiveGaugesPerDenomRequest extends Message { /** - * Desired denom when querying active gagues + * Desired denom when querying active gauges * * @generated from field: string denom = 1; */ @@ -382,7 +383,7 @@ export class ActiveGaugesPerDenomRequest extends Message { /** - * Active gagues that match denom in query + * Active gauges that match denom in query * * @generated from field: repeated osmosis.incentives.Gauge data = 1; */ @@ -515,7 +516,7 @@ export class UpcomingGaugesResponse extends Message { */ export class UpcomingGaugesPerDenomRequest extends Message { /** - * Filter for upcoming gagues that match specific denom + * Filter for upcoming gauges that match specific denom * * @generated from field: string denom = 1; */ @@ -562,7 +563,7 @@ export class UpcomingGaugesPerDenomRequest extends Message { /** - * Upcoming gagues that match denom in query + * Upcoming gauges that match denom in query * * @generated from field: repeated osmosis.incentives.Gauge upcoming_gauges = 1; */ @@ -1165,3 +1166,329 @@ export class GaugeWeight extends Message { } } +/** + * @generated from message osmosis.incentives.QueryInternalGaugesRequest + */ +export class QueryInternalGaugesRequest extends Message { + /** + * Pagination defines pagination for the request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryInternalGaugesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInternalGaugesRequest { + return new QueryInternalGaugesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInternalGaugesRequest { + return new QueryInternalGaugesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInternalGaugesRequest { + return new QueryInternalGaugesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInternalGaugesRequest | PlainMessage | undefined, b: QueryInternalGaugesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInternalGaugesRequest, a, b); + } +} + +/** + * @generated from message osmosis.incentives.QueryInternalGaugesResponse + */ +export class QueryInternalGaugesResponse extends Message { + /** + * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; + */ + gauges: Gauge[] = []; + + /** + * Pagination defines pagination for the response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryInternalGaugesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInternalGaugesResponse { + return new QueryInternalGaugesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInternalGaugesResponse { + return new QueryInternalGaugesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInternalGaugesResponse { + return new QueryInternalGaugesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInternalGaugesResponse | PlainMessage | undefined, b: QueryInternalGaugesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInternalGaugesResponse, a, b); + } +} + +/** + * @generated from message osmosis.incentives.QueryExternalGaugesRequest + */ +export class QueryExternalGaugesRequest extends Message { + /** + * Pagination defines pagination for the request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryExternalGaugesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalGaugesRequest { + return new QueryExternalGaugesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalGaugesRequest { + return new QueryExternalGaugesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExternalGaugesRequest { + return new QueryExternalGaugesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryExternalGaugesRequest | PlainMessage | undefined, b: QueryExternalGaugesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExternalGaugesRequest, a, b); + } +} + +/** + * @generated from message osmosis.incentives.QueryExternalGaugesResponse + */ +export class QueryExternalGaugesResponse extends Message { + /** + * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; + */ + gauges: Gauge[] = []; + + /** + * Pagination defines pagination for the response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryExternalGaugesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalGaugesResponse { + return new QueryExternalGaugesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalGaugesResponse { + return new QueryExternalGaugesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryExternalGaugesResponse { + return new QueryExternalGaugesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryExternalGaugesResponse | PlainMessage | undefined, b: QueryExternalGaugesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryExternalGaugesResponse, a, b); + } +} + +/** + * @generated from message osmosis.incentives.QueryGaugesByPoolIDRequest + */ +export class QueryGaugesByPoolIDRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Pagination defines pagination for the request + * + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryGaugesByPoolIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugesByPoolIDRequest { + return new QueryGaugesByPoolIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugesByPoolIDRequest { + return new QueryGaugesByPoolIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGaugesByPoolIDRequest { + return new QueryGaugesByPoolIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGaugesByPoolIDRequest | PlainMessage | undefined, b: QueryGaugesByPoolIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGaugesByPoolIDRequest, a, b); + } +} + +/** + * @generated from message osmosis.incentives.QueryGaugesByPoolIDResponse + */ +export class QueryGaugesByPoolIDResponse extends Message { + /** + * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; + */ + gauges: Gauge[] = []; + + /** + * Pagination defines pagination for the response + * + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.QueryGaugesByPoolIDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugesByPoolIDResponse { + return new QueryGaugesByPoolIDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugesByPoolIDResponse { + return new QueryGaugesByPoolIDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGaugesByPoolIDResponse { + return new QueryGaugesByPoolIDResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGaugesByPoolIDResponse | PlainMessage | undefined, b: QueryGaugesByPoolIDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGaugesByPoolIDResponse, a, b); + } +} + +/** + * @generated from message osmosis.incentives.ParamsRequest + */ +export class ParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.ParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { + return new ParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { + return new ParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsRequest, a, b); + } +} + +/** + * @generated from message osmosis.incentives.ParamsResponse + */ +export class ParamsResponse extends Message { + /** + * @generated from field: osmosis.incentives.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.incentives.ParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { + return new ParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { + return new ParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ParamsResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/incentives/tx_pb.ts b/src/protobufs/osmosis/incentives/tx_pb.ts index 83ed1e21..6ab453db 100644 --- a/src/protobufs/osmosis/incentives/tx_pb.ts +++ b/src/protobufs/osmosis/incentives/tx_pb.ts @@ -9,7 +9,7 @@ import { QueryCondition } from "../lockup/lock_pb.js"; import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; /** - * MsgCreateGauge creates a gague to distribute rewards to users + * MsgCreateGauge creates a gauge to distribute rewards to users * * @generated from message osmosis.incentives.MsgCreateGauge */ diff --git a/src/protobufs/osmosis/ingest/v1beta1/ingest_cosmes.ts b/src/protobufs/osmosis/ingest/v1beta1/ingest_cosmes.ts new file mode 100644 index 00000000..99327838 --- /dev/null +++ b/src/protobufs/osmosis/ingest/v1beta1/ingest_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/ingest/v1beta1/ingest.proto (package osmosis.ingest.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { ProcessBlockReply, ProcessBlockRequest } from "./ingest_pb.js"; + +const TYPE_NAME = "osmosis.ingest.v1beta1.SQSIngester"; + +/** + * ProcessBlock processes a block from the Osmosis node. + * + * @generated from rpc osmosis.ingest.v1beta1.SQSIngester.ProcessBlock + */ +export const SQSIngesterProcessBlockService = { + typeName: TYPE_NAME, + method: "ProcessBlock", + Request: ProcessBlockRequest, + Response: ProcessBlockReply, +} as const; + diff --git a/src/protobufs/osmosis/ingest/v1beta1/ingest_pb.ts b/src/protobufs/osmosis/ingest/v1beta1/ingest_pb.ts new file mode 100644 index 00000000..7320a3cd --- /dev/null +++ b/src/protobufs/osmosis/ingest/v1beta1/ingest_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/ingest/v1beta1/ingest.proto (package osmosis.ingest.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * PoolData represents a structure encapsulating an Osmosis liquidity pool. + * + * @generated from message osmosis.ingest.v1beta1.PoolData + */ +export class PoolData extends Message { + /** + * ChainModel is the chain representation model of the pool. + * + * @generated from field: bytes chain_model = 1; + */ + chainModel = new Uint8Array(0); + + /** + * SqsModel is additional pool data used by the sidecar query server. + * + * @generated from field: bytes sqs_model = 2; + */ + sqsModel = new Uint8Array(0); + + /** + * TickModel is the tick data of a concentrated liquidity pool. + * This field is only valid and set for concentrated pools. It is nil + * otherwise. + * + * @generated from field: bytes tick_model = 3; + */ + tickModel = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ingest.v1beta1.PoolData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_model", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "sqs_model", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "tick_model", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolData { + return new PoolData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolData { + return new PoolData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolData { + return new PoolData().fromJsonString(jsonString, options); + } + + static equals(a: PoolData | PlainMessage | undefined, b: PoolData | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolData, a, b); + } +} + +/** + * The block process request. + * Sends taker fees, block height and pools. + * + * @generated from message osmosis.ingest.v1beta1.ProcessBlockRequest + */ +export class ProcessBlockRequest extends Message { + /** + * block height is the height of the block being processed. + * + * @generated from field: uint64 block_height = 1; + */ + blockHeight = protoInt64.zero; + + /** + * taker_fees_map is the map of taker fees for the block. + * + * @generated from field: bytes taker_fees_map = 2; + */ + takerFeesMap = new Uint8Array(0); + + /** + * pools in the block. + * + * @generated from field: repeated osmosis.ingest.v1beta1.PoolData pools = 3; + */ + pools: PoolData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ingest.v1beta1.ProcessBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "taker_fees_map", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "pools", kind: "message", T: PoolData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProcessBlockRequest { + return new ProcessBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProcessBlockRequest { + return new ProcessBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProcessBlockRequest { + return new ProcessBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProcessBlockRequest | PlainMessage | undefined, b: ProcessBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProcessBlockRequest, a, b); + } +} + +/** + * The response after completing the block processing. + * + * @generated from message osmosis.ingest.v1beta1.ProcessBlockReply + */ +export class ProcessBlockReply extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.ingest.v1beta1.ProcessBlockReply"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProcessBlockReply { + return new ProcessBlockReply().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProcessBlockReply { + return new ProcessBlockReply().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProcessBlockReply { + return new ProcessBlockReply().fromJsonString(jsonString, options); + } + + static equals(a: ProcessBlockReply | PlainMessage | undefined, b: ProcessBlockReply | PlainMessage | undefined): boolean { + return proto3.util.equals(ProcessBlockReply, a, b); + } +} + diff --git a/src/protobufs/osmosis/lockup/tx_pb.ts b/src/protobufs/osmosis/lockup/tx_pb.ts index e49deb3a..23856fb5 100644 --- a/src/protobufs/osmosis/lockup/tx_pb.ts +++ b/src/protobufs/osmosis/lockup/tx_pb.ts @@ -531,3 +531,86 @@ export class MsgSetRewardReceiverAddressResponse extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 ID = 2; + */ + ID = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.lockup.MsgUnlockPeriodLock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockPeriodLock { + return new MsgUnlockPeriodLock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockPeriodLock { + return new MsgUnlockPeriodLock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlockPeriodLock { + return new MsgUnlockPeriodLock().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlockPeriodLock | PlainMessage | undefined, b: MsgUnlockPeriodLock | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlockPeriodLock, a, b); + } +} + +/** + * @generated from message osmosis.lockup.MsgUnlockTokens + */ +export class MsgUnlockTokens extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.lockup.MsgUnlockTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockTokens { + return new MsgUnlockTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockTokens { + return new MsgUnlockTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnlockTokens { + return new MsgUnlockTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnlockTokens | PlainMessage | undefined, b: MsgUnlockTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnlockTokens, a, b); + } +} + diff --git a/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts index 3a36964f..a762b8ea 100644 --- a/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryEpochProvisionsRequest, QueryEpochProvisionsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; +import { QueryEpochProvisionsRequest, QueryEpochProvisionsResponse, QueryInflationRequest, QueryInflationResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.mint.v1beta1.Query"; @@ -31,3 +31,15 @@ export const QueryEpochProvisionsService = { Response: QueryEpochProvisionsResponse, } as const; +/** + * Inflation returns the current minting inflation value. + * + * @generated from rpc osmosis.mint.v1beta1.Query.Inflation + */ +export const QueryInflationService = { + typeName: TYPE_NAME, + method: "Inflation", + Request: QueryInflationRequest, + Response: QueryInflationResponse, +} as const; + diff --git a/src/protobufs/osmosis/mint/v1beta1/query_pb.ts b/src/protobufs/osmosis/mint/v1beta1/query_pb.ts index 5bc4b69b..3ad81cb9 100644 --- a/src/protobufs/osmosis/mint/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/mint/v1beta1/query_pb.ts @@ -157,3 +157,78 @@ export class QueryEpochProvisionsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.mint.v1beta1.QueryInflationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRequest { + return new QueryInflationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRequest { + return new QueryInflationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationRequest { + return new QueryInflationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationRequest | PlainMessage | undefined, b: QueryInflationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationRequest, a, b); + } +} + +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + * + * @generated from message osmosis.mint.v1beta1.QueryInflationResponse + */ +export class QueryInflationResponse extends Message { + /** + * inflation is the current minting inflation value. + * + * @generated from field: bytes inflation = 1; + */ + inflation = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.mint.v1beta1.QueryInflationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationResponse { + return new QueryInflationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationResponse { + return new QueryInflationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInflationResponse { + return new QueryInflationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInflationResponse | PlainMessage | undefined, b: QueryInflationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInflationResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts index 0a74c25c..de2c9d78 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts @@ -36,8 +36,12 @@ export class Params extends Message { * will be a desirable property in terms of UX as to allow users to set limit * orders at prices in terms of token1 (quote asset) that are easy to reason * about. + * DEPRECATED: Quote asset whitelisting requirement removed as per Proposal + * 819. Any asset can now be used as a quote asset in concentrated liquidity + * pools. * - * @generated from field: repeated string authorized_quote_denoms = 3; + * @generated from field: repeated string authorized_quote_denoms = 3 [deprecated = true]; + * @deprecated */ authorizedQuoteDenoms: string[] = []; @@ -221,6 +225,25 @@ export class TakerFeeParams extends Message { */ reducedFeeWhitelist: string[] = []; + /** + * community_pool_denom_whitelist is a list of denoms that should be sent + * directly to the community pool instead of being swapped to the + * `community_pool_denom_to_swap_non_whitelisted_assets_to`. + * + * @generated from field: repeated string community_pool_denom_whitelist = 7; + */ + communityPoolDenomWhitelist: string[] = []; + + /** + * daily_staking_rewards_smoothing_factor is the number of days over which + * staking rewards from taker fees are smoothed. A value of 1 means no + * smoothing. Staking rewards are accumulated in a buffer and distributed as + * (buffer_balance / daily_staking_rewards_smoothing_factor) per day epoch. + * + * @generated from field: uint64 daily_staking_rewards_smoothing_factor = 8; + */ + dailyStakingRewardsSmoothingFactor = protoInt64.zero; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -235,6 +258,8 @@ export class TakerFeeParams extends Message { { no: 4, name: "admin_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "community_pool_denom_to_swap_non_whitelisted_assets_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "reduced_fee_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 7, name: "community_pool_denom_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 8, name: "daily_staking_rewards_smoothing_factor", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeParams { @@ -271,6 +296,11 @@ export class TakerFeeDistributionPercentage extends Message) { super(); proto3.util.initPartial(data, this); @@ -281,6 +311,7 @@ export class TakerFeeDistributionPercentage extends Message [ { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "burn", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeDistributionPercentage { @@ -319,6 +350,11 @@ export class TakerFeesTracker extends Message { */ heightAccountingStartsFrom = protoInt64.zero; + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin taker_fees_to_burn = 4; + */ + takerFeesToBurn: Coin[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -330,6 +366,7 @@ export class TakerFeesTracker extends Message { { no: 1, name: "taker_fees_to_stakers", kind: "message", T: Coin, repeated: true }, { no: 2, name: "taker_fees_to_community_pool", kind: "message", T: Coin, repeated: true }, { no: 3, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "taker_fees_to_burn", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeesTracker { diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts index 055c8d33..2fc8500f 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { AllPoolsRequest, AllPoolsResponse, EstimateSinglePoolSwapExactAmountInRequest, EstimateSinglePoolSwapExactAmountOutRequest, EstimateSwapExactAmountInRequest, EstimateSwapExactAmountInResponse, EstimateSwapExactAmountInWithPrimitiveTypesRequest, EstimateSwapExactAmountOutRequest, EstimateSwapExactAmountOutResponse, EstimateSwapExactAmountOutWithPrimitiveTypesRequest, EstimateTradeBasedOnPriceImpactRequest, EstimateTradeBasedOnPriceImpactResponse, ListPoolsByDenomRequest, ListPoolsByDenomResponse, NumPoolsRequest, NumPoolsResponse, ParamsRequest, ParamsResponse, PoolRequest, PoolResponse, SpotPriceRequest, SpotPriceResponse, TotalLiquidityRequest, TotalLiquidityResponse, TotalPoolLiquidityRequest, TotalPoolLiquidityResponse, TotalVolumeForPoolRequest, TotalVolumeForPoolResponse, TradingPairTakerFeeRequest, TradingPairTakerFeeResponse } from "./query_pb.js"; +import { AllPoolsRequest, AllPoolsResponse, AllRegisteredAlloyedPoolsRequest, AllRegisteredAlloyedPoolsResponse, AllTakerFeeShareAccumulatorsRequest, AllTakerFeeShareAccumulatorsResponse, AllTakerFeeShareAgreementsRequest, AllTakerFeeShareAgreementsResponse, EstimateSinglePoolSwapExactAmountInRequest, EstimateSinglePoolSwapExactAmountOutRequest, EstimateSwapExactAmountInRequest, EstimateSwapExactAmountInResponse, EstimateSwapExactAmountInWithPrimitiveTypesRequest, EstimateSwapExactAmountOutRequest, EstimateSwapExactAmountOutResponse, EstimateSwapExactAmountOutWithPrimitiveTypesRequest, EstimateTradeBasedOnPriceImpactRequest, EstimateTradeBasedOnPriceImpactResponse, ListPoolsByDenomRequest, ListPoolsByDenomResponse, NumPoolsRequest, NumPoolsResponse, ParamsRequest, ParamsResponse, PoolRequest, PoolResponse, RegisteredAlloyedPoolFromDenomRequest, RegisteredAlloyedPoolFromDenomResponse, RegisteredAlloyedPoolFromPoolIdRequest, RegisteredAlloyedPoolFromPoolIdResponse, SpotPriceRequest, SpotPriceResponse, TakerFeeShareAgreementFromDenomRequest, TakerFeeShareAgreementFromDenomResponse, TakerFeeShareDenomsToAccruedValueRequest, TakerFeeShareDenomsToAccruedValueResponse, TotalLiquidityRequest, TotalLiquidityResponse, TotalPoolLiquidityRequest, TotalPoolLiquidityResponse, TotalVolumeForPoolRequest, TotalVolumeForPoolResponse, TradingPairTakerFeeRequest, TradingPairTakerFeeResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.poolmanager.v1beta1.Query"; @@ -217,3 +217,109 @@ export const QueryEstimateTradeBasedOnPriceImpactService = { Response: EstimateTradeBasedOnPriceImpactResponse, } as const; +/** + * AllTakerFeeShareAgreements returns all taker fee share agreements. + * A taker fee share agreement includes the denom of the denom getting the + * taker fees, the percent of the taker fees that the denom gets when it is + * in the route being traded against, and the address that the taker fees are + * sent to at epoch. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllTakerFeeShareAgreements + */ +export const QueryAllTakerFeeShareAgreementsService = { + typeName: TYPE_NAME, + method: "AllTakerFeeShareAgreements", + Request: AllTakerFeeShareAgreementsRequest, + Response: AllTakerFeeShareAgreementsResponse, +} as const; + +/** + * TakerFeeShareAgreementFromDenom returns the taker fee share agreement for a + * given denom. A taker fee share agreement includes the denom of the denom + * getting the taker fees, the percent of the taker fees that the denom gets + * when it is in the route being traded against, and the address that the + * taker fees are sent to at epoch. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.TakerFeeShareAgreementFromDenom + */ +export const QueryTakerFeeShareAgreementFromDenomService = { + typeName: TYPE_NAME, + method: "TakerFeeShareAgreementFromDenom", + Request: TakerFeeShareAgreementFromDenomRequest, + Response: TakerFeeShareAgreementFromDenomResponse, +} as const; + +/** + * TakerFeeShareDenomsToAccruedValue returns the accrued value (as an Int) of + * the given taker fee denom (the collected fees) for the given fee share + * denom (the denom with the taker fee share agreement) + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.TakerFeeShareDenomsToAccruedValue + */ +export const QueryTakerFeeShareDenomsToAccruedValueService = { + typeName: TYPE_NAME, + method: "TakerFeeShareDenomsToAccruedValue", + Request: TakerFeeShareDenomsToAccruedValueRequest, + Response: TakerFeeShareDenomsToAccruedValueResponse, +} as const; + +/** + * AllTakerFeeShareAccumulators returns all taker fee share accumulators. A + * taker fee share accumulator includes the denom of the denom getting the + * taker fees, and an accumulated value of coins that the denom has accrued + * since the last time it was distributed in the epoch prior. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllTakerFeeShareAccumulators + */ +export const QueryAllTakerFeeShareAccumulatorsService = { + typeName: TYPE_NAME, + method: "AllTakerFeeShareAccumulators", + Request: AllTakerFeeShareAccumulatorsRequest, + Response: AllTakerFeeShareAccumulatorsResponse, +} as const; + +/** + * RegisteredAlloyedPoolFromDenom returns the registered alloyed pool state + * from the given denom. The registered alloyed pool contains the pool's + * contract address, along with the current distribution composition of taker + * fee share denoms within the alloyed pool. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.RegisteredAlloyedPoolFromDenom + */ +export const QueryRegisteredAlloyedPoolFromDenomService = { + typeName: TYPE_NAME, + method: "RegisteredAlloyedPoolFromDenom", + Request: RegisteredAlloyedPoolFromDenomRequest, + Response: RegisteredAlloyedPoolFromDenomResponse, +} as const; + +/** + * RegisteredAlloyedPoolFromPoolId returns the registered alloyed pool state + * from the given pool id. The registered alloyed pool contains the pool's + * contract address, along with the current distribution composition of taker + * fee share denoms within the alloyed pool. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.RegisteredAlloyedPoolFromPoolId + */ +export const QueryRegisteredAlloyedPoolFromPoolIdService = { + typeName: TYPE_NAME, + method: "RegisteredAlloyedPoolFromPoolId", + Request: RegisteredAlloyedPoolFromPoolIdRequest, + Response: RegisteredAlloyedPoolFromPoolIdResponse, +} as const; + +/** + * AllRegisteredAlloyedPools returns all registered alloyed pools. The + * registered alloyed pool contains the pool's contract address, along with + * the current distribution composition of taker fee share denoms within the + * alloyed pool. + * + * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllRegisteredAlloyedPools + */ +export const QueryAllRegisteredAlloyedPoolsService = { + typeName: TYPE_NAME, + method: "AllRegisteredAlloyedPools", + Request: AllRegisteredAlloyedPoolsRequest, + Response: AllRegisteredAlloyedPoolsResponse, +} as const; + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts b/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts index e27f28be..23c66a64 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts @@ -8,6 +8,7 @@ import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./genesis_pb.js"; import { SwapAmountInRoute, SwapAmountOutRoute } from "./swap_route_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { AlloyContractTakerFeeShareState, TakerFeeShareAgreement, TakerFeeSkimAccumulator } from "./taker_fee_share_pb.js"; /** * =============================== Params @@ -85,6 +86,14 @@ export class ParamsResponse extends Message { * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInRequest */ export class EstimateSwapExactAmountInRequest extends Message { + /** + * DEPRECATED + * + * @generated from field: string sender = 1 [deprecated = true]; + * @deprecated + */ + sender = ""; + /** * @generated from field: uint64 pool_id = 2 [deprecated = true]; * @deprecated @@ -109,6 +118,7 @@ export class EstimateSwapExactAmountInRequest extends Message [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, @@ -279,6 +289,14 @@ export class EstimateSwapExactAmountInResponse extends Message { + /** + * DEPRECATED + * + * @generated from field: string sender = 1 [deprecated = true]; + * @deprecated + */ + sender = ""; + /** * @generated from field: uint64 pool_id = 2 [deprecated = true]; * @deprecated @@ -303,6 +321,7 @@ export class EstimateSwapExactAmountOutRequest extends Message [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, @@ -1293,3 +1312,509 @@ export class EstimateTradeBasedOnPriceImpactResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAgreementsRequest { + return new AllTakerFeeShareAgreementsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAgreementsRequest { + return new AllTakerFeeShareAgreementsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAgreementsRequest { + return new AllTakerFeeShareAgreementsRequest().fromJsonString(jsonString, options); + } + + static equals(a: AllTakerFeeShareAgreementsRequest | PlainMessage | undefined, b: AllTakerFeeShareAgreementsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(AllTakerFeeShareAgreementsRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse + */ +export class AllTakerFeeShareAgreementsResponse extends Message { + /** + * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreements = 1; + */ + takerFeeShareAgreements: TakerFeeShareAgreement[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taker_fee_share_agreements", kind: "message", T: TakerFeeShareAgreement, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAgreementsResponse { + return new AllTakerFeeShareAgreementsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAgreementsResponse { + return new AllTakerFeeShareAgreementsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAgreementsResponse { + return new AllTakerFeeShareAgreementsResponse().fromJsonString(jsonString, options); + } + + static equals(a: AllTakerFeeShareAgreementsResponse | PlainMessage | undefined, b: AllTakerFeeShareAgreementsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AllTakerFeeShareAgreementsResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomRequest + */ +export class TakerFeeShareAgreementFromDenomRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreementFromDenomRequest { + return new TakerFeeShareAgreementFromDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreementFromDenomRequest { + return new TakerFeeShareAgreementFromDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreementFromDenomRequest { + return new TakerFeeShareAgreementFromDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeShareAgreementFromDenomRequest | PlainMessage | undefined, b: TakerFeeShareAgreementFromDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeShareAgreementFromDenomRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse + */ +export class TakerFeeShareAgreementFromDenomResponse extends Message { + /** + * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreement = 1; + */ + takerFeeShareAgreement?: TakerFeeShareAgreement; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taker_fee_share_agreement", kind: "message", T: TakerFeeShareAgreement }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreementFromDenomResponse { + return new TakerFeeShareAgreementFromDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreementFromDenomResponse { + return new TakerFeeShareAgreementFromDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreementFromDenomResponse { + return new TakerFeeShareAgreementFromDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeShareAgreementFromDenomResponse | PlainMessage | undefined, b: TakerFeeShareAgreementFromDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeShareAgreementFromDenomResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueRequest + */ +export class TakerFeeShareDenomsToAccruedValueRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string takerFeeDenom = 2; + */ + takerFeeDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "takerFeeDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { + return new TakerFeeShareDenomsToAccruedValueRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { + return new TakerFeeShareDenomsToAccruedValueRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { + return new TakerFeeShareDenomsToAccruedValueRequest().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeShareDenomsToAccruedValueRequest | PlainMessage | undefined, b: TakerFeeShareDenomsToAccruedValueRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeShareDenomsToAccruedValueRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse + */ +export class TakerFeeShareDenomsToAccruedValueResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { + return new TakerFeeShareDenomsToAccruedValueResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { + return new TakerFeeShareDenomsToAccruedValueResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { + return new TakerFeeShareDenomsToAccruedValueResponse().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeShareDenomsToAccruedValueResponse | PlainMessage | undefined, b: TakerFeeShareDenomsToAccruedValueResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeShareDenomsToAccruedValueResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsRequest + */ +export class AllTakerFeeShareAccumulatorsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAccumulatorsRequest { + return new AllTakerFeeShareAccumulatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAccumulatorsRequest { + return new AllTakerFeeShareAccumulatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAccumulatorsRequest { + return new AllTakerFeeShareAccumulatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: AllTakerFeeShareAccumulatorsRequest | PlainMessage | undefined, b: AllTakerFeeShareAccumulatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(AllTakerFeeShareAccumulatorsRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse + */ +export class AllTakerFeeShareAccumulatorsResponse extends Message { + /** + * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator taker_fee_skim_accumulators = 1; + */ + takerFeeSkimAccumulators: TakerFeeSkimAccumulator[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taker_fee_skim_accumulators", kind: "message", T: TakerFeeSkimAccumulator, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAccumulatorsResponse { + return new AllTakerFeeShareAccumulatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAccumulatorsResponse { + return new AllTakerFeeShareAccumulatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAccumulatorsResponse { + return new AllTakerFeeShareAccumulatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: AllTakerFeeShareAccumulatorsResponse | PlainMessage | undefined, b: AllTakerFeeShareAccumulatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AllTakerFeeShareAccumulatorsResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomRequest + */ +export class RegisteredAlloyedPoolFromDenomRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { + return new RegisteredAlloyedPoolFromDenomRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { + return new RegisteredAlloyedPoolFromDenomRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { + return new RegisteredAlloyedPoolFromDenomRequest().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredAlloyedPoolFromDenomRequest | PlainMessage | undefined, b: RegisteredAlloyedPoolFromDenomRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredAlloyedPoolFromDenomRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse + */ +export class RegisteredAlloyedPoolFromDenomResponse extends Message { + /** + * @generated from field: osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_state = 1; + */ + contractState?: AlloyContractTakerFeeShareState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_state", kind: "message", T: AlloyContractTakerFeeShareState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { + return new RegisteredAlloyedPoolFromDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { + return new RegisteredAlloyedPoolFromDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { + return new RegisteredAlloyedPoolFromDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredAlloyedPoolFromDenomResponse | PlainMessage | undefined, b: RegisteredAlloyedPoolFromDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredAlloyedPoolFromDenomResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdRequest + */ +export class RegisteredAlloyedPoolFromPoolIdRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { + return new RegisteredAlloyedPoolFromPoolIdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { + return new RegisteredAlloyedPoolFromPoolIdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { + return new RegisteredAlloyedPoolFromPoolIdRequest().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredAlloyedPoolFromPoolIdRequest | PlainMessage | undefined, b: RegisteredAlloyedPoolFromPoolIdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredAlloyedPoolFromPoolIdRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse + */ +export class RegisteredAlloyedPoolFromPoolIdResponse extends Message { + /** + * @generated from field: osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_state = 1; + */ + contractState?: AlloyContractTakerFeeShareState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_state", kind: "message", T: AlloyContractTakerFeeShareState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { + return new RegisteredAlloyedPoolFromPoolIdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { + return new RegisteredAlloyedPoolFromPoolIdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { + return new RegisteredAlloyedPoolFromPoolIdResponse().fromJsonString(jsonString, options); + } + + static equals(a: RegisteredAlloyedPoolFromPoolIdResponse | PlainMessage | undefined, b: RegisteredAlloyedPoolFromPoolIdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RegisteredAlloyedPoolFromPoolIdResponse, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsRequest + */ +export class AllRegisteredAlloyedPoolsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllRegisteredAlloyedPoolsRequest { + return new AllRegisteredAlloyedPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllRegisteredAlloyedPoolsRequest { + return new AllRegisteredAlloyedPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllRegisteredAlloyedPoolsRequest { + return new AllRegisteredAlloyedPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: AllRegisteredAlloyedPoolsRequest | PlainMessage | undefined, b: AllRegisteredAlloyedPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(AllRegisteredAlloyedPoolsRequest, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse + */ +export class AllRegisteredAlloyedPoolsResponse extends Message { + /** + * @generated from field: repeated osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_states = 1; + */ + contractStates: AlloyContractTakerFeeShareState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_states", kind: "message", T: AlloyContractTakerFeeShareState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AllRegisteredAlloyedPoolsResponse { + return new AllRegisteredAlloyedPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AllRegisteredAlloyedPoolsResponse { + return new AllRegisteredAlloyedPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AllRegisteredAlloyedPoolsResponse { + return new AllRegisteredAlloyedPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: AllRegisteredAlloyedPoolsResponse | PlainMessage | undefined, b: AllRegisteredAlloyedPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AllRegisteredAlloyedPoolsResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts b/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts new file mode 100644 index 00000000..5e1167b0 --- /dev/null +++ b/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts @@ -0,0 +1,182 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/poolmanager/v1beta1/taker_fee_share.proto (package osmosis.poolmanager.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * TakerFeeShareAgreement represents the agreement between the Osmosis protocol + * and a specific denom to share a certain percent of taker fees generated in + * any route that contains said denom. For example, if the agreement specifies a + * 10% skim_percent, this means 10% of the taker fees generated in a swap route + * containing the specified denom will be sent to the address specified + * in the skim_address field at the end of each epoch. These skim_percents are + * additive, so if three taker fee agreements have skim percents of 10%, 20%, + * and 30%, the total skim percent for the route will be 60%. + * + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreement + */ +export class TakerFeeShareAgreement extends Message { + /** + * denom is the denom that has the taker fee share agreement. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * skim_percent is the percentage of taker fees that will be skimmed for the + * denom, in the event that the denom is included in the swap route. + * + * @generated from field: string skim_percent = 2; + */ + skimPercent = ""; + + /** + * skim_address is the address belonging to the respective denom + * that the skimmed taker fees will be sent to at the end of each epoch. + * + * @generated from field: string skim_address = 3; + */ + skimAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "skim_percent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "skim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreement { + return new TakerFeeShareAgreement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreement { + return new TakerFeeShareAgreement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreement { + return new TakerFeeShareAgreement().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeShareAgreement | PlainMessage | undefined, b: TakerFeeShareAgreement | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeShareAgreement, a, b); + } +} + +/** + * TakerFeeSkimAccumulator accumulates the total skimmed taker fees for each + * denom that has a taker fee share agreement. + * + * @generated from message osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator + */ +export class TakerFeeSkimAccumulator extends Message { + /** + * denom is the denom that has the taker fee share agreement. + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * skimmed_taker_fees is the total skimmed taker fees for the denom. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin skimmed_taker_fees = 2; + */ + skimmedTakerFees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "skimmed_taker_fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeSkimAccumulator { + return new TakerFeeSkimAccumulator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeSkimAccumulator { + return new TakerFeeSkimAccumulator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TakerFeeSkimAccumulator { + return new TakerFeeSkimAccumulator().fromJsonString(jsonString, options); + } + + static equals(a: TakerFeeSkimAccumulator | PlainMessage | undefined, b: TakerFeeSkimAccumulator | PlainMessage | undefined): boolean { + return proto3.util.equals(TakerFeeSkimAccumulator, a, b); + } +} + +/** + * AlloyContractTakerFeeShareState contains the contract address of the alloyed + * asset pool, along with the adjusted taker fee share agreements for any asset + * within the alloyed asset pool that has a taker fee share agreement. If for + * instance there are two denoms, and denomA makes up 50 percent and denomB + * makes up 50 percent, and denom A has a taker fee share agreement with a skim + * percent of 10%, then the adjusted taker fee share agreement for denomA will + * be 5%. + * + * @generated from message osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState + */ +export class AlloyContractTakerFeeShareState extends Message { + /** + * contract_address is the address of the alloyed asset pool contract. + * + * @generated from field: string contract_address = 1; + */ + contractAddress = ""; + + /** + * taker_fee_share_agreements is the adjusted taker fee share agreements for + * any asset within the alloyed asset pool that has a taker fee share + * agreement. + * + * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreements = 2; + */ + takerFeeShareAgreements: TakerFeeShareAgreement[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "taker_fee_share_agreements", kind: "message", T: TakerFeeShareAgreement, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AlloyContractTakerFeeShareState { + return new AlloyContractTakerFeeShareState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AlloyContractTakerFeeShareState { + return new AlloyContractTakerFeeShareState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AlloyContractTakerFeeShareState { + return new AlloyContractTakerFeeShareState().fromJsonString(jsonString, options); + } + + static equals(a: AlloyContractTakerFeeShareState | PlainMessage | undefined, b: AlloyContractTakerFeeShareState | PlainMessage | undefined): boolean { + return proto3.util.equals(AlloyContractTakerFeeShareState, a, b); + } +} + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts index badb280b..9c1abf93 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { MsgSetDenomPairTakerFee, MsgSetDenomPairTakerFeeResponse, MsgSplitRouteSwapExactAmountIn, MsgSplitRouteSwapExactAmountInResponse, MsgSplitRouteSwapExactAmountOut, MsgSplitRouteSwapExactAmountOutResponse, MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse } from "./tx_pb.js"; +import { MsgSetDenomPairTakerFee, MsgSetDenomPairTakerFeeResponse, MsgSetRegisteredAlloyedPool, MsgSetRegisteredAlloyedPoolResponse, MsgSetTakerFeeShareAgreementForDenom, MsgSetTakerFeeShareAgreementForDenomResponse, MsgSplitRouteSwapExactAmountIn, MsgSplitRouteSwapExactAmountInResponse, MsgSplitRouteSwapExactAmountOut, MsgSplitRouteSwapExactAmountOutResponse, MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse } from "./tx_pb.js"; const TYPE_NAME = "osmosis.poolmanager.v1beta1.Msg"; @@ -57,3 +57,23 @@ export const MsgSetDenomPairTakerFeeService = { Response: MsgSetDenomPairTakerFeeResponse, } as const; +/** + * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SetTakerFeeShareAgreementForDenom + */ +export const MsgSetTakerFeeShareAgreementForDenomService = { + typeName: TYPE_NAME, + method: "SetTakerFeeShareAgreementForDenom", + Request: MsgSetTakerFeeShareAgreementForDenom, + Response: MsgSetTakerFeeShareAgreementForDenomResponse, +} as const; + +/** + * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SetRegisteredAlloyedPool + */ +export const MsgSetRegisteredAlloyedPoolService = { + typeName: TYPE_NAME, + method: "SetRegisteredAlloyedPool", + Request: MsgSetRegisteredAlloyedPool, + Response: MsgSetRegisteredAlloyedPoolResponse, +} as const; + diff --git a/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts b/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts index 0aaff5bb..586cd5de 100644 --- a/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts +++ b/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts @@ -4,7 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { SwapAmountInRoute, SwapAmountInSplitRoute, SwapAmountOutRoute, SwapAmountOutSplitRoute } from "./swap_route_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; @@ -466,20 +466,203 @@ export class MsgSetDenomPairTakerFeeResponse extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * denom is the denom that the taker fee share agreement is being set for. + * Ex. If this is set to "nBTC", then any trade route that includes "nBTC" + * will have the skim_percent skimmed from the taker fees and sent to the + * skim_address. + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * skim_percent is the percentage of taker fees that will be skimmed for the + * bridge provider, in the event that the bridge provider's denom is included + * in the swap route. + * + * @generated from field: string skim_percent = 3; + */ + skimPercent = ""; + + /** + * skim_address is the address belonging to the respective bridge provider + * that the skimmed taker fees will be sent to at the end of each epoch. + * + * @generated from field: string skim_address = 4; + */ + skimAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "skim_percent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "skim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { + return new MsgSetTakerFeeShareAgreementForDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { + return new MsgSetTakerFeeShareAgreementForDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { + return new MsgSetTakerFeeShareAgreementForDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetTakerFeeShareAgreementForDenom | PlainMessage | undefined, b: MsgSetTakerFeeShareAgreementForDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetTakerFeeShareAgreementForDenom, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse + */ +export class MsgSetTakerFeeShareAgreementForDenomResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { + return new MsgSetTakerFeeShareAgreementForDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { + return new MsgSetTakerFeeShareAgreementForDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { + return new MsgSetTakerFeeShareAgreementForDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetTakerFeeShareAgreementForDenomResponse | PlainMessage | undefined, b: MsgSetTakerFeeShareAgreementForDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetTakerFeeShareAgreementForDenomResponse, a, b); + } +} + +/** + * ===================== MsgSetRegisteredAlloyedPool + * + * @generated from message osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPool + */ +export class MsgSetRegisteredAlloyedPool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * pool_id is the id of the pool that is being registered as an alloyed pool. + * Only alloyed pools that intend to be used in taker fee revenue sharing + * should be registered. + * + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRegisteredAlloyedPool { + return new MsgSetRegisteredAlloyedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRegisteredAlloyedPool { + return new MsgSetRegisteredAlloyedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetRegisteredAlloyedPool { + return new MsgSetRegisteredAlloyedPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetRegisteredAlloyedPool | PlainMessage | undefined, b: MsgSetRegisteredAlloyedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetRegisteredAlloyedPool, a, b); + } +} + +/** + * @generated from message osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPoolResponse + */ +export class MsgSetRegisteredAlloyedPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { + return new MsgSetRegisteredAlloyedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { + return new MsgSetRegisteredAlloyedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { + return new MsgSetRegisteredAlloyedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetRegisteredAlloyedPoolResponse | PlainMessage | undefined, b: MsgSetRegisteredAlloyedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetRegisteredAlloyedPoolResponse, a, b); + } +} + /** * @generated from message osmosis.poolmanager.v1beta1.DenomPairTakerFee */ export class DenomPairTakerFee extends Message { /** - * denom0 and denom1 get automatically lexigographically sorted - * when being stored, so the order of input here does not matter. + * DEPRECATED: Now that we are using uni-directional trading pairs, we are + * using tokenInDenom and tokenOutDenom instead of denom0 and denom1 to + * prevent confusion. * - * @generated from field: string denom0 = 1; + * @generated from field: string denom0 = 1 [deprecated = true]; + * @deprecated */ denom0 = ""; /** - * @generated from field: string denom1 = 2; + * @generated from field: string denom1 = 2 [deprecated = true]; + * @deprecated */ denom1 = ""; @@ -488,6 +671,16 @@ export class DenomPairTakerFee extends Message { */ takerFee = ""; + /** + * @generated from field: string tokenInDenom = 4; + */ + tokenInDenom = ""; + + /** + * @generated from field: string tokenOutDenom = 5; + */ + tokenOutDenom = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -499,6 +692,8 @@ export class DenomPairTakerFee extends Message { { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tokenInDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "tokenOutDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DenomPairTakerFee { diff --git a/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts index 78dc15b6..6e64a705 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts @@ -6,7 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; -import { BaseDenom, CyclicArbTracker, InfoByPoolType, TokenPairArbRoutes } from "./protorev_pb.js"; +import { BaseDenom, CyclicArbTracker, InfoByPoolType, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** @@ -37,6 +37,16 @@ export class GenesisState extends Message { */ baseDenoms: BaseDenom[] = []; + /** + * DEPRECATED: pool_weights are weights that are being used to calculate the + * compute cost of each route. This field is deprecated. + * It is replaced by the `info_by_pool_type` field. + * + * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 4 [deprecated = true]; + * @deprecated + */ + poolWeights?: PoolWeights; + /** * The number of days since module genesis. * @@ -119,6 +129,7 @@ export class GenesisState extends Message { { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "token_pair_arb_routes", kind: "message", T: TokenPairArbRoutes, repeated: true }, { no: 3, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, + { no: 4, name: "pool_weights", kind: "message", T: PoolWeights }, { no: 5, name: "days_since_module_genesis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "developer_fees", kind: "message", T: Coin, repeated: true }, { no: 7, name: "latest_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, diff --git a/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts index 31930e56..add6efb1 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts @@ -7,6 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { TakerFeesTracker } from "../../poolmanager/v1beta1/genesis_pb.js"; +import { TxFeesTracker } from "../../txfees/v1beta1/genesis_pb.js"; /** * TokenPairArbRoutes tracks all of the hot routes for a given pair of tokens @@ -697,6 +698,14 @@ export class AllProtocolRevenue extends Message { */ takerFeesTracker?: TakerFeesTracker; + /** + * DEPRECATED + * + * @generated from field: osmosis.txfees.v1beta1.TxFeesTracker tx_fees_tracker = 2 [deprecated = true]; + * @deprecated + */ + txFeesTracker?: TxFeesTracker; + /** * @generated from field: osmosis.protorev.v1beta1.CyclicArbTracker cyclic_arb_tracker = 3; */ @@ -711,6 +720,7 @@ export class AllProtocolRevenue extends Message { static readonly typeName = "osmosis.protorev.v1beta1.AllProtocolRevenue"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "taker_fees_tracker", kind: "message", T: TakerFeesTracker }, + { no: 2, name: "tx_fees_tracker", kind: "message", T: TxFeesTracker }, { no: 3, name: "cyclic_arb_tracker", kind: "message", T: CyclicArbTracker }, ]); diff --git a/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts b/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts index acfe454a..47e8c6fb 100644 --- a/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts +++ b/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BaseDenom, InfoByPoolType, TokenPairArbRoutes } from "./protorev_pb.js"; +import { BaseDenom, InfoByPoolType, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; /** * MsgSetHotRoutes defines the Msg/SetHotRoutes request type. @@ -475,7 +475,8 @@ export class MsgSetBaseDenoms extends Message { } /** - * MsgSetBaseDenomsResponse defines the Msg/SetBaseDenoms response type. + * Deprecated, but must be retained in the file to allow indexers + * to index blocks since genesis * * @generated from message osmosis.protorev.v1beta1.MsgSetBaseDenomsResponse */ @@ -507,3 +508,52 @@ export class MsgSetBaseDenomsResponse extends Message } } +/** + * MsgSetPoolWeights defines the Msg/SetPoolWeights request type. + * + * @generated from message osmosis.protorev.v1beta1.MsgSetPoolWeights + */ +export class MsgSetPoolWeights extends Message { + /** + * admin is the account that is authorized to set the pool weights. + * + * @generated from field: string admin = 1; + */ + admin = ""; + + /** + * pool_weights is the list of pool weights to set. + * + * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 2; + */ + poolWeights?: PoolWeights; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.protorev.v1beta1.MsgSetPoolWeights"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_weights", kind: "message", T: PoolWeights }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolWeights { + return new MsgSetPoolWeights().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolWeights { + return new MsgSetPoolWeights().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolWeights { + return new MsgSetPoolWeights().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPoolWeights | PlainMessage | undefined, b: MsgSetPoolWeights | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPoolWeights, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts new file mode 100644 index 00000000..80eb3568 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/genesis.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { AccountAuthenticator } from "./models_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * AuthenticatorData represents a genesis exported account with Authenticators. + * The address is used as the key, and the account authenticators are stored in + * the authenticators field. + * + * @generated from message osmosis.smartaccount.v1beta1.AuthenticatorData + */ +export class AuthenticatorData extends Message { + /** + * address is an account address, one address can have many authenticators + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * authenticators are the account's authenticators, these can be multiple + * types including SignatureVerification, AllOfs, CosmWasmAuthenticators, etc + * + * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator authenticators = 2; + */ + authenticators: AccountAuthenticator[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.AuthenticatorData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AuthenticatorData { + return new AuthenticatorData().fromJsonString(jsonString, options); + } + + static equals(a: AuthenticatorData | PlainMessage | undefined, b: AuthenticatorData | PlainMessage | undefined): boolean { + return proto3.util.equals(AuthenticatorData, a, b); + } +} + +/** + * GenesisState defines the authenticator module's genesis state. + * + * @generated from message osmosis.smartaccount.v1beta1.GenesisState + */ +export class GenesisState extends Message { + /** + * params define the parameters for the authenticator module. + * + * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; + */ + params?: Params; + + /** + * next_authenticator_id is the next available authenticator ID. + * + * @generated from field: uint64 next_authenticator_id = 2; + */ + nextAuthenticatorId = protoInt64.zero; + + /** + * authenticator_data contains the data for multiple accounts, each with their + * authenticators. + * + * @generated from field: repeated osmosis.smartaccount.v1beta1.AuthenticatorData authenticator_data = 3; + */ + authenticatorData: AuthenticatorData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "next_authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "authenticator_data", kind: "message", T: AuthenticatorData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts new file mode 100644 index 00000000..5c2aecc3 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/models.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * AccountAuthenticator represents a foundational model for all authenticators. + * It provides extensibility by allowing concrete types to interpret and + * validate transactions based on the encapsulated data. + * + * @generated from message osmosis.smartaccount.v1beta1.AccountAuthenticator + */ +export class AccountAuthenticator extends Message { + /** + * ID uniquely identifies the authenticator instance. + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * Type specifies the category of the AccountAuthenticator. + * This type information is essential for differentiating authenticators + * and ensuring precise data retrieval from the storage layer. + * + * @generated from field: string type = 2; + */ + type = ""; + + /** + * Config is a versatile field used in conjunction with the specific type of + * account authenticator to facilitate complex authentication processes. + * The interpretation of this field is overloaded, enabling multiple + * authenticators to utilize it for their respective purposes. + * + * @generated from field: bytes config = 3; + */ + config = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.AccountAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "config", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccountAuthenticator { + return new AccountAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: AccountAuthenticator | PlainMessage | undefined, b: AccountAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(AccountAuthenticator, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts new file mode 100644 index 00000000..127b9699 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/params.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message osmosis.smartaccount.v1beta1.Params + */ +export class Params extends Message { + /** + * MaximumUnauthenticatedGas defines the maximum amount of gas that can be + * used to authenticate a transaction in ante handler without having fee payer + * authenticated. + * + * @generated from field: uint64 maximum_unauthenticated_gas = 1; + */ + maximumUnauthenticatedGas = protoInt64.zero; + + /** + * IsSmartAccountActive defines the state of the authenticator. + * If set to false, the authenticator module will not be used + * and the classic cosmos sdk authentication will be used instead. + * + * @generated from field: bool is_smart_account_active = 2; + */ + isSmartAccountActive = false; + + /** + * CircuitBreakerControllers defines list of addresses that are allowed to + * set is_smart_account_active without going through governance. + * + * @generated from field: repeated string circuit_breaker_controllers = 3; + */ + circuitBreakerControllers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maximum_unauthenticated_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "is_smart_account_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "circuit_breaker_controllers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts new file mode 100644 index 00000000..9df34f97 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { GetAuthenticatorRequest, GetAuthenticatorResponse, GetAuthenticatorsRequest, GetAuthenticatorsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "osmosis.smartaccount.v1beta1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc osmosis.smartaccount.v1beta1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticator + */ +export const QueryGetAuthenticatorService = { + typeName: TYPE_NAME, + method: "GetAuthenticator", + Request: GetAuthenticatorRequest, + Response: GetAuthenticatorResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticators + */ +export const QueryGetAuthenticatorsService = { + typeName: TYPE_NAME, + method: "GetAuthenticators", + Request: GetAuthenticatorsRequest, + Response: GetAuthenticatorsResponse, +} as const; + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts new file mode 100644 index 00000000..32733a4a --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts @@ -0,0 +1,246 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { AccountAuthenticator } from "./models_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message osmosis.smartaccount.v1beta1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message osmosis.smartaccount.v1beta1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * MsgGetAuthenticatorsRequest defines the Msg/GetAuthenticators request type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest + */ +export class GetAuthenticatorsRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsRequest { + return new GetAuthenticatorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorsRequest | PlainMessage | undefined, b: GetAuthenticatorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorsRequest, a, b); + } +} + +/** + * MsgGetAuthenticatorsResponse defines the Msg/GetAuthenticators response type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse + */ +export class GetAuthenticatorsResponse extends Message { + /** + * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticators = 1; + */ + accountAuthenticators: AccountAuthenticator[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsResponse { + return new GetAuthenticatorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorsResponse | PlainMessage | undefined, b: GetAuthenticatorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorsResponse, a, b); + } +} + +/** + * MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorRequest + */ +export class GetAuthenticatorRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: uint64 authenticator_id = 2; + */ + authenticatorId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorRequest { + return new GetAuthenticatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorRequest | PlainMessage | undefined, b: GetAuthenticatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorRequest, a, b); + } +} + +/** + * MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type. + * + * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorResponse + */ +export class GetAuthenticatorResponse extends Message { + /** + * @generated from field: osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticator = 1; + */ + accountAuthenticator?: AccountAuthenticator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_authenticator", kind: "message", T: AccountAuthenticator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorResponse { + return new GetAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthenticatorResponse | PlainMessage | undefined, b: GetAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthenticatorResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..75dca756 --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddAuthenticator, MsgAddAuthenticatorResponse, MsgRemoveAuthenticator, MsgRemoveAuthenticatorResponse, MsgSetActiveState, MsgSetActiveStateResponse } from "./tx_pb.js"; + +const TYPE_NAME = "osmosis.smartaccount.v1beta1.Msg"; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.AddAuthenticator + */ +export const MsgAddAuthenticatorService = { + typeName: TYPE_NAME, + method: "AddAuthenticator", + Request: MsgAddAuthenticator, + Response: MsgAddAuthenticatorResponse, +} as const; + +/** + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.RemoveAuthenticator + */ +export const MsgRemoveAuthenticatorService = { + typeName: TYPE_NAME, + method: "RemoveAuthenticator", + Request: MsgRemoveAuthenticator, + Response: MsgRemoveAuthenticatorResponse, +} as const; + +/** + * SetActiveState sets the active state of the authenticator. + * Primarily used for circuit breaking. + * + * @generated from rpc osmosis.smartaccount.v1beta1.Msg.SetActiveState + */ +export const MsgSetActiveStateService = { + typeName: TYPE_NAME, + method: "SetActiveState", + Request: MsgSetActiveState, + Response: MsgSetActiveStateResponse, +} as const; + diff --git a/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts b/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts new file mode 100644 index 00000000..281fdffa --- /dev/null +++ b/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts @@ -0,0 +1,301 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * MsgAddAuthenticatorRequest defines the Msg/AddAuthenticator request type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticator + */ +export class MsgAddAuthenticator extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string authenticator_type = 2; + */ + authenticatorType = ""; + + /** + * @generated from field: bytes data = 3; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authenticator_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticator { + return new MsgAddAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddAuthenticator | PlainMessage | undefined, b: MsgAddAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddAuthenticator, a, b); + } +} + +/** + * MsgAddAuthenticatorResponse defines the Msg/AddAuthenticator response type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse + */ +export class MsgAddAuthenticatorResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticatorResponse { + return new MsgAddAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddAuthenticatorResponse | PlainMessage | undefined, b: MsgAddAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddAuthenticatorResponse, a, b); + } +} + +/** + * MsgRemoveAuthenticatorRequest defines the Msg/RemoveAuthenticator request + * type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator + */ +export class MsgRemoveAuthenticator extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticator { + return new MsgRemoveAuthenticator().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAuthenticator | PlainMessage | undefined, b: MsgRemoveAuthenticator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAuthenticator, a, b); + } +} + +/** + * MsgRemoveAuthenticatorResponse defines the Msg/RemoveAuthenticator response + * type. + * + * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse + */ +export class MsgRemoveAuthenticatorResponse extends Message { + /** + * @generated from field: bool success = 1; + */ + success = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticatorResponse { + return new MsgRemoveAuthenticatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveAuthenticatorResponse | PlainMessage | undefined, b: MsgRemoveAuthenticatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveAuthenticatorResponse, a, b); + } +} + +/** + * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveState + */ +export class MsgSetActiveState extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: bool active = 2; + */ + active = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveState { + return new MsgSetActiveState().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetActiveState | PlainMessage | undefined, b: MsgSetActiveState | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetActiveState, a, b); + } +} + +/** + * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse + */ +export class MsgSetActiveStateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveStateResponse { + return new MsgSetActiveStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetActiveStateResponse | PlainMessage | undefined, b: MsgSetActiveStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetActiveStateResponse, a, b); + } +} + +/** + * TxExtension allows for additional authenticator-specific data in + * transactions. + * + * @generated from message osmosis.smartaccount.v1beta1.TxExtension + */ +export class TxExtension extends Message { + /** + * selected_authenticators holds the authenticator_id for the chosen + * authenticator per message. + * + * @generated from field: repeated uint64 selected_authenticators = 1; + */ + selectedAuthenticators: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.smartaccount.v1beta1.TxExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "selected_authenticators", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxExtension { + return new TxExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxExtension { + return new TxExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxExtension { + return new TxExtension().fromJsonString(jsonString, options); + } + + static equals(a: TxExtension | PlainMessage | undefined, b: TxExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(TxExtension, a, b); + } +} + diff --git a/src/protobufs/osmosis/tokenfactory/params_pb.ts b/src/protobufs/osmosis/tokenfactory/params_pb.ts new file mode 100644 index 00000000..3283ccb2 --- /dev/null +++ b/src/protobufs/osmosis/tokenfactory/params_pb.ts @@ -0,0 +1,127 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/tokenfactory/params.proto (package osmosis.tokenfactory, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * WhitelistedHook describes a beforeSendHook which is allowed to be added and executed + * SetBeforeSendHook can only be called on denoms where the denom creator and + * code_id for the `contract_addr` match a WhitelistedHook + * + * @generated from message osmosis.tokenfactory.WhitelistedHook + */ +export class WhitelistedHook extends Message { + /** + * @generated from field: uint64 code_id = 1; + */ + codeId = protoInt64.zero; + + /** + * @generated from field: string denom_creator = 2; + */ + denomCreator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.WhitelistedHook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom_creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistedHook { + return new WhitelistedHook().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistedHook | PlainMessage | undefined, b: WhitelistedHook | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistedHook, a, b); + } +} + +/** + * Params defines the parameters for the tokenfactory module. + * + * @generated from message osmosis.tokenfactory.Params + */ +export class Params extends Message { + /** + * DenomCreationFee defines the fee to be charged on the creation of a new + * denom. The fee is drawn from the MsgCreateDenom's sender account, and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; + */ + denomCreationFee: Coin[] = []; + + /** + * DenomCreationGasConsume defines the gas cost for creating a new denom. + * This is intended as a spam deterrence mechanism. + * + * See: https://github.com/CosmWasm/token-factory/issues/11 + * + * @generated from field: uint64 denom_creation_gas_consume = 2; + */ + denomCreationGasConsume = protoInt64.zero; + + /** + * FeeCollectorAddress is the address where fees collected from denom creation + * are sent to + * + * @generated from field: string fee_collector_address = 3; + */ + feeCollectorAddress = ""; + + /** + * whitelisted_hooks is the list of hooks which are allowed to be added and executed + * + * @generated from field: repeated osmosis.tokenfactory.WhitelistedHook whitelisted_hooks = 4; + */ + whitelistedHooks: WhitelistedHook[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "fee_collector_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_hooks", kind: "message", T: WhitelistedHook, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts index 9b757c7b..cba79557 100644 --- a/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; +import { QueryAllBeforeSendHooksAddressesRequest, QueryAllBeforeSendHooksAddressesResponse, QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.tokenfactory.v1beta1.Query"; @@ -59,3 +59,19 @@ export const QueryBeforeSendHookAddressService = { Response: QueryBeforeSendHookAddressResponse, } as const; +/** + * AllBeforeSendHooksAddresses defines a gRPC query method for + * getting all addresses with before send hook registered. + * The response returns two arrays, an array with a list of denom and an array + * of before send hook addresses. The idx of denom corresponds to before send + * hook addresse's idx. + * + * @generated from rpc osmosis.tokenfactory.v1beta1.Query.AllBeforeSendHooksAddresses + */ +export const QueryAllBeforeSendHooksAddressesService = { + typeName: TYPE_NAME, + method: "AllBeforeSendHooksAddresses", + Request: QueryAllBeforeSendHooksAddressesRequest, + Response: QueryAllBeforeSendHooksAddressesResponse, +} as const; + diff --git a/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts b/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts index c1e5a725..b5270c24 100644 --- a/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts @@ -319,3 +319,80 @@ export class QueryBeforeSendHookAddressResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesRequest, a, b); + } +} + +/** + * QueryAllBeforeSendHooksAddressesResponse defines the response structure for + * the AllBeforeSendHooksAddresses gRPC query. + * + * @generated from message osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse + */ +export class QueryAllBeforeSendHooksAddressesResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + /** + * @generated from field: repeated string before_send_hook_addresses = 2; + */ + beforeSendHookAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "before_send_hook_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesResponse, a, b); + } +} + diff --git a/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts b/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts index dd6f52b5..288df311 100644 --- a/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts +++ b/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts @@ -12,7 +12,7 @@ import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; * MsgCreateDenom defines the message structure for the CreateDenom gRPC service * method. It allows an account to create a new denom. It requires a sender * address and a sub denomination. The (sender_address, sub_denomination) tuple - * must be unique and cannot be re-used. + * must be unique and cannot be reused. * * The resulting denom created is defined as * . The resulting denom's admin is diff --git a/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts index 6b0ffc00..a84ee047 100644 --- a/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts +++ b/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts @@ -4,8 +4,10 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { FeeToken } from "./feetoken_pb.js"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * GenesisState defines the txfees module's genesis state. @@ -23,6 +25,21 @@ export class GenesisState extends Message { */ feetokens: FeeToken[] = []; + /** + * DEPRECATED + * + * @generated from field: osmosis.txfees.v1beta1.TxFeesTracker txFeesTracker = 3 [deprecated = true]; + * @deprecated + */ + txFeesTracker?: TxFeesTracker; + + /** + * params is the container of txfees parameters. + * + * @generated from field: osmosis.txfees.v1beta1.Params params = 4; + */ + params?: Params; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -33,6 +50,8 @@ export class GenesisState extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "basedenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "feetokens", kind: "message", T: FeeToken, repeated: true }, + { no: 3, name: "txFeesTracker", kind: "message", T: TxFeesTracker }, + { no: 4, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { @@ -52,3 +71,46 @@ export class GenesisState extends Message { } } +/** + * @generated from message osmosis.txfees.v1beta1.TxFeesTracker + */ +export class TxFeesTracker extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin tx_fees = 1; + */ + txFees: Coin[] = []; + + /** + * @generated from field: int64 height_accounting_starts_from = 2; + */ + heightAccountingStartsFrom = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.TxFeesTracker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_fees", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TxFeesTracker { + return new TxFeesTracker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TxFeesTracker { + return new TxFeesTracker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TxFeesTracker { + return new TxFeesTracker().fromJsonString(jsonString, options); + } + + static equals(a: TxFeesTracker | PlainMessage | undefined, b: TxFeesTracker | PlainMessage | undefined): boolean { + return proto3.util.equals(TxFeesTracker, a, b); + } +} + diff --git a/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts new file mode 100644 index 00000000..e77cebf9 --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts @@ -0,0 +1,56 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/params.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params holds parameters for the txfees module + * + * @generated from message osmosis.txfees.v1beta1.Params + */ +export class Params extends Message { + /** + * @generated from field: repeated string whitelisted_fee_token_setters = 1; + */ + whitelistedFeeTokenSetters: string[] = []; + + /** + * fee_swap_intermediary_denom_list is a list of denoms that can be used as + * intermediary denoms for multi-hop swaps when swapping non-native fee tokens + * + * @generated from field: repeated string fee_swap_intermediary_denom_list = 2; + */ + feeSwapIntermediaryDenomList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_fee_token_setters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "fee_swap_intermediary_denom_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts b/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts index 1d9ad800..aee43093 100644 --- a/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts +++ b/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts @@ -3,62 +3,12 @@ /* eslint-disable */ // @ts-nocheck -import { QueryBaseDenomRequest, QueryBaseDenomResponse, QueryDenomPoolIdRequest, QueryDenomPoolIdResponse, QueryDenomSpotPriceRequest, QueryDenomSpotPriceResponse, QueryEipBaseFeeRequest, QueryEipBaseFeeResponse, QueryFeeTokensRequest, QueryFeeTokensResponse } from "./query_pb.js"; +import { QueryEipBaseFeeRequest, QueryEipBaseFeeResponse } from "./query_pb.js"; const TYPE_NAME = "osmosis.txfees.v1beta1.Query"; /** - * FeeTokens returns a list of all the whitelisted fee tokens and their - * corresponding pools. It does not include the BaseDenom, which has its own - * query endpoint - * - * @generated from rpc osmosis.txfees.v1beta1.Query.FeeTokens - */ -export const QueryFeeTokensService = { - typeName: TYPE_NAME, - method: "FeeTokens", - Request: QueryFeeTokensRequest, - Response: QueryFeeTokensResponse, -} as const; - -/** - * DenomSpotPrice returns all spot prices by each registered token denom. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.DenomSpotPrice - */ -export const QueryDenomSpotPriceService = { - typeName: TYPE_NAME, - method: "DenomSpotPrice", - Request: QueryDenomSpotPriceRequest, - Response: QueryDenomSpotPriceResponse, -} as const; - -/** - * Returns the poolID for a specified denom input. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.DenomPoolId - */ -export const QueryDenomPoolIdService = { - typeName: TYPE_NAME, - method: "DenomPoolId", - Request: QueryDenomPoolIdRequest, - Response: QueryDenomPoolIdResponse, -} as const; - -/** - * Returns a list of all base denom tokens and their corresponding pools. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.BaseDenom - */ -export const QueryBaseDenomService = { - typeName: TYPE_NAME, - method: "BaseDenom", - Request: QueryBaseDenomRequest, - Response: QueryBaseDenomResponse, -} as const; - -/** - * Returns a list of all base denom tokens and their corresponding pools. + * Returns the current fee market EIP fee. * * @generated from rpc osmosis.txfees.v1beta1.Query.GetEipBaseFee */ diff --git a/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts index 0bd46e6c..dad2ee84 100644 --- a/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts +++ b/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts @@ -4,304 +4,7 @@ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { FeeToken } from "./feetoken_pb.js"; - -/** - * @generated from message osmosis.txfees.v1beta1.QueryFeeTokensRequest - */ -export class QueryFeeTokensRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryFeeTokensRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeTokensRequest | PlainMessage | undefined, b: QueryFeeTokensRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeTokensRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryFeeTokensResponse - */ -export class QueryFeeTokensResponse extends Message { - /** - * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken fee_tokens = 1; - */ - feeTokens: FeeToken[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryFeeTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_tokens", kind: "message", T: FeeToken, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeTokensResponse | PlainMessage | undefined, b: QueryFeeTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeTokensResponse, a, b); - } -} - -/** - * QueryDenomSpotPriceRequest defines grpc request structure for querying spot - * price for the specified tx fee denom - * - * @generated from message osmosis.txfees.v1beta1.QueryDenomSpotPriceRequest - */ -export class QueryDenomSpotPriceRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomSpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomSpotPriceRequest | PlainMessage | undefined, b: QueryDenomSpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceRequest, a, b); - } -} - -/** - * QueryDenomSpotPriceRequest defines grpc response structure for querying spot - * price for the specified tx fee denom - * - * @generated from message osmosis.txfees.v1beta1.QueryDenomSpotPriceResponse - */ -export class QueryDenomSpotPriceResponse extends Message { - /** - * @generated from field: uint64 poolID = 1; - */ - poolID = protoInt64.zero; - - /** - * @generated from field: string spot_price = 2; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomSpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomSpotPriceResponse | PlainMessage | undefined, b: QueryDenomSpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceResponse, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryDenomPoolIdRequest - */ -export class QueryDenomPoolIdRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomPoolIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomPoolIdRequest | PlainMessage | undefined, b: QueryDenomPoolIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomPoolIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryDenomPoolIdResponse - */ -export class QueryDenomPoolIdResponse extends Message { - /** - * @generated from field: uint64 poolID = 1; - */ - poolID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomPoolIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomPoolIdResponse | PlainMessage | undefined, b: QueryDenomPoolIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomPoolIdResponse, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryBaseDenomRequest - */ -export class QueryBaseDenomRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryBaseDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseDenomRequest | PlainMessage | undefined, b: QueryBaseDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryBaseDenomResponse - */ -export class QueryBaseDenomResponse extends Message { - /** - * @generated from field: string base_denom = 1; - */ - baseDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryBaseDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseDenomResponse | PlainMessage | undefined, b: QueryBaseDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseDenomResponse, a, b); - } -} +import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from message osmosis.txfees.v1beta1.QueryEipBaseFeeRequest @@ -339,6 +42,8 @@ export class QueryEipBaseFeeRequest extends Message { */ export class QueryEipBaseFeeResponse extends Message { /** + * The current chain gas price + * * @generated from field: string base_fee = 1; */ baseFee = ""; diff --git a/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts b/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts new file mode 100644 index 00000000..0d2735cb --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSetFeeTokens, MsgSetFeeTokensResponse } from "./tx_pb.js"; + +const TYPE_NAME = "osmosis.txfees.v1beta1.Msg"; + +/** + * @generated from rpc osmosis.txfees.v1beta1.Msg.SetFeeTokens + */ +export const MsgSetFeeTokensService = { + typeName: TYPE_NAME, + method: "SetFeeTokens", + Request: MsgSetFeeTokens, + Response: MsgSetFeeTokensResponse, +} as const; + diff --git a/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts b/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts new file mode 100644 index 00000000..a90e448a --- /dev/null +++ b/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts @@ -0,0 +1,85 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FeeToken } from "./feetoken_pb.js"; + +/** + * ===================== MsgSetFeeTokens + * + * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokens + */ +export class MsgSetFeeTokens extends Message { + /** + * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken fee_tokens = 1; + */ + feeTokens: FeeToken[] = []; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_tokens", kind: "message", T: FeeToken, repeated: true }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokens { + return new MsgSetFeeTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetFeeTokens | PlainMessage | undefined, b: MsgSetFeeTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetFeeTokens, a, b); + } +} + +/** + * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokensResponse + */ +export class MsgSetFeeTokensResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokensResponse { + return new MsgSetFeeTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetFeeTokensResponse | PlainMessage | undefined, b: MsgSetFeeTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetFeeTokensResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/event_pb.ts b/src/protobufs/pryzm/amm/v1/event_pb.ts new file mode 100644 index 00000000..481b2a5d --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/event_pb.ts @@ -0,0 +1,2059 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/event.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Pool } from "./pool_pb.js"; +import { DisabledOrderPair, Order } from "./order_pb.js"; +import { PoolToken } from "./pool_token_pb.js"; +import { WeightedToken } from "./weighted_token_pb.js"; +import { WeightUpdateTiming } from "./weight_update_timing_pb.js"; +import { WhitelistedRoute } from "./whitelisted_route_pb.js"; +import { YammConfiguration } from "./yamm_configuration_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { ScheduleOrder } from "./schedule_order_pb.js"; +import { PermanentVirtualBalancePoolToken, TemporalVirtualBalancePoolToken } from "./virtual_balance_pool_token_pb.js"; +import { MatchedPairSummary } from "./pair_match_proposal_pb.js"; +import { ExitSummary, ExitType, JoinSummary, JoinType, SwapStep, SwapSummary, SwapType } from "./operations_pb.js"; +import { OraclePricePair } from "./oracle_price_pair_pb.js"; +import { PendingTokenIntroduction } from "./pending_token_introduction_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from enum pryzm.amm.v1.RemoveOrderReason + */ +export enum RemoveOrderReason { + /** + * @generated from enum value: ORDER_CANCELED = 0; + */ + ORDER_CANCELED = 0, + + /** + * @generated from enum value: ORDER_DEPOSIT_FAILED = 1; + */ + ORDER_DEPOSIT_FAILED = 1, + + /** + * @generated from enum value: ORDER_FINISHED = 3; + */ + ORDER_FINISHED = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(RemoveOrderReason) +proto3.util.setEnumType(RemoveOrderReason, "pryzm.amm.v1.RemoveOrderReason", [ + { no: 0, name: "ORDER_CANCELED" }, + { no: 1, name: "ORDER_DEPOSIT_FAILED" }, + { no: 3, name: "ORDER_FINISHED" }, +]); + +/** + * @generated from message pryzm.amm.v1.EventSetPool + */ +export class EventSetPool extends Message { + /** + * @generated from field: pryzm.amm.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPool { + return new EventSetPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPool { + return new EventSetPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPool { + return new EventSetPool().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPool | PlainMessage | undefined, b: EventSetPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetPoolCount + */ +export class EventSetPoolCount extends Message { + /** + * @generated from field: uint64 pool_count = 1; + */ + poolCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetPoolCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPoolCount { + return new EventSetPoolCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPoolCount { + return new EventSetPoolCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPoolCount { + return new EventSetPoolCount().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPoolCount | PlainMessage | undefined, b: EventSetPoolCount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPoolCount, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetOrderPairDisabled + */ +export class EventSetOrderPairDisabled extends Message { + /** + * note token_in and token_out are bi-directional + * meaning disabling token_in=x,token_out=y is + * disabling token_in=y,token_out=x at the same time. + * + * @generated from field: pryzm.amm.v1.DisabledOrderPair pair = 1; + */ + pair?: DisabledOrderPair; + + /** + * @generated from field: bool disabled = 2; + */ + disabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetOrderPairDisabled"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pair", kind: "message", T: DisabledOrderPair }, + { no: 2, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetOrderPairDisabled { + return new EventSetOrderPairDisabled().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetOrderPairDisabled { + return new EventSetOrderPairDisabled().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetOrderPairDisabled { + return new EventSetOrderPairDisabled().fromJsonString(jsonString, options); + } + + static equals(a: EventSetOrderPairDisabled | PlainMessage | undefined, b: EventSetOrderPairDisabled | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetOrderPairDisabled, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetLpTokenSupply + */ +export class EventSetLpTokenSupply extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string supply = 2; + */ + supply = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetLpTokenSupply"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetLpTokenSupply { + return new EventSetLpTokenSupply().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetLpTokenSupply { + return new EventSetLpTokenSupply().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetLpTokenSupply { + return new EventSetLpTokenSupply().fromJsonString(jsonString, options); + } + + static equals(a: EventSetLpTokenSupply | PlainMessage | undefined, b: EventSetLpTokenSupply | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetLpTokenSupply, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetPoolToken + */ +export class EventSetPoolToken extends Message { + /** + * @generated from field: pryzm.amm.v1.PoolToken pool_token = 1; + */ + poolToken?: PoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_token", kind: "message", T: PoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPoolToken { + return new EventSetPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPoolToken { + return new EventSetPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPoolToken { + return new EventSetPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPoolToken | PlainMessage | undefined, b: EventSetPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemovePoolToken + */ +export class EventRemovePoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemovePoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemovePoolToken { + return new EventRemovePoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemovePoolToken { + return new EventRemovePoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemovePoolToken { + return new EventRemovePoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventRemovePoolToken | PlainMessage | undefined, b: EventRemovePoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemovePoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetWeightedToken + */ +export class EventSetWeightedToken extends Message { + /** + * @generated from field: pryzm.amm.v1.WeightedToken weighted_token = 1; + */ + weightedToken?: WeightedToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetWeightedToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weighted_token", kind: "message", T: WeightedToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetWeightedToken { + return new EventSetWeightedToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetWeightedToken { + return new EventSetWeightedToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetWeightedToken { + return new EventSetWeightedToken().fromJsonString(jsonString, options); + } + + static equals(a: EventSetWeightedToken | PlainMessage | undefined, b: EventSetWeightedToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetWeightedToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveWeightedToken + */ +export class EventRemoveWeightedToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveWeightedToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveWeightedToken { + return new EventRemoveWeightedToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveWeightedToken { + return new EventRemoveWeightedToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveWeightedToken { + return new EventRemoveWeightedToken().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveWeightedToken | PlainMessage | undefined, b: EventRemoveWeightedToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveWeightedToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetWeightUpdateTiming + */ +export class EventSetWeightUpdateTiming extends Message { + /** + * @generated from field: pryzm.amm.v1.WeightUpdateTiming weight_update_timing = 1; + */ + weightUpdateTiming?: WeightUpdateTiming; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetWeightUpdateTiming"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight_update_timing", kind: "message", T: WeightUpdateTiming }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetWeightUpdateTiming { + return new EventSetWeightUpdateTiming().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetWeightUpdateTiming { + return new EventSetWeightUpdateTiming().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetWeightUpdateTiming { + return new EventSetWeightUpdateTiming().fromJsonString(jsonString, options); + } + + static equals(a: EventSetWeightUpdateTiming | PlainMessage | undefined, b: EventSetWeightUpdateTiming | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetWeightUpdateTiming, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetWhitelistedRoute + */ +export class EventSetWhitelistedRoute extends Message { + /** + * @generated from field: pryzm.amm.v1.WhitelistedRoute whitelisted_route = 1; + */ + whitelistedRoute?: WhitelistedRoute; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetWhitelistedRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_route", kind: "message", T: WhitelistedRoute }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetWhitelistedRoute { + return new EventSetWhitelistedRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetWhitelistedRoute { + return new EventSetWhitelistedRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetWhitelistedRoute { + return new EventSetWhitelistedRoute().fromJsonString(jsonString, options); + } + + static equals(a: EventSetWhitelistedRoute | PlainMessage | undefined, b: EventSetWhitelistedRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetWhitelistedRoute, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetYammConfiguration + */ +export class EventSetYammConfiguration extends Message { + /** + * @generated from field: pryzm.amm.v1.YammConfiguration yamm_configuration = 1; + */ + yammConfiguration?: YammConfiguration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetYammConfiguration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yamm_configuration", kind: "message", T: YammConfiguration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetYammConfiguration { + return new EventSetYammConfiguration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetYammConfiguration { + return new EventSetYammConfiguration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetYammConfiguration { + return new EventSetYammConfiguration().fromJsonString(jsonString, options); + } + + static equals(a: EventSetYammConfiguration | PlainMessage | undefined, b: EventSetYammConfiguration | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetYammConfiguration, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetOrder + */ +export class EventSetOrder extends Message { + /** + * @generated from field: pryzm.amm.v1.Order order = 1; + */ + order?: Order; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: Order }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetOrder { + return new EventSetOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetOrder { + return new EventSetOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetOrder { + return new EventSetOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventSetOrder | PlainMessage | undefined, b: EventSetOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetOrderCount + */ +export class EventSetOrderCount extends Message { + /** + * @generated from field: uint64 order_count = 1; + */ + orderCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetOrderCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetOrderCount { + return new EventSetOrderCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetOrderCount { + return new EventSetOrderCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetOrderCount { + return new EventSetOrderCount().fromJsonString(jsonString, options); + } + + static equals(a: EventSetOrderCount | PlainMessage | undefined, b: EventSetOrderCount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetOrderCount, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveOrder + */ +export class EventRemoveOrder extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.RemoveOrderReason reason = 2; + */ + reason = RemoveOrderReason.ORDER_CANCELED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(RemoveOrderReason) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveOrder { + return new EventRemoveOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveOrder { + return new EventRemoveOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveOrder { + return new EventRemoveOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveOrder | PlainMessage | undefined, b: EventRemoveOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventCancelOrder + */ +export class EventCancelOrder extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin withdrawn_amount = 2; + */ + withdrawnAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventCancelOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "withdrawn_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelOrder { + return new EventCancelOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelOrder { + return new EventCancelOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelOrder { + return new EventCancelOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelOrder | PlainMessage | undefined, b: EventCancelOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetScheduleOrder + */ +export class EventSetScheduleOrder extends Message { + /** + * @generated from field: pryzm.amm.v1.ScheduleOrder schedule_order = 1; + */ + scheduleOrder?: ScheduleOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetScheduleOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule_order", kind: "message", T: ScheduleOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetScheduleOrder { + return new EventSetScheduleOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetScheduleOrder { + return new EventSetScheduleOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetScheduleOrder { + return new EventSetScheduleOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventSetScheduleOrder | PlainMessage | undefined, b: EventSetScheduleOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetScheduleOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveScheduleOrder + */ +export class EventRemoveScheduleOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: int64 time_millis = 2; + */ + timeMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveScheduleOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "time_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveScheduleOrder { + return new EventRemoveScheduleOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveScheduleOrder { + return new EventRemoveScheduleOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveScheduleOrder { + return new EventRemoveScheduleOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveScheduleOrder | PlainMessage | undefined, b: EventRemoveScheduleOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveScheduleOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetExecutableOrder + */ +export class EventSetExecutableOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetExecutableOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetExecutableOrder { + return new EventSetExecutableOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetExecutableOrder { + return new EventSetExecutableOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetExecutableOrder { + return new EventSetExecutableOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventSetExecutableOrder | PlainMessage | undefined, b: EventSetExecutableOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetExecutableOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveExecutableOrder + */ +export class EventRemoveExecutableOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveExecutableOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveExecutableOrder { + return new EventRemoveExecutableOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveExecutableOrder { + return new EventRemoveExecutableOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveExecutableOrder { + return new EventRemoveExecutableOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveExecutableOrder | PlainMessage | undefined, b: EventRemoveExecutableOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveExecutableOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetIntroducingPoolToken + */ +export class EventSetIntroducingPoolToken extends Message { + /** + * @generated from field: pryzm.amm.v1.TemporalVirtualBalancePoolToken virtual_balance_token = 1; + */ + virtualBalanceToken?: TemporalVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetIntroducingPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "virtual_balance_token", kind: "message", T: TemporalVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetIntroducingPoolToken { + return new EventSetIntroducingPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetIntroducingPoolToken { + return new EventSetIntroducingPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetIntroducingPoolToken { + return new EventSetIntroducingPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventSetIntroducingPoolToken | PlainMessage | undefined, b: EventSetIntroducingPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetIntroducingPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveIntroducingPoolToken + */ +export class EventRemoveIntroducingPoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveIntroducingPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveIntroducingPoolToken { + return new EventRemoveIntroducingPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveIntroducingPoolToken { + return new EventRemoveIntroducingPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveIntroducingPoolToken { + return new EventRemoveIntroducingPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveIntroducingPoolToken | PlainMessage | undefined, b: EventRemoveIntroducingPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveIntroducingPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetExpiringPoolToken + */ +export class EventSetExpiringPoolToken extends Message { + /** + * @generated from field: pryzm.amm.v1.TemporalVirtualBalancePoolToken virtual_balance_token = 1; + */ + virtualBalanceToken?: TemporalVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetExpiringPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "virtual_balance_token", kind: "message", T: TemporalVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetExpiringPoolToken { + return new EventSetExpiringPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetExpiringPoolToken { + return new EventSetExpiringPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetExpiringPoolToken { + return new EventSetExpiringPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventSetExpiringPoolToken | PlainMessage | undefined, b: EventSetExpiringPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetExpiringPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveExpiringPoolToken + */ +export class EventRemoveExpiringPoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveExpiringPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveExpiringPoolToken { + return new EventRemoveExpiringPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveExpiringPoolToken { + return new EventRemoveExpiringPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveExpiringPoolToken { + return new EventRemoveExpiringPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveExpiringPoolToken | PlainMessage | undefined, b: EventRemoveExpiringPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveExpiringPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetYammPoolForAssetId + */ +export class EventSetYammPoolForAssetId extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetYammPoolForAssetId"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetYammPoolForAssetId { + return new EventSetYammPoolForAssetId().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetYammPoolForAssetId { + return new EventSetYammPoolForAssetId().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetYammPoolForAssetId { + return new EventSetYammPoolForAssetId().fromJsonString(jsonString, options); + } + + static equals(a: EventSetYammPoolForAssetId | PlainMessage | undefined, b: EventSetYammPoolForAssetId | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetYammPoolForAssetId, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetVaultPaused + */ +export class EventSetVaultPaused extends Message { + /** + * @generated from field: bool paused = 1; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetVaultPaused"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetVaultPaused { + return new EventSetVaultPaused().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetVaultPaused { + return new EventSetVaultPaused().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetVaultPaused { + return new EventSetVaultPaused().fromJsonString(jsonString, options); + } + + static equals(a: EventSetVaultPaused | PlainMessage | undefined, b: EventSetVaultPaused | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetVaultPaused, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventExecuteOrder + */ +export class EventExecuteOrder extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: string trade_amount = 2; + */ + tradeAmount = ""; + + /** + * @generated from field: string match_amount = 3; + */ + matchAmount = ""; + + /** + * @generated from field: string output_amount = 4; + */ + outputAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventExecuteOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "trade_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "output_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExecuteOrder { + return new EventExecuteOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExecuteOrder { + return new EventExecuteOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExecuteOrder { + return new EventExecuteOrder().fromJsonString(jsonString, options); + } + + static equals(a: EventExecuteOrder | PlainMessage | undefined, b: EventExecuteOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExecuteOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventExecuteOrdersForPair + */ +export class EventExecuteOrdersForPair extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 4; + */ + whitelistedRoute = false; + + /** + * @generated from field: string buy_price = 5; + */ + buyPrice = ""; + + /** + * @generated from field: string sell_price = 6; + */ + sellPrice = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.EventExecuteOrder buy_orders = 7; + */ + buyOrders: EventExecuteOrder[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.EventExecuteOrder sell_orders = 8; + */ + sellOrders: EventExecuteOrder[] = []; + + /** + * @generated from field: string buy_trade_amount = 9; + */ + buyTradeAmount = ""; + + /** + * @generated from field: string buy_match_amount = 10; + */ + buyMatchAmount = ""; + + /** + * @generated from field: string sell_trade_amount = 11; + */ + sellTradeAmount = ""; + + /** + * @generated from field: string sell_match_amount = 12; + */ + sellMatchAmount = ""; + + /** + * @generated from field: string sell_trade_output = 13; + */ + sellTradeOutput = ""; + + /** + * @generated from field: string buy_trade_output = 14; + */ + buyTradeOutput = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventExecuteOrdersForPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "buy_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "buy_orders", kind: "message", T: EventExecuteOrder, repeated: true }, + { no: 8, name: "sell_orders", kind: "message", T: EventExecuteOrder, repeated: true }, + { no: 9, name: "buy_trade_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "buy_match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "sell_trade_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "sell_match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "sell_trade_output", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "buy_trade_output", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExecuteOrdersForPair { + return new EventExecuteOrdersForPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExecuteOrdersForPair { + return new EventExecuteOrdersForPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExecuteOrdersForPair { + return new EventExecuteOrdersForPair().fromJsonString(jsonString, options); + } + + static equals(a: EventExecuteOrdersForPair | PlainMessage | undefined, b: EventExecuteOrdersForPair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExecuteOrdersForPair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventExecuteMatchProposal + */ +export class EventExecuteMatchProposal extends Message { + /** + * @generated from field: string proposer = 1; + */ + proposer = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.MatchedPairSummary pairs = 2; + */ + pairs: MatchedPairSummary[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin proposer_reward = 3; + */ + proposerReward: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventExecuteMatchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pairs", kind: "message", T: MatchedPairSummary, repeated: true }, + { no: 3, name: "proposer_reward", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExecuteMatchProposal { + return new EventExecuteMatchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExecuteMatchProposal { + return new EventExecuteMatchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExecuteMatchProposal { + return new EventExecuteMatchProposal().fromJsonString(jsonString, options); + } + + static equals(a: EventExecuteMatchProposal | PlainMessage | undefined, b: EventExecuteMatchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExecuteMatchProposal, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventExitPool + */ +export class EventExitPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.ExitSummary summary = 2; + */ + summary?: ExitSummary; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventExitPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "summary", kind: "message", T: ExitSummary }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExitPool { + return new EventExitPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExitPool { + return new EventExitPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExitPool { + return new EventExitPool().fromJsonString(jsonString, options); + } + + static equals(a: EventExitPool | PlainMessage | undefined, b: EventExitPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExitPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventJoinPool + */ +export class EventJoinPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.JoinSummary summary = 2; + */ + summary?: JoinSummary; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventJoinPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "summary", kind: "message", T: JoinSummary }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventJoinPool { + return new EventJoinPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventJoinPool { + return new EventJoinPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventJoinPool { + return new EventJoinPool().fromJsonString(jsonString, options); + } + + static equals(a: EventJoinPool | PlainMessage | undefined, b: EventJoinPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventJoinPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSwap + */ +export class EventSwap extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.SwapSummary summary = 2; + */ + summary?: SwapSummary; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "summary", kind: "message", T: SwapSummary }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSwap { + return new EventSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSwap { + return new EventSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSwap { + return new EventSwap().fromJsonString(jsonString, options); + } + + static equals(a: EventSwap | PlainMessage | undefined, b: EventSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSwap, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventExitPoolRequest + */ +export class EventExitPoolRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 3; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 4; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 5; + */ + protocolFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 6; + */ + swapFee: Coin[] = []; + + /** + * @generated from field: pryzm.amm.v1.ExitType exit_type = 7; + */ + exitType = ExitType.GIVEN_TOKENS_IN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventExitPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_in", kind: "message", T: Coin }, + { no: 4, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "protocol_fee", kind: "message", T: Coin }, + { no: 6, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "exit_type", kind: "enum", T: proto3.getEnumType(ExitType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExitPoolRequest { + return new EventExitPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExitPoolRequest { + return new EventExitPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExitPoolRequest { + return new EventExitPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: EventExitPoolRequest | PlainMessage | undefined, b: EventExitPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExitPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventJoinPoolRequest + */ +export class EventJoinPoolRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 3; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 4; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 5; + */ + protocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 6; + */ + swapFee: Coin[] = []; + + /** + * @generated from field: pryzm.amm.v1.JoinType join_type = 7; + */ + joinType = JoinType.GIVEN_TOKENS_IN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventJoinPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_out", kind: "message", T: Coin }, + { no: 4, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 6, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "join_type", kind: "enum", T: proto3.getEnumType(JoinType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventJoinPoolRequest { + return new EventJoinPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventJoinPoolRequest { + return new EventJoinPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventJoinPoolRequest { + return new EventJoinPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: EventJoinPoolRequest | PlainMessage | undefined, b: EventJoinPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EventJoinPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSingleSwapRequest + */ +export class EventSingleSwapRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 3; + */ + amountOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 4; + */ + amountIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 5; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 6; + */ + swapFee?: Coin; + + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 7; + */ + swapType = SwapType.GIVEN_IN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSingleSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount_out", kind: "message", T: Coin }, + { no: 4, name: "amount_in", kind: "message", T: Coin }, + { no: 5, name: "protocol_fee", kind: "message", T: Coin }, + { no: 6, name: "swap_fee", kind: "message", T: Coin }, + { no: 7, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSingleSwapRequest { + return new EventSingleSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSingleSwapRequest { + return new EventSingleSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSingleSwapRequest { + return new EventSingleSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: EventSingleSwapRequest | PlainMessage | undefined, b: EventSingleSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSingleSwapRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventBatchSwapRequest + */ +export class EventBatchSwapRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.SwapStep steps = 2; + */ + steps: SwapStep[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 3; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 4; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_protocol_fee = 5; + */ + swapProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin join_exit_protocol_fee = 6; + */ + joinExitProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 7; + */ + swapFee: Coin[] = []; + + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 8; + */ + swapType = SwapType.GIVEN_IN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventBatchSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "steps", kind: "message", T: SwapStep, repeated: true }, + { no: 3, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 6, name: "join_exit_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 7, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + { no: 8, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchSwapRequest { + return new EventBatchSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchSwapRequest { + return new EventBatchSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBatchSwapRequest { + return new EventBatchSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: EventBatchSwapRequest | PlainMessage | undefined, b: EventBatchSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBatchSwapRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventYAssetSwapRefractorAction + */ +export class EventYAssetSwapRefractorAction extends Message { + /** + * @generated from field: string y_amount = 1; + */ + yAmount = ""; + + /** + * @generated from field: string c_amount_after_fee = 2; + */ + cAmountAfterFee = ""; + + /** + * @generated from field: string fee_amount = 3; + */ + feeAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventYAssetSwapRefractorAction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "y_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "c_amount_after_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fee_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYAssetSwapRefractorAction { + return new EventYAssetSwapRefractorAction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYAssetSwapRefractorAction { + return new EventYAssetSwapRefractorAction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYAssetSwapRefractorAction { + return new EventYAssetSwapRefractorAction().fromJsonString(jsonString, options); + } + + static equals(a: EventYAssetSwapRefractorAction | PlainMessage | undefined, b: EventYAssetSwapRefractorAction | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYAssetSwapRefractorAction, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventYAssetSwap + */ +export class EventYAssetSwap extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.SwapSummary summary = 2; + */ + summary?: SwapSummary; + + /** + * @generated from field: pryzm.amm.v1.EventYAssetSwapRefractorAction refractor_action = 3; + */ + refractorAction?: EventYAssetSwapRefractorAction; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 4; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventYAssetSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "summary", kind: "message", T: SwapSummary }, + { no: 3, name: "refractor_action", kind: "message", T: EventYAssetSwapRefractorAction }, + { no: 4, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYAssetSwap { + return new EventYAssetSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYAssetSwap { + return new EventYAssetSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYAssetSwap { + return new EventYAssetSwap().fromJsonString(jsonString, options); + } + + static equals(a: EventYAssetSwap | PlainMessage | undefined, b: EventYAssetSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYAssetSwap, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetOraclePricePair + */ +export class EventSetOraclePricePair extends Message { + /** + * @generated from field: pryzm.amm.v1.OraclePricePair oracle_price_pair = 1; + */ + oraclePricePair?: OraclePricePair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetOraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "oracle_price_pair", kind: "message", T: OraclePricePair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetOraclePricePair { + return new EventSetOraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetOraclePricePair { + return new EventSetOraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetOraclePricePair { + return new EventSetOraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: EventSetOraclePricePair | PlainMessage | undefined, b: EventSetOraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetOraclePricePair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemoveOraclePricePair + */ +export class EventRemoveOraclePricePair extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemoveOraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveOraclePricePair { + return new EventRemoveOraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveOraclePricePair { + return new EventRemoveOraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveOraclePricePair { + return new EventRemoveOraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveOraclePricePair | PlainMessage | undefined, b: EventRemoveOraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveOraclePricePair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetPendingTokenIntroduction + */ +export class EventSetPendingTokenIntroduction extends Message { + /** + * @generated from field: pryzm.amm.v1.PendingTokenIntroduction pending_token_introduction = 1; + */ + pendingTokenIntroduction?: PendingTokenIntroduction; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetPendingTokenIntroduction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_token_introduction", kind: "message", T: PendingTokenIntroduction }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPendingTokenIntroduction { + return new EventSetPendingTokenIntroduction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPendingTokenIntroduction { + return new EventSetPendingTokenIntroduction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPendingTokenIntroduction { + return new EventSetPendingTokenIntroduction().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPendingTokenIntroduction | PlainMessage | undefined, b: EventSetPendingTokenIntroduction | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPendingTokenIntroduction, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemovePendingTokenIntroduction + */ +export class EventRemovePendingTokenIntroduction extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: uint64 target_pool_id = 2; + */ + targetPoolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemovePendingTokenIntroduction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemovePendingTokenIntroduction { + return new EventRemovePendingTokenIntroduction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemovePendingTokenIntroduction { + return new EventRemovePendingTokenIntroduction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemovePendingTokenIntroduction { + return new EventRemovePendingTokenIntroduction().fromJsonString(jsonString, options); + } + + static equals(a: EventRemovePendingTokenIntroduction | PlainMessage | undefined, b: EventRemovePendingTokenIntroduction | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemovePendingTokenIntroduction, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.amm.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventSetPermanentVirtualBalancePoolToken + */ +export class EventSetPermanentVirtualBalancePoolToken extends Message { + /** + * @generated from field: pryzm.amm.v1.PermanentVirtualBalancePoolToken virtual_balance_token = 1; + */ + virtualBalanceToken?: PermanentVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventSetPermanentVirtualBalancePoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "virtual_balance_token", kind: "message", T: PermanentVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPermanentVirtualBalancePoolToken { + return new EventSetPermanentVirtualBalancePoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPermanentVirtualBalancePoolToken { + return new EventSetPermanentVirtualBalancePoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPermanentVirtualBalancePoolToken { + return new EventSetPermanentVirtualBalancePoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPermanentVirtualBalancePoolToken | PlainMessage | undefined, b: EventSetPermanentVirtualBalancePoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPermanentVirtualBalancePoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.EventRemovePermanentVirtualBalancePoolToken + */ +export class EventRemovePermanentVirtualBalancePoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.EventRemovePermanentVirtualBalancePoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemovePermanentVirtualBalancePoolToken { + return new EventRemovePermanentVirtualBalancePoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemovePermanentVirtualBalancePoolToken { + return new EventRemovePermanentVirtualBalancePoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemovePermanentVirtualBalancePoolToken { + return new EventRemovePermanentVirtualBalancePoolToken().fromJsonString(jsonString, options); + } + + static equals(a: EventRemovePermanentVirtualBalancePoolToken | PlainMessage | undefined, b: EventRemovePermanentVirtualBalancePoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemovePermanentVirtualBalancePoolToken, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/genesis_pb.ts b/src/protobufs/pryzm/amm/v1/genesis_pb.ts new file mode 100644 index 00000000..62f601af --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/genesis_pb.ts @@ -0,0 +1,254 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/genesis.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Pool } from "./pool_pb.js"; +import { PoolToken } from "./pool_token_pb.js"; +import { Params } from "./params_pb.js"; +import { WeightedPoolProperties } from "./weighted_token_pb.js"; +import { PermanentVirtualBalancePoolToken, TemporalVirtualBalancePoolToken } from "./virtual_balance_pool_token_pb.js"; +import { YammConfiguration } from "./yamm_configuration_pb.js"; +import { WhitelistedRoute } from "./whitelisted_route_pb.js"; +import { DisabledOrderPair, Order } from "./order_pb.js"; +import { ScheduleOrder } from "./schedule_order_pb.js"; +import { OraclePricePair } from "./oracle_price_pair_pb.js"; +import { PendingTokenIntroduction } from "./pending_token_introduction_pb.js"; + +/** + * @generated from message pryzm.amm.v1.GenesisPoolData + */ +export class GenesisPoolData extends Message { + /** + * @generated from field: pryzm.amm.v1.Pool pool = 1; + */ + pool?: Pool; + + /** + * @generated from field: string total_lp_token_supply = 2; + */ + totalLpTokenSupply = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.PoolToken pool_token_list = 3; + */ + poolTokenList: PoolToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.GenesisPoolData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + { no: 2, name: "total_lp_token_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_token_list", kind: "message", T: PoolToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisPoolData { + return new GenesisPoolData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisPoolData { + return new GenesisPoolData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisPoolData { + return new GenesisPoolData().fromJsonString(jsonString, options); + } + + static equals(a: GenesisPoolData | PlainMessage | undefined, b: GenesisPoolData | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisPoolData, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.YammPoolAssetId + */ +export class YammPoolAssetId extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.YammPoolAssetId"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): YammPoolAssetId { + return new YammPoolAssetId().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): YammPoolAssetId { + return new YammPoolAssetId().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): YammPoolAssetId { + return new YammPoolAssetId().fromJsonString(jsonString, options); + } + + static equals(a: YammPoolAssetId | PlainMessage | undefined, b: YammPoolAssetId | PlainMessage | undefined): boolean { + return proto3.util.equals(YammPoolAssetId, a, b); + } +} + +/** + * GenesisState defines the amm module's genesis state. + * + * @generated from message pryzm.amm.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.amm.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated pryzm.amm.v1.GenesisPoolData pool_list = 2; + */ + poolList: GenesisPoolData[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.WeightedPoolProperties weighted_pool_properties_list = 3; + */ + weightedPoolPropertiesList: WeightedPoolProperties[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.YammPoolAssetId yamm_pool_asset_id_list = 4; + */ + yammPoolAssetIdList: YammPoolAssetId[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.TemporalVirtualBalancePoolToken introducing_pool_token_list = 5; + */ + introducingPoolTokenList: TemporalVirtualBalancePoolToken[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.TemporalVirtualBalancePoolToken expiring_pool_token_list = 6; + */ + expiringPoolTokenList: TemporalVirtualBalancePoolToken[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.YammConfiguration yamm_configuration_list = 7; + */ + yammConfigurationList: YammConfiguration[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.WhitelistedRoute whitelisted_route_list = 8; + */ + whitelistedRouteList: WhitelistedRoute[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.Order order_list = 9; + */ + orderList: Order[] = []; + + /** + * @generated from field: uint64 order_count = 10; + */ + orderCount = protoInt64.zero; + + /** + * @generated from field: repeated uint64 executable_order_list = 11; + */ + executableOrderList: bigint[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.ScheduleOrder schedule_order_list = 12; + */ + scheduleOrderList: ScheduleOrder[] = []; + + /** + * @generated from field: bool vault_paused = 13; + */ + vaultPaused = false; + + /** + * @generated from field: repeated pryzm.amm.v1.OraclePricePair oracle_price_pair_list = 14; + */ + oraclePricePairList: OraclePricePair[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.PendingTokenIntroduction pending_token_introduction_list = 15; + */ + pendingTokenIntroductionList: PendingTokenIntroduction[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.DisabledOrderPair disabled_order_pair_list = 16; + */ + disabledOrderPairList: DisabledOrderPair[] = []; + + /** + * @generated from field: bytes next_executable_order_key = 17; + */ + nextExecutableOrderKey = new Uint8Array(0); + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated pryzm.amm.v1.PermanentVirtualBalancePoolToken permanent_virtual_balance_pool_token_list = 18; + */ + permanentVirtualBalancePoolTokenList: PermanentVirtualBalancePoolToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_list", kind: "message", T: GenesisPoolData, repeated: true }, + { no: 3, name: "weighted_pool_properties_list", kind: "message", T: WeightedPoolProperties, repeated: true }, + { no: 4, name: "yamm_pool_asset_id_list", kind: "message", T: YammPoolAssetId, repeated: true }, + { no: 5, name: "introducing_pool_token_list", kind: "message", T: TemporalVirtualBalancePoolToken, repeated: true }, + { no: 6, name: "expiring_pool_token_list", kind: "message", T: TemporalVirtualBalancePoolToken, repeated: true }, + { no: 7, name: "yamm_configuration_list", kind: "message", T: YammConfiguration, repeated: true }, + { no: 8, name: "whitelisted_route_list", kind: "message", T: WhitelistedRoute, repeated: true }, + { no: 9, name: "order_list", kind: "message", T: Order, repeated: true }, + { no: 10, name: "order_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "executable_order_list", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 12, name: "schedule_order_list", kind: "message", T: ScheduleOrder, repeated: true }, + { no: 13, name: "vault_paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "oracle_price_pair_list", kind: "message", T: OraclePricePair, repeated: true }, + { no: 15, name: "pending_token_introduction_list", kind: "message", T: PendingTokenIntroduction, repeated: true }, + { no: 16, name: "disabled_order_pair_list", kind: "message", T: DisabledOrderPair, repeated: true }, + { no: 17, name: "next_executable_order_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 18, name: "permanent_virtual_balance_pool_token_list", kind: "message", T: PermanentVirtualBalancePoolToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/operations_pb.ts b/src/protobufs/pryzm/amm/v1/operations_pb.ts new file mode 100644 index 00000000..fe14ab19 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/operations_pb.ts @@ -0,0 +1,393 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/operations.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { TokenAmount } from "./pool_token_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum pryzm.amm.v1.SwapType + */ +export enum SwapType { + /** + * @generated from enum value: SWAP_TYPE_GIVEN_IN = 0; + */ + GIVEN_IN = 0, + + /** + * @generated from enum value: SWAP_TYPE_GIVEN_OUT = 1; + */ + GIVEN_OUT = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(SwapType) +proto3.util.setEnumType(SwapType, "pryzm.amm.v1.SwapType", [ + { no: 0, name: "SWAP_TYPE_GIVEN_IN" }, + { no: 1, name: "SWAP_TYPE_GIVEN_OUT" }, +]); + +/** + * @generated from enum pryzm.amm.v1.JoinType + */ +export enum JoinType { + /** + * @generated from enum value: JOIN_TYPE_GIVEN_TOKENS_IN = 0; + */ + GIVEN_TOKENS_IN = 0, + + /** + * @generated from enum value: JOIN_TYPE_TOKEN_GIVEN_LPT_OUT = 1; + */ + TOKEN_GIVEN_LPT_OUT = 1, + + /** + * @generated from enum value: JOIN_TYPE_ALL_TOKENS_GIVEN_LPT_OUT = 2; + */ + ALL_TOKENS_GIVEN_LPT_OUT = 2, + + /** + * @generated from enum value: JOIN_TYPE_INITIALIZE_POOL = 3; + */ + INITIALIZE_POOL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(JoinType) +proto3.util.setEnumType(JoinType, "pryzm.amm.v1.JoinType", [ + { no: 0, name: "JOIN_TYPE_GIVEN_TOKENS_IN" }, + { no: 1, name: "JOIN_TYPE_TOKEN_GIVEN_LPT_OUT" }, + { no: 2, name: "JOIN_TYPE_ALL_TOKENS_GIVEN_LPT_OUT" }, + { no: 3, name: "JOIN_TYPE_INITIALIZE_POOL" }, +]); + +/** + * @generated from enum pryzm.amm.v1.ExitType + */ +export enum ExitType { + /** + * @generated from enum value: EXIT_TYPE_GIVEN_TOKENS_IN = 0; + */ + GIVEN_TOKENS_IN = 0, + + /** + * @generated from enum value: EXIT_TYPE_TOKEN_GIVEN_LPT_OUT = 1; + */ + TOKEN_GIVEN_LPT_OUT = 1, + + /** + * @generated from enum value: EXIT_TYPE_ALL_TOKENS_GIVEN_LPT_OUT = 2; + */ + ALL_TOKENS_GIVEN_LPT_OUT = 2, + + /** + * @generated from enum value: EXIT_TYPE_ALL_TOKENS_RECOVERY_MODE = 3; + */ + ALL_TOKENS_RECOVERY_MODE = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ExitType) +proto3.util.setEnumType(ExitType, "pryzm.amm.v1.ExitType", [ + { no: 0, name: "EXIT_TYPE_GIVEN_TOKENS_IN" }, + { no: 1, name: "EXIT_TYPE_TOKEN_GIVEN_LPT_OUT" }, + { no: 2, name: "EXIT_TYPE_ALL_TOKENS_GIVEN_LPT_OUT" }, + { no: 3, name: "EXIT_TYPE_ALL_TOKENS_RECOVERY_MODE" }, +]); + +/** + * @generated from message pryzm.amm.v1.Swap + */ +export class Swap extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 3; + */ + swapType = SwapType.GIVEN_IN; + + /** + * @generated from field: string token_in = 4; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 5; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.Swap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + { no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Swap { + return new Swap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Swap { + return new Swap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Swap { + return new Swap().fromJsonString(jsonString, options); + } + + static equals(a: Swap | PlainMessage | undefined, b: Swap | PlainMessage | undefined): boolean { + return proto3.util.equals(Swap, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.SwapStep + */ +export class SwapStep extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string token_in = 4; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 5; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.SwapStep"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapStep { + return new SwapStep().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapStep { + return new SwapStep().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapStep { + return new SwapStep().fromJsonString(jsonString, options); + } + + static equals(a: SwapStep | PlainMessage | undefined, b: SwapStep | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapStep, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.SwapSummary + */ +export class SwapSummary extends Message { + /** + * @generated from field: pryzm.amm.v1.TokenAmount token_in = 1; + */ + tokenIn?: TokenAmount; + + /** + * @generated from field: pryzm.amm.v1.TokenAmount token_out = 2; + */ + tokenOut?: TokenAmount; + + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 3; + */ + swapType = SwapType.GIVEN_IN; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 4; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.SwapSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_in", kind: "message", T: TokenAmount }, + { no: 2, name: "token_out", kind: "message", T: TokenAmount }, + { no: 3, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + { no: 4, name: "protocol_fee", kind: "message", T: Coin }, + { no: 5, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapSummary { + return new SwapSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapSummary { + return new SwapSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapSummary { + return new SwapSummary().fromJsonString(jsonString, options); + } + + static equals(a: SwapSummary | PlainMessage | undefined, b: SwapSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapSummary, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.JoinSummary + */ +export class JoinSummary extends Message { + /** + * @generated from field: pryzm.amm.v1.TokenAmount lp_token = 1; + */ + lpToken?: TokenAmount; + + /** + * @generated from field: repeated pryzm.amm.v1.TokenAmount tokens_in = 2; + */ + tokensIn: TokenAmount[] = []; + + /** + * @generated from field: pryzm.amm.v1.JoinType join_type = 3; + */ + joinType = JoinType.GIVEN_TOKENS_IN; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 4; + */ + protocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.JoinSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lp_token", kind: "message", T: TokenAmount }, + { no: 2, name: "tokens_in", kind: "message", T: TokenAmount, repeated: true }, + { no: 3, name: "join_type", kind: "enum", T: proto3.getEnumType(JoinType) }, + { no: 4, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): JoinSummary { + return new JoinSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): JoinSummary { + return new JoinSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): JoinSummary { + return new JoinSummary().fromJsonString(jsonString, options); + } + + static equals(a: JoinSummary | PlainMessage | undefined, b: JoinSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(JoinSummary, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.ExitSummary + */ +export class ExitSummary extends Message { + /** + * @generated from field: pryzm.amm.v1.TokenAmount lp_token = 1; + */ + lpToken?: TokenAmount; + + /** + * @generated from field: repeated pryzm.amm.v1.TokenAmount tokens_out = 2; + */ + tokensOut: TokenAmount[] = []; + + /** + * @generated from field: pryzm.amm.v1.ExitType exit_type = 3; + */ + exitType = ExitType.GIVEN_TOKENS_IN; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 4; + */ + protocolFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.ExitSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lp_token", kind: "message", T: TokenAmount }, + { no: 2, name: "tokens_out", kind: "message", T: TokenAmount, repeated: true }, + { no: 3, name: "exit_type", kind: "enum", T: proto3.getEnumType(ExitType) }, + { no: 4, name: "protocol_fee", kind: "message", T: Coin }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExitSummary { + return new ExitSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExitSummary { + return new ExitSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExitSummary { + return new ExitSummary().fromJsonString(jsonString, options); + } + + static equals(a: ExitSummary | PlainMessage | undefined, b: ExitSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(ExitSummary, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/oracle_payload_pb.ts b/src/protobufs/pryzm/amm/v1/oracle_payload_pb.ts new file mode 100644 index 00000000..922f11dd --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/oracle_payload_pb.ts @@ -0,0 +1,110 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/oracle_payload.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; +import { Pair } from "./oracle_price_pair_pb.js"; + +/** + * @generated from message pryzm.amm.v1.OraclePayloadDataSourceBlockHeight + */ +export class OraclePayloadDataSourceBlockHeight extends Message { + /** + * @generated from field: string data_source = 1; + */ + dataSource = ""; + + /** + * @generated from field: ibc.core.client.v1.Height block_height = 2; + */ + blockHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.OraclePayloadDataSourceBlockHeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data_source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePayloadDataSourceBlockHeight { + return new OraclePayloadDataSourceBlockHeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePayloadDataSourceBlockHeight { + return new OraclePayloadDataSourceBlockHeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePayloadDataSourceBlockHeight { + return new OraclePayloadDataSourceBlockHeight().fromJsonString(jsonString, options); + } + + static equals(a: OraclePayloadDataSourceBlockHeight | PlainMessage | undefined, b: OraclePayloadDataSourceBlockHeight | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePayloadDataSourceBlockHeight, a, b); + } +} + +/** + * OraclePayload defines the structure of oracle vote payload + * + * @generated from message pryzm.amm.v1.OraclePayload + */ +export class OraclePayload extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.OraclePayloadDataSourceBlockHeight data_source_block_heights = 1; + */ + dataSourceBlockHeights: OraclePayloadDataSourceBlockHeight[] = []; + + /** + * @generated from field: string price = 2; + */ + price = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.Pair pairs = 3; + */ + pairs: Pair[] = []; + + /** + * @generated from field: string quote_token = 4; + */ + quoteToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.OraclePayload"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data_source_block_heights", kind: "message", T: OraclePayloadDataSourceBlockHeight, repeated: true }, + { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pairs", kind: "message", T: Pair, repeated: true }, + { no: 4, name: "quote_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePayload { + return new OraclePayload().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePayload { + return new OraclePayload().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePayload { + return new OraclePayload().fromJsonString(jsonString, options); + } + + static equals(a: OraclePayload | PlainMessage | undefined, b: OraclePayload | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePayload, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/oracle_price_pair_pb.ts b/src/protobufs/pryzm/amm/v1/oracle_price_pair_pb.ts new file mode 100644 index 00000000..c97d02d8 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/oracle_price_pair_pb.ts @@ -0,0 +1,167 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/oracle_price_pair.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * TwapAlgorithm enumerates the valid algorithms for twap_algorithm. + * + * @generated from enum pryzm.amm.v1.TwapAlgorithm + */ +export enum TwapAlgorithm { + /** + * @generated from enum value: TWAP_ALGORITHM_ARITHMETIC = 0; + */ + ARITHMETIC = 0, + + /** + * @generated from enum value: TWAP_ALGORITHM_GEOMETRIC = 1; + */ + GEOMETRIC = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(TwapAlgorithm) +proto3.util.setEnumType(TwapAlgorithm, "pryzm.amm.v1.TwapAlgorithm", [ + { no: 0, name: "TWAP_ALGORITHM_ARITHMETIC" }, + { no: 1, name: "TWAP_ALGORITHM_GEOMETRIC" }, +]); + +/** + * @generated from message pryzm.amm.v1.Pair + */ +export class Pair extends Message { + /** + * @generated from field: string base = 1; + */ + base = ""; + + /** + * @generated from field: string quote = 2; + */ + quote = ""; + + /** + * refers to the data source pool (e.g. osmosis gamm pool) + * + * @generated from field: string pool_id = 3; + */ + poolId = ""; + + /** + * @generated from field: string data_source = 4; + */ + dataSource = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.Pair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "data_source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pair { + return new Pair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pair { + return new Pair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pair { + return new Pair().fromJsonString(jsonString, options); + } + + static equals(a: Pair | PlainMessage | undefined, b: Pair | PlainMessage | undefined): boolean { + return proto3.util.equals(Pair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.OraclePricePair + */ +export class OraclePricePair extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * this is the token denom which should exist in the target weighted pool in pryzm chain + * the reason for adding this property and not using the pairs, is that the token denom in various chains might be different + * for example usdc token might have contract or ibc denom on different chains with different channel and ids + * + * @generated from field: string quote_token = 2; + */ + quoteToken = ""; + + /** + * @generated from field: uint64 twap_duration_millis = 3; + */ + twapDurationMillis = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.TwapAlgorithm twap_algorithm = 4; + */ + twapAlgorithm = TwapAlgorithm.ARITHMETIC; + + /** + * @generated from field: bool disabled = 5; + */ + disabled = false; + + /** + * @generated from field: repeated pryzm.amm.v1.Pair pairs = 6; + */ + pairs: Pair[] = []; + + /** + * this is the denom of the base token on this chain + * should be ibc denom for most cases + * + * @generated from field: string base_denom = 7; + */ + baseDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.OraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "quote_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "twap_duration_millis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "twap_algorithm", kind: "enum", T: proto3.getEnumType(TwapAlgorithm) }, + { no: 5, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "pairs", kind: "message", T: Pair, repeated: true }, + { no: 7, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePricePair { + return new OraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePricePair { + return new OraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePricePair { + return new OraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: OraclePricePair | PlainMessage | undefined, b: OraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePricePair, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/order_pb.ts b/src/protobufs/pryzm/amm/v1/order_pb.ts new file mode 100644 index 00000000..d5264ccf --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/order_pb.ts @@ -0,0 +1,172 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/order.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.Order + */ +export class Order extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 4; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 5; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 6; + */ + whitelistedRoute = false; + + /** + * @generated from field: bool allow_matching = 7; + */ + allowMatching = false; + + /** + * @generated from field: string amount_per_step = 8; + */ + amountPerStep = ""; + + /** + * @generated from field: string remaining_amount = 9; + */ + remainingAmount = ""; + + /** + * @generated from field: string deposited_amount = 10; + */ + depositedAmount = ""; + + /** + * @generated from field: int64 min_millis_interval = 11; + */ + minMillisInterval = protoInt64.zero; + + /** + * @generated from field: string max_step_spot_price = 12; + */ + maxStepSpotPrice = ""; + + /** + * @generated from field: string max_matching_spot_price = 13; + */ + maxMatchingSpotPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.Order"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "allow_matching", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "amount_per_step", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "remaining_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "deposited_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "min_millis_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 12, name: "max_step_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "max_matching_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Order { + return new Order().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Order { + return new Order().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Order { + return new Order().fromJsonString(jsonString, options); + } + + static equals(a: Order | PlainMessage | undefined, b: Order | PlainMessage | undefined): boolean { + return proto3.util.equals(Order, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.DisabledOrderPair + */ +export class DisabledOrderPair extends Message { + /** + * @generated from field: bool whitelisted_route = 1; + */ + whitelistedRoute = false; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.DisabledOrderPair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DisabledOrderPair { + return new DisabledOrderPair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DisabledOrderPair { + return new DisabledOrderPair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DisabledOrderPair { + return new DisabledOrderPair().fromJsonString(jsonString, options); + } + + static equals(a: DisabledOrderPair | PlainMessage | undefined, b: DisabledOrderPair | PlainMessage | undefined): boolean { + return proto3.util.equals(DisabledOrderPair, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/pair_match_proposal_pb.ts b/src/protobufs/pryzm/amm/v1/pair_match_proposal_pb.ts new file mode 100644 index 00000000..91d89289 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/pair_match_proposal_pb.ts @@ -0,0 +1,224 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/pair_match_proposal.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.PairMatchProposal + */ +export class PairMatchProposal extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool whitelisted_route = 2; + */ + whitelistedRoute = false; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * @generated from field: repeated uint64 buy_orders = 5; + */ + buyOrders: bigint[] = []; + + /** + * @generated from field: repeated uint64 sell_orders = 6; + */ + sellOrders: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.PairMatchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "buy_orders", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 6, name: "sell_orders", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromJsonString(jsonString, options); + } + + static equals(a: PairMatchProposal | PlainMessage | undefined, b: PairMatchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(PairMatchProposal, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MatchedOrderSummary + */ +export class MatchedOrderSummary extends Message { + /** + * Note that if virtual=true, order_id is set to zero and should be ignored, + * otherwise we still might have order_id=0 referring to an actual order + * + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + /** + * @generated from field: string match_amount = 3; + */ + matchAmount = ""; + + /** + * @generated from field: string output_amount = 4; + */ + outputAmount = ""; + + /** + * @generated from field: bool virtual = 5; + */ + virtual = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MatchedOrderSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "output_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "virtual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MatchedOrderSummary { + return new MatchedOrderSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MatchedOrderSummary { + return new MatchedOrderSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MatchedOrderSummary { + return new MatchedOrderSummary().fromJsonString(jsonString, options); + } + + static equals(a: MatchedOrderSummary | PlainMessage | undefined, b: MatchedOrderSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(MatchedOrderSummary, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MatchedPairSummary + */ +export class MatchedPairSummary extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 4; + */ + whitelistedRoute = false; + + /** + * @generated from field: string buy_price = 5; + */ + buyPrice = ""; + + /** + * @generated from field: string sell_price = 6; + */ + sellPrice = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.MatchedOrderSummary buy_orders = 7; + */ + buyOrders: MatchedOrderSummary[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.MatchedOrderSummary sell_orders = 8; + */ + sellOrders: MatchedOrderSummary[] = []; + + /** + * @generated from field: string buy_match_amount = 9; + */ + buyMatchAmount = ""; + + /** + * @generated from field: string sell_match_amount = 10; + */ + sellMatchAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MatchedPairSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "buy_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "sell_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "buy_orders", kind: "message", T: MatchedOrderSummary, repeated: true }, + { no: 8, name: "sell_orders", kind: "message", T: MatchedOrderSummary, repeated: true }, + { no: 9, name: "buy_match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "sell_match_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MatchedPairSummary { + return new MatchedPairSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MatchedPairSummary { + return new MatchedPairSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MatchedPairSummary { + return new MatchedPairSummary().fromJsonString(jsonString, options); + } + + static equals(a: MatchedPairSummary | PlainMessage | undefined, b: MatchedPairSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(MatchedPairSummary, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/params_pb.ts b/src/protobufs/pryzm/amm/v1/params_pb.ts new file mode 100644 index 00000000..95e795b2 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/params_pb.ts @@ -0,0 +1,564 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/params.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.OrderParameters + */ +export class OrderParameters extends Message { + /** + * @generated from field: string step_matching_fee_ratio = 1; + */ + stepMatchingFeeRatio = ""; + + /** + * @generated from field: string step_swap_fee_ratio = 2; + */ + stepSwapFeeRatio = ""; + + /** + * @generated from field: string matching_protocol_fee_ratio = 3; + */ + matchingProtocolFeeRatio = ""; + + /** + * @generated from field: string matching_solver_fee_ratio = 4; + */ + matchingSolverFeeRatio = ""; + + /** + * @generated from field: int32 max_orders_per_block = 5; + */ + maxOrdersPerBlock = 0; + + /** + * @generated from field: int32 max_schedule_per_block = 6; + */ + maxSchedulePerBlock = 0; + + /** + * @generated from field: string max_exec_order_trade_ratio = 7; + */ + maxExecOrderTradeRatio = ""; + + /** + * @generated from field: string max_order_step_ratio = 8; + */ + maxOrderStepRatio = ""; + + /** + * @generated from field: string min_order_step_ratio = 9; + */ + minOrderStepRatio = ""; + + /** + * @generated from field: int64 min_order_step_millis_interval = 10; + */ + minOrderStepMillisInterval = protoInt64.zero; + + /** + * @generated from field: int64 max_order_step_millis_interval = 11; + */ + maxOrderStepMillisInterval = protoInt64.zero; + + /** + * @generated from field: int32 max_pairs_per_block = 12; + */ + maxPairsPerBlock = 0; + + /** + * @generated from field: int32 max_orders_per_pair = 13; + */ + maxOrdersPerPair = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.OrderParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "step_matching_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "step_swap_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "matching_protocol_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "matching_solver_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_orders_per_block", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 6, name: "max_schedule_per_block", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 7, name: "max_exec_order_trade_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "max_order_step_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "min_order_step_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "min_order_step_millis_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 11, name: "max_order_step_millis_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 12, name: "max_pairs_per_block", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 13, name: "max_orders_per_pair", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OrderParameters { + return new OrderParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OrderParameters { + return new OrderParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OrderParameters { + return new OrderParameters().fromJsonString(jsonString, options); + } + + static equals(a: OrderParameters | PlainMessage | undefined, b: OrderParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(OrderParameters, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.YammParameters + */ +export class YammParameters extends Message { + /** + * @generated from field: string lambda = 1; + */ + lambda = ""; + + /** + * duration (milliseconds) for virtual balance when adding new pAssets to yamm pools + * + * @generated from field: int64 maturity_introduction_interval_millis = 2; + */ + maturityIntroductionIntervalMillis = protoInt64.zero; + + /** + * @generated from field: int64 maturity_expiration_interval_millis = 3; + */ + maturityExpirationIntervalMillis = protoInt64.zero; + + /** + * @generated from field: string introduction_virtual_balance_scaler = 4; + */ + introductionVirtualBalanceScaler = ""; + + /** + * @generated from field: string expiration_virtual_balance_scaler = 5; + */ + expirationVirtualBalanceScaler = ""; + + /** + * @generated from field: string buy_y_given_in_loan_fee_ratio = 6; + */ + buyYGivenInLoanFeeRatio = ""; + + /** + * @generated from field: string sell_y_given_out_fee_ratio = 7; + */ + sellYGivenOutFeeRatio = ""; + + /** + * @generated from field: string max_alpha = 8; + */ + maxAlpha = ""; + + /** + * this will be set to newly created yamm pools + * if not empty, only these addresses can initialize the pools + * + * @generated from field: repeated string default_initialization_allow_list = 9; + */ + defaultInitializationAllowList: string[] = []; + + /** + * @generated from field: string avg_monthly_yield_rate = 10; + */ + avgMonthlyYieldRate = ""; + + /** + * @generated from field: string yield_fee_scaler = 11; + */ + yieldFeeScaler = ""; + + /** + * this will be set to newly created yamm pools + * + * @generated from field: repeated string default_admins = 12; + */ + defaultAdmins: string[] = []; + + /** + * this will be set to newly created yamm pools + * + * @generated from field: repeated string default_pause_allow_list = 13; + */ + defaultPauseAllowList: string[] = []; + + /** + * this will be set to newly created yamm pools + * + * @generated from field: int64 default_pause_window_duration_millis = 14; + */ + defaultPauseWindowDurationMillis = protoInt64.zero; + + /** + * this will be set to newly created yamm pools + * + * @generated from field: int64 default_pause_buffer_duration_millis = 15; + */ + defaultPauseBufferDurationMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.YammParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lambda", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "maturity_introduction_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "maturity_expiration_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "introduction_virtual_balance_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "expiration_virtual_balance_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "buy_y_given_in_loan_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "sell_y_given_out_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "max_alpha", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "default_initialization_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "avg_monthly_yield_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "yield_fee_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "default_admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 13, name: "default_pause_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 14, name: "default_pause_window_duration_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 15, name: "default_pause_buffer_duration_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): YammParameters { + return new YammParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): YammParameters { + return new YammParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): YammParameters { + return new YammParameters().fromJsonString(jsonString, options); + } + + static equals(a: YammParameters | PlainMessage | undefined, b: YammParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(YammParameters, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.GeneralPoolParameters + */ +export class GeneralPoolParameters extends Message { + /** + * @generated from field: bool allow_public_pool_creation = 1; + */ + allowPublicPoolCreation = false; + + /** + * @generated from field: string default_swap_fee_ratio = 2; + */ + defaultSwapFeeRatio = ""; + + /** + * @generated from field: string swap_protocol_fee_ratio = 3; + */ + swapProtocolFeeRatio = ""; + + /** + * @generated from field: string join_exit_protocol_fee_ratio = 4; + */ + joinExitProtocolFeeRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.GeneralPoolParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allow_public_pool_creation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "default_swap_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "swap_protocol_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "join_exit_protocol_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GeneralPoolParameters { + return new GeneralPoolParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GeneralPoolParameters { + return new GeneralPoolParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GeneralPoolParameters { + return new GeneralPoolParameters().fromJsonString(jsonString, options); + } + + static equals(a: GeneralPoolParameters | PlainMessage | undefined, b: GeneralPoolParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(GeneralPoolParameters, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.AuthorizationParameters + */ +export class AuthorizationParameters extends Message { + /** + * @generated from field: repeated string admin_list = 1; + */ + adminList: string[] = []; + + /** + * can pause the vault and also set pools to paused_by_gov mode which + * is a special mode where only the gov can unpause and does not have a window + * these cannot unpause anything + * + * @generated from field: repeated string pause_allow_list = 2; + */ + pauseAllowList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.AuthorizationParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "pause_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AuthorizationParameters { + return new AuthorizationParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AuthorizationParameters { + return new AuthorizationParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AuthorizationParameters { + return new AuthorizationParameters().fromJsonString(jsonString, options); + } + + static equals(a: AuthorizationParameters | PlainMessage | undefined, b: AuthorizationParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(AuthorizationParameters, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.GasParameters + */ +export class GasParameters extends Message { + /** + * gas for swapping in a pool + * + * @generated from field: uint64 vault_swap = 1; + */ + vaultSwap = protoInt64.zero; + + /** + * gas for initializing a pool + * + * @generated from field: uint64 vault_initialize_pool = 2; + */ + vaultInitializePool = protoInt64.zero; + + /** + * gas for join pool + * + * @generated from field: uint64 vault_join = 3; + */ + vaultJoin = protoInt64.zero; + + /** + * gas for exit pool + * + * @generated from field: uint64 vault_exit = 4; + */ + vaultExit = protoInt64.zero; + + /** + * gas for recovery exit + * + * @generated from field: uint64 vault_recovery_exit = 5; + */ + vaultRecoveryExit = protoInt64.zero; + + /** + * gas for each step of batch swap + * + * @generated from field: uint64 vault_batch_swap_step = 6; + */ + vaultBatchSwapStep = protoInt64.zero; + + /** + * gas for creating a new weighted pool + * + * @generated from field: uint64 create_weighted_pool = 7; + */ + createWeightedPool = protoInt64.zero; + + /** + * gas for submitting a new order + * + * @generated from field: uint64 submit_order = 8; + */ + submitOrder = protoInt64.zero; + + /** + * gas for each order in match proposal + * + * @generated from field: uint64 proposal_match_order = 9; + */ + proposalMatchOrder = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.GasParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vault_swap", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "vault_initialize_pool", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "vault_join", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "vault_exit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "vault_recovery_exit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "vault_batch_swap_step", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "create_weighted_pool", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "submit_order", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "proposal_match_order", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasParameters { + return new GasParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasParameters { + return new GasParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasParameters { + return new GasParameters().fromJsonString(jsonString, options); + } + + static equals(a: GasParameters | PlainMessage | undefined, b: GasParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(GasParameters, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.WeightedPoolParameters + */ +export class WeightedPoolParameters extends Message { + /** + * This is applied only if the pool is initialized, for drained pools weights can be updated instantly. + * + * @generated from field: int64 min_weight_update_duration_millis = 1; + */ + minWeightUpdateDurationMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.WeightedPoolParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_weight_update_duration_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedPoolParameters { + return new WeightedPoolParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedPoolParameters { + return new WeightedPoolParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedPoolParameters { + return new WeightedPoolParameters().fromJsonString(jsonString, options); + } + + static equals(a: WeightedPoolParameters | PlainMessage | undefined, b: WeightedPoolParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedPoolParameters, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.amm.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: pryzm.amm.v1.GeneralPoolParameters general_pool_parameters = 1; + */ + generalPoolParameters?: GeneralPoolParameters; + + /** + * @generated from field: pryzm.amm.v1.YammParameters yamm_parameters = 2; + */ + yammParameters?: YammParameters; + + /** + * @generated from field: pryzm.amm.v1.OrderParameters order_parameters = 3; + */ + orderParameters?: OrderParameters; + + /** + * @generated from field: pryzm.amm.v1.AuthorizationParameters authorization_parameters = 4; + */ + authorizationParameters?: AuthorizationParameters; + + /** + * @generated from field: pryzm.amm.v1.GasParameters gas_parameters = 5; + */ + gasParameters?: GasParameters; + + /** + * @generated from field: pryzm.amm.v1.WeightedPoolParameters weighted_pool_parameters = 6; + */ + weightedPoolParameters?: WeightedPoolParameters; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "general_pool_parameters", kind: "message", T: GeneralPoolParameters }, + { no: 2, name: "yamm_parameters", kind: "message", T: YammParameters }, + { no: 3, name: "order_parameters", kind: "message", T: OrderParameters }, + { no: 4, name: "authorization_parameters", kind: "message", T: AuthorizationParameters }, + { no: 5, name: "gas_parameters", kind: "message", T: GasParameters }, + { no: 6, name: "weighted_pool_parameters", kind: "message", T: WeightedPoolParameters }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/pending_token_introduction_pb.ts b/src/protobufs/pryzm/amm/v1/pending_token_introduction_pb.ts new file mode 100644 index 00000000..efcb76ea --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/pending_token_introduction_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/pending_token_introduction.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.PendingTokenIntroduction + */ +export class PendingTokenIntroduction extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: uint64 target_pool_id = 2; + */ + targetPoolId = protoInt64.zero; + + /** + * @generated from field: string token_denom = 3; + */ + tokenDenom = ""; + + /** + * @generated from field: string token_normalized_weight = 4; + */ + tokenNormalizedWeight = ""; + + /** + * @generated from field: int64 virtual_balance_interval_millis = 5; + */ + virtualBalanceIntervalMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.PendingTokenIntroduction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "virtual_balance_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PendingTokenIntroduction { + return new PendingTokenIntroduction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PendingTokenIntroduction { + return new PendingTokenIntroduction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PendingTokenIntroduction { + return new PendingTokenIntroduction().fromJsonString(jsonString, options); + } + + static equals(a: PendingTokenIntroduction | PlainMessage | undefined, b: PendingTokenIntroduction | PlainMessage | undefined): boolean { + return proto3.util.equals(PendingTokenIntroduction, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/pool_pb.ts b/src/protobufs/pryzm/amm/v1/pool_pb.ts new file mode 100644 index 00000000..dd5fe547 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/pool_pb.ts @@ -0,0 +1,260 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/pool.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * PoolType enumerates the valid types for pool_type. + * + * @generated from enum pryzm.amm.v1.PoolType + */ +export enum PoolType { + /** + * @generated from enum value: POOL_TYPE_WEIGHTED = 0; + */ + WEIGHTED = 0, + + /** + * @generated from enum value: POOL_TYPE_YAMM = 1; + */ + YAMM = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(PoolType) +proto3.util.setEnumType(PoolType, "pryzm.amm.v1.PoolType", [ + { no: 0, name: "POOL_TYPE_WEIGHTED" }, + { no: 1, name: "POOL_TYPE_YAMM" }, +]); + +/** + * @generated from message pryzm.amm.v1.PoolPauseWindow + */ +export class PoolPauseWindow extends Message { + /** + * @generated from field: int64 pause_window_end_unix_millis = 1; + */ + pauseWindowEndUnixMillis = protoInt64.zero; + + /** + * @generated from field: int64 buffer_period_end_unix_millis = 2; + */ + bufferPeriodEndUnixMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.PoolPauseWindow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pause_window_end_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "buffer_period_end_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolPauseWindow { + return new PoolPauseWindow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolPauseWindow { + return new PoolPauseWindow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolPauseWindow { + return new PoolPauseWindow().fromJsonString(jsonString, options); + } + + static equals(a: PoolPauseWindow | PlainMessage | undefined, b: PoolPauseWindow | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolPauseWindow, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.SwapFeeUpdateParams + */ +export class SwapFeeUpdateParams extends Message { + /** + * @generated from field: string end = 1; + */ + end = ""; + + /** + * @generated from field: int64 start_unix_millis = 2; + */ + startUnixMillis = protoInt64.zero; + + /** + * @generated from field: int64 end_unix_millis = 3; + */ + endUnixMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.SwapFeeUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "end", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "start_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "end_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapFeeUpdateParams { + return new SwapFeeUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapFeeUpdateParams { + return new SwapFeeUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapFeeUpdateParams { + return new SwapFeeUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: SwapFeeUpdateParams | PlainMessage | undefined, b: SwapFeeUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapFeeUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * this is the constant swap fee ratio, for dynamic swap fees other pools might have other parameters. + * for example, check yamm configuration. + * if update params is nil, this is the actual swap fee, o.w. you need to apply gradual update between this start and the end in params. + * + * @generated from field: string start_swap_fee_ratio = 3; + */ + startSwapFeeRatio = ""; + + /** + * @generated from field: pryzm.amm.v1.PoolType pool_type = 4; + */ + poolType = PoolType.WEIGHTED; + + /** + * @generated from field: string creator = 5; + */ + creator = ""; + + /** + * @generated from field: bool recovery_mode = 6; + */ + recoveryMode = false; + + /** + * @generated from field: bool paused_by_gov = 7; + */ + pausedByGov = false; + + /** + * @generated from field: bool paused_by_owner = 8; + */ + pausedByOwner = false; + + /** + * @generated from field: pryzm.amm.v1.PoolPauseWindow owner_pause_window_timing = 9; + */ + ownerPauseWindowTiming?: PoolPauseWindow; + + /** + * if protocol fee parameters are nil, then the values are read from treasury module parameters + * + * @generated from field: string swap_protocol_fee_ratio = 10; + */ + swapProtocolFeeRatio = ""; + + /** + * @generated from field: string join_exit_protocol_fee_ratio = 11; + */ + joinExitProtocolFeeRatio = ""; + + /** + * if not empty, only these addresses can initialize the pool + * + * @generated from field: repeated string initialization_allow_list = 12; + */ + initializationAllowList: string[] = []; + + /** + * these have the same permissions as the creator, except for + * updating the admins list and pausing the pool + * + * @generated from field: repeated string admins = 13; + */ + admins: string[] = []; + + /** + * @generated from field: repeated string pause_allow_list = 14; + */ + pauseAllowList: string[] = []; + + /** + * @generated from field: pryzm.amm.v1.SwapFeeUpdateParams swap_fee_update_params = 15; + */ + swapFeeUpdateParams?: SwapFeeUpdateParams; + + /** + * @generated from field: bool join_blocked = 16; + */ + joinBlocked = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_swap_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pool_type", kind: "enum", T: proto3.getEnumType(PoolType) }, + { no: 5, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "recovery_mode", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "paused_by_gov", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "paused_by_owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "owner_pause_window_timing", kind: "message", T: PoolPauseWindow }, + { no: 10, name: "swap_protocol_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "join_exit_protocol_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "initialization_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 13, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 14, name: "pause_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 15, name: "swap_fee_update_params", kind: "message", T: SwapFeeUpdateParams }, + { no: 16, name: "join_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/pool_token_pb.ts b/src/protobufs/pryzm/amm/v1/pool_token_pb.ts new file mode 100644 index 00000000..031a9ff9 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/pool_token_pb.ts @@ -0,0 +1,230 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/pool_token.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.CircuitBreaker + */ +export class CircuitBreaker extends Message { + /** + * @generated from field: string reference_lpt_price = 1; + */ + referenceLptPrice = ""; + + /** + * @generated from field: string lower_bound = 2; + */ + lowerBound = ""; + + /** + * @generated from field: string upper_bound = 3; + */ + upperBound = ""; + + /** + * @generated from field: string reference_normalized_weight = 4; + */ + referenceNormalizedWeight = ""; + + /** + * @generated from field: string adjusted_upper_bound = 5; + */ + adjustedUpperBound = ""; + + /** + * @generated from field: string adjusted_lower_bound = 6; + */ + adjustedLowerBound = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.CircuitBreaker"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reference_lpt_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lower_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "upper_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reference_normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "adjusted_upper_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "adjusted_lower_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CircuitBreaker { + return new CircuitBreaker().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CircuitBreaker { + return new CircuitBreaker().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CircuitBreaker { + return new CircuitBreaker().fromJsonString(jsonString, options); + } + + static equals(a: CircuitBreaker | PlainMessage | undefined, b: CircuitBreaker | PlainMessage | undefined): boolean { + return proto3.util.equals(CircuitBreaker, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.PoolToken + */ +export class PoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string balance = 3; + */ + balance = ""; + + /** + * @generated from field: pryzm.amm.v1.CircuitBreaker circuit_breaker = 4; + */ + circuitBreaker?: CircuitBreaker; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.PoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "circuit_breaker", kind: "message", T: CircuitBreaker }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolToken { + return new PoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolToken { + return new PoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolToken { + return new PoolToken().fromJsonString(jsonString, options); + } + + static equals(a: PoolToken | PlainMessage | undefined, b: PoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.TokenAmount + */ +export class TokenAmount extends Message { + /** + * @generated from field: pryzm.amm.v1.PoolToken token = 1; + */ + token?: PoolToken; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.TokenAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "message", T: PoolToken }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenAmount { + return new TokenAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenAmount { + return new TokenAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenAmount { + return new TokenAmount().fromJsonString(jsonString, options); + } + + static equals(a: TokenAmount | PlainMessage | undefined, b: TokenAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenAmount, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.TokenInfo + */ +export class TokenInfo extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string balance = 2; + */ + balance = ""; + + /** + * @generated from field: string virtual_balance = 3; + */ + virtualBalance = ""; + + /** + * weight is nil for pools that dont implement WeightedPoolApi + * + * @generated from field: string normalized_weight = 4; + */ + normalizedWeight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.TokenInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "virtual_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenInfo { + return new TokenInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenInfo { + return new TokenInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenInfo { + return new TokenInfo().fromJsonString(jsonString, options); + } + + static equals(a: TokenInfo | PlainMessage | undefined, b: TokenInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenInfo, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/query_cosmes.ts b/src/protobufs/pryzm/amm/v1/query_cosmes.ts new file mode 100644 index 00000000..c612e55b --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/query_cosmes.ts @@ -0,0 +1,635 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/amm/v1/query.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllDisabledOrderPairRequest, QueryAllDisabledOrderPairResponse, QueryAllExecutableOrderRequest, QueryAllExecutableOrderResponse, QueryAllExpiringPoolTokenRequest, QueryAllExpiringPoolTokenResponse, QueryAllIntroducingPoolTokenRequest, QueryAllIntroducingPoolTokenResponse, QueryAllOraclePricePairRequest, QueryAllOraclePricePairResponse, QueryAllOrderRequest, QueryAllOrderResponse, QueryAllPendingTokenIntroductionRequest, QueryAllPendingTokenIntroductionResponse, QueryAllPermanentVirtualBalancePoolTokenRequest, QueryAllPermanentVirtualBalancePoolTokenResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllPoolTokenForPoolRequest, QueryAllPoolTokenForPoolResponse, QueryAllPoolTokenInfoRequest, QueryAllPoolTokenInfoResponse, QueryAllPoolTokenRequest, QueryAllPoolTokenResponse, QueryAllPoolTokenWeightRequest, QueryAllPoolTokenWeightResponse, QueryAllScheduleOrderRequest, QueryAllScheduleOrderResponse, QueryAllWeightedTokenRequest, QueryAllWeightedTokenResponse, QueryAllWeightUpdateTimingRequest, QueryAllWeightUpdateTimingResponse, QueryAllWhitelistedRouteRequest, QueryAllWhitelistedRouteResponse, QueryAllYammConfigurationRequest, QueryAllYammConfigurationResponse, QueryGetExecutableOrderRequest, QueryGetExecutableOrderResponse, QueryGetExpiringPoolTokenRequest, QueryGetExpiringPoolTokenResponse, QueryGetIntroducingPoolTokenRequest, QueryGetIntroducingPoolTokenResponse, QueryGetOraclePricePairRequest, QueryGetOraclePricePairResponse, QueryGetOrderRequest, QueryGetOrderResponse, QueryGetPendingTokenIntroductionRequest, QueryGetPendingTokenIntroductionResponse, QueryGetPermanentVirtualBalancePoolTokenRequest, QueryGetPermanentVirtualBalancePoolTokenResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryGetPoolTokenInfoRequest, QueryGetPoolTokenInfoResponse, QueryGetPoolTokenRequest, QueryGetPoolTokenResponse, QueryGetPoolTokenWeightRequest, QueryGetPoolTokenWeightResponse, QueryGetScheduleOrderRequest, QueryGetScheduleOrderResponse, QueryGetWeightedTokenRequest, QueryGetWeightedTokenResponse, QueryGetWeightUpdateTimingRequest, QueryGetWeightUpdateTimingResponse, QueryGetWhitelistedRouteRequest, QueryGetWhitelistedRouteResponse, QueryGetYammConfigurationRequest, QueryGetYammConfigurationResponse, QueryLpTokenRequest, QueryLpTokenResponse, QueryOrderPairDisabledRequest, QueryOrderPairDisabledResponse, QueryOrderStepBoundsRequest, QueryOrderStepBoundsResponse, QueryParamsRequest, QueryParamsResponse, QuerySimulateBatchSwapRequest, QuerySimulateBatchSwapResponse, QuerySimulateExitAllTokensExactLptRequest, QuerySimulateExitAllTokensExactLptResponse, QuerySimulateExitExactTokensRequest, QuerySimulateExitExactTokensResponse, QuerySimulateExitTokenExactLptRequest, QuerySimulateExitTokenExactLptResponse, QuerySimulateInitializePoolRequest, QuerySimulateInitializePoolResponse, QuerySimulateJoinAllTokensExactLptRequest, QuerySimulateJoinAllTokensExactLptResponse, QuerySimulateJoinExactTokensRequest, QuerySimulateJoinExactTokensResponse, QuerySimulateJoinTokenExactLptRequest, QuerySimulateJoinTokenExactLptResponse, QuerySimulateRecoveryExitRequest, QuerySimulateRecoveryExitResponse, QuerySimulateSingleSwapRequest, QuerySimulateSingleSwapResponse, QuerySimulateZeroImpactJoinYammRequest, QuerySimulateZeroImpactJoinYammResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QueryVaultPauseModeRequest, QueryVaultPauseModeResponse, QueryYammPoolIdRequest, QueryYammPoolIdResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.amm.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.amm.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a PoolToken by index. + * + * @generated from rpc pryzm.amm.v1.Query.PoolToken + */ +export const QueryPoolTokenService = { + typeName: TYPE_NAME, + method: "PoolToken", + Request: QueryGetPoolTokenRequest, + Response: QueryGetPoolTokenResponse, +} as const; + +/** + * Queries a list of PoolToken items. + * + * @generated from rpc pryzm.amm.v1.Query.PoolTokenAll + */ +export const QueryPoolTokenAllService = { + typeName: TYPE_NAME, + method: "PoolTokenAll", + Request: QueryAllPoolTokenRequest, + Response: QueryAllPoolTokenResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Query.PoolTokenAllForPool + */ +export const QueryPoolTokenAllForPoolService = { + typeName: TYPE_NAME, + method: "PoolTokenAllForPool", + Request: QueryAllPoolTokenForPoolRequest, + Response: QueryAllPoolTokenForPoolResponse, +} as const; + +/** + * Queries a list of TokenWeights + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them. And the number of tokens in a pool is not expected to + * be high. + * therefore, this query is not paginated + * + * @generated from rpc pryzm.amm.v1.Query.PoolTokenWeightAll + */ +export const QueryPoolTokenWeightAllService = { + typeName: TYPE_NAME, + method: "PoolTokenWeightAll", + Request: QueryAllPoolTokenWeightRequest, + Response: QueryAllPoolTokenWeightResponse, +} as const; + +/** + * Queries a TokenWeight + * + * @generated from rpc pryzm.amm.v1.Query.PoolTokenWeight + */ +export const QueryPoolTokenWeightService = { + typeName: TYPE_NAME, + method: "PoolTokenWeight", + Request: QueryGetPoolTokenWeightRequest, + Response: QueryGetPoolTokenWeightResponse, +} as const; + +/** + * Queries a list of TokenInfo + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them. And the number of tokens in a pool is not expected to + * be high. + * therefore, this query is not paginated + * + * @generated from rpc pryzm.amm.v1.Query.PoolTokenInfoAll + */ +export const QueryPoolTokenInfoAllService = { + typeName: TYPE_NAME, + method: "PoolTokenInfoAll", + Request: QueryAllPoolTokenInfoRequest, + Response: QueryAllPoolTokenInfoResponse, +} as const; + +/** + * Queries a TokenInfo + * + * @generated from rpc pryzm.amm.v1.Query.PoolTokenInfo + */ +export const QueryPoolTokenInfoService = { + typeName: TYPE_NAME, + method: "PoolTokenInfo", + Request: QueryGetPoolTokenInfoRequest, + Response: QueryGetPoolTokenInfoResponse, +} as const; + +/** + * Queries a Pool by id. + * + * @generated from rpc pryzm.amm.v1.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * Queries a list of Pool items. + * + * @generated from rpc pryzm.amm.v1.Query.PoolAll + */ +export const QueryPoolAllService = { + typeName: TYPE_NAME, + method: "PoolAll", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * Queries a WeightedToken by index. + * + * @generated from rpc pryzm.amm.v1.Query.WeightedToken + */ +export const QueryWeightedTokenService = { + typeName: TYPE_NAME, + method: "WeightedToken", + Request: QueryGetWeightedTokenRequest, + Response: QueryGetWeightedTokenResponse, +} as const; + +/** + * Queries a list of WeightedToken items. + * + * @generated from rpc pryzm.amm.v1.Query.WeightedTokenAll + */ +export const QueryWeightedTokenAllService = { + typeName: TYPE_NAME, + method: "WeightedTokenAll", + Request: QueryAllWeightedTokenRequest, + Response: QueryAllWeightedTokenResponse, +} as const; + +/** + * Queries a WeightUpdateTiming by index. + * + * @generated from rpc pryzm.amm.v1.Query.WeightUpdateTiming + */ +export const QueryWeightUpdateTimingService = { + typeName: TYPE_NAME, + method: "WeightUpdateTiming", + Request: QueryGetWeightUpdateTimingRequest, + Response: QueryGetWeightUpdateTimingResponse, +} as const; + +/** + * Queries a list of WeightUpdateTiming items. + * + * @generated from rpc pryzm.amm.v1.Query.WeightUpdateTimingAll + */ +export const QueryWeightUpdateTimingAllService = { + typeName: TYPE_NAME, + method: "WeightUpdateTimingAll", + Request: QueryAllWeightUpdateTimingRequest, + Response: QueryAllWeightUpdateTimingResponse, +} as const; + +/** + * Simulates a single swap action and returns the result + * + * @generated from rpc pryzm.amm.v1.Query.SimulateSingleSwap + */ +export const QuerySimulateSingleSwapService = { + typeName: TYPE_NAME, + method: "SimulateSingleSwap", + Request: QuerySimulateSingleSwapRequest, + Response: QuerySimulateSingleSwapResponse, +} as const; + +/** + * Queries a list of SimulateInitializePool items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateInitializePool + */ +export const QuerySimulateInitializePoolService = { + typeName: TYPE_NAME, + method: "SimulateInitializePool", + Request: QuerySimulateInitializePoolRequest, + Response: QuerySimulateInitializePoolResponse, +} as const; + +/** + * Queries a list of SimulateJoinAllTokensExactLpt items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateJoinAllTokensExactLpt + */ +export const QuerySimulateJoinAllTokensExactLptService = { + typeName: TYPE_NAME, + method: "SimulateJoinAllTokensExactLpt", + Request: QuerySimulateJoinAllTokensExactLptRequest, + Response: QuerySimulateJoinAllTokensExactLptResponse, +} as const; + +/** + * Queries a list of SimulateJoinExactTokens items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateJoinExactTokens + */ +export const QuerySimulateJoinExactTokensService = { + typeName: TYPE_NAME, + method: "SimulateJoinExactTokens", + Request: QuerySimulateJoinExactTokensRequest, + Response: QuerySimulateJoinExactTokensResponse, +} as const; + +/** + * Queries a list of SimulateJoinExactTokens items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateZeroImpactJoinYamm + */ +export const QuerySimulateZeroImpactJoinYammService = { + typeName: TYPE_NAME, + method: "SimulateZeroImpactJoinYamm", + Request: QuerySimulateZeroImpactJoinYammRequest, + Response: QuerySimulateZeroImpactJoinYammResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Query.SimulateRecoveryExit + */ +export const QuerySimulateRecoveryExitService = { + typeName: TYPE_NAME, + method: "SimulateRecoveryExit", + Request: QuerySimulateRecoveryExitRequest, + Response: QuerySimulateRecoveryExitResponse, +} as const; + +/** + * Queries a list of SimulateJoinTokenExactLpt items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateJoinTokenExactLpt + */ +export const QuerySimulateJoinTokenExactLptService = { + typeName: TYPE_NAME, + method: "SimulateJoinTokenExactLpt", + Request: QuerySimulateJoinTokenExactLptRequest, + Response: QuerySimulateJoinTokenExactLptResponse, +} as const; + +/** + * Queries a list of SimulateExitTokenExactLpt items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateExitTokenExactLpt + */ +export const QuerySimulateExitTokenExactLptService = { + typeName: TYPE_NAME, + method: "SimulateExitTokenExactLpt", + Request: QuerySimulateExitTokenExactLptRequest, + Response: QuerySimulateExitTokenExactLptResponse, +} as const; + +/** + * Queries a list of SimulateExitExactTokens items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateExitExactTokens + */ +export const QuerySimulateExitExactTokensService = { + typeName: TYPE_NAME, + method: "SimulateExitExactTokens", + Request: QuerySimulateExitExactTokensRequest, + Response: QuerySimulateExitExactTokensResponse, +} as const; + +/** + * Queries a list of SimulateExitAllTokensExactLpt items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateExitAllTokensExactLpt + */ +export const QuerySimulateExitAllTokensExactLptService = { + typeName: TYPE_NAME, + method: "SimulateExitAllTokensExactLpt", + Request: QuerySimulateExitAllTokensExactLptRequest, + Response: QuerySimulateExitAllTokensExactLptResponse, +} as const; + +/** + * Queries a list of SpotPrice items. + * + * @generated from rpc pryzm.amm.v1.Query.SpotPrice + */ +export const QuerySpotPriceService = { + typeName: TYPE_NAME, + method: "SpotPrice", + Request: QuerySpotPriceRequest, + Response: QuerySpotPriceResponse, +} as const; + +/** + * Queries a PermanentVirtualBalancePoolToken by index. + * + * @generated from rpc pryzm.amm.v1.Query.PermanentVirtualBalancePoolToken + */ +export const QueryPermanentVirtualBalancePoolTokenService = { + typeName: TYPE_NAME, + method: "PermanentVirtualBalancePoolToken", + Request: QueryGetPermanentVirtualBalancePoolTokenRequest, + Response: QueryGetPermanentVirtualBalancePoolTokenResponse, +} as const; + +/** + * Queries a list of PermanentVirtualBalancePoolToken items. + * + * @generated from rpc pryzm.amm.v1.Query.PermanentVirtualBalancePoolTokenAll + */ +export const QueryPermanentVirtualBalancePoolTokenAllService = { + typeName: TYPE_NAME, + method: "PermanentVirtualBalancePoolTokenAll", + Request: QueryAllPermanentVirtualBalancePoolTokenRequest, + Response: QueryAllPermanentVirtualBalancePoolTokenResponse, +} as const; + +/** + * Queries a IntroducingPoolToken by index. + * + * @generated from rpc pryzm.amm.v1.Query.IntroducingPoolToken + */ +export const QueryIntroducingPoolTokenService = { + typeName: TYPE_NAME, + method: "IntroducingPoolToken", + Request: QueryGetIntroducingPoolTokenRequest, + Response: QueryGetIntroducingPoolTokenResponse, +} as const; + +/** + * Queries a list of IntroducingPoolToken items. + * + * @generated from rpc pryzm.amm.v1.Query.IntroducingPoolTokenAll + */ +export const QueryIntroducingPoolTokenAllService = { + typeName: TYPE_NAME, + method: "IntroducingPoolTokenAll", + Request: QueryAllIntroducingPoolTokenRequest, + Response: QueryAllIntroducingPoolTokenResponse, +} as const; + +/** + * Queries a ExpiringPoolToken by index. + * + * @generated from rpc pryzm.amm.v1.Query.ExpiringPoolToken + */ +export const QueryExpiringPoolTokenService = { + typeName: TYPE_NAME, + method: "ExpiringPoolToken", + Request: QueryGetExpiringPoolTokenRequest, + Response: QueryGetExpiringPoolTokenResponse, +} as const; + +/** + * Queries a list of ExpiringPoolToken items. + * + * @generated from rpc pryzm.amm.v1.Query.ExpiringPoolTokenAll + */ +export const QueryExpiringPoolTokenAllService = { + typeName: TYPE_NAME, + method: "ExpiringPoolTokenAll", + Request: QueryAllExpiringPoolTokenRequest, + Response: QueryAllExpiringPoolTokenResponse, +} as const; + +/** + * Queries a list of LpToken items. + * + * @generated from rpc pryzm.amm.v1.Query.LpToken + */ +export const QueryLpTokenService = { + typeName: TYPE_NAME, + method: "LpToken", + Request: QueryLpTokenRequest, + Response: QueryLpTokenResponse, +} as const; + +/** + * Queries a list of SimulateBatchSwap items. + * + * @generated from rpc pryzm.amm.v1.Query.SimulateBatchSwap + */ +export const QuerySimulateBatchSwapService = { + typeName: TYPE_NAME, + method: "SimulateBatchSwap", + Request: QuerySimulateBatchSwapRequest, + Response: QuerySimulateBatchSwapResponse, +} as const; + +/** + * Queries a YammConfiguration by index. + * + * @generated from rpc pryzm.amm.v1.Query.YammConfiguration + */ +export const QueryYammConfigurationService = { + typeName: TYPE_NAME, + method: "YammConfiguration", + Request: QueryGetYammConfigurationRequest, + Response: QueryGetYammConfigurationResponse, +} as const; + +/** + * Queries a list of YammConfiguration items. + * + * @generated from rpc pryzm.amm.v1.Query.YammConfigurationAll + */ +export const QueryYammConfigurationAllService = { + typeName: TYPE_NAME, + method: "YammConfigurationAll", + Request: QueryAllYammConfigurationRequest, + Response: QueryAllYammConfigurationResponse, +} as const; + +/** + * Queries a WhitelistedRoute by index. + * + * @generated from rpc pryzm.amm.v1.Query.WhitelistedRoute + */ +export const QueryWhitelistedRouteService = { + typeName: TYPE_NAME, + method: "WhitelistedRoute", + Request: QueryGetWhitelistedRouteRequest, + Response: QueryGetWhitelistedRouteResponse, +} as const; + +/** + * Queries a list of WhitelistedRoute items. + * + * @generated from rpc pryzm.amm.v1.Query.WhitelistedRouteAll + */ +export const QueryWhitelistedRouteAllService = { + typeName: TYPE_NAME, + method: "WhitelistedRouteAll", + Request: QueryAllWhitelistedRouteRequest, + Response: QueryAllWhitelistedRouteResponse, +} as const; + +/** + * Queries a Order by id. + * + * @generated from rpc pryzm.amm.v1.Query.Order + */ +export const QueryOrderService = { + typeName: TYPE_NAME, + method: "Order", + Request: QueryGetOrderRequest, + Response: QueryGetOrderResponse, +} as const; + +/** + * Queries a list of Order items. + * + * @generated from rpc pryzm.amm.v1.Query.OrderAll + */ +export const QueryOrderAllService = { + typeName: TYPE_NAME, + method: "OrderAll", + Request: QueryAllOrderRequest, + Response: QueryAllOrderResponse, +} as const; + +/** + * Queries a ExecutableOrder by index. + * + * @generated from rpc pryzm.amm.v1.Query.ExecutableOrder + */ +export const QueryExecutableOrderService = { + typeName: TYPE_NAME, + method: "ExecutableOrder", + Request: QueryGetExecutableOrderRequest, + Response: QueryGetExecutableOrderResponse, +} as const; + +/** + * Queries a list of ExecutableOrder items. + * + * @generated from rpc pryzm.amm.v1.Query.ExecutableOrderAll + */ +export const QueryExecutableOrderAllService = { + typeName: TYPE_NAME, + method: "ExecutableOrderAll", + Request: QueryAllExecutableOrderRequest, + Response: QueryAllExecutableOrderResponse, +} as const; + +/** + * Queries a ScheduleOrder by index. + * + * @generated from rpc pryzm.amm.v1.Query.ScheduleOrder + */ +export const QueryScheduleOrderService = { + typeName: TYPE_NAME, + method: "ScheduleOrder", + Request: QueryGetScheduleOrderRequest, + Response: QueryGetScheduleOrderResponse, +} as const; + +/** + * Queries a list of ScheduleOrder items. + * + * @generated from rpc pryzm.amm.v1.Query.ScheduleOrderAll + */ +export const QueryScheduleOrderAllService = { + typeName: TYPE_NAME, + method: "ScheduleOrderAll", + Request: QueryAllScheduleOrderRequest, + Response: QueryAllScheduleOrderResponse, +} as const; + +/** + * Queries a OraclePricePair by index. + * + * @generated from rpc pryzm.amm.v1.Query.OraclePricePair + */ +export const QueryOraclePricePairService = { + typeName: TYPE_NAME, + method: "OraclePricePair", + Request: QueryGetOraclePricePairRequest, + Response: QueryGetOraclePricePairResponse, +} as const; + +/** + * Queries a list of OraclePricePair items. + * + * @generated from rpc pryzm.amm.v1.Query.OraclePricePairAll + */ +export const QueryOraclePricePairAllService = { + typeName: TYPE_NAME, + method: "OraclePricePairAll", + Request: QueryAllOraclePricePairRequest, + Response: QueryAllOraclePricePairResponse, +} as const; + +/** + * Queries a list of VaultPauseMode items. + * + * @generated from rpc pryzm.amm.v1.Query.VaultPauseMode + */ +export const QueryVaultPauseModeService = { + typeName: TYPE_NAME, + method: "VaultPauseMode", + Request: QueryVaultPauseModeRequest, + Response: QueryVaultPauseModeResponse, +} as const; + +/** + * Queries a PendingTokenIntroduction by index. + * + * @generated from rpc pryzm.amm.v1.Query.PendingTokenIntroduction + */ +export const QueryPendingTokenIntroductionService = { + typeName: TYPE_NAME, + method: "PendingTokenIntroduction", + Request: QueryGetPendingTokenIntroductionRequest, + Response: QueryGetPendingTokenIntroductionResponse, +} as const; + +/** + * Queries a list of PendingTokenIntroduction items. + * + * @generated from rpc pryzm.amm.v1.Query.PendingTokenIntroductionAll + */ +export const QueryPendingTokenIntroductionAllService = { + typeName: TYPE_NAME, + method: "PendingTokenIntroductionAll", + Request: QueryAllPendingTokenIntroductionRequest, + Response: QueryAllPendingTokenIntroductionResponse, +} as const; + +/** + * Queries a YammPoolId item. + * + * @generated from rpc pryzm.amm.v1.Query.YammPoolId + */ +export const QueryYammPoolIdService = { + typeName: TYPE_NAME, + method: "YammPoolId", + Request: QueryYammPoolIdRequest, + Response: QueryYammPoolIdResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Query.OrderStepBounds + */ +export const QueryOrderStepBoundsService = { + typeName: TYPE_NAME, + method: "OrderStepBounds", + Request: QueryOrderStepBoundsRequest, + Response: QueryOrderStepBoundsResponse, +} as const; + +/** + * Queries a list of all disabled order pairs + * + * @generated from rpc pryzm.amm.v1.Query.DisabledOrderPairAll + */ +export const QueryDisabledOrderPairAllService = { + typeName: TYPE_NAME, + method: "DisabledOrderPairAll", + Request: QueryAllDisabledOrderPairRequest, + Response: QueryAllDisabledOrderPairResponse, +} as const; + +/** + * Queries whether or not a pair is disabled + * + * @generated from rpc pryzm.amm.v1.Query.OrderPairDisabled + */ +export const QueryOrderPairDisabledService = { + typeName: TYPE_NAME, + method: "OrderPairDisabled", + Request: QueryOrderPairDisabledRequest, + Response: QueryOrderPairDisabledResponse, +} as const; + diff --git a/src/protobufs/pryzm/amm/v1/query_pb.ts b/src/protobufs/pryzm/amm/v1/query_pb.ts new file mode 100644 index 00000000..7f2755eb --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/query_pb.ts @@ -0,0 +1,4350 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/query.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PoolToken, TokenInfo } from "./pool_token_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { TokenWeight } from "./token_weight_pb.js"; +import { Pool } from "./pool_pb.js"; +import { WeightedToken } from "./weighted_token_pb.js"; +import { WeightUpdateTiming } from "./weight_update_timing_pb.js"; +import { Swap, SwapStep, SwapType } from "./operations_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { PermanentVirtualBalancePoolToken, TemporalVirtualBalancePoolToken } from "./virtual_balance_pool_token_pb.js"; +import { YammConfiguration } from "./yamm_configuration_pb.js"; +import { WhitelistedRoute } from "./whitelisted_route_pb.js"; +import { DisabledOrderPair, Order } from "./order_pb.js"; +import { ScheduleOrder } from "./schedule_order_pb.js"; +import { OraclePricePair } from "./oracle_price_pair_pb.js"; +import { PendingTokenIntroduction } from "./pending_token_introduction_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.amm.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.amm.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.amm.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenRequest + */ +export class QueryGetPoolTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenRequest { + return new QueryGetPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenRequest { + return new QueryGetPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenRequest { + return new QueryGetPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenRequest | PlainMessage | undefined, b: QueryGetPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenResponse + */ +export class QueryGetPoolTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.PoolToken pool_token = 1; + */ + poolToken?: PoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_token", kind: "message", T: PoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenResponse { + return new QueryGetPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenResponse { + return new QueryGetPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenResponse { + return new QueryGetPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenResponse | PlainMessage | undefined, b: QueryGetPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolTokenRequest + */ +export class QueryAllPoolTokenRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string pool_id = 2; + */ + poolId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenRequest { + return new QueryAllPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenRequest { + return new QueryAllPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenRequest { + return new QueryAllPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenRequest | PlainMessage | undefined, b: QueryAllPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolTokenResponse + */ +export class QueryAllPoolTokenResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.PoolToken pool_token = 1; + */ + poolToken: PoolToken[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_token", kind: "message", T: PoolToken, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenResponse { + return new QueryAllPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenResponse { + return new QueryAllPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenResponse { + return new QueryAllPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenResponse | PlainMessage | undefined, b: QueryAllPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolTokenForPoolRequest + */ +export class QueryAllPoolTokenForPoolRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenForPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenForPoolRequest { + return new QueryAllPoolTokenForPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenForPoolRequest { + return new QueryAllPoolTokenForPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenForPoolRequest { + return new QueryAllPoolTokenForPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenForPoolRequest | PlainMessage | undefined, b: QueryAllPoolTokenForPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenForPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolTokenForPoolResponse + */ +export class QueryAllPoolTokenForPoolResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.PoolToken pool_token = 1; + */ + poolToken: PoolToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenForPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_token", kind: "message", T: PoolToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenForPoolResponse { + return new QueryAllPoolTokenForPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenForPoolResponse { + return new QueryAllPoolTokenForPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenForPoolResponse { + return new QueryAllPoolTokenForPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenForPoolResponse | PlainMessage | undefined, b: QueryAllPoolTokenForPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenForPoolResponse, a, b); + } +} + +/** + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them + * therefore, this query is not paginated + * + * @generated from message pryzm.amm.v1.QueryAllPoolTokenWeightRequest + */ +export class QueryAllPoolTokenWeightRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenWeightRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenWeightRequest { + return new QueryAllPoolTokenWeightRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenWeightRequest { + return new QueryAllPoolTokenWeightRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenWeightRequest { + return new QueryAllPoolTokenWeightRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenWeightRequest | PlainMessage | undefined, b: QueryAllPoolTokenWeightRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenWeightRequest, a, b); + } +} + +/** + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them + * therefore, this query is not paginated + * + * @generated from message pryzm.amm.v1.QueryAllPoolTokenWeightResponse + */ +export class QueryAllPoolTokenWeightResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.TokenWeight token_weight = 1; + */ + tokenWeight: TokenWeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenWeightResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_weight", kind: "message", T: TokenWeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenWeightResponse { + return new QueryAllPoolTokenWeightResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenWeightResponse { + return new QueryAllPoolTokenWeightResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenWeightResponse { + return new QueryAllPoolTokenWeightResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenWeightResponse | PlainMessage | undefined, b: QueryAllPoolTokenWeightResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenWeightResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenWeightRequest + */ +export class QueryGetPoolTokenWeightRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenWeightRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenWeightRequest { + return new QueryGetPoolTokenWeightRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenWeightRequest { + return new QueryGetPoolTokenWeightRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenWeightRequest { + return new QueryGetPoolTokenWeightRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenWeightRequest | PlainMessage | undefined, b: QueryGetPoolTokenWeightRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenWeightRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenWeightResponse + */ +export class QueryGetPoolTokenWeightResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.TokenWeight token_weight = 1; + */ + tokenWeight?: TokenWeight; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenWeightResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_weight", kind: "message", T: TokenWeight }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenWeightResponse { + return new QueryGetPoolTokenWeightResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenWeightResponse { + return new QueryGetPoolTokenWeightResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenWeightResponse { + return new QueryGetPoolTokenWeightResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenWeightResponse | PlainMessage | undefined, b: QueryGetPoolTokenWeightResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenWeightResponse, a, b); + } +} + +/** + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them + * therefore, this query is not paginated + * + * @generated from message pryzm.amm.v1.QueryAllPoolTokenInfoRequest + */ +export class QueryAllPoolTokenInfoRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenInfoRequest { + return new QueryAllPoolTokenInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenInfoRequest { + return new QueryAllPoolTokenInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenInfoRequest { + return new QueryAllPoolTokenInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenInfoRequest | PlainMessage | undefined, b: QueryAllPoolTokenInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenInfoRequest, a, b); + } +} + +/** + * computing normalized weights requires reading all tokens from the context + * and computing weight for all of them + * therefore, this query is not paginated + * + * @generated from message pryzm.amm.v1.QueryAllPoolTokenInfoResponse + */ +export class QueryAllPoolTokenInfoResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.TokenInfo token_info = 1; + */ + tokenInfo: TokenInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolTokenInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_info", kind: "message", T: TokenInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolTokenInfoResponse { + return new QueryAllPoolTokenInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolTokenInfoResponse { + return new QueryAllPoolTokenInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolTokenInfoResponse { + return new QueryAllPoolTokenInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolTokenInfoResponse | PlainMessage | undefined, b: QueryAllPoolTokenInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolTokenInfoResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenInfoRequest + */ +export class QueryGetPoolTokenInfoRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenInfoRequest { + return new QueryGetPoolTokenInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenInfoRequest { + return new QueryGetPoolTokenInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenInfoRequest { + return new QueryGetPoolTokenInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenInfoRequest | PlainMessage | undefined, b: QueryGetPoolTokenInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenInfoRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolTokenInfoResponse + */ +export class QueryGetPoolTokenInfoResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.TokenInfo token_info = 1; + */ + tokenInfo?: TokenInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolTokenInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_info", kind: "message", T: TokenInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolTokenInfoResponse { + return new QueryGetPoolTokenInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolTokenInfoResponse { + return new QueryGetPoolTokenInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolTokenInfoResponse { + return new QueryGetPoolTokenInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolTokenInfoResponse | PlainMessage | undefined, b: QueryGetPoolTokenInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolTokenInfoResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.Pool pool = 1; + */ + pool: Pool[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWeightedTokenRequest + */ +export class QueryGetWeightedTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWeightedTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWeightedTokenRequest { + return new QueryGetWeightedTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWeightedTokenRequest { + return new QueryGetWeightedTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWeightedTokenRequest { + return new QueryGetWeightedTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWeightedTokenRequest | PlainMessage | undefined, b: QueryGetWeightedTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWeightedTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWeightedTokenResponse + */ +export class QueryGetWeightedTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.WeightedToken weighted_token = 1; + */ + weightedToken?: WeightedToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWeightedTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weighted_token", kind: "message", T: WeightedToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWeightedTokenResponse { + return new QueryGetWeightedTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWeightedTokenResponse { + return new QueryGetWeightedTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWeightedTokenResponse { + return new QueryGetWeightedTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWeightedTokenResponse | PlainMessage | undefined, b: QueryGetWeightedTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWeightedTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWeightedTokenRequest + */ +export class QueryAllWeightedTokenRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWeightedTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWeightedTokenRequest { + return new QueryAllWeightedTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWeightedTokenRequest { + return new QueryAllWeightedTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWeightedTokenRequest { + return new QueryAllWeightedTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWeightedTokenRequest | PlainMessage | undefined, b: QueryAllWeightedTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWeightedTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWeightedTokenResponse + */ +export class QueryAllWeightedTokenResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.WeightedToken weighted_token = 1; + */ + weightedToken: WeightedToken[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWeightedTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weighted_token", kind: "message", T: WeightedToken, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWeightedTokenResponse { + return new QueryAllWeightedTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWeightedTokenResponse { + return new QueryAllWeightedTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWeightedTokenResponse { + return new QueryAllWeightedTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWeightedTokenResponse | PlainMessage | undefined, b: QueryAllWeightedTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWeightedTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWeightUpdateTimingRequest + */ +export class QueryGetWeightUpdateTimingRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWeightUpdateTimingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWeightUpdateTimingRequest { + return new QueryGetWeightUpdateTimingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWeightUpdateTimingRequest { + return new QueryGetWeightUpdateTimingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWeightUpdateTimingRequest { + return new QueryGetWeightUpdateTimingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWeightUpdateTimingRequest | PlainMessage | undefined, b: QueryGetWeightUpdateTimingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWeightUpdateTimingRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWeightUpdateTimingResponse + */ +export class QueryGetWeightUpdateTimingResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.WeightUpdateTiming weight_update_timing = 1; + */ + weightUpdateTiming?: WeightUpdateTiming; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWeightUpdateTimingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight_update_timing", kind: "message", T: WeightUpdateTiming }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWeightUpdateTimingResponse { + return new QueryGetWeightUpdateTimingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWeightUpdateTimingResponse { + return new QueryGetWeightUpdateTimingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWeightUpdateTimingResponse { + return new QueryGetWeightUpdateTimingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWeightUpdateTimingResponse | PlainMessage | undefined, b: QueryGetWeightUpdateTimingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWeightUpdateTimingResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWeightUpdateTimingRequest + */ +export class QueryAllWeightUpdateTimingRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWeightUpdateTimingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWeightUpdateTimingRequest { + return new QueryAllWeightUpdateTimingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWeightUpdateTimingRequest { + return new QueryAllWeightUpdateTimingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWeightUpdateTimingRequest { + return new QueryAllWeightUpdateTimingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWeightUpdateTimingRequest | PlainMessage | undefined, b: QueryAllWeightUpdateTimingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWeightUpdateTimingRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWeightUpdateTimingResponse + */ +export class QueryAllWeightUpdateTimingResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.WeightUpdateTiming weight_update_timing = 1; + */ + weightUpdateTiming: WeightUpdateTiming[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWeightUpdateTimingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "weight_update_timing", kind: "message", T: WeightUpdateTiming, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWeightUpdateTimingResponse { + return new QueryAllWeightUpdateTimingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWeightUpdateTimingResponse { + return new QueryAllWeightUpdateTimingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWeightUpdateTimingResponse { + return new QueryAllWeightUpdateTimingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWeightUpdateTimingResponse | PlainMessage | undefined, b: QueryAllWeightUpdateTimingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWeightUpdateTimingResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateSingleSwapRequest + */ +export class QuerySimulateSingleSwapRequest extends Message { + /** + * @generated from field: pryzm.amm.v1.Swap swap = 1; + */ + swap?: Swap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateSingleSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap", kind: "message", T: Swap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateSingleSwapRequest { + return new QuerySimulateSingleSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateSingleSwapRequest { + return new QuerySimulateSingleSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateSingleSwapRequest { + return new QuerySimulateSingleSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateSingleSwapRequest | PlainMessage | undefined, b: QuerySimulateSingleSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateSingleSwapRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateSingleSwapResponse + */ +export class QuerySimulateSingleSwapResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 1; + */ + amountOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 2; + */ + amountIn?: Coin; + + /** + * protocol fee does not contain the y_trade fee and refractor fee + * which is paid in case of a yAsset trade + * + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateSingleSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount_out", kind: "message", T: Coin }, + { no: 2, name: "amount_in", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateSingleSwapResponse { + return new QuerySimulateSingleSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateSingleSwapResponse { + return new QuerySimulateSingleSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateSingleSwapResponse { + return new QuerySimulateSingleSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateSingleSwapResponse | PlainMessage | undefined, b: QuerySimulateSingleSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateSingleSwapResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateInitializePoolRequest + */ +export class QuerySimulateInitializePoolRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin permanent_virtual_balances = 3; + */ + permanentVirtualBalances: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateInitializePoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "permanent_virtual_balances", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateInitializePoolRequest { + return new QuerySimulateInitializePoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateInitializePoolRequest { + return new QuerySimulateInitializePoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateInitializePoolRequest { + return new QuerySimulateInitializePoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateInitializePoolRequest | PlainMessage | undefined, b: QuerySimulateInitializePoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateInitializePoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateInitializePoolResponse + */ +export class QuerySimulateInitializePoolResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateInitializePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateInitializePoolResponse { + return new QuerySimulateInitializePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateInitializePoolResponse { + return new QuerySimulateInitializePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateInitializePoolResponse { + return new QuerySimulateInitializePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateInitializePoolResponse | PlainMessage | undefined, b: QuerySimulateInitializePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateInitializePoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinAllTokensExactLptRequest + */ +export class QuerySimulateJoinAllTokensExactLptRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_out = 2; + */ + lptOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinAllTokensExactLptRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinAllTokensExactLptRequest { + return new QuerySimulateJoinAllTokensExactLptRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinAllTokensExactLptRequest { + return new QuerySimulateJoinAllTokensExactLptRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinAllTokensExactLptRequest { + return new QuerySimulateJoinAllTokensExactLptRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinAllTokensExactLptRequest | PlainMessage | undefined, b: QuerySimulateJoinAllTokensExactLptRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinAllTokensExactLptRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinAllTokensExactLptResponse + */ +export class QuerySimulateJoinAllTokensExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinAllTokensExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinAllTokensExactLptResponse { + return new QuerySimulateJoinAllTokensExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinAllTokensExactLptResponse { + return new QuerySimulateJoinAllTokensExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinAllTokensExactLptResponse { + return new QuerySimulateJoinAllTokensExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinAllTokensExactLptResponse | PlainMessage | undefined, b: QuerySimulateJoinAllTokensExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinAllTokensExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinExactTokensRequest + */ +export class QuerySimulateJoinExactTokensRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinExactTokensRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinExactTokensRequest { + return new QuerySimulateJoinExactTokensRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinExactTokensRequest { + return new QuerySimulateJoinExactTokensRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinExactTokensRequest { + return new QuerySimulateJoinExactTokensRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinExactTokensRequest | PlainMessage | undefined, b: QuerySimulateJoinExactTokensRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinExactTokensRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinExactTokensResponse + */ +export class QuerySimulateJoinExactTokensResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinExactTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinExactTokensResponse { + return new QuerySimulateJoinExactTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinExactTokensResponse { + return new QuerySimulateJoinExactTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinExactTokensResponse { + return new QuerySimulateJoinExactTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinExactTokensResponse | PlainMessage | undefined, b: QuerySimulateJoinExactTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinExactTokensResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateZeroImpactJoinYammRequest + */ +export class QuerySimulateZeroImpactJoinYammRequest extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount_in = 1; + */ + cAmountIn?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateZeroImpactJoinYammRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "c_amount_in", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateZeroImpactJoinYammRequest { + return new QuerySimulateZeroImpactJoinYammRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateZeroImpactJoinYammRequest { + return new QuerySimulateZeroImpactJoinYammRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateZeroImpactJoinYammRequest { + return new QuerySimulateZeroImpactJoinYammRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateZeroImpactJoinYammRequest | PlainMessage | undefined, b: QuerySimulateZeroImpactJoinYammRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateZeroImpactJoinYammRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateZeroImpactJoinYammResponse + */ +export class QuerySimulateZeroImpactJoinYammResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin y_out = 2; + */ + yOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin refract_fee = 3; + */ + refractFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin join_protocol_fee = 4; + */ + joinProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateZeroImpactJoinYammResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "y_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "refract_fee", kind: "message", T: Coin }, + { no: 4, name: "join_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateZeroImpactJoinYammResponse { + return new QuerySimulateZeroImpactJoinYammResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateZeroImpactJoinYammResponse { + return new QuerySimulateZeroImpactJoinYammResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateZeroImpactJoinYammResponse { + return new QuerySimulateZeroImpactJoinYammResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateZeroImpactJoinYammResponse | PlainMessage | undefined, b: QuerySimulateZeroImpactJoinYammResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateZeroImpactJoinYammResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinTokenExactLptRequest + */ +export class QuerySimulateJoinTokenExactLptRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_out = 2; + */ + lptOut = ""; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinTokenExactLptRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinTokenExactLptRequest { + return new QuerySimulateJoinTokenExactLptRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinTokenExactLptRequest { + return new QuerySimulateJoinTokenExactLptRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinTokenExactLptRequest { + return new QuerySimulateJoinTokenExactLptRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinTokenExactLptRequest | PlainMessage | undefined, b: QuerySimulateJoinTokenExactLptRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinTokenExactLptRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateJoinTokenExactLptResponse + */ +export class QuerySimulateJoinTokenExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 2; + */ + amountIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateJoinTokenExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amount_in", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateJoinTokenExactLptResponse { + return new QuerySimulateJoinTokenExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateJoinTokenExactLptResponse { + return new QuerySimulateJoinTokenExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateJoinTokenExactLptResponse { + return new QuerySimulateJoinTokenExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateJoinTokenExactLptResponse | PlainMessage | undefined, b: QuerySimulateJoinTokenExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateJoinTokenExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitTokenExactLptRequest + */ +export class QuerySimulateExitTokenExactLptRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 2; + */ + lptIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitTokenExactLptRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitTokenExactLptRequest { + return new QuerySimulateExitTokenExactLptRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitTokenExactLptRequest { + return new QuerySimulateExitTokenExactLptRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitTokenExactLptRequest { + return new QuerySimulateExitTokenExactLptRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitTokenExactLptRequest | PlainMessage | undefined, b: QuerySimulateExitTokenExactLptRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitTokenExactLptRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitTokenExactLptResponse + */ +export class QuerySimulateExitTokenExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 2; + */ + amountOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitTokenExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amount_out", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitTokenExactLptResponse { + return new QuerySimulateExitTokenExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitTokenExactLptResponse { + return new QuerySimulateExitTokenExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitTokenExactLptResponse { + return new QuerySimulateExitTokenExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitTokenExactLptResponse | PlainMessage | undefined, b: QuerySimulateExitTokenExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitTokenExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitExactTokensRequest + */ +export class QuerySimulateExitExactTokensRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitExactTokensRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitExactTokensRequest { + return new QuerySimulateExitExactTokensRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitExactTokensRequest { + return new QuerySimulateExitExactTokensRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitExactTokensRequest { + return new QuerySimulateExitExactTokensRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitExactTokensRequest | PlainMessage | undefined, b: QuerySimulateExitExactTokensRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitExactTokensRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitExactTokensResponse + */ +export class QuerySimulateExitExactTokensResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitExactTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitExactTokensResponse { + return new QuerySimulateExitExactTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitExactTokensResponse { + return new QuerySimulateExitExactTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitExactTokensResponse { + return new QuerySimulateExitExactTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitExactTokensResponse | PlainMessage | undefined, b: QuerySimulateExitExactTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitExactTokensResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateRecoveryExitRequest + */ +export class QuerySimulateRecoveryExitRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 2; + */ + lptIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateRecoveryExitRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRecoveryExitRequest { + return new QuerySimulateRecoveryExitRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRecoveryExitRequest { + return new QuerySimulateRecoveryExitRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRecoveryExitRequest { + return new QuerySimulateRecoveryExitRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRecoveryExitRequest | PlainMessage | undefined, b: QuerySimulateRecoveryExitRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRecoveryExitRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateRecoveryExitResponse + */ +export class QuerySimulateRecoveryExitResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateRecoveryExitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRecoveryExitResponse { + return new QuerySimulateRecoveryExitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRecoveryExitResponse { + return new QuerySimulateRecoveryExitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRecoveryExitResponse { + return new QuerySimulateRecoveryExitResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRecoveryExitResponse | PlainMessage | undefined, b: QuerySimulateRecoveryExitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRecoveryExitResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitAllTokensExactLptRequest + */ +export class QuerySimulateExitAllTokensExactLptRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 2; + */ + lptIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitAllTokensExactLptRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitAllTokensExactLptRequest { + return new QuerySimulateExitAllTokensExactLptRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitAllTokensExactLptRequest { + return new QuerySimulateExitAllTokensExactLptRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitAllTokensExactLptRequest { + return new QuerySimulateExitAllTokensExactLptRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitAllTokensExactLptRequest | PlainMessage | undefined, b: QuerySimulateExitAllTokensExactLptRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitAllTokensExactLptRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateExitAllTokensExactLptResponse + */ +export class QuerySimulateExitAllTokensExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateExitAllTokensExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateExitAllTokensExactLptResponse { + return new QuerySimulateExitAllTokensExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateExitAllTokensExactLptResponse { + return new QuerySimulateExitAllTokensExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateExitAllTokensExactLptResponse { + return new QuerySimulateExitAllTokensExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateExitAllTokensExactLptResponse | PlainMessage | undefined, b: QuerySimulateExitAllTokensExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateExitAllTokensExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySpotPriceRequest + */ +export class QuerySpotPriceRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool apply_fee = 4; + */ + applyFee = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySpotPriceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "apply_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { + return new QuerySpotPriceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceRequest { + return new QuerySpotPriceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceRequest { + return new QuerySpotPriceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotPriceRequest | PlainMessage | undefined, b: QuerySpotPriceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotPriceRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySpotPriceResponse + */ +export class QuerySpotPriceResponse extends Message { + /** + * @generated from field: string spot_price = 1; + */ + spotPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySpotPriceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceResponse { + return new QuerySpotPriceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceResponse { + return new QuerySpotPriceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceResponse { + return new QuerySpotPriceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpotPriceResponse | PlainMessage | undefined, b: QuerySpotPriceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpotPriceResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetIntroducingPoolTokenRequest + */ +export class QueryGetIntroducingPoolTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetIntroducingPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetIntroducingPoolTokenRequest { + return new QueryGetIntroducingPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetIntroducingPoolTokenRequest { + return new QueryGetIntroducingPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetIntroducingPoolTokenRequest { + return new QueryGetIntroducingPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetIntroducingPoolTokenRequest | PlainMessage | undefined, b: QueryGetIntroducingPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetIntroducingPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetIntroducingPoolTokenResponse + */ +export class QueryGetIntroducingPoolTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.TemporalVirtualBalancePoolToken introducing_pool_token = 1; + */ + introducingPoolToken?: TemporalVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetIntroducingPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "introducing_pool_token", kind: "message", T: TemporalVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetIntroducingPoolTokenResponse { + return new QueryGetIntroducingPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetIntroducingPoolTokenResponse { + return new QueryGetIntroducingPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetIntroducingPoolTokenResponse { + return new QueryGetIntroducingPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetIntroducingPoolTokenResponse | PlainMessage | undefined, b: QueryGetIntroducingPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetIntroducingPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllIntroducingPoolTokenRequest + */ +export class QueryAllIntroducingPoolTokenRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllIntroducingPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllIntroducingPoolTokenRequest { + return new QueryAllIntroducingPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllIntroducingPoolTokenRequest { + return new QueryAllIntroducingPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllIntroducingPoolTokenRequest { + return new QueryAllIntroducingPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllIntroducingPoolTokenRequest | PlainMessage | undefined, b: QueryAllIntroducingPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllIntroducingPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllIntroducingPoolTokenResponse + */ +export class QueryAllIntroducingPoolTokenResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.TemporalVirtualBalancePoolToken introducing_pool_token = 1; + */ + introducingPoolToken: TemporalVirtualBalancePoolToken[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllIntroducingPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "introducing_pool_token", kind: "message", T: TemporalVirtualBalancePoolToken, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllIntroducingPoolTokenResponse { + return new QueryAllIntroducingPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllIntroducingPoolTokenResponse { + return new QueryAllIntroducingPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllIntroducingPoolTokenResponse { + return new QueryAllIntroducingPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllIntroducingPoolTokenResponse | PlainMessage | undefined, b: QueryAllIntroducingPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllIntroducingPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPermanentVirtualBalancePoolTokenRequest + */ +export class QueryGetPermanentVirtualBalancePoolTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPermanentVirtualBalancePoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenRequest { + return new QueryGetPermanentVirtualBalancePoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenRequest { + return new QueryGetPermanentVirtualBalancePoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenRequest { + return new QueryGetPermanentVirtualBalancePoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPermanentVirtualBalancePoolTokenRequest | PlainMessage | undefined, b: QueryGetPermanentVirtualBalancePoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPermanentVirtualBalancePoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPermanentVirtualBalancePoolTokenResponse + */ +export class QueryGetPermanentVirtualBalancePoolTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.PermanentVirtualBalancePoolToken permanent_virtual_balance_pool_token = 1; + */ + permanentVirtualBalancePoolToken?: PermanentVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPermanentVirtualBalancePoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "permanent_virtual_balance_pool_token", kind: "message", T: PermanentVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenResponse { + return new QueryGetPermanentVirtualBalancePoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenResponse { + return new QueryGetPermanentVirtualBalancePoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermanentVirtualBalancePoolTokenResponse { + return new QueryGetPermanentVirtualBalancePoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPermanentVirtualBalancePoolTokenResponse | PlainMessage | undefined, b: QueryGetPermanentVirtualBalancePoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPermanentVirtualBalancePoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPermanentVirtualBalancePoolTokenRequest + */ +export class QueryAllPermanentVirtualBalancePoolTokenRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPermanentVirtualBalancePoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenRequest { + return new QueryAllPermanentVirtualBalancePoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenRequest { + return new QueryAllPermanentVirtualBalancePoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenRequest { + return new QueryAllPermanentVirtualBalancePoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPermanentVirtualBalancePoolTokenRequest | PlainMessage | undefined, b: QueryAllPermanentVirtualBalancePoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPermanentVirtualBalancePoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPermanentVirtualBalancePoolTokenResponse + */ +export class QueryAllPermanentVirtualBalancePoolTokenResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.PermanentVirtualBalancePoolToken permanent_virtual_balance_pool_token = 1; + */ + permanentVirtualBalancePoolToken: PermanentVirtualBalancePoolToken[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPermanentVirtualBalancePoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "permanent_virtual_balance_pool_token", kind: "message", T: PermanentVirtualBalancePoolToken, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenResponse { + return new QueryAllPermanentVirtualBalancePoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenResponse { + return new QueryAllPermanentVirtualBalancePoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPermanentVirtualBalancePoolTokenResponse { + return new QueryAllPermanentVirtualBalancePoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPermanentVirtualBalancePoolTokenResponse | PlainMessage | undefined, b: QueryAllPermanentVirtualBalancePoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPermanentVirtualBalancePoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetExpiringPoolTokenRequest + */ +export class QueryGetExpiringPoolTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetExpiringPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetExpiringPoolTokenRequest { + return new QueryGetExpiringPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetExpiringPoolTokenRequest { + return new QueryGetExpiringPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetExpiringPoolTokenRequest { + return new QueryGetExpiringPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetExpiringPoolTokenRequest | PlainMessage | undefined, b: QueryGetExpiringPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetExpiringPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetExpiringPoolTokenResponse + */ +export class QueryGetExpiringPoolTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.TemporalVirtualBalancePoolToken expiring_pool_token = 1; + */ + expiringPoolToken?: TemporalVirtualBalancePoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetExpiringPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "expiring_pool_token", kind: "message", T: TemporalVirtualBalancePoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetExpiringPoolTokenResponse { + return new QueryGetExpiringPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetExpiringPoolTokenResponse { + return new QueryGetExpiringPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetExpiringPoolTokenResponse { + return new QueryGetExpiringPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetExpiringPoolTokenResponse | PlainMessage | undefined, b: QueryGetExpiringPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetExpiringPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllExpiringPoolTokenRequest + */ +export class QueryAllExpiringPoolTokenRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllExpiringPoolTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllExpiringPoolTokenRequest { + return new QueryAllExpiringPoolTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllExpiringPoolTokenRequest { + return new QueryAllExpiringPoolTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllExpiringPoolTokenRequest { + return new QueryAllExpiringPoolTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllExpiringPoolTokenRequest | PlainMessage | undefined, b: QueryAllExpiringPoolTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllExpiringPoolTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllExpiringPoolTokenResponse + */ +export class QueryAllExpiringPoolTokenResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.TemporalVirtualBalancePoolToken expiring_pool_token = 1; + */ + expiringPoolToken: TemporalVirtualBalancePoolToken[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllExpiringPoolTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "expiring_pool_token", kind: "message", T: TemporalVirtualBalancePoolToken, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllExpiringPoolTokenResponse { + return new QueryAllExpiringPoolTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllExpiringPoolTokenResponse { + return new QueryAllExpiringPoolTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllExpiringPoolTokenResponse { + return new QueryAllExpiringPoolTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllExpiringPoolTokenResponse | PlainMessage | undefined, b: QueryAllExpiringPoolTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllExpiringPoolTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryLpTokenRequest + */ +export class QueryLpTokenRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryLpTokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLpTokenRequest { + return new QueryLpTokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLpTokenRequest { + return new QueryLpTokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLpTokenRequest { + return new QueryLpTokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLpTokenRequest | PlainMessage | undefined, b: QueryLpTokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLpTokenRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryLpTokenResponse + */ +export class QueryLpTokenResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.PoolToken lp_token = 1; + */ + lpToken?: PoolToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryLpTokenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lp_token", kind: "message", T: PoolToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLpTokenResponse { + return new QueryLpTokenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLpTokenResponse { + return new QueryLpTokenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLpTokenResponse { + return new QueryLpTokenResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLpTokenResponse | PlainMessage | undefined, b: QueryLpTokenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLpTokenResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateBatchSwapRequest + */ +export class QuerySimulateBatchSwapRequest extends Message { + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 1; + */ + swapType = SwapType.GIVEN_IN; + + /** + * @generated from field: repeated pryzm.amm.v1.SwapStep steps = 2; + */ + steps: SwapStep[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateBatchSwapRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + { no: 2, name: "steps", kind: "message", T: SwapStep, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateBatchSwapRequest { + return new QuerySimulateBatchSwapRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateBatchSwapRequest { + return new QuerySimulateBatchSwapRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateBatchSwapRequest { + return new QuerySimulateBatchSwapRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateBatchSwapRequest | PlainMessage | undefined, b: QuerySimulateBatchSwapRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateBatchSwapRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QuerySimulateBatchSwapResponse + */ +export class QuerySimulateBatchSwapResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 1; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * protocol fee does not contain the y_trade fee and refractor fee + * which is paid in case of a yAsset trade + * + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_protocol_fee = 3; + */ + swapProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin join_exit_protocol_fee = 4; + */ + joinExitProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QuerySimulateBatchSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "swap_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "join_exit_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateBatchSwapResponse { + return new QuerySimulateBatchSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateBatchSwapResponse { + return new QuerySimulateBatchSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateBatchSwapResponse { + return new QuerySimulateBatchSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateBatchSwapResponse | PlainMessage | undefined, b: QuerySimulateBatchSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateBatchSwapResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetYammConfigurationRequest + */ +export class QueryGetYammConfigurationRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetYammConfigurationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetYammConfigurationRequest { + return new QueryGetYammConfigurationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetYammConfigurationRequest { + return new QueryGetYammConfigurationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetYammConfigurationRequest { + return new QueryGetYammConfigurationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetYammConfigurationRequest | PlainMessage | undefined, b: QueryGetYammConfigurationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetYammConfigurationRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetYammConfigurationResponse + */ +export class QueryGetYammConfigurationResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.YammConfiguration yamm_configuration = 1; + */ + yammConfiguration?: YammConfiguration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetYammConfigurationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yamm_configuration", kind: "message", T: YammConfiguration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetYammConfigurationResponse { + return new QueryGetYammConfigurationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetYammConfigurationResponse { + return new QueryGetYammConfigurationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetYammConfigurationResponse { + return new QueryGetYammConfigurationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetYammConfigurationResponse | PlainMessage | undefined, b: QueryGetYammConfigurationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetYammConfigurationResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllYammConfigurationRequest + */ +export class QueryAllYammConfigurationRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllYammConfigurationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllYammConfigurationRequest { + return new QueryAllYammConfigurationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllYammConfigurationRequest { + return new QueryAllYammConfigurationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllYammConfigurationRequest { + return new QueryAllYammConfigurationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllYammConfigurationRequest | PlainMessage | undefined, b: QueryAllYammConfigurationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllYammConfigurationRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllYammConfigurationResponse + */ +export class QueryAllYammConfigurationResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.YammConfiguration yamm_configuration = 1; + */ + yammConfiguration: YammConfiguration[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllYammConfigurationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yamm_configuration", kind: "message", T: YammConfiguration, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllYammConfigurationResponse { + return new QueryAllYammConfigurationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllYammConfigurationResponse { + return new QueryAllYammConfigurationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllYammConfigurationResponse { + return new QueryAllYammConfigurationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllYammConfigurationResponse | PlainMessage | undefined, b: QueryAllYammConfigurationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllYammConfigurationResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWhitelistedRouteRequest + */ +export class QueryGetWhitelistedRouteRequest extends Message { + /** + * @generated from field: string token_in = 1; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 2; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWhitelistedRouteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWhitelistedRouteRequest { + return new QueryGetWhitelistedRouteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWhitelistedRouteRequest { + return new QueryGetWhitelistedRouteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWhitelistedRouteRequest { + return new QueryGetWhitelistedRouteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWhitelistedRouteRequest | PlainMessage | undefined, b: QueryGetWhitelistedRouteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWhitelistedRouteRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetWhitelistedRouteResponse + */ +export class QueryGetWhitelistedRouteResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.WhitelistedRoute whitelisted_route = 1; + */ + whitelistedRoute?: WhitelistedRoute; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetWhitelistedRouteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_route", kind: "message", T: WhitelistedRoute }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetWhitelistedRouteResponse { + return new QueryGetWhitelistedRouteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetWhitelistedRouteResponse { + return new QueryGetWhitelistedRouteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetWhitelistedRouteResponse { + return new QueryGetWhitelistedRouteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetWhitelistedRouteResponse | PlainMessage | undefined, b: QueryGetWhitelistedRouteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetWhitelistedRouteResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWhitelistedRouteRequest + */ +export class QueryAllWhitelistedRouteRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWhitelistedRouteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWhitelistedRouteRequest { + return new QueryAllWhitelistedRouteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWhitelistedRouteRequest { + return new QueryAllWhitelistedRouteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWhitelistedRouteRequest { + return new QueryAllWhitelistedRouteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWhitelistedRouteRequest | PlainMessage | undefined, b: QueryAllWhitelistedRouteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWhitelistedRouteRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllWhitelistedRouteResponse + */ +export class QueryAllWhitelistedRouteResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.WhitelistedRoute whitelisted_route = 1; + */ + whitelistedRoute: WhitelistedRoute[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllWhitelistedRouteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_route", kind: "message", T: WhitelistedRoute, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllWhitelistedRouteResponse { + return new QueryAllWhitelistedRouteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllWhitelistedRouteResponse { + return new QueryAllWhitelistedRouteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllWhitelistedRouteResponse { + return new QueryAllWhitelistedRouteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllWhitelistedRouteResponse | PlainMessage | undefined, b: QueryAllWhitelistedRouteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllWhitelistedRouteResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetOrderRequest + */ +export class QueryGetOrderRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOrderRequest { + return new QueryGetOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOrderRequest { + return new QueryGetOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOrderRequest { + return new QueryGetOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOrderRequest | PlainMessage | undefined, b: QueryGetOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetOrderResponse + */ +export class QueryGetOrderResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.Order order = 1; + */ + order?: Order; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: Order }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOrderResponse { + return new QueryGetOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOrderResponse { + return new QueryGetOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOrderResponse { + return new QueryGetOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOrderResponse | PlainMessage | undefined, b: QueryGetOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllOrderRequest + */ +export class QueryAllOrderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOrderRequest { + return new QueryAllOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOrderRequest { + return new QueryAllOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOrderRequest { + return new QueryAllOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllOrderRequest | PlainMessage | undefined, b: QueryAllOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllOrderResponse + */ +export class QueryAllOrderResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.Order order = 1; + */ + order: Order[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: Order, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOrderResponse { + return new QueryAllOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOrderResponse { + return new QueryAllOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOrderResponse { + return new QueryAllOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllOrderResponse | PlainMessage | undefined, b: QueryAllOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetExecutableOrderRequest + */ +export class QueryGetExecutableOrderRequest extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetExecutableOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetExecutableOrderRequest { + return new QueryGetExecutableOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetExecutableOrderRequest { + return new QueryGetExecutableOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetExecutableOrderRequest { + return new QueryGetExecutableOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetExecutableOrderRequest | PlainMessage | undefined, b: QueryGetExecutableOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetExecutableOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetExecutableOrderResponse + */ +export class QueryGetExecutableOrderResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.Order executable_order = 1; + */ + executableOrder?: Order; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetExecutableOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "executable_order", kind: "message", T: Order }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetExecutableOrderResponse { + return new QueryGetExecutableOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetExecutableOrderResponse { + return new QueryGetExecutableOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetExecutableOrderResponse { + return new QueryGetExecutableOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetExecutableOrderResponse | PlainMessage | undefined, b: QueryGetExecutableOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetExecutableOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllExecutableOrderRequest + */ +export class QueryAllExecutableOrderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllExecutableOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllExecutableOrderRequest { + return new QueryAllExecutableOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllExecutableOrderRequest { + return new QueryAllExecutableOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllExecutableOrderRequest { + return new QueryAllExecutableOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllExecutableOrderRequest | PlainMessage | undefined, b: QueryAllExecutableOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllExecutableOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllExecutableOrderResponse + */ +export class QueryAllExecutableOrderResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.Order executable_order = 1; + */ + executableOrder: Order[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllExecutableOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "executable_order", kind: "message", T: Order, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllExecutableOrderResponse { + return new QueryAllExecutableOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllExecutableOrderResponse { + return new QueryAllExecutableOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllExecutableOrderResponse { + return new QueryAllExecutableOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllExecutableOrderResponse | PlainMessage | undefined, b: QueryAllExecutableOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllExecutableOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetScheduleOrderRequest + */ +export class QueryGetScheduleOrderRequest extends Message { + /** + * @generated from field: uint64 order_id = 1; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetScheduleOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleOrderRequest { + return new QueryGetScheduleOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleOrderRequest { + return new QueryGetScheduleOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleOrderRequest { + return new QueryGetScheduleOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleOrderRequest | PlainMessage | undefined, b: QueryGetScheduleOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetScheduleOrderResponse + */ +export class QueryGetScheduleOrderResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.ScheduleOrder schedule_order = 1; + */ + scheduleOrder?: ScheduleOrder; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetScheduleOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule_order", kind: "message", T: ScheduleOrder }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleOrderResponse { + return new QueryGetScheduleOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleOrderResponse { + return new QueryGetScheduleOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleOrderResponse { + return new QueryGetScheduleOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleOrderResponse | PlainMessage | undefined, b: QueryGetScheduleOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllScheduleOrderRequest + */ +export class QueryAllScheduleOrderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllScheduleOrderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllScheduleOrderRequest { + return new QueryAllScheduleOrderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllScheduleOrderRequest { + return new QueryAllScheduleOrderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllScheduleOrderRequest { + return new QueryAllScheduleOrderRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllScheduleOrderRequest | PlainMessage | undefined, b: QueryAllScheduleOrderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllScheduleOrderRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllScheduleOrderResponse + */ +export class QueryAllScheduleOrderResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.ScheduleOrder schedule_order = 1; + */ + scheduleOrder: ScheduleOrder[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllScheduleOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule_order", kind: "message", T: ScheduleOrder, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllScheduleOrderResponse { + return new QueryAllScheduleOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllScheduleOrderResponse { + return new QueryAllScheduleOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllScheduleOrderResponse { + return new QueryAllScheduleOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllScheduleOrderResponse | PlainMessage | undefined, b: QueryAllScheduleOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllScheduleOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetOraclePricePairRequest + */ +export class QueryGetOraclePricePairRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetOraclePricePairRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOraclePricePairRequest { + return new QueryGetOraclePricePairRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOraclePricePairRequest { + return new QueryGetOraclePricePairRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOraclePricePairRequest { + return new QueryGetOraclePricePairRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOraclePricePairRequest | PlainMessage | undefined, b: QueryGetOraclePricePairRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOraclePricePairRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetOraclePricePairResponse + */ +export class QueryGetOraclePricePairResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.OraclePricePair oracle_price_pair = 1; + */ + oraclePricePair?: OraclePricePair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetOraclePricePairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "oracle_price_pair", kind: "message", T: OraclePricePair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOraclePricePairResponse { + return new QueryGetOraclePricePairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOraclePricePairResponse { + return new QueryGetOraclePricePairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOraclePricePairResponse { + return new QueryGetOraclePricePairResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetOraclePricePairResponse | PlainMessage | undefined, b: QueryGetOraclePricePairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetOraclePricePairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllOraclePricePairRequest + */ +export class QueryAllOraclePricePairRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllOraclePricePairRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOraclePricePairRequest { + return new QueryAllOraclePricePairRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOraclePricePairRequest { + return new QueryAllOraclePricePairRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOraclePricePairRequest { + return new QueryAllOraclePricePairRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllOraclePricePairRequest | PlainMessage | undefined, b: QueryAllOraclePricePairRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllOraclePricePairRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllOraclePricePairResponse + */ +export class QueryAllOraclePricePairResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.OraclePricePair oracle_price_pair = 1; + */ + oraclePricePair: OraclePricePair[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllOraclePricePairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "oracle_price_pair", kind: "message", T: OraclePricePair, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOraclePricePairResponse { + return new QueryAllOraclePricePairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOraclePricePairResponse { + return new QueryAllOraclePricePairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOraclePricePairResponse { + return new QueryAllOraclePricePairResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllOraclePricePairResponse | PlainMessage | undefined, b: QueryAllOraclePricePairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllOraclePricePairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryVaultPauseModeRequest + */ +export class QueryVaultPauseModeRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryVaultPauseModeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultPauseModeRequest { + return new QueryVaultPauseModeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultPauseModeRequest { + return new QueryVaultPauseModeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultPauseModeRequest { + return new QueryVaultPauseModeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultPauseModeRequest | PlainMessage | undefined, b: QueryVaultPauseModeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultPauseModeRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryVaultPauseModeResponse + */ +export class QueryVaultPauseModeResponse extends Message { + /** + * @generated from field: bool paused = 1; + */ + paused = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryVaultPauseModeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "paused", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVaultPauseModeResponse { + return new QueryVaultPauseModeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVaultPauseModeResponse { + return new QueryVaultPauseModeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVaultPauseModeResponse { + return new QueryVaultPauseModeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVaultPauseModeResponse | PlainMessage | undefined, b: QueryVaultPauseModeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVaultPauseModeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPendingTokenIntroductionRequest + */ +export class QueryGetPendingTokenIntroductionRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: uint64 target_pool_id = 2; + */ + targetPoolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPendingTokenIntroductionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingTokenIntroductionRequest { + return new QueryGetPendingTokenIntroductionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingTokenIntroductionRequest { + return new QueryGetPendingTokenIntroductionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingTokenIntroductionRequest { + return new QueryGetPendingTokenIntroductionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingTokenIntroductionRequest | PlainMessage | undefined, b: QueryGetPendingTokenIntroductionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingTokenIntroductionRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryGetPendingTokenIntroductionResponse + */ +export class QueryGetPendingTokenIntroductionResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.PendingTokenIntroduction pending_token_introduction = 1; + */ + pendingTokenIntroduction?: PendingTokenIntroduction; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryGetPendingTokenIntroductionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_token_introduction", kind: "message", T: PendingTokenIntroduction }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPendingTokenIntroductionResponse { + return new QueryGetPendingTokenIntroductionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPendingTokenIntroductionResponse { + return new QueryGetPendingTokenIntroductionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPendingTokenIntroductionResponse { + return new QueryGetPendingTokenIntroductionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPendingTokenIntroductionResponse | PlainMessage | undefined, b: QueryGetPendingTokenIntroductionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPendingTokenIntroductionResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPendingTokenIntroductionRequest + */ +export class QueryAllPendingTokenIntroductionRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPendingTokenIntroductionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingTokenIntroductionRequest { + return new QueryAllPendingTokenIntroductionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingTokenIntroductionRequest { + return new QueryAllPendingTokenIntroductionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingTokenIntroductionRequest { + return new QueryAllPendingTokenIntroductionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingTokenIntroductionRequest | PlainMessage | undefined, b: QueryAllPendingTokenIntroductionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingTokenIntroductionRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllPendingTokenIntroductionResponse + */ +export class QueryAllPendingTokenIntroductionResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.PendingTokenIntroduction pending_token_introduction = 1; + */ + pendingTokenIntroduction: PendingTokenIntroduction[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllPendingTokenIntroductionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pending_token_introduction", kind: "message", T: PendingTokenIntroduction, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingTokenIntroductionResponse { + return new QueryAllPendingTokenIntroductionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingTokenIntroductionResponse { + return new QueryAllPendingTokenIntroductionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingTokenIntroductionResponse { + return new QueryAllPendingTokenIntroductionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPendingTokenIntroductionResponse | PlainMessage | undefined, b: QueryAllPendingTokenIntroductionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPendingTokenIntroductionResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryYammPoolIdRequest + */ +export class QueryYammPoolIdRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryYammPoolIdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYammPoolIdRequest { + return new QueryYammPoolIdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYammPoolIdRequest { + return new QueryYammPoolIdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYammPoolIdRequest { + return new QueryYammPoolIdRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryYammPoolIdRequest | PlainMessage | undefined, b: QueryYammPoolIdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYammPoolIdRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryYammPoolIdResponse + */ +export class QueryYammPoolIdResponse extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryYammPoolIdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryYammPoolIdResponse { + return new QueryYammPoolIdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryYammPoolIdResponse { + return new QueryYammPoolIdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryYammPoolIdResponse { + return new QueryYammPoolIdResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryYammPoolIdResponse | PlainMessage | undefined, b: QueryYammPoolIdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryYammPoolIdResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryOrderStepBoundsRequest + */ +export class QueryOrderStepBoundsRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 4; + */ + whitelistedRoute = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryOrderStepBoundsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderStepBoundsRequest { + return new QueryOrderStepBoundsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderStepBoundsRequest { + return new QueryOrderStepBoundsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderStepBoundsRequest { + return new QueryOrderStepBoundsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderStepBoundsRequest | PlainMessage | undefined, b: QueryOrderStepBoundsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderStepBoundsRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryOrderStepBoundsResponse + */ +export class QueryOrderStepBoundsResponse extends Message { + /** + * @generated from field: string min_step = 1; + */ + minStep = ""; + + /** + * @generated from field: string max_step = 2; + */ + maxStep = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryOrderStepBoundsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_step", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "max_step", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderStepBoundsResponse { + return new QueryOrderStepBoundsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderStepBoundsResponse { + return new QueryOrderStepBoundsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderStepBoundsResponse { + return new QueryOrderStepBoundsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderStepBoundsResponse | PlainMessage | undefined, b: QueryOrderStepBoundsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderStepBoundsResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllDisabledOrderPairRequest + */ +export class QueryAllDisabledOrderPairRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllDisabledOrderPairRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllDisabledOrderPairRequest { + return new QueryAllDisabledOrderPairRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllDisabledOrderPairRequest { + return new QueryAllDisabledOrderPairRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllDisabledOrderPairRequest { + return new QueryAllDisabledOrderPairRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllDisabledOrderPairRequest | PlainMessage | undefined, b: QueryAllDisabledOrderPairRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllDisabledOrderPairRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryAllDisabledOrderPairResponse + */ +export class QueryAllDisabledOrderPairResponse extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.DisabledOrderPair disabled_order_pair = 1; + */ + disabledOrderPair: DisabledOrderPair[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryAllDisabledOrderPairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "disabled_order_pair", kind: "message", T: DisabledOrderPair, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllDisabledOrderPairResponse { + return new QueryAllDisabledOrderPairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllDisabledOrderPairResponse { + return new QueryAllDisabledOrderPairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllDisabledOrderPairResponse { + return new QueryAllDisabledOrderPairResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllDisabledOrderPairResponse | PlainMessage | undefined, b: QueryAllDisabledOrderPairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllDisabledOrderPairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryOrderPairDisabledRequest + */ +export class QueryOrderPairDisabledRequest extends Message { + /** + * @generated from field: bool whitelisted_route = 1; + */ + whitelistedRoute = false; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryOrderPairDisabledRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderPairDisabledRequest { + return new QueryOrderPairDisabledRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderPairDisabledRequest { + return new QueryOrderPairDisabledRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderPairDisabledRequest { + return new QueryOrderPairDisabledRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderPairDisabledRequest | PlainMessage | undefined, b: QueryOrderPairDisabledRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderPairDisabledRequest, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.QueryOrderPairDisabledResponse + */ +export class QueryOrderPairDisabledResponse extends Message { + /** + * @generated from field: bool disabled = 1; + */ + disabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.QueryOrderPairDisabledResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOrderPairDisabledResponse { + return new QueryOrderPairDisabledResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOrderPairDisabledResponse { + return new QueryOrderPairDisabledResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOrderPairDisabledResponse { + return new QueryOrderPairDisabledResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOrderPairDisabledResponse | PlainMessage | undefined, b: QueryOrderPairDisabledResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOrderPairDisabledResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/route_step_pb.ts b/src/protobufs/pryzm/amm/v1/route_step_pb.ts new file mode 100644 index 00000000..f83810ee --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/route_step_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/route_step.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.RouteStep + */ +export class RouteStep extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.RouteStep"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteStep { + return new RouteStep().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteStep { + return new RouteStep().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteStep { + return new RouteStep().fromJsonString(jsonString, options); + } + + static equals(a: RouteStep | PlainMessage | undefined, b: RouteStep | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteStep, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/schedule_order_count_pb.ts b/src/protobufs/pryzm/amm/v1/schedule_order_count_pb.ts new file mode 100644 index 00000000..ab1cb343 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/schedule_order_count_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/schedule_order_count.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.ExecutableOrderCount + */ +export class ExecutableOrderCount extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 4; + */ + whitelistedRoute = false; + + /** + * @generated from field: uint64 count = 5; + */ + count = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.ExecutableOrderCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutableOrderCount { + return new ExecutableOrderCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutableOrderCount { + return new ExecutableOrderCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutableOrderCount { + return new ExecutableOrderCount().fromJsonString(jsonString, options); + } + + static equals(a: ExecutableOrderCount | PlainMessage | undefined, b: ExecutableOrderCount | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutableOrderCount, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/schedule_order_pb.ts b/src/protobufs/pryzm/amm/v1/schedule_order_pb.ts new file mode 100644 index 00000000..4425d2d4 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/schedule_order_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/schedule_order.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.ScheduleOrder + */ +export class ScheduleOrder extends Message { + /** + * @generated from field: int64 time_millis = 1; + */ + timeMillis = protoInt64.zero; + + /** + * @generated from field: uint64 order_id = 2; + */ + orderId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.ScheduleOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "time_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "order_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ScheduleOrder { + return new ScheduleOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ScheduleOrder { + return new ScheduleOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ScheduleOrder { + return new ScheduleOrder().fromJsonString(jsonString, options); + } + + static equals(a: ScheduleOrder | PlainMessage | undefined, b: ScheduleOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(ScheduleOrder, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/token_circuit_breaker_settings_pb.ts b/src/protobufs/pryzm/amm/v1/token_circuit_breaker_settings_pb.ts new file mode 100644 index 00000000..03f6a224 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/token_circuit_breaker_settings_pb.ts @@ -0,0 +1,100 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/token_circuit_breaker_settings.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.TokenCircuitBreakerSettings + */ +export class TokenCircuitBreakerSettings extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: pryzm.amm.v1.CircuitBreakerSettings circuit_breaker = 2; + */ + circuitBreaker?: CircuitBreakerSettings; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.TokenCircuitBreakerSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "circuit_breaker", kind: "message", T: CircuitBreakerSettings }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenCircuitBreakerSettings { + return new TokenCircuitBreakerSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenCircuitBreakerSettings { + return new TokenCircuitBreakerSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenCircuitBreakerSettings { + return new TokenCircuitBreakerSettings().fromJsonString(jsonString, options); + } + + static equals(a: TokenCircuitBreakerSettings | PlainMessage | undefined, b: TokenCircuitBreakerSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenCircuitBreakerSettings, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.CircuitBreakerSettings + */ +export class CircuitBreakerSettings extends Message { + /** + * @generated from field: string reference_lpt_price = 1; + */ + referenceLptPrice = ""; + + /** + * @generated from field: string lower_bound = 2; + */ + lowerBound = ""; + + /** + * @generated from field: string upper_bound = 3; + */ + upperBound = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.CircuitBreakerSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reference_lpt_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lower_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "upper_bound", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CircuitBreakerSettings { + return new CircuitBreakerSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CircuitBreakerSettings { + return new CircuitBreakerSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CircuitBreakerSettings { + return new CircuitBreakerSettings().fromJsonString(jsonString, options); + } + + static equals(a: CircuitBreakerSettings | PlainMessage | undefined, b: CircuitBreakerSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(CircuitBreakerSettings, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/token_weight_pb.ts b/src/protobufs/pryzm/amm/v1/token_weight_pb.ts new file mode 100644 index 00000000..30070867 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/token_weight_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/token_weight.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.TokenWeight + */ +export class TokenWeight extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string normalized_weight = 2; + */ + normalizedWeight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.TokenWeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TokenWeight { + return new TokenWeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TokenWeight { + return new TokenWeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TokenWeight { + return new TokenWeight().fromJsonString(jsonString, options); + } + + static equals(a: TokenWeight | PlainMessage | undefined, b: TokenWeight | PlainMessage | undefined): boolean { + return proto3.util.equals(TokenWeight, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/tx_cosmes.ts b/src/protobufs/pryzm/amm/v1/tx_cosmes.ts new file mode 100644 index 00000000..0c05566a --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/tx_cosmes.ts @@ -0,0 +1,421 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/amm/v1/tx.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddMaturityToYamm, MsgAddMaturityToYammResponse, MsgBatchSwap, MsgBatchSwapResponse, MsgCancelOrder, MsgCancelOrderResponse, MsgCancelPendingTokenIntroduction, MsgCancelPendingTokenIntroductionResponse, MsgCreateOraclePricePair, MsgCreateOraclePricePairResponse, MsgCreateWeightedPool, MsgCreateWeightedPoolResponse, MsgDeleteOraclePricePair, MsgDeleteOraclePricePairResponse, MsgExitAllTokensExactLpt, MsgExitAllTokensExactLptResponse, MsgExitExactTokens, MsgExitExactTokensResponse, MsgExitTokenExactLpt, MsgExitTokenExactLptResponse, MsgInitializePool, MsgInitializePoolResponse, MsgIntroduceAssetBaseTokenToWeightedPool, MsgIntroduceAssetBaseTokenToWeightedPoolResponse, MsgIntroduceYammLpToWeightedPool, MsgIntroduceYammLpToWeightedPoolResponse, MsgJoinAllTokensExactLpt, MsgJoinAllTokensExactLptResponse, MsgJoinExactTokens, MsgJoinExactTokensResponse, MsgJoinTokenExactLpt, MsgJoinTokenExactLptResponse, MsgProposeMatch, MsgProposeMatchResponse, MsgRecoveryExit, MsgRecoveryExitResponse, MsgRemoveTokenFromWeightedPool, MsgRemoveTokenFromWeightedPoolResponse, MsgSetCircuitBreakers, MsgSetCircuitBreakersResponse, MsgSetInitializationAllowList, MsgSetInitializationAllowListResponse, MsgSetJoinExitProtocolFee, MsgSetJoinExitProtocolFeeResponse, MsgSetOrderPairDisabled, MsgSetOrderPairDisabledResponse, MsgSetPauseAllowList, MsgSetPauseAllowListResponse, MsgSetPauseMode, MsgSetPauseModeResponse, MsgSetPauseWindow, MsgSetPauseWindowResponse, MsgSetPoolAdmins, MsgSetPoolAdminsResponse, MsgSetPoolJoinBlocked, MsgSetPoolJoinBlockedResponse, MsgSetRecoveryMode, MsgSetRecoveryModeResponse, MsgSetSwapProtocolFee, MsgSetSwapProtocolFeeResponse, MsgSetVaultPauseMode, MsgSetVaultPauseModeResponse, MsgSetWhitelistedRouteEnabled, MsgSetWhitelistedRouteEnabledResponse, MsgSetYammConfiguration, MsgSetYammConfigurationResponse, MsgSingleSwap, MsgSingleSwapResponse, MsgSubmitOrder, MsgSubmitOrderResponse, MsgUpdateOraclePricePair, MsgUpdateOraclePricePairResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateSwapFee, MsgUpdateSwapFeeResponse, MsgUpdateWeights, MsgUpdateWeightsResponse, MsgWhitelistRoute, MsgWhitelistRouteResponse, MsgZeroImpactJoinYamm, MsgZeroImpactJoinYammResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.amm.v1.Msg"; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SingleSwap + */ +export const MsgSingleSwapService = { + typeName: TYPE_NAME, + method: "SingleSwap", + Request: MsgSingleSwap, + Response: MsgSingleSwapResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.JoinAllTokensExactLpt + */ +export const MsgJoinAllTokensExactLptService = { + typeName: TYPE_NAME, + method: "JoinAllTokensExactLpt", + Request: MsgJoinAllTokensExactLpt, + Response: MsgJoinAllTokensExactLptResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.JoinTokenExactLpt + */ +export const MsgJoinTokenExactLptService = { + typeName: TYPE_NAME, + method: "JoinTokenExactLpt", + Request: MsgJoinTokenExactLpt, + Response: MsgJoinTokenExactLptResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.JoinExactTokens + */ +export const MsgJoinExactTokensService = { + typeName: TYPE_NAME, + method: "JoinExactTokens", + Request: MsgJoinExactTokens, + Response: MsgJoinExactTokensResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.ZeroImpactJoinYamm + */ +export const MsgZeroImpactJoinYammService = { + typeName: TYPE_NAME, + method: "ZeroImpactJoinYamm", + Request: MsgZeroImpactJoinYamm, + Response: MsgZeroImpactJoinYammResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.ExitExactTokens + */ +export const MsgExitExactTokensService = { + typeName: TYPE_NAME, + method: "ExitExactTokens", + Request: MsgExitExactTokens, + Response: MsgExitExactTokensResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.ExitTokenExactLpt + */ +export const MsgExitTokenExactLptService = { + typeName: TYPE_NAME, + method: "ExitTokenExactLpt", + Request: MsgExitTokenExactLpt, + Response: MsgExitTokenExactLptResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.ExitAllTokensExactLpt + */ +export const MsgExitAllTokensExactLptService = { + typeName: TYPE_NAME, + method: "ExitAllTokensExactLpt", + Request: MsgExitAllTokensExactLpt, + Response: MsgExitAllTokensExactLptResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.CreateWeightedPool + */ +export const MsgCreateWeightedPoolService = { + typeName: TYPE_NAME, + method: "CreateWeightedPool", + Request: MsgCreateWeightedPool, + Response: MsgCreateWeightedPoolResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.UpdateSwapFee + */ +export const MsgUpdateSwapFeeService = { + typeName: TYPE_NAME, + method: "UpdateSwapFee", + Request: MsgUpdateSwapFee, + Response: MsgUpdateSwapFeeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.InitializePool + */ +export const MsgInitializePoolService = { + typeName: TYPE_NAME, + method: "InitializePool", + Request: MsgInitializePool, + Response: MsgInitializePoolResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.UpdateWeights + */ +export const MsgUpdateWeightsService = { + typeName: TYPE_NAME, + method: "UpdateWeights", + Request: MsgUpdateWeights, + Response: MsgUpdateWeightsResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.BatchSwap + */ +export const MsgBatchSwapService = { + typeName: TYPE_NAME, + method: "BatchSwap", + Request: MsgBatchSwap, + Response: MsgBatchSwapResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetYammConfiguration + */ +export const MsgSetYammConfigurationService = { + typeName: TYPE_NAME, + method: "SetYammConfiguration", + Request: MsgSetYammConfiguration, + Response: MsgSetYammConfigurationResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.WhitelistRoute + */ +export const MsgWhitelistRouteService = { + typeName: TYPE_NAME, + method: "WhitelistRoute", + Request: MsgWhitelistRoute, + Response: MsgWhitelistRouteResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetWhitelistedRouteEnabled + */ +export const MsgSetWhitelistedRouteEnabledService = { + typeName: TYPE_NAME, + method: "SetWhitelistedRouteEnabled", + Request: MsgSetWhitelistedRouteEnabled, + Response: MsgSetWhitelistedRouteEnabledResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SubmitOrder + */ +export const MsgSubmitOrderService = { + typeName: TYPE_NAME, + method: "SubmitOrder", + Request: MsgSubmitOrder, + Response: MsgSubmitOrderResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.CancelOrder + */ +export const MsgCancelOrderService = { + typeName: TYPE_NAME, + method: "CancelOrder", + Request: MsgCancelOrder, + Response: MsgCancelOrderResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.ProposeMatch + */ +export const MsgProposeMatchService = { + typeName: TYPE_NAME, + method: "ProposeMatch", + Request: MsgProposeMatch, + Response: MsgProposeMatchResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetCircuitBreakers + */ +export const MsgSetCircuitBreakersService = { + typeName: TYPE_NAME, + method: "SetCircuitBreakers", + Request: MsgSetCircuitBreakers, + Response: MsgSetCircuitBreakersResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetRecoveryMode + */ +export const MsgSetRecoveryModeService = { + typeName: TYPE_NAME, + method: "SetRecoveryMode", + Request: MsgSetRecoveryMode, + Response: MsgSetRecoveryModeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.RecoveryExit + */ +export const MsgRecoveryExitService = { + typeName: TYPE_NAME, + method: "RecoveryExit", + Request: MsgRecoveryExit, + Response: MsgRecoveryExitResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetPauseMode + */ +export const MsgSetPauseModeService = { + typeName: TYPE_NAME, + method: "SetPauseMode", + Request: MsgSetPauseMode, + Response: MsgSetPauseModeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetVaultPauseMode + */ +export const MsgSetVaultPauseModeService = { + typeName: TYPE_NAME, + method: "SetVaultPauseMode", + Request: MsgSetVaultPauseMode, + Response: MsgSetVaultPauseModeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.CreateOraclePricePair + */ +export const MsgCreateOraclePricePairService = { + typeName: TYPE_NAME, + method: "CreateOraclePricePair", + Request: MsgCreateOraclePricePair, + Response: MsgCreateOraclePricePairResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.UpdateOraclePricePair + */ +export const MsgUpdateOraclePricePairService = { + typeName: TYPE_NAME, + method: "UpdateOraclePricePair", + Request: MsgUpdateOraclePricePair, + Response: MsgUpdateOraclePricePairResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.DeleteOraclePricePair + */ +export const MsgDeleteOraclePricePairService = { + typeName: TYPE_NAME, + method: "DeleteOraclePricePair", + Request: MsgDeleteOraclePricePair, + Response: MsgDeleteOraclePricePairResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetSwapProtocolFee + */ +export const MsgSetSwapProtocolFeeService = { + typeName: TYPE_NAME, + method: "SetSwapProtocolFee", + Request: MsgSetSwapProtocolFee, + Response: MsgSetSwapProtocolFeeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetJoinExitProtocolFee + */ +export const MsgSetJoinExitProtocolFeeService = { + typeName: TYPE_NAME, + method: "SetJoinExitProtocolFee", + Request: MsgSetJoinExitProtocolFee, + Response: MsgSetJoinExitProtocolFeeResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.IntroduceYammLpToWeightedPool + */ +export const MsgIntroduceYammLpToWeightedPoolService = { + typeName: TYPE_NAME, + method: "IntroduceYammLpToWeightedPool", + Request: MsgIntroduceYammLpToWeightedPool, + Response: MsgIntroduceYammLpToWeightedPoolResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.IntroduceAssetBaseTokenToWeightedPool + */ +export const MsgIntroduceAssetBaseTokenToWeightedPoolService = { + typeName: TYPE_NAME, + method: "IntroduceAssetBaseTokenToWeightedPool", + Request: MsgIntroduceAssetBaseTokenToWeightedPool, + Response: MsgIntroduceAssetBaseTokenToWeightedPoolResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.CancelPendingTokenIntroduction + */ +export const MsgCancelPendingTokenIntroductionService = { + typeName: TYPE_NAME, + method: "CancelPendingTokenIntroduction", + Request: MsgCancelPendingTokenIntroduction, + Response: MsgCancelPendingTokenIntroductionResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.RemoveTokenFromWeightedPool + */ +export const MsgRemoveTokenFromWeightedPoolService = { + typeName: TYPE_NAME, + method: "RemoveTokenFromWeightedPool", + Request: MsgRemoveTokenFromWeightedPool, + Response: MsgRemoveTokenFromWeightedPoolResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.AddMaturityToYamm + */ +export const MsgAddMaturityToYammService = { + typeName: TYPE_NAME, + method: "AddMaturityToYamm", + Request: MsgAddMaturityToYamm, + Response: MsgAddMaturityToYammResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetInitializationAllowList + */ +export const MsgSetInitializationAllowListService = { + typeName: TYPE_NAME, + method: "SetInitializationAllowList", + Request: MsgSetInitializationAllowList, + Response: MsgSetInitializationAllowListResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetPoolAdmins + */ +export const MsgSetPoolAdminsService = { + typeName: TYPE_NAME, + method: "SetPoolAdmins", + Request: MsgSetPoolAdmins, + Response: MsgSetPoolAdminsResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetPoolJoinBlocked + */ +export const MsgSetPoolJoinBlockedService = { + typeName: TYPE_NAME, + method: "SetPoolJoinBlocked", + Request: MsgSetPoolJoinBlocked, + Response: MsgSetPoolJoinBlockedResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetPauseAllowList + */ +export const MsgSetPauseAllowListService = { + typeName: TYPE_NAME, + method: "SetPauseAllowList", + Request: MsgSetPauseAllowList, + Response: MsgSetPauseAllowListResponse, +} as const; + +/** + * @generated from rpc pryzm.amm.v1.Msg.SetPauseWindow + */ +export const MsgSetPauseWindowService = { + typeName: TYPE_NAME, + method: "SetPauseWindow", + Request: MsgSetPauseWindow, + Response: MsgSetPauseWindowResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.amm.v1.Msg.SetOrderPairDisabled + */ +export const MsgSetOrderPairDisabledService = { + typeName: TYPE_NAME, + method: "SetOrderPairDisabled", + Request: MsgSetOrderPairDisabled, + Response: MsgSetOrderPairDisabledResponse, +} as const; + diff --git a/src/protobufs/pryzm/amm/v1/tx_pb.ts b/src/protobufs/pryzm/amm/v1/tx_pb.ts new file mode 100644 index 00000000..2b24a53f --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/tx_pb.ts @@ -0,0 +1,3860 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/tx.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Swap, SwapStep, SwapType } from "./operations_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { PoolPauseWindow, SwapFeeUpdateParams } from "./pool_pb.js"; +import { TokenWeight } from "./token_weight_pb.js"; +import { YammConfiguration } from "./yamm_configuration_pb.js"; +import { WhitelistedRoute } from "./whitelisted_route_pb.js"; +import { DisabledOrderPair, Order } from "./order_pb.js"; +import { MatchedPairSummary, PairMatchProposal } from "./pair_match_proposal_pb.js"; +import { TokenCircuitBreakerSettings } from "./token_circuit_breaker_settings_pb.js"; +import { OraclePricePair } from "./oracle_price_pair_pb.js"; +import { AuthorizationParameters, GasParameters, GeneralPoolParameters, OrderParameters, WeightedPoolParameters, YammParameters } from "./params_pb.js"; + +/** + * @generated from message pryzm.amm.v1.MsgSingleSwap + */ +export class MsgSingleSwap extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: pryzm.amm.v1.Swap swap = 2; + */ + swap?: Swap; + + /** + * @generated from field: string max_amount_in = 3; + */ + maxAmountIn = ""; + + /** + * @generated from field: string min_amount_out = 4; + */ + minAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSingleSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap", kind: "message", T: Swap }, + { no: 3, name: "max_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSingleSwap { + return new MsgSingleSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSingleSwap { + return new MsgSingleSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSingleSwap { + return new MsgSingleSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgSingleSwap | PlainMessage | undefined, b: MsgSingleSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSingleSwap, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSingleSwapResponse + */ +export class MsgSingleSwapResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 1; + */ + amountOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 2; + */ + amountIn?: Coin; + + /** + * protocol fee does not contain the y_trade fee and refractor fee + * which is paid in case of a yAsset trade + * + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSingleSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount_out", kind: "message", T: Coin }, + { no: 2, name: "amount_in", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSingleSwapResponse { + return new MsgSingleSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSingleSwapResponse { + return new MsgSingleSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSingleSwapResponse { + return new MsgSingleSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSingleSwapResponse | PlainMessage | undefined, b: MsgSingleSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSingleSwapResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinAllTokensExactLpt + */ +export class MsgJoinAllTokensExactLpt extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_out = 3; + */ + lptOut = ""; + + /** + * is not casted to coins, to allow for zero limits + * + * @generated from field: repeated cosmos.base.v1beta1.Coin max_amounts_in = 4; + */ + maxAmountsIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinAllTokensExactLpt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "max_amounts_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinAllTokensExactLpt { + return new MsgJoinAllTokensExactLpt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinAllTokensExactLpt { + return new MsgJoinAllTokensExactLpt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinAllTokensExactLpt { + return new MsgJoinAllTokensExactLpt().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinAllTokensExactLpt | PlainMessage | undefined, b: MsgJoinAllTokensExactLpt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinAllTokensExactLpt, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinAllTokensExactLptResponse + */ +export class MsgJoinAllTokensExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinAllTokensExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinAllTokensExactLptResponse { + return new MsgJoinAllTokensExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinAllTokensExactLptResponse { + return new MsgJoinAllTokensExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinAllTokensExactLptResponse { + return new MsgJoinAllTokensExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinAllTokensExactLptResponse | PlainMessage | undefined, b: MsgJoinAllTokensExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinAllTokensExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinTokenExactLpt + */ +export class MsgJoinTokenExactLpt extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_out = 3; + */ + lptOut = ""; + + /** + * @generated from field: string token_in = 4; + */ + tokenIn = ""; + + /** + * @generated from field: string max_amount_in = 5; + */ + maxAmountIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinTokenExactLpt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinTokenExactLpt { + return new MsgJoinTokenExactLpt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinTokenExactLpt { + return new MsgJoinTokenExactLpt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinTokenExactLpt { + return new MsgJoinTokenExactLpt().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinTokenExactLpt | PlainMessage | undefined, b: MsgJoinTokenExactLpt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinTokenExactLpt, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinTokenExactLptResponse + */ +export class MsgJoinTokenExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 2; + */ + amountIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinTokenExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amount_in", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinTokenExactLptResponse { + return new MsgJoinTokenExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinTokenExactLptResponse { + return new MsgJoinTokenExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinTokenExactLptResponse { + return new MsgJoinTokenExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinTokenExactLptResponse | PlainMessage | undefined, b: MsgJoinTokenExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinTokenExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinExactTokens + */ +export class MsgJoinExactTokens extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 3; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: string min_lpt_out = 4; + */ + minLptOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinExactTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "min_lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinExactTokens { + return new MsgJoinExactTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinExactTokens { + return new MsgJoinExactTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinExactTokens { + return new MsgJoinExactTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinExactTokens | PlainMessage | undefined, b: MsgJoinExactTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinExactTokens, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgJoinExactTokensResponse + */ +export class MsgJoinExactTokensResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgJoinExactTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinExactTokensResponse { + return new MsgJoinExactTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinExactTokensResponse { + return new MsgJoinExactTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgJoinExactTokensResponse { + return new MsgJoinExactTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgJoinExactTokensResponse | PlainMessage | undefined, b: MsgJoinExactTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgJoinExactTokensResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgZeroImpactJoinYamm + */ +export class MsgZeroImpactJoinYamm extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount_in = 2; + */ + cAmountIn?: Coin; + + /** + * @generated from field: string min_lpt_out = 3; + */ + minLptOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgZeroImpactJoinYamm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "c_amount_in", kind: "message", T: Coin }, + { no: 3, name: "min_lpt_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgZeroImpactJoinYamm { + return new MsgZeroImpactJoinYamm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgZeroImpactJoinYamm { + return new MsgZeroImpactJoinYamm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgZeroImpactJoinYamm { + return new MsgZeroImpactJoinYamm().fromJsonString(jsonString, options); + } + + static equals(a: MsgZeroImpactJoinYamm | PlainMessage | undefined, b: MsgZeroImpactJoinYamm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgZeroImpactJoinYamm, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgZeroImpactJoinYammResponse + */ +export class MsgZeroImpactJoinYammResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin y_out = 2; + */ + yOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin refract_fee = 3; + */ + refractFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin join_protocol_fee = 4; + */ + joinProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgZeroImpactJoinYammResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "y_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "refract_fee", kind: "message", T: Coin }, + { no: 4, name: "join_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgZeroImpactJoinYammResponse { + return new MsgZeroImpactJoinYammResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgZeroImpactJoinYammResponse { + return new MsgZeroImpactJoinYammResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgZeroImpactJoinYammResponse { + return new MsgZeroImpactJoinYammResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgZeroImpactJoinYammResponse | PlainMessage | undefined, b: MsgZeroImpactJoinYammResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgZeroImpactJoinYammResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitExactTokens + */ +export class MsgExitExactTokens extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 3; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: string max_lpt_in = 4; + */ + maxLptIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitExactTokens"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "max_lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitExactTokens { + return new MsgExitExactTokens().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitExactTokens { + return new MsgExitExactTokens().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitExactTokens { + return new MsgExitExactTokens().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitExactTokens | PlainMessage | undefined, b: MsgExitExactTokens | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitExactTokens, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitExactTokensResponse + */ +export class MsgExitExactTokensResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitExactTokensResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitExactTokensResponse { + return new MsgExitExactTokensResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitExactTokensResponse { + return new MsgExitExactTokensResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitExactTokensResponse { + return new MsgExitExactTokensResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitExactTokensResponse | PlainMessage | undefined, b: MsgExitExactTokensResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitExactTokensResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitTokenExactLpt + */ +export class MsgExitTokenExactLpt extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 3; + */ + lptIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * @generated from field: string min_amount_out = 5; + */ + minAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitTokenExactLpt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "min_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitTokenExactLpt { + return new MsgExitTokenExactLpt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitTokenExactLpt { + return new MsgExitTokenExactLpt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitTokenExactLpt { + return new MsgExitTokenExactLpt().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitTokenExactLpt | PlainMessage | undefined, b: MsgExitTokenExactLpt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitTokenExactLpt, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitTokenExactLptResponse + */ +export class MsgExitTokenExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 2; + */ + amountOut?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin swap_fee = 4; + */ + swapFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitTokenExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amount_out", kind: "message", T: Coin }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + { no: 4, name: "swap_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitTokenExactLptResponse { + return new MsgExitTokenExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitTokenExactLptResponse { + return new MsgExitTokenExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitTokenExactLptResponse { + return new MsgExitTokenExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitTokenExactLptResponse | PlainMessage | undefined, b: MsgExitTokenExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitTokenExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitAllTokensExactLpt + */ +export class MsgExitAllTokensExactLpt extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 3; + */ + lptIn = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 4; + */ + minAmountsOut: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitAllTokensExactLpt"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitAllTokensExactLpt { + return new MsgExitAllTokensExactLpt().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitAllTokensExactLpt { + return new MsgExitAllTokensExactLpt().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitAllTokensExactLpt { + return new MsgExitAllTokensExactLpt().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitAllTokensExactLpt | PlainMessage | undefined, b: MsgExitAllTokensExactLpt | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitAllTokensExactLpt, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgExitAllTokensExactLptResponse + */ +export class MsgExitAllTokensExactLptResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * @generated from field: cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgExitAllTokensExactLptResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitAllTokensExactLptResponse { + return new MsgExitAllTokensExactLptResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitAllTokensExactLptResponse { + return new MsgExitAllTokensExactLptResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitAllTokensExactLptResponse { + return new MsgExitAllTokensExactLptResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitAllTokensExactLptResponse | PlainMessage | undefined, b: MsgExitAllTokensExactLptResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitAllTokensExactLptResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.CreateWeightedPoolToken + */ +export class CreateWeightedPoolToken extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string normalized_weight = 3; + */ + normalizedWeight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.CreateWeightedPoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateWeightedPoolToken { + return new CreateWeightedPoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateWeightedPoolToken { + return new CreateWeightedPoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateWeightedPoolToken { + return new CreateWeightedPoolToken().fromJsonString(jsonString, options); + } + + static equals(a: CreateWeightedPoolToken | PlainMessage | undefined, b: CreateWeightedPoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateWeightedPoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCreateWeightedPool + */ +export class MsgCreateWeightedPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * if update params is nil, this is the actual swap fee, o.w. you need to apply gradual update between this start and the end in params. + * + * @generated from field: string start_swap_fee_ratio = 3; + */ + startSwapFeeRatio = ""; + + /** + * @generated from field: int64 pause_window_duration_millis = 4; + */ + pauseWindowDurationMillis = protoInt64.zero; + + /** + * @generated from field: int64 pause_buffer_duration_millis = 5; + */ + pauseBufferDurationMillis = protoInt64.zero; + + /** + * @generated from field: repeated pryzm.amm.v1.CreateWeightedPoolToken tokens = 6; + */ + tokens: CreateWeightedPoolToken[] = []; + + /** + * if not empty, only these addresses can initialize the pool + * + * @generated from field: repeated string initialization_allow_list = 12; + */ + initializationAllowList: string[] = []; + + /** + * if the creator is admin, they can create pools owned by governance + * NOTE: when public pool creation is not allowed, admin must set this to true + * NOTE: governance can leave this to false, as it already is the creator of the msg + * + * @generated from field: bool force_gov_owner = 13; + */ + forceGovOwner = false; + + /** + * @generated from field: repeated string admins = 14; + */ + admins: string[] = []; + + /** + * @generated from field: repeated string pause_allow_list = 15; + */ + pauseAllowList: string[] = []; + + /** + * @generated from field: pryzm.amm.v1.SwapFeeUpdateParams swap_fee_update_params = 16; + */ + swapFeeUpdateParams?: SwapFeeUpdateParams; + + /** + * @generated from field: bool join_blocked = 17; + */ + joinBlocked = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCreateWeightedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_swap_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pause_window_duration_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "pause_buffer_duration_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "tokens", kind: "message", T: CreateWeightedPoolToken, repeated: true }, + { no: 12, name: "initialization_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 13, name: "force_gov_owner", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 15, name: "pause_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 16, name: "swap_fee_update_params", kind: "message", T: SwapFeeUpdateParams }, + { no: 17, name: "join_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateWeightedPool { + return new MsgCreateWeightedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateWeightedPool { + return new MsgCreateWeightedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateWeightedPool { + return new MsgCreateWeightedPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateWeightedPool | PlainMessage | undefined, b: MsgCreateWeightedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateWeightedPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCreateWeightedPoolResponse + */ +export class MsgCreateWeightedPoolResponse extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCreateWeightedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateWeightedPoolResponse { + return new MsgCreateWeightedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateWeightedPoolResponse { + return new MsgCreateWeightedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateWeightedPoolResponse { + return new MsgCreateWeightedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateWeightedPoolResponse | PlainMessage | undefined, b: MsgCreateWeightedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateWeightedPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateSwapFee + */ +export class MsgUpdateSwapFee extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * if update params is nil, this is the actual swap fee, o.w. you need to apply gradual update between this start and the end in params. + * + * @generated from field: string start_swap_fee_ratio = 3; + */ + startSwapFeeRatio = ""; + + /** + * @generated from field: pryzm.amm.v1.SwapFeeUpdateParams gradual_update_params = 4; + */ + gradualUpdateParams?: SwapFeeUpdateParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateSwapFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "start_swap_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gradual_update_params", kind: "message", T: SwapFeeUpdateParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSwapFee { + return new MsgUpdateSwapFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSwapFee { + return new MsgUpdateSwapFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSwapFee { + return new MsgUpdateSwapFee().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSwapFee | PlainMessage | undefined, b: MsgUpdateSwapFee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSwapFee, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateSwapFeeResponse + */ +export class MsgUpdateSwapFeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateSwapFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSwapFeeResponse { + return new MsgUpdateSwapFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSwapFeeResponse { + return new MsgUpdateSwapFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSwapFeeResponse { + return new MsgUpdateSwapFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateSwapFeeResponse | PlainMessage | undefined, b: MsgUpdateSwapFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateSwapFeeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgInitializePool + */ +export class MsgInitializePool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 3; + */ + amountsIn: Coin[] = []; + + /** + * this is only supported for weighted pools + * + * @generated from field: repeated cosmos.base.v1beta1.Coin permanent_virtual_balances = 4; + */ + permanentVirtualBalances: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgInitializePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "permanent_virtual_balances", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitializePool { + return new MsgInitializePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitializePool { + return new MsgInitializePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitializePool { + return new MsgInitializePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitializePool | PlainMessage | undefined, b: MsgInitializePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitializePool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgInitializePoolResponse + */ +export class MsgInitializePoolResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_out = 1; + */ + lptOut?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 2; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin protocol_fee = 3; + */ + protocolFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgInitializePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_out", kind: "message", T: Coin }, + { no: 2, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "protocol_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitializePoolResponse { + return new MsgInitializePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitializePoolResponse { + return new MsgInitializePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitializePoolResponse { + return new MsgInitializePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitializePoolResponse | PlainMessage | undefined, b: MsgInitializePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitializePoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateWeights + */ +export class MsgUpdateWeights extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated pryzm.amm.v1.TokenWeight token_weights = 3; + */ + tokenWeights: TokenWeight[] = []; + + /** + * @generated from field: int64 start_time_unix_millis = 4; + */ + startTimeUnixMillis = protoInt64.zero; + + /** + * @generated from field: int64 end_time_unix_millis = 5; + */ + endTimeUnixMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateWeights"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_weights", kind: "message", T: TokenWeight, repeated: true }, + { no: 4, name: "start_time_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "end_time_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateWeights { + return new MsgUpdateWeights().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateWeights { + return new MsgUpdateWeights().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateWeights { + return new MsgUpdateWeights().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateWeights | PlainMessage | undefined, b: MsgUpdateWeights | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateWeights, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateWeightsResponse + */ +export class MsgUpdateWeightsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateWeightsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateWeightsResponse { + return new MsgUpdateWeightsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateWeightsResponse { + return new MsgUpdateWeightsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateWeightsResponse { + return new MsgUpdateWeightsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateWeightsResponse | PlainMessage | undefined, b: MsgUpdateWeightsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateWeightsResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgBatchSwap + */ +export class MsgBatchSwap extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: pryzm.amm.v1.SwapType swap_type = 2; + */ + swapType = SwapType.GIVEN_IN; + + /** + * @generated from field: repeated pryzm.amm.v1.SwapStep steps = 3; + */ + steps: SwapStep[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 4; + */ + minAmountsOut: Coin[] = []; + + /** + * is not casted to coins, to allow for zero limits + * + * @generated from field: repeated cosmos.base.v1beta1.Coin max_amounts_in = 5; + */ + maxAmountsIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgBatchSwap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) }, + { no: 3, name: "steps", kind: "message", T: SwapStep, repeated: true }, + { no: 4, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "max_amounts_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchSwap { + return new MsgBatchSwap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchSwap { + return new MsgBatchSwap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchSwap { + return new MsgBatchSwap().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchSwap | PlainMessage | undefined, b: MsgBatchSwap | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchSwap, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgBatchSwapResponse + */ +export class MsgBatchSwapResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_in = 1; + */ + amountsIn: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + /** + * protocol fee does not contain the y_trade fee and refractor fee + * which is paid in case of a yAsset trade + * + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_protocol_fee = 3; + */ + swapProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin join_exit_protocol_fee = 4; + */ + joinExitProtocolFee: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin swap_fee = 5; + */ + swapFee: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgBatchSwapResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amounts_in", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 3, name: "swap_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "join_exit_protocol_fee", kind: "message", T: Coin, repeated: true }, + { no: 5, name: "swap_fee", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBatchSwapResponse { + return new MsgBatchSwapResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBatchSwapResponse { + return new MsgBatchSwapResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBatchSwapResponse { + return new MsgBatchSwapResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBatchSwapResponse | PlainMessage | undefined, b: MsgBatchSwapResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBatchSwapResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetYammConfiguration + */ +export class MsgSetYammConfiguration extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: pryzm.amm.v1.YammConfiguration configuration = 2; + */ + configuration?: YammConfiguration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetYammConfiguration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "configuration", kind: "message", T: YammConfiguration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetYammConfiguration { + return new MsgSetYammConfiguration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetYammConfiguration { + return new MsgSetYammConfiguration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetYammConfiguration { + return new MsgSetYammConfiguration().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetYammConfiguration | PlainMessage | undefined, b: MsgSetYammConfiguration | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetYammConfiguration, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetYammConfigurationResponse + */ +export class MsgSetYammConfigurationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetYammConfigurationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetYammConfigurationResponse { + return new MsgSetYammConfigurationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetYammConfigurationResponse { + return new MsgSetYammConfigurationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetYammConfigurationResponse { + return new MsgSetYammConfigurationResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetYammConfigurationResponse | PlainMessage | undefined, b: MsgSetYammConfigurationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetYammConfigurationResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgWhitelistRoute + */ +export class MsgWhitelistRoute extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.amm.v1.WhitelistedRoute whitelisted_route = 2; + */ + whitelistedRoute?: WhitelistedRoute; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgWhitelistRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "whitelisted_route", kind: "message", T: WhitelistedRoute }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistRoute { + return new MsgWhitelistRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistRoute { + return new MsgWhitelistRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistRoute { + return new MsgWhitelistRoute().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelistRoute | PlainMessage | undefined, b: MsgWhitelistRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelistRoute, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgWhitelistRouteResponse + */ +export class MsgWhitelistRouteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgWhitelistRouteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistRouteResponse { + return new MsgWhitelistRouteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistRouteResponse { + return new MsgWhitelistRouteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistRouteResponse { + return new MsgWhitelistRouteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgWhitelistRouteResponse | PlainMessage | undefined, b: MsgWhitelistRouteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgWhitelistRouteResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetWhitelistedRouteEnabled + */ +export class MsgSetWhitelistedRouteEnabled extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string token_in = 2; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 3; + */ + tokenOut = ""; + + /** + * @generated from field: bool enabled = 4; + */ + enabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetWhitelistedRouteEnabled"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWhitelistedRouteEnabled { + return new MsgSetWhitelistedRouteEnabled().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWhitelistedRouteEnabled { + return new MsgSetWhitelistedRouteEnabled().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetWhitelistedRouteEnabled { + return new MsgSetWhitelistedRouteEnabled().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetWhitelistedRouteEnabled | PlainMessage | undefined, b: MsgSetWhitelistedRouteEnabled | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetWhitelistedRouteEnabled, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetWhitelistedRouteEnabledResponse + */ +export class MsgSetWhitelistedRouteEnabledResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetWhitelistedRouteEnabledResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWhitelistedRouteEnabledResponse { + return new MsgSetWhitelistedRouteEnabledResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWhitelistedRouteEnabledResponse { + return new MsgSetWhitelistedRouteEnabledResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetWhitelistedRouteEnabledResponse { + return new MsgSetWhitelistedRouteEnabledResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetWhitelistedRouteEnabledResponse | PlainMessage | undefined, b: MsgSetWhitelistedRouteEnabledResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetWhitelistedRouteEnabledResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSubmitOrder + */ +export class MsgSubmitOrder extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * @generated from field: bool whitelisted_route = 5; + */ + whitelistedRoute = false; + + /** + * @generated from field: bool allow_matching = 6; + */ + allowMatching = false; + + /** + * @generated from field: string amount_per_step = 7; + */ + amountPerStep = ""; + + /** + * @generated from field: string total_amount = 8; + */ + totalAmount = ""; + + /** + * @generated from field: int64 millis_interval = 9; + */ + millisInterval = protoInt64.zero; + + /** + * @generated from field: string max_step_spot_price = 10; + */ + maxStepSpotPrice = ""; + + /** + * @generated from field: string max_matching_spot_price = 11; + */ + maxMatchingSpotPrice = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSubmitOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "allow_matching", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 7, name: "amount_per_step", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "total_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "millis_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 10, name: "max_step_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "max_matching_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitOrder { + return new MsgSubmitOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitOrder { + return new MsgSubmitOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitOrder { + return new MsgSubmitOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitOrder | PlainMessage | undefined, b: MsgSubmitOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSubmitOrderResponse + */ +export class MsgSubmitOrderResponse extends Message { + /** + * @generated from field: pryzm.amm.v1.Order order = 1; + */ + order?: Order; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSubmitOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "order", kind: "message", T: Order }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitOrderResponse { + return new MsgSubmitOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitOrderResponse { + return new MsgSubmitOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitOrderResponse { + return new MsgSubmitOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitOrderResponse | PlainMessage | undefined, b: MsgSubmitOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCancelOrder + */ +export class MsgCancelOrder extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCancelOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelOrder { + return new MsgCancelOrder().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelOrder | PlainMessage | undefined, b: MsgCancelOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCancelOrderResponse + */ +export class MsgCancelOrderResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin withdrawn_deposit = 1; + */ + withdrawnDeposit?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCancelOrderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "withdrawn_deposit", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelOrderResponse { + return new MsgCancelOrderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelOrderResponse { + return new MsgCancelOrderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelOrderResponse { + return new MsgCancelOrderResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelOrderResponse | PlainMessage | undefined, b: MsgCancelOrderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelOrderResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgProposeMatch + */ +export class MsgProposeMatch extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated pryzm.amm.v1.PairMatchProposal pairs = 2; + */ + pairs: PairMatchProposal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgProposeMatch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pairs", kind: "message", T: PairMatchProposal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeMatch | PlainMessage | undefined, b: MsgProposeMatch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeMatch, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgProposeMatchResponse + */ +export class MsgProposeMatchResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin proposer_reward = 1; + */ + proposerReward: Coin[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.MatchedPairSummary matched_pairs = 2; + */ + matchedPairs: MatchedPairSummary[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgProposeMatchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposer_reward", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "matched_pairs", kind: "message", T: MatchedPairSummary, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeMatchResponse | PlainMessage | undefined, b: MsgProposeMatchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeMatchResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetCircuitBreakers + */ +export class MsgSetCircuitBreakers extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated pryzm.amm.v1.TokenCircuitBreakerSettings token_circuit_breakers = 3; + */ + tokenCircuitBreakers: TokenCircuitBreakerSettings[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetCircuitBreakers"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_circuit_breakers", kind: "message", T: TokenCircuitBreakerSettings, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetCircuitBreakers { + return new MsgSetCircuitBreakers().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetCircuitBreakers { + return new MsgSetCircuitBreakers().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetCircuitBreakers { + return new MsgSetCircuitBreakers().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetCircuitBreakers | PlainMessage | undefined, b: MsgSetCircuitBreakers | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetCircuitBreakers, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetCircuitBreakersResponse + */ +export class MsgSetCircuitBreakersResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetCircuitBreakersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetCircuitBreakersResponse { + return new MsgSetCircuitBreakersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetCircuitBreakersResponse { + return new MsgSetCircuitBreakersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetCircuitBreakersResponse { + return new MsgSetCircuitBreakersResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetCircuitBreakersResponse | PlainMessage | undefined, b: MsgSetCircuitBreakersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetCircuitBreakersResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetRecoveryMode + */ +export class MsgSetRecoveryMode extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool recovery_mode = 3; + */ + recoveryMode = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetRecoveryMode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "recovery_mode", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRecoveryMode { + return new MsgSetRecoveryMode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRecoveryMode { + return new MsgSetRecoveryMode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetRecoveryMode { + return new MsgSetRecoveryMode().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetRecoveryMode | PlainMessage | undefined, b: MsgSetRecoveryMode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetRecoveryMode, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetRecoveryModeResponse + */ +export class MsgSetRecoveryModeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetRecoveryModeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRecoveryModeResponse { + return new MsgSetRecoveryModeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRecoveryModeResponse { + return new MsgSetRecoveryModeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetRecoveryModeResponse { + return new MsgSetRecoveryModeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetRecoveryModeResponse | PlainMessage | undefined, b: MsgSetRecoveryModeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetRecoveryModeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPoolJoinBlocked + */ +export class MsgSetPoolJoinBlocked extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool join_blocked = 3; + */ + joinBlocked = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPoolJoinBlocked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "join_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolJoinBlocked { + return new MsgSetPoolJoinBlocked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolJoinBlocked { + return new MsgSetPoolJoinBlocked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolJoinBlocked { + return new MsgSetPoolJoinBlocked().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPoolJoinBlocked | PlainMessage | undefined, b: MsgSetPoolJoinBlocked | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPoolJoinBlocked, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPoolJoinBlockedResponse + */ +export class MsgSetPoolJoinBlockedResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPoolJoinBlockedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolJoinBlockedResponse { + return new MsgSetPoolJoinBlockedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolJoinBlockedResponse { + return new MsgSetPoolJoinBlockedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolJoinBlockedResponse { + return new MsgSetPoolJoinBlockedResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPoolJoinBlockedResponse | PlainMessage | undefined, b: MsgSetPoolJoinBlockedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPoolJoinBlockedResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgRecoveryExit + */ +export class MsgRecoveryExit extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lpt_in = 3; + */ + lptIn = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 4; + */ + minAmountsOut: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgRecoveryExit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lpt_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoveryExit { + return new MsgRecoveryExit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoveryExit { + return new MsgRecoveryExit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecoveryExit { + return new MsgRecoveryExit().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecoveryExit | PlainMessage | undefined, b: MsgRecoveryExit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecoveryExit, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgRecoveryExitResponse + */ +export class MsgRecoveryExitResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin lpt_in = 1; + */ + lptIn?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amounts_out = 2; + */ + amountsOut: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgRecoveryExitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lpt_in", kind: "message", T: Coin }, + { no: 2, name: "amounts_out", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoveryExitResponse { + return new MsgRecoveryExitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoveryExitResponse { + return new MsgRecoveryExitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRecoveryExitResponse { + return new MsgRecoveryExitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRecoveryExitResponse | PlainMessage | undefined, b: MsgRecoveryExitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRecoveryExitResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseMode + */ +export class MsgSetPauseMode extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool pause_mode = 3; + */ + pauseMode = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseMode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pause_mode", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseMode { + return new MsgSetPauseMode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseMode { + return new MsgSetPauseMode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseMode { + return new MsgSetPauseMode().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseMode | PlainMessage | undefined, b: MsgSetPauseMode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseMode, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseModeResponse + */ +export class MsgSetPauseModeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseModeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseModeResponse { + return new MsgSetPauseModeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseModeResponse { + return new MsgSetPauseModeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseModeResponse { + return new MsgSetPauseModeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseModeResponse | PlainMessage | undefined, b: MsgSetPauseModeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseModeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetVaultPauseMode + */ +export class MsgSetVaultPauseMode extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: bool pause_mode = 2; + */ + pauseMode = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetVaultPauseMode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pause_mode", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetVaultPauseMode { + return new MsgSetVaultPauseMode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetVaultPauseMode { + return new MsgSetVaultPauseMode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetVaultPauseMode { + return new MsgSetVaultPauseMode().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetVaultPauseMode | PlainMessage | undefined, b: MsgSetVaultPauseMode | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetVaultPauseMode, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetVaultPauseModeResponse + */ +export class MsgSetVaultPauseModeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetVaultPauseModeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetVaultPauseModeResponse { + return new MsgSetVaultPauseModeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetVaultPauseModeResponse { + return new MsgSetVaultPauseModeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetVaultPauseModeResponse { + return new MsgSetVaultPauseModeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetVaultPauseModeResponse | PlainMessage | undefined, b: MsgSetVaultPauseModeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetVaultPauseModeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCreateOraclePricePair + */ +export class MsgCreateOraclePricePair extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.amm.v1.OraclePricePair oracle_price_pair = 2; + */ + oraclePricePair?: OraclePricePair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCreateOraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_price_pair", kind: "message", T: OraclePricePair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateOraclePricePair { + return new MsgCreateOraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateOraclePricePair { + return new MsgCreateOraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateOraclePricePair { + return new MsgCreateOraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateOraclePricePair | PlainMessage | undefined, b: MsgCreateOraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateOraclePricePair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCreateOraclePricePairResponse + */ +export class MsgCreateOraclePricePairResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCreateOraclePricePairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateOraclePricePairResponse { + return new MsgCreateOraclePricePairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateOraclePricePairResponse { + return new MsgCreateOraclePricePairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateOraclePricePairResponse { + return new MsgCreateOraclePricePairResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateOraclePricePairResponse | PlainMessage | undefined, b: MsgCreateOraclePricePairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateOraclePricePairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateOraclePricePair + */ +export class MsgUpdateOraclePricePair extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.amm.v1.OraclePricePair oracle_price_pair = 2; + */ + oraclePricePair?: OraclePricePair; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateOraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_price_pair", kind: "message", T: OraclePricePair }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateOraclePricePair { + return new MsgUpdateOraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateOraclePricePair { + return new MsgUpdateOraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateOraclePricePair { + return new MsgUpdateOraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateOraclePricePair | PlainMessage | undefined, b: MsgUpdateOraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateOraclePricePair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateOraclePricePairResponse + */ +export class MsgUpdateOraclePricePairResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateOraclePricePairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateOraclePricePairResponse { + return new MsgUpdateOraclePricePairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateOraclePricePairResponse { + return new MsgUpdateOraclePricePairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateOraclePricePairResponse { + return new MsgUpdateOraclePricePairResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateOraclePricePairResponse | PlainMessage | undefined, b: MsgUpdateOraclePricePairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateOraclePricePairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgDeleteOraclePricePair + */ +export class MsgDeleteOraclePricePair extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgDeleteOraclePricePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteOraclePricePair { + return new MsgDeleteOraclePricePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteOraclePricePair { + return new MsgDeleteOraclePricePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteOraclePricePair { + return new MsgDeleteOraclePricePair().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteOraclePricePair | PlainMessage | undefined, b: MsgDeleteOraclePricePair | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteOraclePricePair, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgDeleteOraclePricePairResponse + */ +export class MsgDeleteOraclePricePairResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgDeleteOraclePricePairResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeleteOraclePricePairResponse { + return new MsgDeleteOraclePricePairResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeleteOraclePricePairResponse { + return new MsgDeleteOraclePricePairResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDeleteOraclePricePairResponse { + return new MsgDeleteOraclePricePairResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDeleteOraclePricePairResponse | PlainMessage | undefined, b: MsgDeleteOraclePricePairResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDeleteOraclePricePairResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetSwapProtocolFee + */ +export class MsgSetSwapProtocolFee extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * if protocol fee parameters are nil, then the values are read from treasury module parameters + * + * @generated from field: string swap_protocol_fee = 3; + */ + swapProtocolFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetSwapProtocolFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "swap_protocol_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetSwapProtocolFee { + return new MsgSetSwapProtocolFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetSwapProtocolFee { + return new MsgSetSwapProtocolFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetSwapProtocolFee { + return new MsgSetSwapProtocolFee().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetSwapProtocolFee | PlainMessage | undefined, b: MsgSetSwapProtocolFee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetSwapProtocolFee, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetSwapProtocolFeeResponse + */ +export class MsgSetSwapProtocolFeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetSwapProtocolFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetSwapProtocolFeeResponse { + return new MsgSetSwapProtocolFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetSwapProtocolFeeResponse { + return new MsgSetSwapProtocolFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetSwapProtocolFeeResponse { + return new MsgSetSwapProtocolFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetSwapProtocolFeeResponse | PlainMessage | undefined, b: MsgSetSwapProtocolFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetSwapProtocolFeeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetJoinExitProtocolFee + */ +export class MsgSetJoinExitProtocolFee extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * if protocol fee parameters are nil, then the values are read from treasury module parameters + * + * @generated from field: string join_exit_protocol_fee = 3; + */ + joinExitProtocolFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetJoinExitProtocolFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "join_exit_protocol_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetJoinExitProtocolFee { + return new MsgSetJoinExitProtocolFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetJoinExitProtocolFee { + return new MsgSetJoinExitProtocolFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetJoinExitProtocolFee { + return new MsgSetJoinExitProtocolFee().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetJoinExitProtocolFee | PlainMessage | undefined, b: MsgSetJoinExitProtocolFee | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetJoinExitProtocolFee, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetJoinExitProtocolFeeResponse + */ +export class MsgSetJoinExitProtocolFeeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetJoinExitProtocolFeeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetJoinExitProtocolFeeResponse { + return new MsgSetJoinExitProtocolFeeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetJoinExitProtocolFeeResponse { + return new MsgSetJoinExitProtocolFeeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetJoinExitProtocolFeeResponse { + return new MsgSetJoinExitProtocolFeeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetJoinExitProtocolFeeResponse | PlainMessage | undefined, b: MsgSetJoinExitProtocolFeeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetJoinExitProtocolFeeResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgIntroduceYammLpToWeightedPool + */ +export class MsgIntroduceYammLpToWeightedPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 weighted_pool_id = 2; + */ + weightedPoolId = protoInt64.zero; + + /** + * @generated from field: uint64 yamm_pool_id = 3; + */ + yammPoolId = protoInt64.zero; + + /** + * @generated from field: string token_normalized_weight = 4; + */ + tokenNormalizedWeight = ""; + + /** + * @generated from field: int64 virtual_balance_interval_millis = 5; + */ + virtualBalanceIntervalMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgIntroduceYammLpToWeightedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weighted_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "yamm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "token_normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "virtual_balance_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceYammLpToWeightedPool { + return new MsgIntroduceYammLpToWeightedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceYammLpToWeightedPool { + return new MsgIntroduceYammLpToWeightedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceYammLpToWeightedPool { + return new MsgIntroduceYammLpToWeightedPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceYammLpToWeightedPool | PlainMessage | undefined, b: MsgIntroduceYammLpToWeightedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceYammLpToWeightedPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgIntroduceYammLpToWeightedPoolResponse + */ +export class MsgIntroduceYammLpToWeightedPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgIntroduceYammLpToWeightedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceYammLpToWeightedPoolResponse { + return new MsgIntroduceYammLpToWeightedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceYammLpToWeightedPoolResponse { + return new MsgIntroduceYammLpToWeightedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceYammLpToWeightedPoolResponse { + return new MsgIntroduceYammLpToWeightedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceYammLpToWeightedPoolResponse | PlainMessage | undefined, b: MsgIntroduceYammLpToWeightedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceYammLpToWeightedPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgIntroduceAssetBaseTokenToWeightedPool + */ +export class MsgIntroduceAssetBaseTokenToWeightedPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 weighted_pool_id = 2; + */ + weightedPoolId = protoInt64.zero; + + /** + * @generated from field: string token_denom = 3; + */ + tokenDenom = ""; + + /** + * @generated from field: string asset_id = 4; + */ + assetId = ""; + + /** + * @generated from field: string token_normalized_weight = 5; + */ + tokenNormalizedWeight = ""; + + /** + * @generated from field: int64 virtual_balance_interval_millis = 6; + */ + virtualBalanceIntervalMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgIntroduceAssetBaseTokenToWeightedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weighted_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_normalized_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "virtual_balance_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPool { + return new MsgIntroduceAssetBaseTokenToWeightedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPool { + return new MsgIntroduceAssetBaseTokenToWeightedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPool { + return new MsgIntroduceAssetBaseTokenToWeightedPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceAssetBaseTokenToWeightedPool | PlainMessage | undefined, b: MsgIntroduceAssetBaseTokenToWeightedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceAssetBaseTokenToWeightedPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgIntroduceAssetBaseTokenToWeightedPoolResponse + */ +export class MsgIntroduceAssetBaseTokenToWeightedPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgIntroduceAssetBaseTokenToWeightedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPoolResponse { + return new MsgIntroduceAssetBaseTokenToWeightedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPoolResponse { + return new MsgIntroduceAssetBaseTokenToWeightedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceAssetBaseTokenToWeightedPoolResponse { + return new MsgIntroduceAssetBaseTokenToWeightedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceAssetBaseTokenToWeightedPoolResponse | PlainMessage | undefined, b: MsgIntroduceAssetBaseTokenToWeightedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceAssetBaseTokenToWeightedPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCancelPendingTokenIntroduction + */ +export class MsgCancelPendingTokenIntroduction extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: uint64 target_pool_id = 3; + */ + targetPoolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCancelPendingTokenIntroduction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "target_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPendingTokenIntroduction { + return new MsgCancelPendingTokenIntroduction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPendingTokenIntroduction { + return new MsgCancelPendingTokenIntroduction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPendingTokenIntroduction { + return new MsgCancelPendingTokenIntroduction().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPendingTokenIntroduction | PlainMessage | undefined, b: MsgCancelPendingTokenIntroduction | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPendingTokenIntroduction, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgCancelPendingTokenIntroductionResponse + */ +export class MsgCancelPendingTokenIntroductionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgCancelPendingTokenIntroductionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelPendingTokenIntroductionResponse { + return new MsgCancelPendingTokenIntroductionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelPendingTokenIntroductionResponse { + return new MsgCancelPendingTokenIntroductionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelPendingTokenIntroductionResponse { + return new MsgCancelPendingTokenIntroductionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelPendingTokenIntroductionResponse | PlainMessage | undefined, b: MsgCancelPendingTokenIntroductionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelPendingTokenIntroductionResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgRemoveTokenFromWeightedPool + */ +export class MsgRemoveTokenFromWeightedPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string token_denom = 3; + */ + tokenDenom = ""; + + /** + * @generated from field: int64 virtual_balance_interval_millis = 4; + */ + virtualBalanceIntervalMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgRemoveTokenFromWeightedPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "virtual_balance_interval_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveTokenFromWeightedPool { + return new MsgRemoveTokenFromWeightedPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveTokenFromWeightedPool { + return new MsgRemoveTokenFromWeightedPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveTokenFromWeightedPool { + return new MsgRemoveTokenFromWeightedPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveTokenFromWeightedPool | PlainMessage | undefined, b: MsgRemoveTokenFromWeightedPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveTokenFromWeightedPool, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgRemoveTokenFromWeightedPoolResponse + */ +export class MsgRemoveTokenFromWeightedPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgRemoveTokenFromWeightedPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveTokenFromWeightedPoolResponse { + return new MsgRemoveTokenFromWeightedPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveTokenFromWeightedPoolResponse { + return new MsgRemoveTokenFromWeightedPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveTokenFromWeightedPoolResponse { + return new MsgRemoveTokenFromWeightedPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveTokenFromWeightedPoolResponse | PlainMessage | undefined, b: MsgRemoveTokenFromWeightedPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveTokenFromWeightedPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.amm.v1.GeneralPoolParameters general_pool_parameters = 2; + */ + generalPoolParameters?: GeneralPoolParameters; + + /** + * @generated from field: pryzm.amm.v1.YammParameters yamm_parameters = 3; + */ + yammParameters?: YammParameters; + + /** + * @generated from field: pryzm.amm.v1.OrderParameters order_parameters = 4; + */ + orderParameters?: OrderParameters; + + /** + * @generated from field: pryzm.amm.v1.AuthorizationParameters authorization_parameters = 5; + */ + authorizationParameters?: AuthorizationParameters; + + /** + * @generated from field: pryzm.amm.v1.GasParameters gas_parameters = 6; + */ + gasParameters?: GasParameters; + + /** + * @generated from field: pryzm.amm.v1.WeightedPoolParameters weighted_pool_parameters = 7; + */ + weightedPoolParameters?: WeightedPoolParameters; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "general_pool_parameters", kind: "message", T: GeneralPoolParameters }, + { no: 3, name: "yamm_parameters", kind: "message", T: YammParameters }, + { no: 4, name: "order_parameters", kind: "message", T: OrderParameters }, + { no: 5, name: "authorization_parameters", kind: "message", T: AuthorizationParameters }, + { no: 6, name: "gas_parameters", kind: "message", T: GasParameters }, + { no: 7, name: "weighted_pool_parameters", kind: "message", T: WeightedPoolParameters }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgAddMaturityToYamm + */ +export class MsgAddMaturityToYamm extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string assetId = 2; + */ + assetId = ""; + + /** + * @generated from field: string maturitySymbol = 3; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgAddMaturityToYamm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "assetId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturitySymbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddMaturityToYamm { + return new MsgAddMaturityToYamm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddMaturityToYamm { + return new MsgAddMaturityToYamm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddMaturityToYamm { + return new MsgAddMaturityToYamm().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddMaturityToYamm | PlainMessage | undefined, b: MsgAddMaturityToYamm | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddMaturityToYamm, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgAddMaturityToYammResponse + */ +export class MsgAddMaturityToYammResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgAddMaturityToYammResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddMaturityToYammResponse { + return new MsgAddMaturityToYammResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddMaturityToYammResponse { + return new MsgAddMaturityToYammResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddMaturityToYammResponse { + return new MsgAddMaturityToYammResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddMaturityToYammResponse | PlainMessage | undefined, b: MsgAddMaturityToYammResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddMaturityToYammResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetInitializationAllowList + */ +export class MsgSetInitializationAllowList extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated string initialization_allow_list = 3; + */ + initializationAllowList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetInitializationAllowList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "initialization_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInitializationAllowList { + return new MsgSetInitializationAllowList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInitializationAllowList { + return new MsgSetInitializationAllowList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetInitializationAllowList { + return new MsgSetInitializationAllowList().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetInitializationAllowList | PlainMessage | undefined, b: MsgSetInitializationAllowList | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetInitializationAllowList, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetInitializationAllowListResponse + */ +export class MsgSetInitializationAllowListResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetInitializationAllowListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInitializationAllowListResponse { + return new MsgSetInitializationAllowListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInitializationAllowListResponse { + return new MsgSetInitializationAllowListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetInitializationAllowListResponse { + return new MsgSetInitializationAllowListResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetInitializationAllowListResponse | PlainMessage | undefined, b: MsgSetInitializationAllowListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetInitializationAllowListResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPoolAdmins + */ +export class MsgSetPoolAdmins extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated string admins = 3; + */ + admins: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPoolAdmins"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolAdmins { + return new MsgSetPoolAdmins().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolAdmins { + return new MsgSetPoolAdmins().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolAdmins { + return new MsgSetPoolAdmins().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPoolAdmins | PlainMessage | undefined, b: MsgSetPoolAdmins | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPoolAdmins, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPoolAdminsResponse + */ +export class MsgSetPoolAdminsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPoolAdminsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolAdminsResponse { + return new MsgSetPoolAdminsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolAdminsResponse { + return new MsgSetPoolAdminsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolAdminsResponse { + return new MsgSetPoolAdminsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPoolAdminsResponse | PlainMessage | undefined, b: MsgSetPoolAdminsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPoolAdminsResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseAllowList + */ +export class MsgSetPauseAllowList extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated string pause_allow_list = 3; + */ + pauseAllowList: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseAllowList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pause_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseAllowList { + return new MsgSetPauseAllowList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseAllowList { + return new MsgSetPauseAllowList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseAllowList { + return new MsgSetPauseAllowList().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseAllowList | PlainMessage | undefined, b: MsgSetPauseAllowList | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseAllowList, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseAllowListResponse + */ +export class MsgSetPauseAllowListResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseAllowListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseAllowListResponse { + return new MsgSetPauseAllowListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseAllowListResponse { + return new MsgSetPauseAllowListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseAllowListResponse { + return new MsgSetPauseAllowListResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseAllowListResponse | PlainMessage | undefined, b: MsgSetPauseAllowListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseAllowListResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseWindow + */ +export class MsgSetPauseWindow extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.PoolPauseWindow pause_window = 3; + */ + pauseWindow?: PoolPauseWindow; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseWindow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pause_window", kind: "message", T: PoolPauseWindow }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseWindow { + return new MsgSetPauseWindow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseWindow { + return new MsgSetPauseWindow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseWindow { + return new MsgSetPauseWindow().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseWindow | PlainMessage | undefined, b: MsgSetPauseWindow | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseWindow, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetPauseWindowResponse + */ +export class MsgSetPauseWindowResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetPauseWindowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPauseWindowResponse { + return new MsgSetPauseWindowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPauseWindowResponse { + return new MsgSetPauseWindowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetPauseWindowResponse { + return new MsgSetPauseWindowResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetPauseWindowResponse | PlainMessage | undefined, b: MsgSetPauseWindowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetPauseWindowResponse, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetOrderPairDisabled + */ +export class MsgSetOrderPairDisabled extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.amm.v1.DisabledOrderPair pair = 2; + */ + pair?: DisabledOrderPair; + + /** + * @generated from field: bool disabled = 3; + */ + disabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetOrderPairDisabled"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pair", kind: "message", T: DisabledOrderPair }, + { no: 3, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetOrderPairDisabled { + return new MsgSetOrderPairDisabled().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetOrderPairDisabled { + return new MsgSetOrderPairDisabled().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetOrderPairDisabled { + return new MsgSetOrderPairDisabled().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetOrderPairDisabled | PlainMessage | undefined, b: MsgSetOrderPairDisabled | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetOrderPairDisabled, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.MsgSetOrderPairDisabledResponse + */ +export class MsgSetOrderPairDisabledResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.MsgSetOrderPairDisabledResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetOrderPairDisabledResponse { + return new MsgSetOrderPairDisabledResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetOrderPairDisabledResponse { + return new MsgSetOrderPairDisabledResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetOrderPairDisabledResponse { + return new MsgSetOrderPairDisabledResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetOrderPairDisabledResponse | PlainMessage | undefined, b: MsgSetOrderPairDisabledResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetOrderPairDisabledResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/virtual_balance_pool_token_pb.ts b/src/protobufs/pryzm/amm/v1/virtual_balance_pool_token_pb.ts new file mode 100644 index 00000000..8043a176 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/virtual_balance_pool_token_pb.ts @@ -0,0 +1,118 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/virtual_balance_pool_token.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.TemporalVirtualBalancePoolToken + */ +export class TemporalVirtualBalancePoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string target_virtual_balance = 3; + */ + targetVirtualBalance = ""; + + /** + * @generated from field: int64 start_unix_millis = 4; + */ + startUnixMillis = protoInt64.zero; + + /** + * @generated from field: int64 end_unix_millis = 5; + */ + endUnixMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.TemporalVirtualBalancePoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "target_virtual_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "start_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "end_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TemporalVirtualBalancePoolToken { + return new TemporalVirtualBalancePoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TemporalVirtualBalancePoolToken { + return new TemporalVirtualBalancePoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TemporalVirtualBalancePoolToken { + return new TemporalVirtualBalancePoolToken().fromJsonString(jsonString, options); + } + + static equals(a: TemporalVirtualBalancePoolToken | PlainMessage | undefined, b: TemporalVirtualBalancePoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(TemporalVirtualBalancePoolToken, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.PermanentVirtualBalancePoolToken + */ +export class PermanentVirtualBalancePoolToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string virtual_balance = 3; + */ + virtualBalance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.PermanentVirtualBalancePoolToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "virtual_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PermanentVirtualBalancePoolToken { + return new PermanentVirtualBalancePoolToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PermanentVirtualBalancePoolToken { + return new PermanentVirtualBalancePoolToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PermanentVirtualBalancePoolToken { + return new PermanentVirtualBalancePoolToken().fromJsonString(jsonString, options); + } + + static equals(a: PermanentVirtualBalancePoolToken | PlainMessage | undefined, b: PermanentVirtualBalancePoolToken | PlainMessage | undefined): boolean { + return proto3.util.equals(PermanentVirtualBalancePoolToken, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/weight_update_timing_pb.ts b/src/protobufs/pryzm/amm/v1/weight_update_timing_pb.ts new file mode 100644 index 00000000..1f7f9e42 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/weight_update_timing_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/weight_update_timing.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.WeightUpdateTiming + */ +export class WeightUpdateTiming extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 start_unix_millis = 2; + */ + startUnixMillis = protoInt64.zero; + + /** + * @generated from field: int64 end_unix_millis = 3; + */ + endUnixMillis = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.WeightUpdateTiming"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "start_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "end_unix_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightUpdateTiming { + return new WeightUpdateTiming().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightUpdateTiming { + return new WeightUpdateTiming().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightUpdateTiming { + return new WeightUpdateTiming().fromJsonString(jsonString, options); + } + + static equals(a: WeightUpdateTiming | PlainMessage | undefined, b: WeightUpdateTiming | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightUpdateTiming, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/weighted_token_pb.ts b/src/protobufs/pryzm/amm/v1/weighted_token_pb.ts new file mode 100644 index 00000000..af169258 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/weighted_token_pb.ts @@ -0,0 +1,113 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/weighted_token.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { WeightUpdateTiming } from "./weight_update_timing_pb.js"; + +/** + * @generated from message pryzm.amm.v1.WeightedPoolProperties + */ +export class WeightedPoolProperties extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: pryzm.amm.v1.WeightUpdateTiming weight_update_timing = 2; + */ + weightUpdateTiming?: WeightUpdateTiming; + + /** + * @generated from field: repeated pryzm.amm.v1.WeightedToken token_list = 3; + */ + tokenList: WeightedToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.WeightedPoolProperties"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "weight_update_timing", kind: "message", T: WeightUpdateTiming }, + { no: 3, name: "token_list", kind: "message", T: WeightedToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedPoolProperties { + return new WeightedPoolProperties().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedPoolProperties { + return new WeightedPoolProperties().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedPoolProperties { + return new WeightedPoolProperties().fromJsonString(jsonString, options); + } + + static equals(a: WeightedPoolProperties | PlainMessage | undefined, b: WeightedPoolProperties | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedPoolProperties, a, b); + } +} + +/** + * @generated from message pryzm.amm.v1.WeightedToken + */ +export class WeightedToken extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string normalized_start_weight = 3; + */ + normalizedStartWeight = ""; + + /** + * @generated from field: string normalized_end_weight = 4; + */ + normalizedEndWeight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.WeightedToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "normalized_start_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "normalized_end_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedToken { + return new WeightedToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedToken { + return new WeightedToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedToken { + return new WeightedToken().fromJsonString(jsonString, options); + } + + static equals(a: WeightedToken | PlainMessage | undefined, b: WeightedToken | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedToken, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/whitelisted_route_pb.ts b/src/protobufs/pryzm/amm/v1/whitelisted_route_pb.ts new file mode 100644 index 00000000..c5b86438 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/whitelisted_route_pb.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/whitelisted_route.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { RouteStep } from "./route_step_pb.js"; + +/** + * @generated from message pryzm.amm.v1.WhitelistedRoute + */ +export class WhitelistedRoute extends Message { + /** + * @generated from field: repeated pryzm.amm.v1.RouteStep steps = 1; + */ + steps: RouteStep[] = []; + + /** + * @generated from field: bool enabled = 2; + */ + enabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.WhitelistedRoute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "steps", kind: "message", T: RouteStep, repeated: true }, + { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WhitelistedRoute { + return new WhitelistedRoute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WhitelistedRoute { + return new WhitelistedRoute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WhitelistedRoute { + return new WhitelistedRoute().fromJsonString(jsonString, options); + } + + static equals(a: WhitelistedRoute | PlainMessage | undefined, b: WhitelistedRoute | PlainMessage | undefined): boolean { + return proto3.util.equals(WhitelistedRoute, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v1/yamm_configuration_pb.ts b/src/protobufs/pryzm/amm/v1/yamm_configuration_pb.ts new file mode 100644 index 00000000..b11703f4 --- /dev/null +++ b/src/protobufs/pryzm/amm/v1/yamm_configuration_pb.ts @@ -0,0 +1,111 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v1/yamm_configuration.proto (package pryzm.amm.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v1.YammConfiguration + */ +export class YammConfiguration extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lambda = 2; + */ + lambda = ""; + + /** + * duration (milliseconds) for virtual balance when adding new pAssets to yamm pools + * + * @generated from field: string maturity_introduction_interval_millis = 3; + */ + maturityIntroductionIntervalMillis = ""; + + /** + * @generated from field: string maturity_expiration_interval_millis = 4; + */ + maturityExpirationIntervalMillis = ""; + + /** + * @generated from field: string introduction_virtual_balance_scaler = 5; + */ + introductionVirtualBalanceScaler = ""; + + /** + * @generated from field: string expiration_virtual_balance_scaler = 6; + */ + expirationVirtualBalanceScaler = ""; + + /** + * if the value is not set, will be read from module parameters + * + * @generated from field: string buy_y_given_in_loan_fee_ratio = 7; + */ + buyYGivenInLoanFeeRatio = ""; + + /** + * if the value is not set, will be read from module parameters + * + * @generated from field: string sell_y_given_out_fee_ratio = 8; + */ + sellYGivenOutFeeRatio = ""; + + /** + * @generated from field: string max_alpha = 9; + */ + maxAlpha = ""; + + /** + * @generated from field: string avg_monthly_yield_rate = 10; + */ + avgMonthlyYieldRate = ""; + + /** + * @generated from field: string yield_fee_scaler = 11; + */ + yieldFeeScaler = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v1.YammConfiguration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lambda", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_introduction_interval_millis", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "maturity_expiration_interval_millis", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "introduction_virtual_balance_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "expiration_virtual_balance_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "buy_y_given_in_loan_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "sell_y_given_out_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "max_alpha", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "avg_monthly_yield_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "yield_fee_scaler", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): YammConfiguration { + return new YammConfiguration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): YammConfiguration { + return new YammConfiguration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): YammConfiguration { + return new YammConfiguration().fromJsonString(jsonString, options); + } + + static equals(a: YammConfiguration | PlainMessage | undefined, b: YammConfiguration | PlainMessage | undefined): boolean { + return proto3.util.equals(YammConfiguration, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v2/pair_match_proposal_pb.ts b/src/protobufs/pryzm/amm/v2/pair_match_proposal_pb.ts new file mode 100644 index 00000000..2f7ef6a7 --- /dev/null +++ b/src/protobufs/pryzm/amm/v2/pair_match_proposal_pb.ts @@ -0,0 +1,136 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v2/pair_match_proposal.proto (package pryzm.amm.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.amm.v2.ProposalOrder + */ +export class ProposalOrder extends Message { + /** + * should be set to zero for virtual orders + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * this must be provided if and only if virtual=true + * + * @generated from field: string max_amount_in = 2; + */ + maxAmountIn = ""; + + /** + * this must be provided if and only if virtual=true + * + * @generated from field: string max_price = 3; + */ + maxPrice = ""; + + /** + * @generated from field: bool virtual = 4; + */ + virtual = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v2.ProposalOrder"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "max_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "virtual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProposalOrder { + return new ProposalOrder().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProposalOrder { + return new ProposalOrder().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProposalOrder { + return new ProposalOrder().fromJsonString(jsonString, options); + } + + static equals(a: ProposalOrder | PlainMessage | undefined, b: ProposalOrder | PlainMessage | undefined): boolean { + return proto3.util.equals(ProposalOrder, a, b); + } +} + +/** + * @generated from message pryzm.amm.v2.PairMatchProposal + */ +export class PairMatchProposal extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: bool whitelisted_route = 2; + */ + whitelistedRoute = false; + + /** + * @generated from field: string token_in = 3; + */ + tokenIn = ""; + + /** + * @generated from field: string token_out = 4; + */ + tokenOut = ""; + + /** + * @generated from field: repeated pryzm.amm.v2.ProposalOrder buy_orders = 5; + */ + buyOrders: ProposalOrder[] = []; + + /** + * @generated from field: repeated pryzm.amm.v2.ProposalOrder sell_orders = 6; + */ + sellOrders: ProposalOrder[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v2.PairMatchProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "whitelisted_route", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "buy_orders", kind: "message", T: ProposalOrder, repeated: true }, + { no: 6, name: "sell_orders", kind: "message", T: ProposalOrder, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PairMatchProposal { + return new PairMatchProposal().fromJsonString(jsonString, options); + } + + static equals(a: PairMatchProposal | PlainMessage | undefined, b: PairMatchProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(PairMatchProposal, a, b); + } +} + diff --git a/src/protobufs/pryzm/amm/v2/tx_cosmes.ts b/src/protobufs/pryzm/amm/v2/tx_cosmes.ts new file mode 100644 index 00000000..3c0828c2 --- /dev/null +++ b/src/protobufs/pryzm/amm/v2/tx_cosmes.ts @@ -0,0 +1,19 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/amm/v2/tx.proto (package pryzm.amm.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgProposeMatch, MsgProposeMatchResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.amm.v2.Msg"; + +/** + * @generated from rpc pryzm.amm.v2.Msg.ProposeMatch + */ +export const MsgProposeMatchService = { + typeName: TYPE_NAME, + method: "ProposeMatch", + Request: MsgProposeMatch, + Response: MsgProposeMatchResponse, +} as const; + diff --git a/src/protobufs/pryzm/amm/v2/tx_pb.ts b/src/protobufs/pryzm/amm/v2/tx_pb.ts new file mode 100644 index 00000000..f18a8806 --- /dev/null +++ b/src/protobufs/pryzm/amm/v2/tx_pb.ts @@ -0,0 +1,114 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/amm/v2/tx.proto (package pryzm.amm.v2, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PairMatchProposal } from "./pair_match_proposal_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { MatchedPairSummary } from "../v1/pair_match_proposal_pb.js"; + +/** + * @generated from message pryzm.amm.v2.MsgProposeMatch + */ +export class MsgProposeMatch extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated pryzm.amm.v2.PairMatchProposal pairs = 2; + */ + pairs: PairMatchProposal[] = []; + + /** + * this includes the output amount of virtual orders as well as the proposer reward + * if the limits are not met, the transaction will fail + * + * @generated from field: repeated cosmos.base.v1beta1.Coin min_amounts_out = 3; + */ + minAmountsOut: Coin[] = []; + + /** + * is not casted to coins, to allow for zero limits + * + * @generated from field: repeated cosmos.base.v1beta1.Coin max_amounts_in = 4; + */ + maxAmountsIn: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v2.MsgProposeMatch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pairs", kind: "message", T: PairMatchProposal, repeated: true }, + { no: 3, name: "min_amounts_out", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "max_amounts_in", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeMatch { + return new MsgProposeMatch().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeMatch | PlainMessage | undefined, b: MsgProposeMatch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeMatch, a, b); + } +} + +/** + * @generated from message pryzm.amm.v2.MsgProposeMatchResponse + */ +export class MsgProposeMatchResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin proposer_reward = 1; + */ + proposerReward: Coin[] = []; + + /** + * @generated from field: repeated pryzm.amm.v1.MatchedPairSummary matched_pairs = 2; + */ + matchedPairs: MatchedPairSummary[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.amm.v2.MsgProposeMatchResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposer_reward", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "matched_pairs", kind: "message", T: MatchedPairSummary, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgProposeMatchResponse { + return new MsgProposeMatchResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgProposeMatchResponse | PlainMessage | undefined, b: MsgProposeMatchResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgProposeMatchResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/event_pb.ts b/src/protobufs/pryzm/assets/v1/event_pb.ts new file mode 100644 index 00000000..35455980 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/event_pb.ts @@ -0,0 +1,196 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/event.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { MaturityLevel } from "./maturity_level_pb.js"; +import { RefractableAsset } from "./refractable_asset_pb.js"; + +/** + * @generated from message pryzm.assets.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.assets.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.EventAddMaturityLevel + */ +export class EventAddMaturityLevel extends Message { + /** + * @generated from field: pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel?: MaturityLevel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.EventAddMaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAddMaturityLevel { + return new EventAddMaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAddMaturityLevel { + return new EventAddMaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAddMaturityLevel { + return new EventAddMaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: EventAddMaturityLevel | PlainMessage | undefined, b: EventAddMaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAddMaturityLevel, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.EventDeactivateMaturityLevel + */ +export class EventDeactivateMaturityLevel extends Message { + /** + * @generated from field: pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel?: MaturityLevel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.EventDeactivateMaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeactivateMaturityLevel { + return new EventDeactivateMaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeactivateMaturityLevel { + return new EventDeactivateMaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeactivateMaturityLevel { + return new EventDeactivateMaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: EventDeactivateMaturityLevel | PlainMessage | undefined, b: EventDeactivateMaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeactivateMaturityLevel, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.EventSetRefractableAsset + */ +export class EventSetRefractableAsset extends Message { + /** + * @generated from field: pryzm.assets.v1.RefractableAsset refractable_asset = 1; + */ + refractableAsset?: RefractableAsset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.EventSetRefractableAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "refractable_asset", kind: "message", T: RefractableAsset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetRefractableAsset { + return new EventSetRefractableAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetRefractableAsset { + return new EventSetRefractableAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetRefractableAsset { + return new EventSetRefractableAsset().fromJsonString(jsonString, options); + } + + static equals(a: EventSetRefractableAsset | PlainMessage | undefined, b: EventSetRefractableAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetRefractableAsset, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.EventSetMaturityLevel + */ +export class EventSetMaturityLevel extends Message { + /** + * @generated from field: pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel?: MaturityLevel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.EventSetMaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetMaturityLevel { + return new EventSetMaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetMaturityLevel { + return new EventSetMaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetMaturityLevel { + return new EventSetMaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: EventSetMaturityLevel | PlainMessage | undefined, b: EventSetMaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetMaturityLevel, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/genesis_pb.ts b/src/protobufs/pryzm/assets/v1/genesis_pb.ts new file mode 100644 index 00000000..95a19a4e --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/genesis_pb.ts @@ -0,0 +1,64 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/genesis.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { RefractableAsset } from "./refractable_asset_pb.js"; +import { MaturityLevel } from "./maturity_level_pb.js"; + +/** + * GenesisState defines the assets module's genesis state. + * + * @generated from message pryzm.assets.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.assets.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated pryzm.assets.v1.RefractableAsset assets = 2; + */ + assets: RefractableAsset[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated pryzm.assets.v1.MaturityLevel maturity_level_list = 4; + */ + maturityLevelList: MaturityLevel[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "assets", kind: "message", T: RefractableAsset, repeated: true }, + { no: 4, name: "maturity_level_list", kind: "message", T: MaturityLevel, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/maturity_level_pb.ts b/src/protobufs/pryzm/assets/v1/maturity_level_pb.ts new file mode 100644 index 00000000..16472210 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/maturity_level_pb.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/maturity_level.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.assets.v1.MaturityLevel + */ +export class MaturityLevel extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string symbol = 3; + */ + symbol = ""; + + /** + * @generated from field: google.protobuf.Timestamp introduction_time = 4; + */ + introductionTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp expiration_time = 5; + */ + expirationTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "introduction_time", kind: "message", T: Timestamp }, + { no: 5, name: "expiration_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaturityLevel { + return new MaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaturityLevel { + return new MaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaturityLevel { + return new MaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: MaturityLevel | PlainMessage | undefined, b: MaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(MaturityLevel, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/oracle_payload_pb.ts b/src/protobufs/pryzm/assets/v1/oracle_payload_pb.ts new file mode 100644 index 00000000..d537c5f6 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/oracle_payload_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/oracle_payload.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; + +/** + * OraclePayload defines the structure of oracle vote payload + * + * @generated from message pryzm.assets.v1.OraclePayload + */ +export class OraclePayload extends Message { + /** + * @generated from field: ibc.core.client.v1.Height block_height = 1; + */ + blockHeight?: Height; + + /** + * @generated from field: string exchange_rate = 2; + */ + exchangeRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.OraclePayload"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "message", T: Height }, + { no: 2, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePayload { + return new OraclePayload().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePayload { + return new OraclePayload().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePayload { + return new OraclePayload().fromJsonString(jsonString, options); + } + + static equals(a: OraclePayload | PlainMessage | undefined, b: OraclePayload | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePayload, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/params_pb.ts b/src/protobufs/pryzm/assets/v1/params_pb.ts new file mode 100644 index 00000000..06feba79 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/params_pb.ts @@ -0,0 +1,56 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/params.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { FeeRatios } from "./refractable_asset_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.assets.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: pryzm.assets.v1.FeeRatios default_fee_ratios = 1; + */ + defaultFeeRatios?: FeeRatios; + + /** + * the list of admin addresses, able to register new assets or disable an existing asset + * + * @generated from field: repeated string admins = 2; + */ + admins: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "default_fee_ratios", kind: "message", T: FeeRatios }, + { no: 2, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/query_cosmes.ts b/src/protobufs/pryzm/assets/v1/query_cosmes.ts new file mode 100644 index 00000000..8292dade --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/query_cosmes.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/assets/v1/query.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllMaturityLevelRequest, QueryAllMaturityLevelResponse, QueryAllRefractableAssetRequest, QueryAllRefractableAssetResponse, QueryGetMaturityLevelRequest, QueryGetMaturityLevelResponse, QueryGetRefractableAssetRequest, QueryGetRefractableAssetResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.assets.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.assets.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a RefractableAsset by index. + * + * @generated from rpc pryzm.assets.v1.Query.RefractableAsset + */ +export const QueryRefractableAssetService = { + typeName: TYPE_NAME, + method: "RefractableAsset", + Request: QueryGetRefractableAssetRequest, + Response: QueryGetRefractableAssetResponse, +} as const; + +/** + * Queries a list of RefractableAsset items. + * + * @generated from rpc pryzm.assets.v1.Query.RefractableAssetAll + */ +export const QueryRefractableAssetAllService = { + typeName: TYPE_NAME, + method: "RefractableAssetAll", + Request: QueryAllRefractableAssetRequest, + Response: QueryAllRefractableAssetResponse, +} as const; + +/** + * Queries a MaturityLevel by index. + * + * @generated from rpc pryzm.assets.v1.Query.MaturityLevel + */ +export const QueryMaturityLevelService = { + typeName: TYPE_NAME, + method: "MaturityLevel", + Request: QueryGetMaturityLevelRequest, + Response: QueryGetMaturityLevelResponse, +} as const; + +/** + * Queries a list of MaturityLevel items. + * + * @generated from rpc pryzm.assets.v1.Query.MaturityLevelAll + */ +export const QueryMaturityLevelAllService = { + typeName: TYPE_NAME, + method: "MaturityLevelAll", + Request: QueryAllMaturityLevelRequest, + Response: QueryAllMaturityLevelResponse, +} as const; + diff --git a/src/protobufs/pryzm/assets/v1/query_pb.ts b/src/protobufs/pryzm/assets/v1/query_pb.ts new file mode 100644 index 00000000..b83bbf48 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/query_pb.ts @@ -0,0 +1,424 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/query.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { RefractableAsset } from "./refractable_asset_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { MaturityLevel } from "./maturity_level_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.assets.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.assets.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.assets.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryGetRefractableAssetRequest + */ +export class QueryGetRefractableAssetRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryGetRefractableAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetRefractableAssetRequest { + return new QueryGetRefractableAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetRefractableAssetRequest { + return new QueryGetRefractableAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetRefractableAssetRequest { + return new QueryGetRefractableAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetRefractableAssetRequest | PlainMessage | undefined, b: QueryGetRefractableAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetRefractableAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryGetRefractableAssetResponse + */ +export class QueryGetRefractableAssetResponse extends Message { + /** + * @generated from field: pryzm.assets.v1.RefractableAsset asset = 1; + */ + asset?: RefractableAsset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryGetRefractableAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "message", T: RefractableAsset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetRefractableAssetResponse { + return new QueryGetRefractableAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetRefractableAssetResponse { + return new QueryGetRefractableAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetRefractableAssetResponse { + return new QueryGetRefractableAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetRefractableAssetResponse | PlainMessage | undefined, b: QueryGetRefractableAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetRefractableAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryAllRefractableAssetRequest + */ +export class QueryAllRefractableAssetRequest extends Message { + /** + * @generated from field: string enabled = 1; + */ + enabled = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryAllRefractableAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "enabled", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllRefractableAssetRequest { + return new QueryAllRefractableAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllRefractableAssetRequest { + return new QueryAllRefractableAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllRefractableAssetRequest { + return new QueryAllRefractableAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllRefractableAssetRequest | PlainMessage | undefined, b: QueryAllRefractableAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllRefractableAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryAllRefractableAssetResponse + */ +export class QueryAllRefractableAssetResponse extends Message { + /** + * @generated from field: repeated pryzm.assets.v1.RefractableAsset assets = 1; + */ + assets: RefractableAsset[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryAllRefractableAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assets", kind: "message", T: RefractableAsset, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllRefractableAssetResponse { + return new QueryAllRefractableAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllRefractableAssetResponse { + return new QueryAllRefractableAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllRefractableAssetResponse { + return new QueryAllRefractableAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllRefractableAssetResponse | PlainMessage | undefined, b: QueryAllRefractableAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllRefractableAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryGetMaturityLevelRequest + */ +export class QueryGetMaturityLevelRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string symbol = 2; + */ + symbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryGetMaturityLevelRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMaturityLevelRequest { + return new QueryGetMaturityLevelRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMaturityLevelRequest { + return new QueryGetMaturityLevelRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMaturityLevelRequest { + return new QueryGetMaturityLevelRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMaturityLevelRequest | PlainMessage | undefined, b: QueryGetMaturityLevelRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMaturityLevelRequest, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryGetMaturityLevelResponse + */ +export class QueryGetMaturityLevelResponse extends Message { + /** + * @generated from field: pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel?: MaturityLevel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryGetMaturityLevelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMaturityLevelResponse { + return new QueryGetMaturityLevelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMaturityLevelResponse { + return new QueryGetMaturityLevelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMaturityLevelResponse { + return new QueryGetMaturityLevelResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMaturityLevelResponse | PlainMessage | undefined, b: QueryGetMaturityLevelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMaturityLevelResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryAllMaturityLevelRequest + */ +export class QueryAllMaturityLevelRequest extends Message { + /** + * @generated from field: bool active = 1; + */ + active = false; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string asset_enabled = 3; + */ + assetEnabled = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryAllMaturityLevelRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_enabled", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMaturityLevelRequest { + return new QueryAllMaturityLevelRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMaturityLevelRequest { + return new QueryAllMaturityLevelRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMaturityLevelRequest { + return new QueryAllMaturityLevelRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMaturityLevelRequest | PlainMessage | undefined, b: QueryAllMaturityLevelRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMaturityLevelRequest, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.QueryAllMaturityLevelResponse + */ +export class QueryAllMaturityLevelResponse extends Message { + /** + * @generated from field: repeated pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel: MaturityLevel[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.QueryAllMaturityLevelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMaturityLevelResponse { + return new QueryAllMaturityLevelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMaturityLevelResponse { + return new QueryAllMaturityLevelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMaturityLevelResponse { + return new QueryAllMaturityLevelResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMaturityLevelResponse | PlainMessage | undefined, b: QueryAllMaturityLevelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMaturityLevelResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/refractable_asset_pb.ts b/src/protobufs/pryzm/assets/v1/refractable_asset_pb.ts new file mode 100644 index 00000000..8d624fc4 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/refractable_asset_pb.ts @@ -0,0 +1,259 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/refractable_asset.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.assets.v1.DelistedMaturityLevel + */ +export class DelistedMaturityLevel extends Message { + /** + * @generated from field: string symbol = 1; + */ + symbol = ""; + + /** + * decimal number less than or equal to 1, representing how much of an asset's price is attributed to pAsset + * the rest would be attributed to yASSET. + * + * @generated from field: string p_asset_price_underlying_terms = 2; + */ + pAssetPriceUnderlyingTerms = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.DelistedMaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "p_asset_price_underlying_terms", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelistedMaturityLevel { + return new DelistedMaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelistedMaturityLevel { + return new DelistedMaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelistedMaturityLevel { + return new DelistedMaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: DelistedMaturityLevel | PlainMessage | undefined, b: DelistedMaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(DelistedMaturityLevel, a, b); + } +} + +/** + * The properties of a supported asset + * + * @generated from message pryzm.assets.v1.RefractableAsset + */ +export class RefractableAsset extends Message { + /** + * A unique user-provided identifier. Is used in the p/y token denom + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * The denomination of the token on Pryzm. This may be an icstaking cToken or an IBC transferred token denom for external assets. + * + * @generated from field: string token_denom = 2; + */ + tokenDenom = ""; + + /** + * The id for the host chain on which the asset is staked. This is empty if the asset is external. + * + * @generated from field: string host_chain_id = 3; + */ + hostChainId = ""; + + /** + * Disabled assets cannot be refracted, but can still be redeemed. + * + * @generated from field: bool disabled = 4; + */ + disabled = false; + + /** + * @generated from field: pryzm.assets.v1.MaturityParams maturity_params = 5; + */ + maturityParams?: MaturityParams; + + /** + * The amount of fee for each operation on the asset. + * + * @generated from field: pryzm.assets.v1.FeeRatios fee_ratios = 6; + */ + feeRatios?: FeeRatios; + + /** + * @generated from field: bool delisted = 7; + */ + delisted = false; + + /** + * @generated from field: repeated pryzm.assets.v1.DelistedMaturityLevel delisted_maturities = 8; + */ + delistedMaturities: DelistedMaturityLevel[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.RefractableAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "maturity_params", kind: "message", T: MaturityParams }, + { no: 6, name: "fee_ratios", kind: "message", T: FeeRatios }, + { no: 7, name: "delisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "delisted_maturities", kind: "message", T: DelistedMaturityLevel, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RefractableAsset { + return new RefractableAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RefractableAsset { + return new RefractableAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RefractableAsset { + return new RefractableAsset().fromJsonString(jsonString, options); + } + + static equals(a: RefractableAsset | PlainMessage | undefined, b: RefractableAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(RefractableAsset, a, b); + } +} + +/** + * The parameters based on which new maturities are introduced + * + * @generated from message pryzm.assets.v1.MaturityParams + */ +export class MaturityParams extends Message { + /** + * The number of maturities per year: can be 0, 1, 2, 4, 12 + * note: levels_per_year should be zero, if and only if years is 0 (which means no automatic maturity creation) + * + * @generated from field: int32 levels_per_year = 1; + */ + levelsPerYear = 0; + + /** + * The number of years in advance that maturities are made available for + * note: years should be zero, if and only if levels_per_year is 0 (which means no automatic maturity creation) + * + * @generated from field: int32 years = 2; + */ + years = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MaturityParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "levels_per_year", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "years", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MaturityParams { + return new MaturityParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MaturityParams { + return new MaturityParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MaturityParams { + return new MaturityParams().fromJsonString(jsonString, options); + } + + static equals(a: MaturityParams | PlainMessage | undefined, b: MaturityParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MaturityParams, a, b); + } +} + +/** + * Fee ratio per each operation + * + * @generated from message pryzm.assets.v1.FeeRatios + */ +export class FeeRatios extends Message { + /** + * @generated from field: string yield = 1; + */ + yield = ""; + + /** + * @generated from field: string refractor_refract = 2; + */ + refractorRefract = ""; + + /** + * @generated from field: string refractor_merge = 3; + */ + refractorMerge = ""; + + /** + * @generated from field: string refractor_redeem = 4; + */ + refractorRedeem = ""; + + /** + * @generated from field: string y_staking_claim_reward = 5; + */ + yStakingClaimReward = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.FeeRatios"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yield", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "refractor_refract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "refractor_merge", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "refractor_redeem", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "y_staking_claim_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeRatios { + return new FeeRatios().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeRatios { + return new FeeRatios().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeRatios { + return new FeeRatios().fromJsonString(jsonString, options); + } + + static equals(a: FeeRatios | PlainMessage | undefined, b: FeeRatios | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeRatios, a, b); + } +} + diff --git a/src/protobufs/pryzm/assets/v1/tx_cosmes.ts b/src/protobufs/pryzm/assets/v1/tx_cosmes.ts new file mode 100644 index 00000000..6b263188 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/tx_cosmes.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/assets/v1/tx.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDelistRefractableAsset, MsgDelistRefractableAssetResponse, MsgDisableAsset, MsgDisableAssetResponse, MsgIntroduceMaturityLevel, MsgIntroduceMaturityLevelResponse, MsgRegisterAsset, MsgRegisterAssetResponse, MsgUpdateFeeRatios, MsgUpdateFeeRatiosResponse, MsgUpdateMaturityParams, MsgUpdateMaturityParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.assets.v1.Msg"; + +/** + * @generated from rpc pryzm.assets.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.assets.v1.Msg.RegisterAsset + */ +export const MsgRegisterAssetService = { + typeName: TYPE_NAME, + method: "RegisterAsset", + Request: MsgRegisterAsset, + Response: MsgRegisterAssetResponse, +} as const; + +/** + * @generated from rpc pryzm.assets.v1.Msg.DisableAsset + */ +export const MsgDisableAssetService = { + typeName: TYPE_NAME, + method: "DisableAsset", + Request: MsgDisableAsset, + Response: MsgDisableAssetResponse, +} as const; + +/** + * @generated from rpc pryzm.assets.v1.Msg.UpdateMaturityParams + */ +export const MsgUpdateMaturityParamsService = { + typeName: TYPE_NAME, + method: "UpdateMaturityParams", + Request: MsgUpdateMaturityParams, + Response: MsgUpdateMaturityParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.assets.v1.Msg.UpdateFeeRatios + */ +export const MsgUpdateFeeRatiosService = { + typeName: TYPE_NAME, + method: "UpdateFeeRatios", + Request: MsgUpdateFeeRatios, + Response: MsgUpdateFeeRatiosResponse, +} as const; + +/** + * @generated from rpc pryzm.assets.v1.Msg.IntroduceMaturityLevel + */ +export const MsgIntroduceMaturityLevelService = { + typeName: TYPE_NAME, + method: "IntroduceMaturityLevel", + Request: MsgIntroduceMaturityLevel, + Response: MsgIntroduceMaturityLevelResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.assets.v1.Msg.DelistRefractableAsset + */ +export const MsgDelistRefractableAssetService = { + typeName: TYPE_NAME, + method: "DelistRefractableAsset", + Request: MsgDelistRefractableAsset, + Response: MsgDelistRefractableAssetResponse, +} as const; + diff --git a/src/protobufs/pryzm/assets/v1/tx_pb.ts b/src/protobufs/pryzm/assets/v1/tx_pb.ts new file mode 100644 index 00000000..d78469d6 --- /dev/null +++ b/src/protobufs/pryzm/assets/v1/tx_pb.ts @@ -0,0 +1,561 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/assets/v1/tx.proto (package pryzm.assets.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DelistedMaturityLevel, FeeRatios, MaturityParams, RefractableAsset } from "./refractable_asset_pb.js"; +import { Params } from "./params_pb.js"; +import { MaturityLevel } from "./maturity_level_pb.js"; + +/** + * @generated from message pryzm.assets.v1.MsgRegisterAsset + */ +export class MsgRegisterAsset extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: pryzm.assets.v1.RefractableAsset asset = 2; + */ + asset?: RefractableAsset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgRegisterAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "message", T: RefractableAsset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterAsset { + return new MsgRegisterAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterAsset | PlainMessage | undefined, b: MsgRegisterAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterAsset, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgRegisterAssetResponse + */ +export class MsgRegisterAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgRegisterAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterAssetResponse { + return new MsgRegisterAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterAssetResponse | PlainMessage | undefined, b: MsgRegisterAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgDisableAsset + */ +export class MsgDisableAsset extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgDisableAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDisableAsset { + return new MsgDisableAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDisableAsset { + return new MsgDisableAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDisableAsset { + return new MsgDisableAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgDisableAsset | PlainMessage | undefined, b: MsgDisableAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDisableAsset, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgDisableAssetResponse + */ +export class MsgDisableAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgDisableAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDisableAssetResponse { + return new MsgDisableAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDisableAssetResponse { + return new MsgDisableAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDisableAssetResponse { + return new MsgDisableAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDisableAssetResponse | PlainMessage | undefined, b: MsgDisableAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDisableAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateMaturityParams + */ +export class MsgUpdateMaturityParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: pryzm.assets.v1.MaturityParams params = 3; + */ + params?: MaturityParams; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateMaturityParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "params", kind: "message", T: MaturityParams }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaturityParams { + return new MsgUpdateMaturityParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaturityParams { + return new MsgUpdateMaturityParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaturityParams { + return new MsgUpdateMaturityParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaturityParams | PlainMessage | undefined, b: MsgUpdateMaturityParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaturityParams, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateMaturityParamsResponse + */ +export class MsgUpdateMaturityParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateMaturityParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMaturityParamsResponse { + return new MsgUpdateMaturityParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMaturityParamsResponse { + return new MsgUpdateMaturityParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMaturityParamsResponse { + return new MsgUpdateMaturityParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMaturityParamsResponse | PlainMessage | undefined, b: MsgUpdateMaturityParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMaturityParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateFeeRatios + */ +export class MsgUpdateFeeRatios extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: pryzm.assets.v1.FeeRatios fee_ratios = 3; + */ + feeRatios?: FeeRatios; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateFeeRatios"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "fee_ratios", kind: "message", T: FeeRatios }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateFeeRatios { + return new MsgUpdateFeeRatios().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateFeeRatios { + return new MsgUpdateFeeRatios().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateFeeRatios { + return new MsgUpdateFeeRatios().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateFeeRatios | PlainMessage | undefined, b: MsgUpdateFeeRatios | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateFeeRatios, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateFeeRatiosResponse + */ +export class MsgUpdateFeeRatiosResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateFeeRatiosResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateFeeRatiosResponse { + return new MsgUpdateFeeRatiosResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateFeeRatiosResponse { + return new MsgUpdateFeeRatiosResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateFeeRatiosResponse { + return new MsgUpdateFeeRatiosResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateFeeRatiosResponse | PlainMessage | undefined, b: MsgUpdateFeeRatiosResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateFeeRatiosResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.assets.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgDelistRefractableAsset + */ +export class MsgDelistRefractableAsset extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * list of all active maturity levels for the asset being delisted, to define p_asset price + * + * @generated from field: repeated pryzm.assets.v1.DelistedMaturityLevel maturity_levels = 3; + */ + maturityLevels: DelistedMaturityLevel[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgDelistRefractableAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_levels", kind: "message", T: DelistedMaturityLevel, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelistRefractableAsset { + return new MsgDelistRefractableAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelistRefractableAsset { + return new MsgDelistRefractableAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelistRefractableAsset { + return new MsgDelistRefractableAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelistRefractableAsset | PlainMessage | undefined, b: MsgDelistRefractableAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelistRefractableAsset, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgDelistRefractableAssetResponse + */ +export class MsgDelistRefractableAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgDelistRefractableAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelistRefractableAssetResponse { + return new MsgDelistRefractableAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelistRefractableAssetResponse { + return new MsgDelistRefractableAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelistRefractableAssetResponse { + return new MsgDelistRefractableAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelistRefractableAssetResponse | PlainMessage | undefined, b: MsgDelistRefractableAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelistRefractableAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgIntroduceMaturityLevel + */ +export class MsgIntroduceMaturityLevel extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string symbol = 3; + */ + symbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgIntroduceMaturityLevel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceMaturityLevel { + return new MsgIntroduceMaturityLevel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceMaturityLevel { + return new MsgIntroduceMaturityLevel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceMaturityLevel { + return new MsgIntroduceMaturityLevel().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceMaturityLevel | PlainMessage | undefined, b: MsgIntroduceMaturityLevel | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceMaturityLevel, a, b); + } +} + +/** + * @generated from message pryzm.assets.v1.MsgIntroduceMaturityLevelResponse + */ +export class MsgIntroduceMaturityLevelResponse extends Message { + /** + * @generated from field: pryzm.assets.v1.MaturityLevel maturity_level = 1; + */ + maturityLevel?: MaturityLevel; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.assets.v1.MsgIntroduceMaturityLevelResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "maturity_level", kind: "message", T: MaturityLevel }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIntroduceMaturityLevelResponse { + return new MsgIntroduceMaturityLevelResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIntroduceMaturityLevelResponse { + return new MsgIntroduceMaturityLevelResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIntroduceMaturityLevelResponse { + return new MsgIntroduceMaturityLevelResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIntroduceMaturityLevelResponse | PlainMessage | undefined, b: MsgIntroduceMaturityLevelResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIntroduceMaturityLevelResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/event_pb.ts b/src/protobufs/pryzm/icstaking/v1/event_pb.ts new file mode 100644 index 00000000..258a1c9c --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/event_pb.ts @@ -0,0 +1,754 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/event.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { HostChain, HostChainState } from "./host_chain_pb.js"; +import { Params } from "./params_pb.js"; +import { ChannelUndelegation, Undelegation } from "./undelegation_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Acknowledgement, MultiSigConnection, MultiSigPacket } from "./multisig_pb.js"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; + +/** + * @generated from message pryzm.icstaking.v1.EventSetHostChain + */ +export class EventSetHostChain extends Message { + /** + * @generated from field: pryzm.icstaking.v1.HostChain host_chain = 1; + */ + hostChain?: HostChain; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetHostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "message", T: HostChain }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetHostChain { + return new EventSetHostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetHostChain { + return new EventSetHostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetHostChain { + return new EventSetHostChain().fromJsonString(jsonString, options); + } + + static equals(a: EventSetHostChain | PlainMessage | undefined, b: EventSetHostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetHostChain, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetHostChainState + */ +export class EventSetHostChainState extends Message { + /** + * @generated from field: pryzm.icstaking.v1.HostChainState host_chain_state = 1; + */ + hostChainState?: HostChainState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetHostChainState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_state", kind: "message", T: HostChainState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetHostChainState { + return new EventSetHostChainState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetHostChainState { + return new EventSetHostChainState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetHostChainState { + return new EventSetHostChainState().fromJsonString(jsonString, options); + } + + static equals(a: EventSetHostChainState | PlainMessage | undefined, b: EventSetHostChainState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetHostChainState, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.icstaking.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetUndelegation + */ +export class EventSetUndelegation extends Message { + /** + * @generated from field: pryzm.icstaking.v1.Undelegation undelegation = 1; + */ + undelegation?: Undelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetUndelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "undelegation", kind: "message", T: Undelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetUndelegation { + return new EventSetUndelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetUndelegation { + return new EventSetUndelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetUndelegation { + return new EventSetUndelegation().fromJsonString(jsonString, options); + } + + static equals(a: EventSetUndelegation | PlainMessage | undefined, b: EventSetUndelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetUndelegation, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetChannelUndelegation + */ +export class EventSetChannelUndelegation extends Message { + /** + * @generated from field: pryzm.icstaking.v1.ChannelUndelegation channel_undelegation = 1; + */ + channelUndelegation?: ChannelUndelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetChannelUndelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_undelegation", kind: "message", T: ChannelUndelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetChannelUndelegation { + return new EventSetChannelUndelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetChannelUndelegation { + return new EventSetChannelUndelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetChannelUndelegation { + return new EventSetChannelUndelegation().fromJsonString(jsonString, options); + } + + static equals(a: EventSetChannelUndelegation | PlainMessage | undefined, b: EventSetChannelUndelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetChannelUndelegation, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventStake + */ +export class EventStake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 5; + */ + fee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 6; + */ + cAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventStake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "fee", kind: "message", T: Coin }, + { no: 6, name: "c_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventStake { + return new EventStake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventStake { + return new EventStake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventStake { + return new EventStake().fromJsonString(jsonString, options); + } + + static equals(a: EventStake | PlainMessage | undefined, b: EventStake | PlainMessage | undefined): boolean { + return proto3.util.equals(EventStake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventStakeLsmShares + */ +export class EventStakeLsmShares extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string lsm_denom = 4; + */ + lsmDenom = ""; + + /** + * @generated from field: string amount = 5; + */ + amount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 6; + */ + fee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 7; + */ + cAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventStakeLsmShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lsm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "fee", kind: "message", T: Coin }, + { no: 7, name: "c_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventStakeLsmShares { + return new EventStakeLsmShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventStakeLsmShares { + return new EventStakeLsmShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventStakeLsmShares { + return new EventStakeLsmShares().fromJsonString(jsonString, options); + } + + static equals(a: EventStakeLsmShares | PlainMessage | undefined, b: EventStakeLsmShares | PlainMessage | undefined): boolean { + return proto3.util.equals(EventStakeLsmShares, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventUnstake + */ +export class EventUnstake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string c_amount = 4; + */ + cAmount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin u_amount = 5; + */ + uAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "u_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUnstake { + return new EventUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUnstake { + return new EventUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUnstake { + return new EventUnstake().fromJsonString(jsonString, options); + } + + static equals(a: EventUnstake | PlainMessage | undefined, b: EventUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUnstake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventRedeemUnstaked + */ +export class EventRedeemUnstaked extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: uint64 epoch = 4; + */ + epoch = protoInt64.zero; + + /** + * @generated from field: string u_amount = 5; + */ + uAmount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 6; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 7; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventRedeemUnstaked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "u_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "amount", kind: "message", T: Coin }, + { no: 7, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRedeemUnstaked { + return new EventRedeemUnstaked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRedeemUnstaked { + return new EventRedeemUnstaked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRedeemUnstaked { + return new EventRedeemUnstaked().fromJsonString(jsonString, options); + } + + static equals(a: EventRedeemUnstaked | PlainMessage | undefined, b: EventRedeemUnstaked | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRedeemUnstaked, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventRedeemDelisted + */ +export class EventRedeemDelisted extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: uint64 epoch = 4; + */ + epoch = protoInt64.zero; + + /** + * @generated from field: string c_amount = 5; + */ + cAmount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 6; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 7; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventRedeemDelisted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "amount", kind: "message", T: Coin }, + { no: 7, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRedeemDelisted { + return new EventRedeemDelisted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRedeemDelisted { + return new EventRedeemDelisted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRedeemDelisted { + return new EventRedeemDelisted().fromJsonString(jsonString, options); + } + + static equals(a: EventRedeemDelisted | PlainMessage | undefined, b: EventRedeemDelisted | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRedeemDelisted, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventInstantUnstake + */ +export class EventInstantUnstake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string min_c_amount = 4; + */ + minCAmount = ""; + + /** + * @generated from field: string max_c_amount = 5; + */ + maxCAmount = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 6; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 7; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventInstantUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "amount", kind: "message", T: Coin }, + { no: 7, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventInstantUnstake { + return new EventInstantUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventInstantUnstake { + return new EventInstantUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventInstantUnstake { + return new EventInstantUnstake().fromJsonString(jsonString, options); + } + + static equals(a: EventInstantUnstake | PlainMessage | undefined, b: EventInstantUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(EventInstantUnstake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetMultiSigConnection + */ +export class EventSetMultiSigConnection extends Message { + /** + * @generated from field: pryzm.icstaking.v1.MultiSigConnection connection = 1; + */ + connection?: MultiSigConnection; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetMultiSigConnection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection", kind: "message", T: MultiSigConnection }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetMultiSigConnection { + return new EventSetMultiSigConnection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetMultiSigConnection { + return new EventSetMultiSigConnection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetMultiSigConnection { + return new EventSetMultiSigConnection().fromJsonString(jsonString, options); + } + + static equals(a: EventSetMultiSigConnection | PlainMessage | undefined, b: EventSetMultiSigConnection | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetMultiSigConnection, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventSetMultiSigPacket + */ +export class EventSetMultiSigPacket extends Message { + /** + * @generated from field: pryzm.icstaking.v1.MultiSigPacket packet = 1; + */ + packet?: MultiSigPacket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventSetMultiSigPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: MultiSigPacket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetMultiSigPacket { + return new EventSetMultiSigPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetMultiSigPacket { + return new EventSetMultiSigPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetMultiSigPacket { + return new EventSetMultiSigPacket().fromJsonString(jsonString, options); + } + + static equals(a: EventSetMultiSigPacket | PlainMessage | undefined, b: EventSetMultiSigPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetMultiSigPacket, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.EventAcknowledgeMultiSigPacket + */ +export class EventAcknowledgeMultiSigPacket extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: pryzm.icstaking.v1.Acknowledgement ack = 3; + */ + ack?: Acknowledgement; + + /** + * @generated from field: ibc.core.client.v1.Height height = 4; + */ + height?: Height; + + /** + * @generated from field: string tx_hash = 5; + */ + txHash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.EventAcknowledgeMultiSigPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "ack", kind: "message", T: Acknowledgement }, + { no: 4, name: "height", kind: "message", T: Height }, + { no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventAcknowledgeMultiSigPacket { + return new EventAcknowledgeMultiSigPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventAcknowledgeMultiSigPacket { + return new EventAcknowledgeMultiSigPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventAcknowledgeMultiSigPacket { + return new EventAcknowledgeMultiSigPacket().fromJsonString(jsonString, options); + } + + static equals(a: EventAcknowledgeMultiSigPacket | PlainMessage | undefined, b: EventAcknowledgeMultiSigPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(EventAcknowledgeMultiSigPacket, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/genesis_pb.ts b/src/protobufs/pryzm/icstaking/v1/genesis_pb.ts new file mode 100644 index 00000000..0d3a9469 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/genesis_pb.ts @@ -0,0 +1,251 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/genesis.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { HostChain, HostChainState } from "./host_chain_pb.js"; +import { ChannelUndelegation, Undelegation } from "./undelegation_pb.js"; +import { DelegateTransferSession, ReplyData } from "./reply_pb.js"; +import { FailedLsmTransfer, RedeemableLsm } from "./lsm_pb.js"; +import { MultiSigConnection, MultiSigPacket } from "./multisig_pb.js"; +import { LoopBackPacket } from "./loopback_pb.js"; +import { SweepTransfer } from "./sweep_pb.js"; + +/** + * GenesisState defines the icstaking module's genesis state. + * + * @generated from message pryzm.icstaking.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.icstaking.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChain host_chain_list = 3; + */ + hostChainList: HostChain[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainState host_chain_state_list = 4; + */ + hostChainStateList: HostChainState[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.Undelegation undelegation_list = 5; + */ + undelegationList: Undelegation[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.ChannelUndelegation channel_undelegation_list = 6; + */ + channelUndelegationList: ChannelUndelegation[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.ReplyData reply_data_list = 7; + */ + replyDataList: ReplyData[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.RedeemableLsm redeemable_lsm_list = 8; + */ + redeemableLsmList: RedeemableLsm[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.FailedLsmTransfer failed_lsm_transfer_list = 9; + */ + failedLsmTransferList: FailedLsmTransfer[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.MultiSigConnection multi_sig_connection_list = 10; + */ + multiSigConnectionList: MultiSigConnection[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.MultiSigPacket multi_sig_packet_list = 11; + */ + multiSigPacketList: MultiSigPacket[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.LoopBackPacket loop_back_packet_list = 12; + */ + loopBackPacketList: LoopBackPacket[] = []; + + /** + * @generated from field: uint64 loop_back_packet_last_id = 13; + */ + loopBackPacketLastId = protoInt64.zero; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainEpochTime last_delegation_time_list = 14; + */ + lastDelegationTimeList: HostChainEpochTime[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainEpochTime last_redelegation_time_list = 15; + */ + lastRedelegationTimeList: HostChainEpochTime[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainEpochTime last_lsm_redeem_time_list = 16; + */ + lastLsmRedeemTimeList: HostChainEpochTime[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainEpochTime last_undelegation_time_list = 17; + */ + lastUndelegationTimeList: HostChainEpochTime[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainUndelegationEpoch undelegation_epoch_list = 18; + */ + undelegationEpochList: HostChainUndelegationEpoch[] = []; + + /** + * @generated from field: repeated pryzm.icstaking.v1.DelegateTransferSession delegate_transfer_session_list = 19; + */ + delegateTransferSessionList: DelegateTransferSession[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated pryzm.icstaking.v1.SweepTransfer sweep_transfer_list = 20; + */ + sweepTransferList: SweepTransfer[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 3, name: "host_chain_list", kind: "message", T: HostChain, repeated: true }, + { no: 4, name: "host_chain_state_list", kind: "message", T: HostChainState, repeated: true }, + { no: 5, name: "undelegation_list", kind: "message", T: Undelegation, repeated: true }, + { no: 6, name: "channel_undelegation_list", kind: "message", T: ChannelUndelegation, repeated: true }, + { no: 7, name: "reply_data_list", kind: "message", T: ReplyData, repeated: true }, + { no: 8, name: "redeemable_lsm_list", kind: "message", T: RedeemableLsm, repeated: true }, + { no: 9, name: "failed_lsm_transfer_list", kind: "message", T: FailedLsmTransfer, repeated: true }, + { no: 10, name: "multi_sig_connection_list", kind: "message", T: MultiSigConnection, repeated: true }, + { no: 11, name: "multi_sig_packet_list", kind: "message", T: MultiSigPacket, repeated: true }, + { no: 12, name: "loop_back_packet_list", kind: "message", T: LoopBackPacket, repeated: true }, + { no: 13, name: "loop_back_packet_last_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 14, name: "last_delegation_time_list", kind: "message", T: HostChainEpochTime, repeated: true }, + { no: 15, name: "last_redelegation_time_list", kind: "message", T: HostChainEpochTime, repeated: true }, + { no: 16, name: "last_lsm_redeem_time_list", kind: "message", T: HostChainEpochTime, repeated: true }, + { no: 17, name: "last_undelegation_time_list", kind: "message", T: HostChainEpochTime, repeated: true }, + { no: 18, name: "undelegation_epoch_list", kind: "message", T: HostChainUndelegationEpoch, repeated: true }, + { no: 19, name: "delegate_transfer_session_list", kind: "message", T: DelegateTransferSession, repeated: true }, + { no: 20, name: "sweep_transfer_list", kind: "message", T: SweepTransfer, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.HostChainEpochTime + */ +export class HostChainEpochTime extends Message { + /** + * @generated from field: string host_chain_id = 1; + */ + hostChainId = ""; + + /** + * @generated from field: google.protobuf.Timestamp epoch_time = 2; + */ + epochTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostChainEpochTime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostChainEpochTime { + return new HostChainEpochTime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostChainEpochTime { + return new HostChainEpochTime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostChainEpochTime { + return new HostChainEpochTime().fromJsonString(jsonString, options); + } + + static equals(a: HostChainEpochTime | PlainMessage | undefined, b: HostChainEpochTime | PlainMessage | undefined): boolean { + return proto3.util.equals(HostChainEpochTime, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.HostChainUndelegationEpoch + */ +export class HostChainUndelegationEpoch extends Message { + /** + * @generated from field: string host_chain_id = 1; + */ + hostChainId = ""; + + /** + * @generated from field: uint64 undelegation_epoch = 2; + */ + undelegationEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostChainUndelegationEpoch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "undelegation_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostChainUndelegationEpoch { + return new HostChainUndelegationEpoch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostChainUndelegationEpoch { + return new HostChainUndelegationEpoch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostChainUndelegationEpoch { + return new HostChainUndelegationEpoch().fromJsonString(jsonString, options); + } + + static equals(a: HostChainUndelegationEpoch | PlainMessage | undefined, b: HostChainUndelegationEpoch | PlainMessage | undefined): boolean { + return proto3.util.equals(HostChainUndelegationEpoch, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/host_chain_pb.ts b/src/protobufs/pryzm/icstaking/v1/host_chain_pb.ts new file mode 100644 index 00000000..b44e9771 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/host_chain_pb.ts @@ -0,0 +1,678 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/host_chain.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { StakingParams } from "./params_pb.js"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; + +/** + * The types of available connection protocols + * + * @generated from enum pryzm.icstaking.v1.ConnectionType + */ +export enum ConnectionType { + /** + * interchain account connection using ibc-go ICS-27 + * + * @generated from enum value: ConnectionType_ICA = 0; + */ + ConnectionType_ICA = 0, + + /** + * connecting to the host chain using a trusted multi-sig account + * + * @generated from enum value: ConnectionType_MULTI_SIG = 1; + */ + ConnectionType_MULTI_SIG = 1, + + /** + * connection to the Pryzm itself + * + * @generated from enum value: ConnectionType_LOOP_BACK = 2; + */ + ConnectionType_LOOP_BACK = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ConnectionType) +proto3.util.setEnumType(ConnectionType, "pryzm.icstaking.v1.ConnectionType", [ + { no: 0, name: "ConnectionType_ICA" }, + { no: 1, name: "ConnectionType_MULTI_SIG" }, + { no: 2, name: "ConnectionType_LOOP_BACK" }, +]); + +/** + * Types of transfer channels + * + * @generated from enum pryzm.icstaking.v1.TransferChannelType + */ +export enum TransferChannelType { + /** + * IBC transfer + * + * @generated from enum value: TransferChannelType_IBC = 0; + */ + TransferChannelType_IBC = 0, + + /** + * transfer to Pryzm itself + * + * @generated from enum value: TransferChannelType_LOOP_BACK = 1; + */ + TransferChannelType_LOOP_BACK = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(TransferChannelType) +proto3.util.setEnumType(TransferChannelType, "pryzm.icstaking.v1.TransferChannelType", [ + { no: 0, name: "TransferChannelType_IBC" }, + { no: 1, name: "TransferChannelType_LOOP_BACK" }, +]); + +/** + * @generated from enum pryzm.icstaking.v1.AccountState + */ +export enum AccountState { + /** + * @generated from enum value: NOT_REGISTERED = 0; + */ + NOT_REGISTERED = 0, + + /** + * @generated from enum value: REGISTERING = 1; + */ + REGISTERING = 1, + + /** + * @generated from enum value: REGISTERED = 2; + */ + REGISTERED = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(AccountState) +proto3.util.setEnumType(AccountState, "pryzm.icstaking.v1.AccountState", [ + { no: 0, name: "NOT_REGISTERED" }, + { no: 1, name: "REGISTERING" }, + { no: 2, name: "REGISTERED" }, +]); + +/** + * @generated from enum pryzm.icstaking.v1.State + */ +export enum State { + /** + * @generated from enum value: INITIALIZING = 0; + */ + INITIALIZING = 0, + + /** + * @generated from enum value: IDLE = 1; + */ + IDLE = 1, + + /** + * @generated from enum value: TRANSFERRING = 2; + */ + TRANSFERRING = 2, + + /** + * @generated from enum value: DELEGATING = 3; + */ + DELEGATING = 3, + + /** + * @generated from enum value: UNDELEGATING = 4; + */ + UNDELEGATING = 4, + + /** + * @generated from enum value: REDELEGATING = 5; + */ + REDELEGATING = 5, + + /** + * @generated from enum value: COMPOUNDING = 6; + */ + COMPOUNDING = 6, + + /** + * @generated from enum value: COLLECTING = 7; + */ + COLLECTING = 7, + + /** + * @generated from enum value: SWEEPING = 8; + */ + SWEEPING = 8, + + /** + * @generated from enum value: LSM_REDEEMING = 9; + */ + LSM_REDEEMING = 9, +} +// Retrieve enum metadata with: proto3.getEnumType(State) +proto3.util.setEnumType(State, "pryzm.icstaking.v1.State", [ + { no: 0, name: "INITIALIZING" }, + { no: 1, name: "IDLE" }, + { no: 2, name: "TRANSFERRING" }, + { no: 3, name: "DELEGATING" }, + { no: 4, name: "UNDELEGATING" }, + { no: 5, name: "REDELEGATING" }, + { no: 6, name: "COMPOUNDING" }, + { no: 7, name: "COLLECTING" }, + { no: 8, name: "SWEEPING" }, + { no: 9, name: "LSM_REDEEMING" }, +]); + +/** + * The properties of the target chain for staking + * + * @generated from message pryzm.icstaking.v1.HostChain + */ +export class HostChain extends Message { + /** + * A unique user-provided identifier. Is used in the cToken denom + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * connection type. connection type and connection id are unique together + * + * @generated from field: pryzm.icstaking.v1.ConnectionType connection_type = 2; + */ + connectionType = ConnectionType.ConnectionType_ICA; + + /** + * the identifier for connection. connection id and connection type are unique together + * + * @generated from field: string connection_id = 3; + */ + connectionId = ""; + + /** + * the base denom of the token to be staked on the target chain + * + * @generated from field: string base_denom = 4; + */ + baseDenom = ""; + + /** + * list of supported transfer channels for transferring the base_denom tokens between the host chain and Pryzm + * + * @generated from field: repeated pryzm.icstaking.v1.TransferChannel transfer_channels = 5; + */ + transferChannels: TransferChannel[] = []; + + /** + * Parameters for staking/unstaking on the host chain + * + * @generated from field: pryzm.icstaking.v1.StakingParams params = 6; + */ + params?: StakingParams; + + /** + * list of whitelisted validators to which Pryzm sends the staked funds. + * + * @generated from field: repeated pryzm.icstaking.v1.Validator validators = 7; + */ + validators: Validator[] = []; + + /** + * If true, Pryzm will allow users to stake using the LSM shares minted on the host chain. + * + * @generated from field: bool allow_lsm_shares = 8; + */ + allowLsmShares = false; + + /** + * @generated from field: bool delisted = 9; + */ + delisted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_type", kind: "enum", T: proto3.getEnumType(ConnectionType) }, + { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "transfer_channels", kind: "message", T: TransferChannel, repeated: true }, + { no: 6, name: "params", kind: "message", T: StakingParams }, + { no: 7, name: "validators", kind: "message", T: Validator, repeated: true }, + { no: 8, name: "allow_lsm_shares", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "delisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostChain { + return new HostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostChain { + return new HostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostChain { + return new HostChain().fromJsonString(jsonString, options); + } + + static equals(a: HostChain | PlainMessage | undefined, b: HostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(HostChain, a, b); + } +} + +/** + * Properties of a transfer channel + * + * @generated from message pryzm.icstaking.v1.TransferChannel + */ +export class TransferChannel extends Message { + /** + * the type of the channel + * + * @generated from field: pryzm.icstaking.v1.TransferChannelType type = 1; + */ + type = TransferChannelType.TransferChannelType_IBC; + + /** + * the id of the channel. in the case of IBC channel type, this is the channel name. + * + * @generated from field: string id = 2; + */ + id = ""; + + /** + * Optional. This is the name of the token on the receiving chain. + * This is useful when a bridge is being used and the underlying asset is wrapped on the bridge, like axlWETH. + * + * @generated from field: string wrapped_denom = 3; + */ + wrappedDenom = ""; + + /** + * Optional. This is the name of the target chain. + * This is useful when a bridge is being used and the host chain is different with the receiving chain. + * + * @generated from field: string destination_chain = 4; + */ + destinationChain = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.TransferChannel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(TransferChannelType) }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "wrapped_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "destination_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransferChannel { + return new TransferChannel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransferChannel { + return new TransferChannel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransferChannel { + return new TransferChannel().fromJsonString(jsonString, options); + } + + static equals(a: TransferChannel | PlainMessage | undefined, b: TransferChannel | PlainMessage | undefined): boolean { + return proto3.util.equals(TransferChannel, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.Validator + */ +export class Validator extends Message { + /** + * validator's address on the host chain + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * The weight of delegation to the validator. Total weight of all validators per host chain must be equal to 1. + * + * @generated from field: string weight = 2; + */ + weight = ""; + + /** + * whether users can stake the lsm shares minted from this validator + * + * @generated from field: bool allow_lsm_shares = 3; + */ + allowLsmShares = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.Validator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allow_lsm_shares", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Validator { + return new Validator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Validator { + return new Validator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Validator { + return new Validator().fromJsonString(jsonString, options); + } + + static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { + return proto3.util.equals(Validator, a, b); + } +} + +/** + * A subset of state on the host chain needed by Pryzm + * + * @generated from message pryzm.icstaking.v1.HostChainState + */ +export class HostChainState extends Message { + /** + * The id of the chain + * + * @generated from field: string host_chain_id = 1; + */ + hostChainId = ""; + + /** + * Information about the interchain accounts + * + * @generated from field: pryzm.icstaking.v1.HostAccounts host_accounts = 2; + */ + hostAccounts?: HostAccounts; + + /** + * list of validators and their state containing the delegation amount + * + * @generated from field: repeated pryzm.icstaking.v1.ValidatorState validator_states = 3; + */ + validatorStates: ValidatorState[] = []; + + /** + * The amount of assets that are in the delegation account and ready to be delegated + * + * @generated from field: string amount_to_be_delegated = 4; + */ + amountToBeDelegated = ""; + + /** + * The amount of undelegated assets that are currently in the delegation account waiting to be collected + * + * @generated from field: string undelegated_amount_to_collect = 5; + */ + undelegatedAmountToCollect = ""; + + /** + * The current exchange rate of cToken to the host chain staking token + * + * @generated from field: string exchange_rate = 6; + */ + exchangeRate = ""; + + /** + * The current state of interchain operations state machine + * + * @generated from field: pryzm.icstaking.v1.State state = 7; + */ + state = State.INITIALIZING; + + /** + * The last host chain's block height in which PRYZM's state is changed to IDLE + * setting state to IDLE happens when an ack/timeout received for an interchain operation, + * so this is the height of the last received ack from host chain + * + * @generated from field: ibc.core.client.v1.Height last_idle_state_host_height = 8; + */ + lastIdleStateHostHeight?: Height; + + /** + * The amount of LSM tokens that are in queue to be transferred and redeemed on the host chain + * + * @generated from field: string locked_lsm_value = 9; + */ + lockedLsmValue = ""; + + /** + * The amount of fee taken from rewards that is collected and waiting to be transferred from host chain to treasury + * + * @generated from field: string collected_fee = 10; + */ + collectedFee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostChainState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_accounts", kind: "message", T: HostAccounts }, + { no: 3, name: "validator_states", kind: "message", T: ValidatorState, repeated: true }, + { no: 4, name: "amount_to_be_delegated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "undelegated_amount_to_collect", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 8, name: "last_idle_state_host_height", kind: "message", T: Height }, + { no: 9, name: "locked_lsm_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "collected_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostChainState { + return new HostChainState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostChainState { + return new HostChainState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostChainState { + return new HostChainState().fromJsonString(jsonString, options); + } + + static equals(a: HostChainState | PlainMessage | undefined, b: HostChainState | PlainMessage | undefined): boolean { + return proto3.util.equals(HostChainState, a, b); + } +} + +/** + * The interchain accounts + * + * @generated from message pryzm.icstaking.v1.HostAccounts + */ +export class HostAccounts extends Message { + /** + * @generated from field: pryzm.icstaking.v1.HostAccount delegation = 1; + */ + delegation?: HostAccount; + + /** + * @generated from field: pryzm.icstaking.v1.HostAccount reward = 2; + */ + reward?: HostAccount; + + /** + * @generated from field: pryzm.icstaking.v1.HostAccount sweep = 3; + */ + sweep?: HostAccount; + + /** + * This is the state of setting the reward account as the account which receives the staking rewards on host chain. + * On cosmos based chains, the reward account is registered using MsgSetWithdrawAddress in distribution module. + * + * @generated from field: pryzm.icstaking.v1.AccountState reward_account_claiming_state = 4; + */ + rewardAccountClaimingState = AccountState.NOT_REGISTERED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegation", kind: "message", T: HostAccount }, + { no: 2, name: "reward", kind: "message", T: HostAccount }, + { no: 3, name: "sweep", kind: "message", T: HostAccount }, + { no: 4, name: "reward_account_claiming_state", kind: "enum", T: proto3.getEnumType(AccountState) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostAccounts { + return new HostAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostAccounts { + return new HostAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostAccounts { + return new HostAccounts().fromJsonString(jsonString, options); + } + + static equals(a: HostAccounts | PlainMessage | undefined, b: HostAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(HostAccounts, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.HostAccount + */ +export class HostAccount extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string balance = 2; + */ + balance = ""; + + /** + * @generated from field: pryzm.icstaking.v1.AccountState state = 3; + */ + state = AccountState.NOT_REGISTERED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.HostAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(AccountState) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HostAccount { + return new HostAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HostAccount { + return new HostAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HostAccount { + return new HostAccount().fromJsonString(jsonString, options); + } + + static equals(a: HostAccount | PlainMessage | undefined, b: HostAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(HostAccount, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.ValidatorState + */ +export class ValidatorState extends Message { + /** + * the address of the validator + * + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * the amount of tokens delegated to the validator by PRYZM + * + * @generated from field: string delegated_amount = 2; + */ + delegatedAmount = ""; + + /** + * total tokens delegated to the validator by all delegators + * this is used to calculate the value of the validator's lsm share + * + * @generated from field: string total_tokens = 3; + */ + totalTokens = ""; + + /** + * total shares issued to the validator's delegators + * this is used to calculate the value of the validator's lsm share + * + * @generated from field: string total_shares = 4; + */ + totalShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.ValidatorState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "delegated_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorState { + return new ValidatorState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorState { + return new ValidatorState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorState { + return new ValidatorState().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorState | PlainMessage | undefined, b: ValidatorState | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorState, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/loopback_pb.ts b/src/protobufs/pryzm/icstaking/v1/loopback_pb.ts new file mode 100644 index 00000000..0ecbe365 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/loopback_pb.ts @@ -0,0 +1,163 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/loopback.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.icstaking.v1.LoopBackPacket + */ +export class LoopBackPacket extends Message { + /** + * the identifier of the packet, also used to make sure that the messages are executed with proper ordering + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from oneof pryzm.icstaking.v1.LoopBackPacket.data + */ + data: { + /** + * @generated from field: pryzm.icstaking.v1.LoopBackTransfer transfer = 2; + */ + value: LoopBackTransfer; + case: "transfer"; + } | { + /** + * @generated from field: pryzm.icstaking.v1.LoopBackMsgs msgs = 3; + */ + value: LoopBackMsgs; + case: "msgs"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.LoopBackPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "transfer", kind: "message", T: LoopBackTransfer, oneof: "data" }, + { no: 3, name: "msgs", kind: "message", T: LoopBackMsgs, oneof: "data" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LoopBackPacket { + return new LoopBackPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LoopBackPacket { + return new LoopBackPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LoopBackPacket { + return new LoopBackPacket().fromJsonString(jsonString, options); + } + + static equals(a: LoopBackPacket | PlainMessage | undefined, b: LoopBackPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(LoopBackPacket, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.LoopBackMsgs + */ +export class LoopBackMsgs extends Message { + /** + * messages that must be executed on the host chain + * + * @generated from field: repeated google.protobuf.Any messages = 1; + */ + messages: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.LoopBackMsgs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LoopBackMsgs { + return new LoopBackMsgs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LoopBackMsgs { + return new LoopBackMsgs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LoopBackMsgs { + return new LoopBackMsgs().fromJsonString(jsonString, options); + } + + static equals(a: LoopBackMsgs | PlainMessage | undefined, b: LoopBackMsgs | PlainMessage | undefined): boolean { + return proto3.util.equals(LoopBackMsgs, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.LoopBackTransfer + */ +export class LoopBackTransfer extends Message { + /** + * messages that must be executed on the host chain + * + * @generated from field: string from = 1; + */ + from = ""; + + /** + * @generated from field: string to = 2; + */ + to = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: string memo = 4; + */ + memo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.LoopBackTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LoopBackTransfer { + return new LoopBackTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LoopBackTransfer { + return new LoopBackTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LoopBackTransfer { + return new LoopBackTransfer().fromJsonString(jsonString, options); + } + + static equals(a: LoopBackTransfer | PlainMessage | undefined, b: LoopBackTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(LoopBackTransfer, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/lsm_pb.ts b/src/protobufs/pryzm/icstaking/v1/lsm_pb.ts new file mode 100644 index 00000000..90fdbe4a --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/lsm_pb.ts @@ -0,0 +1,144 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/lsm.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.icstaking.v1.RedeemableLsm + */ +export class RedeemableLsm extends Message { + /** + * the host chain identifier + * + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * the denomination of the LSM tokens + * + * @generated from field: string lsm_denom = 2; + */ + lsmDenom = ""; + + /** + * the amount of tokens in the delegation ICA waiting to be redeemed + * + * @generated from field: string lsm_amount = 3; + */ + lsmAmount = ""; + + /** + * the value of the LSM tokens in terms of the base asset, based on the amount of cAssets minted for the user + * + * @generated from field: string lsm_value = 4; + */ + lsmValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.RedeemableLsm"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lsm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lsm_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lsm_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RedeemableLsm { + return new RedeemableLsm().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RedeemableLsm { + return new RedeemableLsm().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RedeemableLsm { + return new RedeemableLsm().fromJsonString(jsonString, options); + } + + static equals(a: RedeemableLsm | PlainMessage | undefined, b: RedeemableLsm | PlainMessage | undefined): boolean { + return proto3.util.equals(RedeemableLsm, a, b); + } +} + +/** + * this is used to store the transfer messages with failed execution on the host chain + * + * @generated from message pryzm.icstaking.v1.FailedLsmTransfer + */ +export class FailedLsmTransfer extends Message { + /** + * the host chain identifier + * + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * the transfer channel being used + * + * @generated from field: string channel = 2; + */ + channel = ""; + + /** + * the denomination of the LSM tokens + * + * @generated from field: string denom = 3; + */ + denom = ""; + + /** + * the amount of tokens to be transferred + * + * @generated from field: string lsm_amount = 4; + */ + lsmAmount = ""; + + /** + * the value of the lsm_amount in terms of the base asset, based on the amount of cAssets minted for the user + * + * @generated from field: string lsm_value = 5; + */ + lsmValue = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.FailedLsmTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lsm_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "lsm_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FailedLsmTransfer { + return new FailedLsmTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FailedLsmTransfer { + return new FailedLsmTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FailedLsmTransfer { + return new FailedLsmTransfer().fromJsonString(jsonString, options); + } + + static equals(a: FailedLsmTransfer | PlainMessage | undefined, b: FailedLsmTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(FailedLsmTransfer, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/multisig_pb.ts b/src/protobufs/pryzm/icstaking/v1/multisig_pb.ts new file mode 100644 index 00000000..64631022 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/multisig_pb.ts @@ -0,0 +1,181 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/multisig.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; + +/** + * @generated from message pryzm.icstaking.v1.MultiSigConnection + */ +export class MultiSigConnection extends Message { + /** + * identifier for a multi-sig connection + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * the operator address of the multi-sig connection on Pryzm, allowed to acknowledge packets + * this address must be a multi-sig to be secure + * + * @generated from field: string operator = 2; + */ + operator = ""; + + /** + * the last packet sequence sent on this connection + * + * @generated from field: uint64 last_sequence = 3; + */ + lastSequence = protoInt64.zero; + + /** + * the latest height of host chain known on Pryzm + * this is the host chain block when the last packet is executed and Pryzm have got the acknowledgment + * + * @generated from field: ibc.core.client.v1.Height latest_host_height = 4; + */ + latestHostHeight?: Height; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MultiSigConnection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "last_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "latest_host_height", kind: "message", T: Height }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiSigConnection { + return new MultiSigConnection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiSigConnection { + return new MultiSigConnection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiSigConnection { + return new MultiSigConnection().fromJsonString(jsonString, options); + } + + static equals(a: MultiSigConnection | PlainMessage | undefined, b: MultiSigConnection | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiSigConnection, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MultiSigPacket + */ +export class MultiSigPacket extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * the sequence number of the packet, used to make sure that the messages are executed with proper ordering + * + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + /** + * messages that must be executed on the host chain + * + * @generated from field: repeated google.protobuf.Any messages = 3; + */ + messages: Any[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MultiSigPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "messages", kind: "message", T: Any, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MultiSigPacket { + return new MultiSigPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MultiSigPacket { + return new MultiSigPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MultiSigPacket { + return new MultiSigPacket().fromJsonString(jsonString, options); + } + + static equals(a: MultiSigPacket | PlainMessage | undefined, b: MultiSigPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(MultiSigPacket, a, b); + } +} + +/** + * This is copied from ibc-go + * + * @generated from message pryzm.icstaking.v1.Acknowledgement + */ +export class Acknowledgement extends Message { + /** + * response contains either a result or an error and must be non-empty + * + * @generated from oneof pryzm.icstaking.v1.Acknowledgement.response + */ + response: { + /** + * @generated from field: bytes result = 21; + */ + value: Uint8Array; + case: "result"; + } | { + /** + * @generated from field: string error = 22; + */ + value: string; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.Acknowledgement"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 21, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "response" }, + { no: 22, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "response" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Acknowledgement { + return new Acknowledgement().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Acknowledgement { + return new Acknowledgement().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Acknowledgement { + return new Acknowledgement().fromJsonString(jsonString, options); + } + + static equals(a: Acknowledgement | PlainMessage | undefined, b: Acknowledgement | PlainMessage | undefined): boolean { + return proto3.util.equals(Acknowledgement, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/oracle_payload_pb.ts b/src/protobufs/pryzm/icstaking/v1/oracle_payload_pb.ts new file mode 100644 index 00000000..d0d78220 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/oracle_payload_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/oracle_payload.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; +import { ValidatorState } from "./host_chain_pb.js"; + +/** + * OraclePayload defines the structure of oracle vote payload + * + * @generated from message pryzm.icstaking.v1.OraclePayload + */ +export class OraclePayload extends Message { + /** + * Oracle is reporting the data based on the host chain’s time which may have a time difference with Pryzm. + * In order to be accurate, we use a reference of host chain’s latest block in which Pryzm's state has changed to idle, + * and oracle feeders' reported block height is checked to be after that specific block + * + * @generated from field: ibc.core.client.v1.Height block_height = 1; + */ + blockHeight?: Height; + + /** + * list of validators and their state containing the delegation amount + * + * @generated from field: repeated pryzm.icstaking.v1.ValidatorState validator_states = 3; + */ + validatorStates: ValidatorState[] = []; + + /** + * balance of delegation interchain account + * + * @generated from field: string delegation_account_balance = 4; + */ + delegationAccountBalance = ""; + + /** + * balance of reward interchain account + * + * @generated from field: string reward_account_balance = 5; + */ + rewardAccountBalance = ""; + + /** + * balance of sweep interchain account + * + * @generated from field: string sweep_account_balance = 6; + */ + sweepAccountBalance = ""; + + /** + * the largest undelegation epoch number for which the undelegation is completed and is ready to be swept to PRYZM + * reporting this with zero means that none of incomplete undelegations are completed. + * + * @generated from field: uint64 last_completed_undelegation_epoch = 7; + */ + lastCompletedUndelegationEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.OraclePayload"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_height", kind: "message", T: Height }, + { no: 3, name: "validator_states", kind: "message", T: ValidatorState, repeated: true }, + { no: 4, name: "delegation_account_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "reward_account_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "sweep_account_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "last_completed_undelegation_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePayload { + return new OraclePayload().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePayload { + return new OraclePayload().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePayload { + return new OraclePayload().fromJsonString(jsonString, options); + } + + static equals(a: OraclePayload | PlainMessage | undefined, b: OraclePayload | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePayload, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/params_pb.ts b/src/protobufs/pryzm/icstaking/v1/params_pb.ts new file mode 100644 index 00000000..0c09decc --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/params_pb.ts @@ -0,0 +1,275 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/params.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.icstaking.v1.Params + */ +export class Params extends Message { + /** + * the default staking parameters. properties of HostChain.staking_params are overridden to this default params if provided + * + * @generated from field: pryzm.icstaking.v1.StakingParams staking_params = 1; + */ + stakingParams?: StakingParams; + + /** + * the list of admin addresses, able to register a new host chain or update an existing host chain + * + * @generated from field: repeated string admins = 2; + */ + admins: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking_params", kind: "message", T: StakingParams }, + { no: 2, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * StakingParams defines the parameters related to staking on each host chain + * + * @generated from message pryzm.icstaking.v1.StakingParams + */ +export class StakingParams extends Message { + /** + * the amount of operation fees + * + * @generated from field: pryzm.icstaking.v1.FeeRatios fee_ratios = 1; + */ + feeRatios?: FeeRatios; + + /** + * the interval in which PRYZM sends delegation messages to the host chain + * + * @generated from field: google.protobuf.Duration delegation_interval = 2; + */ + delegationInterval?: Duration; + + /** + * the interval in which PRYZM sends undelegation messages to the host chain + * host chain's (UnbondingTime / MaxEntries) must be considered as the max value when setting this field + * + * @generated from field: google.protobuf.Duration undelegation_interval = 3; + */ + undelegationInterval?: Duration; + + /** + * the time-out value being set on ibc transfer messages + * + * @generated from field: google.protobuf.Duration ibc_transfer_timeout = 4; + */ + ibcTransferTimeout?: Duration; + + /** + * the time-out value being set on ica messages + * + * @generated from field: google.protobuf.Duration ica_timeout = 5; + */ + icaTimeout?: Duration; + + /** + * @generated from field: pryzm.icstaking.v1.RebalanceParams rebalance_params = 6; + */ + rebalanceParams?: RebalanceParams; + + /** + * the interval in which PRYZM sends LSM redeem messages to the host chain + * + * @generated from field: google.protobuf.Duration lsm_redeem_interval = 7; + */ + lsmRedeemInterval?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.StakingParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_ratios", kind: "message", T: FeeRatios }, + { no: 2, name: "delegation_interval", kind: "message", T: Duration }, + { no: 3, name: "undelegation_interval", kind: "message", T: Duration }, + { no: 4, name: "ibc_transfer_timeout", kind: "message", T: Duration }, + { no: 5, name: "ica_timeout", kind: "message", T: Duration }, + { no: 6, name: "rebalance_params", kind: "message", T: RebalanceParams }, + { no: 7, name: "lsm_redeem_interval", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StakingParams { + return new StakingParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StakingParams { + return new StakingParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StakingParams { + return new StakingParams().fromJsonString(jsonString, options); + } + + static equals(a: StakingParams | PlainMessage | undefined, b: StakingParams | PlainMessage | undefined): boolean { + return proto3.util.equals(StakingParams, a, b); + } +} + +/** + * FeeRatios defines the fee ratio operations supported by icstaking + * + * @generated from message pryzm.icstaking.v1.FeeRatios + */ +export class FeeRatios extends Message { + /** + * the ratio of fee reduced from yield of staking on the host chain + * + * @generated from field: string yield = 1; + */ + yield = ""; + + /** + * the ratio of fee reduced from the amount of assets being staked on PRYZM + * + * @generated from field: string staking = 2; + */ + staking = ""; + + /** + * the ratio of fee reduced from the amount of assets being unstaked from PRYZM + * + * @generated from field: string unstaking = 3; + */ + unstaking = ""; + + /** + * the ratio of fee reduced from the amount of assets being instantly unstaked from PRYZM + * + * @generated from field: string instant_unstaking = 4; + */ + instantUnstaking = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.FeeRatios"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "yield", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "staking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "unstaking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "instant_unstaking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeeRatios { + return new FeeRatios().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeeRatios { + return new FeeRatios().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeeRatios { + return new FeeRatios().fromJsonString(jsonString, options); + } + + static equals(a: FeeRatios | PlainMessage | undefined, b: FeeRatios | PlainMessage | undefined): boolean { + return proto3.util.equals(FeeRatios, a, b); + } +} + +/** + * RebalanceParams contains the parameters for re-balancing a host chain's validator delegation weights + * + * @generated from message pryzm.icstaking.v1.RebalanceParams + */ +export class RebalanceParams extends Message { + /** + * the maximum number of redelegation messages sent to the host chain in each rebalance operation + * + * @generated from field: int32 max_msgs = 1; + */ + maxMsgs = 0; + + /** + * the minimum divergence a validator delegation weight must have with the expected weight to start rebalance operation + * + * @generated from field: string rebalance_threshold = 2; + */ + rebalanceThreshold = ""; + + /** + * the minimum amount of assets for each redelegation message sent to a host chain + * + * @generated from field: string min_rebalance_amount = 3; + */ + minRebalanceAmount = ""; + + /** + * the minimum interval between two rebalance operations + * + * @generated from field: google.protobuf.Duration min_rebalance_interval = 4; + */ + minRebalanceInterval?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.RebalanceParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_msgs", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "rebalance_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "min_rebalance_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_rebalance_interval", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RebalanceParams { + return new RebalanceParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RebalanceParams { + return new RebalanceParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RebalanceParams { + return new RebalanceParams().fromJsonString(jsonString, options); + } + + static equals(a: RebalanceParams | PlainMessage | undefined, b: RebalanceParams | PlainMessage | undefined): boolean { + return proto3.util.equals(RebalanceParams, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/query_cosmes.ts b/src/protobufs/pryzm/icstaking/v1/query_cosmes.ts new file mode 100644 index 00000000..b83b8b38 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/query_cosmes.ts @@ -0,0 +1,261 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/query.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllChannelUndelegationRequest, QueryAllChannelUndelegationResponse, QueryAllFailedLsmTransferRequest, QueryAllFailedLsmTransferResponse, QueryAllHostChainRequest, QueryAllHostChainResponse, QueryAllHostChainStateRequest, QueryAllHostChainStateResponse, QueryAllMultiSigConnectionRequest, QueryAllMultiSigConnectionResponse, QueryAllMultiSigPacketRequest, QueryAllMultiSigPacketResponse, QueryAllRedeemableLsmRequest, QueryAllRedeemableLsmResponse, QueryAllReplyDataRequest, QueryAllReplyDataResponse, QueryAllSweepTransferRequest, QueryAllSweepTransferResponse, QueryAllUndelegationRequest, QueryAllUndelegationResponse, QueryDelegationQueueBalanceRequest, QueryDelegationQueueBalanceResponse, QueryEpochInfoRequest, QueryEpochInfoResponse, QueryGetChannelUndelegationRequest, QueryGetChannelUndelegationResponse, QueryGetHostChainRequest, QueryGetHostChainResponse, QueryGetHostChainStateRequest, QueryGetHostChainStateResponse, QueryGetMultiSigConnectionRequest, QueryGetMultiSigConnectionResponse, QueryGetMultiSigPacketRequest, QueryGetMultiSigPacketResponse, QueryGetUndelegationRequest, QueryGetUndelegationResponse, QueryIncompleteUndelegationRequest, QueryIncompleteUndelegationResponse, QueryParamsRequest, QueryParamsResponse, QuerySimulateStakeRequest, QuerySimulateStakeResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.icstaking.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.icstaking.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a HostChain by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.HostChain + */ +export const QueryHostChainService = { + typeName: TYPE_NAME, + method: "HostChain", + Request: QueryGetHostChainRequest, + Response: QueryGetHostChainResponse, +} as const; + +/** + * Queries a list of HostChain items. + * + * @generated from rpc pryzm.icstaking.v1.Query.HostChainAll + */ +export const QueryHostChainAllService = { + typeName: TYPE_NAME, + method: "HostChainAll", + Request: QueryAllHostChainRequest, + Response: QueryAllHostChainResponse, +} as const; + +/** + * Queries a HostChainState by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.HostChainState + */ +export const QueryHostChainStateService = { + typeName: TYPE_NAME, + method: "HostChainState", + Request: QueryGetHostChainStateRequest, + Response: QueryGetHostChainStateResponse, +} as const; + +/** + * Queries a list of HostChainState items. + * + * @generated from rpc pryzm.icstaking.v1.Query.HostChainStateAll + */ +export const QueryHostChainStateAllService = { + typeName: TYPE_NAME, + method: "HostChainStateAll", + Request: QueryAllHostChainStateRequest, + Response: QueryAllHostChainStateResponse, +} as const; + +/** + * Queries a Undelegation by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.Undelegation + */ +export const QueryUndelegationService = { + typeName: TYPE_NAME, + method: "Undelegation", + Request: QueryGetUndelegationRequest, + Response: QueryGetUndelegationResponse, +} as const; + +/** + * Queries a list of Undelegation items. + * + * @generated from rpc pryzm.icstaking.v1.Query.UndelegationAll + */ +export const QueryUndelegationAllService = { + typeName: TYPE_NAME, + method: "UndelegationAll", + Request: QueryAllUndelegationRequest, + Response: QueryAllUndelegationResponse, +} as const; + +/** + * Queries a list of incomplete undelegations sorted by completion time. + * + * @generated from rpc pryzm.icstaking.v1.Query.IncompleteUndelegationAll + */ +export const QueryIncompleteUndelegationAllService = { + typeName: TYPE_NAME, + method: "IncompleteUndelegationAll", + Request: QueryIncompleteUndelegationRequest, + Response: QueryIncompleteUndelegationResponse, +} as const; + +/** + * Queries a ChannelUndelegation by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.ChannelUndelegation + */ +export const QueryChannelUndelegationService = { + typeName: TYPE_NAME, + method: "ChannelUndelegation", + Request: QueryGetChannelUndelegationRequest, + Response: QueryGetChannelUndelegationResponse, +} as const; + +/** + * Queries a list of ChannelUndelegation items. + * + * @generated from rpc pryzm.icstaking.v1.Query.ChannelUndelegationAll + */ +export const QueryChannelUndelegationAllService = { + typeName: TYPE_NAME, + method: "ChannelUndelegationAll", + Request: QueryAllChannelUndelegationRequest, + Response: QueryAllChannelUndelegationResponse, +} as const; + +/** + * Queries the balance of the delegation queue. + * + * @generated from rpc pryzm.icstaking.v1.Query.DelegationQueueBalance + */ +export const QueryDelegationQueueBalanceService = { + typeName: TYPE_NAME, + method: "DelegationQueueBalance", + Request: QueryDelegationQueueBalanceRequest, + Response: QueryDelegationQueueBalanceResponse, +} as const; + +/** + * Queries the information about last delegation and undelegation times + * + * @generated from rpc pryzm.icstaking.v1.Query.EpochInfo + */ +export const QueryEpochInfoService = { + typeName: TYPE_NAME, + method: "EpochInfo", + Request: QueryEpochInfoRequest, + Response: QueryEpochInfoResponse, +} as const; + +/** + * Queries the list of reply data + * + * @generated from rpc pryzm.icstaking.v1.Query.ReplyDataAll + */ +export const QueryReplyDataAllService = { + typeName: TYPE_NAME, + method: "ReplyDataAll", + Request: QueryAllReplyDataRequest, + Response: QueryAllReplyDataResponse, +} as const; + +/** + * Queries a list of FailedLsmTransfer items. + * + * @generated from rpc pryzm.icstaking.v1.Query.RedeemableLsmAll + */ +export const QueryRedeemableLsmAllService = { + typeName: TYPE_NAME, + method: "RedeemableLsmAll", + Request: QueryAllRedeemableLsmRequest, + Response: QueryAllRedeemableLsmResponse, +} as const; + +/** + * Queries a list of FailedLsmTransfer items. + * + * @generated from rpc pryzm.icstaking.v1.Query.FailedLsmTransferAll + */ +export const QueryFailedLsmTransferAllService = { + typeName: TYPE_NAME, + method: "FailedLsmTransferAll", + Request: QueryAllFailedLsmTransferRequest, + Response: QueryAllFailedLsmTransferResponse, +} as const; + +/** + * Queries a MultiSigConnection by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.MultiSigConnection + */ +export const QueryMultiSigConnectionService = { + typeName: TYPE_NAME, + method: "MultiSigConnection", + Request: QueryGetMultiSigConnectionRequest, + Response: QueryGetMultiSigConnectionResponse, +} as const; + +/** + * Queries a list of MultiSigConnection items. + * + * @generated from rpc pryzm.icstaking.v1.Query.MultiSigConnectionAll + */ +export const QueryMultiSigConnectionAllService = { + typeName: TYPE_NAME, + method: "MultiSigConnectionAll", + Request: QueryAllMultiSigConnectionRequest, + Response: QueryAllMultiSigConnectionResponse, +} as const; + +/** + * Queries a MultiSigPacket by index. + * + * @generated from rpc pryzm.icstaking.v1.Query.MultiSigPacket + */ +export const QueryMultiSigPacketService = { + typeName: TYPE_NAME, + method: "MultiSigPacket", + Request: QueryGetMultiSigPacketRequest, + Response: QueryGetMultiSigPacketResponse, +} as const; + +/** + * Queries a list of MultiSigPacket items. + * + * @generated from rpc pryzm.icstaking.v1.Query.MultiSigPacketAll + */ +export const QueryMultiSigPacketAllService = { + typeName: TYPE_NAME, + method: "MultiSigPacketAll", + Request: QueryAllMultiSigPacketRequest, + Response: QueryAllMultiSigPacketResponse, +} as const; + +/** + * Queries the list of sweep transfer + * + * @generated from rpc pryzm.icstaking.v1.Query.SweepTransferAll + */ +export const QuerySweepTransferAllService = { + typeName: TYPE_NAME, + method: "SweepTransferAll", + Request: QueryAllSweepTransferRequest, + Response: QueryAllSweepTransferResponse, +} as const; + +/** + * Simulates the stake message + * + * @generated from rpc pryzm.icstaking.v1.Query.SimulateStake + */ +export const QuerySimulateStakeService = { + typeName: TYPE_NAME, + method: "SimulateStake", + Request: QuerySimulateStakeRequest, + Response: QuerySimulateStakeResponse, +} as const; + diff --git a/src/protobufs/pryzm/icstaking/v1/query_pb.ts b/src/protobufs/pryzm/icstaking/v1/query_pb.ts new file mode 100644 index 00000000..c0ae402a --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/query_pb.ts @@ -0,0 +1,1773 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/query.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { HostChain, HostChainState } from "./host_chain_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { ChannelUndelegation, Undelegation } from "./undelegation_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { ReplyData } from "./reply_pb.js"; +import { MultiSigConnection, MultiSigPacket } from "./multisig_pb.js"; +import { FailedLsmTransfer, RedeemableLsm } from "./lsm_pb.js"; +import { SweepTransfer } from "./sweep_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.icstaking.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.icstaking.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.icstaking.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetHostChainRequest + */ +export class QueryGetHostChainRequest extends Message { + /** + * @generated from field: string host_chain_id = 1; + */ + hostChainId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetHostChainRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHostChainRequest { + return new QueryGetHostChainRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHostChainRequest { + return new QueryGetHostChainRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHostChainRequest { + return new QueryGetHostChainRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHostChainRequest | PlainMessage | undefined, b: QueryGetHostChainRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHostChainRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetHostChainResponse + */ +export class QueryGetHostChainResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.HostChain host_chain = 1; + */ + hostChain?: HostChain; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "message", T: HostChain }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHostChainResponse { + return new QueryGetHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHostChainResponse { + return new QueryGetHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHostChainResponse { + return new QueryGetHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHostChainResponse | PlainMessage | undefined, b: QueryGetHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllHostChainRequest + */ +export class QueryAllHostChainRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllHostChainRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHostChainRequest { + return new QueryAllHostChainRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHostChainRequest { + return new QueryAllHostChainRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHostChainRequest { + return new QueryAllHostChainRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHostChainRequest | PlainMessage | undefined, b: QueryAllHostChainRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHostChainRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllHostChainResponse + */ +export class QueryAllHostChainResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChain host_chain = 1; + */ + hostChain: HostChain[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "message", T: HostChain, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHostChainResponse { + return new QueryAllHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHostChainResponse { + return new QueryAllHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHostChainResponse { + return new QueryAllHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHostChainResponse | PlainMessage | undefined, b: QueryAllHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetHostChainStateRequest + */ +export class QueryGetHostChainStateRequest extends Message { + /** + * @generated from field: string host_chain_id = 1; + */ + hostChainId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetHostChainStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHostChainStateRequest { + return new QueryGetHostChainStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHostChainStateRequest { + return new QueryGetHostChainStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHostChainStateRequest { + return new QueryGetHostChainStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHostChainStateRequest | PlainMessage | undefined, b: QueryGetHostChainStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHostChainStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetHostChainStateResponse + */ +export class QueryGetHostChainStateResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.HostChainState host_chain_state = 1; + */ + hostChainState?: HostChainState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetHostChainStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_state", kind: "message", T: HostChainState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetHostChainStateResponse { + return new QueryGetHostChainStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetHostChainStateResponse { + return new QueryGetHostChainStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetHostChainStateResponse { + return new QueryGetHostChainStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetHostChainStateResponse | PlainMessage | undefined, b: QueryGetHostChainStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetHostChainStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllHostChainStateRequest + */ +export class QueryAllHostChainStateRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllHostChainStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHostChainStateRequest { + return new QueryAllHostChainStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHostChainStateRequest { + return new QueryAllHostChainStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHostChainStateRequest { + return new QueryAllHostChainStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHostChainStateRequest | PlainMessage | undefined, b: QueryAllHostChainStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHostChainStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllHostChainStateResponse + */ +export class QueryAllHostChainStateResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.HostChainState host_chain_state = 1; + */ + hostChainState: HostChainState[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllHostChainStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain_state", kind: "message", T: HostChainState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllHostChainStateResponse { + return new QueryAllHostChainStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllHostChainStateResponse { + return new QueryAllHostChainStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllHostChainStateResponse { + return new QueryAllHostChainStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllHostChainStateResponse | PlainMessage | undefined, b: QueryAllHostChainStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllHostChainStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetUndelegationRequest + */ +export class QueryGetUndelegationRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: uint64 epoch = 2; + */ + epoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetUndelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUndelegationRequest { + return new QueryGetUndelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUndelegationRequest { + return new QueryGetUndelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUndelegationRequest { + return new QueryGetUndelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUndelegationRequest | PlainMessage | undefined, b: QueryGetUndelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUndelegationRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetUndelegationResponse + */ +export class QueryGetUndelegationResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.Undelegation undelegation = 1; + */ + undelegation?: Undelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetUndelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "undelegation", kind: "message", T: Undelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUndelegationResponse { + return new QueryGetUndelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUndelegationResponse { + return new QueryGetUndelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUndelegationResponse { + return new QueryGetUndelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUndelegationResponse | PlainMessage | undefined, b: QueryGetUndelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUndelegationResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllUndelegationRequest + */ +export class QueryAllUndelegationRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllUndelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUndelegationRequest { + return new QueryAllUndelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUndelegationRequest { + return new QueryAllUndelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUndelegationRequest { + return new QueryAllUndelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUndelegationRequest | PlainMessage | undefined, b: QueryAllUndelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUndelegationRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllUndelegationResponse + */ +export class QueryAllUndelegationResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.Undelegation undelegation = 1; + */ + undelegation: Undelegation[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllUndelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "undelegation", kind: "message", T: Undelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUndelegationResponse { + return new QueryAllUndelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUndelegationResponse { + return new QueryAllUndelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUndelegationResponse { + return new QueryAllUndelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUndelegationResponse | PlainMessage | undefined, b: QueryAllUndelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUndelegationResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryIncompleteUndelegationRequest + */ +export class QueryIncompleteUndelegationRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryIncompleteUndelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncompleteUndelegationRequest { + return new QueryIncompleteUndelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncompleteUndelegationRequest { + return new QueryIncompleteUndelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncompleteUndelegationRequest { + return new QueryIncompleteUndelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncompleteUndelegationRequest | PlainMessage | undefined, b: QueryIncompleteUndelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncompleteUndelegationRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryIncompleteUndelegationResponse + */ +export class QueryIncompleteUndelegationResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.Undelegation undelegation = 1; + */ + undelegation: Undelegation[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryIncompleteUndelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "undelegation", kind: "message", T: Undelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncompleteUndelegationResponse { + return new QueryIncompleteUndelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncompleteUndelegationResponse { + return new QueryIncompleteUndelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncompleteUndelegationResponse { + return new QueryIncompleteUndelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncompleteUndelegationResponse | PlainMessage | undefined, b: QueryIncompleteUndelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncompleteUndelegationResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetChannelUndelegationRequest + */ +export class QueryGetChannelUndelegationRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: uint64 epoch = 2; + */ + epoch = protoInt64.zero; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetChannelUndelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetChannelUndelegationRequest { + return new QueryGetChannelUndelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetChannelUndelegationRequest { + return new QueryGetChannelUndelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetChannelUndelegationRequest { + return new QueryGetChannelUndelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetChannelUndelegationRequest | PlainMessage | undefined, b: QueryGetChannelUndelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetChannelUndelegationRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetChannelUndelegationResponse + */ +export class QueryGetChannelUndelegationResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.ChannelUndelegation channel_undelegation = 1; + */ + channelUndelegation?: ChannelUndelegation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetChannelUndelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_undelegation", kind: "message", T: ChannelUndelegation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetChannelUndelegationResponse { + return new QueryGetChannelUndelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetChannelUndelegationResponse { + return new QueryGetChannelUndelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetChannelUndelegationResponse { + return new QueryGetChannelUndelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetChannelUndelegationResponse | PlainMessage | undefined, b: QueryGetChannelUndelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetChannelUndelegationResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllChannelUndelegationRequest + */ +export class QueryAllChannelUndelegationRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: uint64 epoch = 2; + */ + epoch = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllChannelUndelegationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllChannelUndelegationRequest { + return new QueryAllChannelUndelegationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllChannelUndelegationRequest { + return new QueryAllChannelUndelegationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllChannelUndelegationRequest { + return new QueryAllChannelUndelegationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllChannelUndelegationRequest | PlainMessage | undefined, b: QueryAllChannelUndelegationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllChannelUndelegationRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllChannelUndelegationResponse + */ +export class QueryAllChannelUndelegationResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.ChannelUndelegation channel_undelegation = 1; + */ + channelUndelegation: ChannelUndelegation[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllChannelUndelegationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_undelegation", kind: "message", T: ChannelUndelegation, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllChannelUndelegationResponse { + return new QueryAllChannelUndelegationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllChannelUndelegationResponse { + return new QueryAllChannelUndelegationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllChannelUndelegationResponse { + return new QueryAllChannelUndelegationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllChannelUndelegationResponse | PlainMessage | undefined, b: QueryAllChannelUndelegationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllChannelUndelegationResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryDelegationQueueBalanceRequest + */ +export class QueryDelegationQueueBalanceRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 2; + */ + transferChannel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryDelegationQueueBalanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationQueueBalanceRequest { + return new QueryDelegationQueueBalanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationQueueBalanceRequest { + return new QueryDelegationQueueBalanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegationQueueBalanceRequest { + return new QueryDelegationQueueBalanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegationQueueBalanceRequest | PlainMessage | undefined, b: QueryDelegationQueueBalanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegationQueueBalanceRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryDelegationQueueBalanceResponse + */ +export class QueryDelegationQueueBalanceResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin balance = 1; + */ + balance?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryDelegationQueueBalanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "balance", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationQueueBalanceResponse { + return new QueryDelegationQueueBalanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationQueueBalanceResponse { + return new QueryDelegationQueueBalanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDelegationQueueBalanceResponse { + return new QueryDelegationQueueBalanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDelegationQueueBalanceResponse | PlainMessage | undefined, b: QueryDelegationQueueBalanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDelegationQueueBalanceResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryEpochInfoRequest + */ +export class QueryEpochInfoRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryEpochInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfoRequest { + return new QueryEpochInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfoRequest { + return new QueryEpochInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfoRequest { + return new QueryEpochInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochInfoRequest | PlainMessage | undefined, b: QueryEpochInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochInfoRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryEpochInfoResponse + */ +export class QueryEpochInfoResponse extends Message { + /** + * @generated from field: google.protobuf.Timestamp last_delegation_time = 1; + */ + lastDelegationTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp last_redelegation_time = 2; + */ + lastRedelegationTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp last_lsm_redeem_time = 3; + */ + lastLsmRedeemTime?: Timestamp; + + /** + * @generated from field: google.protobuf.Timestamp last_undelegation_time = 4; + */ + lastUndelegationTime?: Timestamp; + + /** + * @generated from field: uint64 current_undelegation_epoch = 5; + */ + currentUndelegationEpoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryEpochInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "last_delegation_time", kind: "message", T: Timestamp }, + { no: 2, name: "last_redelegation_time", kind: "message", T: Timestamp }, + { no: 3, name: "last_lsm_redeem_time", kind: "message", T: Timestamp }, + { no: 4, name: "last_undelegation_time", kind: "message", T: Timestamp }, + { no: 5, name: "current_undelegation_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfoResponse { + return new QueryEpochInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfoResponse { + return new QueryEpochInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfoResponse { + return new QueryEpochInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochInfoResponse | PlainMessage | undefined, b: QueryEpochInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochInfoResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllReplyDataRequest + */ +export class QueryAllReplyDataRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllReplyDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllReplyDataRequest { + return new QueryAllReplyDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllReplyDataRequest { + return new QueryAllReplyDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllReplyDataRequest { + return new QueryAllReplyDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllReplyDataRequest | PlainMessage | undefined, b: QueryAllReplyDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllReplyDataRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllReplyDataResponse + */ +export class QueryAllReplyDataResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.ReplyData reply_data = 1; + */ + replyData: ReplyData[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllReplyDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reply_data", kind: "message", T: ReplyData, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllReplyDataResponse { + return new QueryAllReplyDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllReplyDataResponse { + return new QueryAllReplyDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllReplyDataResponse { + return new QueryAllReplyDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllReplyDataResponse | PlainMessage | undefined, b: QueryAllReplyDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllReplyDataResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetMultiSigConnectionRequest + */ +export class QueryGetMultiSigConnectionRequest extends Message { + /** + * @generated from field: string id = 1; + */ + id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetMultiSigConnectionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMultiSigConnectionRequest { + return new QueryGetMultiSigConnectionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMultiSigConnectionRequest { + return new QueryGetMultiSigConnectionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMultiSigConnectionRequest { + return new QueryGetMultiSigConnectionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMultiSigConnectionRequest | PlainMessage | undefined, b: QueryGetMultiSigConnectionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMultiSigConnectionRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetMultiSigConnectionResponse + */ +export class QueryGetMultiSigConnectionResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.MultiSigConnection multi_sig_connection = 1; + */ + multiSigConnection?: MultiSigConnection; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetMultiSigConnectionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multi_sig_connection", kind: "message", T: MultiSigConnection }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMultiSigConnectionResponse { + return new QueryGetMultiSigConnectionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMultiSigConnectionResponse { + return new QueryGetMultiSigConnectionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMultiSigConnectionResponse { + return new QueryGetMultiSigConnectionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMultiSigConnectionResponse | PlainMessage | undefined, b: QueryGetMultiSigConnectionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMultiSigConnectionResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllMultiSigConnectionRequest + */ +export class QueryAllMultiSigConnectionRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllMultiSigConnectionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMultiSigConnectionRequest { + return new QueryAllMultiSigConnectionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMultiSigConnectionRequest { + return new QueryAllMultiSigConnectionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMultiSigConnectionRequest { + return new QueryAllMultiSigConnectionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMultiSigConnectionRequest | PlainMessage | undefined, b: QueryAllMultiSigConnectionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMultiSigConnectionRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllMultiSigConnectionResponse + */ +export class QueryAllMultiSigConnectionResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.MultiSigConnection multi_sig_connection = 1; + */ + multiSigConnection: MultiSigConnection[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllMultiSigConnectionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multi_sig_connection", kind: "message", T: MultiSigConnection, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMultiSigConnectionResponse { + return new QueryAllMultiSigConnectionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMultiSigConnectionResponse { + return new QueryAllMultiSigConnectionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMultiSigConnectionResponse { + return new QueryAllMultiSigConnectionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMultiSigConnectionResponse | PlainMessage | undefined, b: QueryAllMultiSigConnectionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMultiSigConnectionResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetMultiSigPacketRequest + */ +export class QueryGetMultiSigPacketRequest extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: uint64 sequence = 2; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetMultiSigPacketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMultiSigPacketRequest { + return new QueryGetMultiSigPacketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMultiSigPacketRequest { + return new QueryGetMultiSigPacketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMultiSigPacketRequest { + return new QueryGetMultiSigPacketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMultiSigPacketRequest | PlainMessage | undefined, b: QueryGetMultiSigPacketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMultiSigPacketRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryGetMultiSigPacketResponse + */ +export class QueryGetMultiSigPacketResponse extends Message { + /** + * @generated from field: pryzm.icstaking.v1.MultiSigPacket multi_sig_packet = 1; + */ + multiSigPacket?: MultiSigPacket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryGetMultiSigPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multi_sig_packet", kind: "message", T: MultiSigPacket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetMultiSigPacketResponse { + return new QueryGetMultiSigPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetMultiSigPacketResponse { + return new QueryGetMultiSigPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetMultiSigPacketResponse { + return new QueryGetMultiSigPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetMultiSigPacketResponse | PlainMessage | undefined, b: QueryGetMultiSigPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetMultiSigPacketResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllMultiSigPacketRequest + */ +export class QueryAllMultiSigPacketRequest extends Message { + /** + * @generated from field: string connection_id = 1; + */ + connectionId = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllMultiSigPacketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMultiSigPacketRequest { + return new QueryAllMultiSigPacketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMultiSigPacketRequest { + return new QueryAllMultiSigPacketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMultiSigPacketRequest { + return new QueryAllMultiSigPacketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMultiSigPacketRequest | PlainMessage | undefined, b: QueryAllMultiSigPacketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMultiSigPacketRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllMultiSigPacketResponse + */ +export class QueryAllMultiSigPacketResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.MultiSigPacket multi_sig_packet = 1; + */ + multiSigPacket: MultiSigPacket[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllMultiSigPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "multi_sig_packet", kind: "message", T: MultiSigPacket, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllMultiSigPacketResponse { + return new QueryAllMultiSigPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllMultiSigPacketResponse { + return new QueryAllMultiSigPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllMultiSigPacketResponse { + return new QueryAllMultiSigPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllMultiSigPacketResponse | PlainMessage | undefined, b: QueryAllMultiSigPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllMultiSigPacketResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllFailedLsmTransferRequest + */ +export class QueryAllFailedLsmTransferRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllFailedLsmTransferRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllFailedLsmTransferRequest { + return new QueryAllFailedLsmTransferRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllFailedLsmTransferRequest { + return new QueryAllFailedLsmTransferRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllFailedLsmTransferRequest { + return new QueryAllFailedLsmTransferRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllFailedLsmTransferRequest | PlainMessage | undefined, b: QueryAllFailedLsmTransferRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllFailedLsmTransferRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllFailedLsmTransferResponse + */ +export class QueryAllFailedLsmTransferResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.FailedLsmTransfer failed_lsm_transfer = 1; + */ + failedLsmTransfer: FailedLsmTransfer[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllFailedLsmTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "failed_lsm_transfer", kind: "message", T: FailedLsmTransfer, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllFailedLsmTransferResponse { + return new QueryAllFailedLsmTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllFailedLsmTransferResponse { + return new QueryAllFailedLsmTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllFailedLsmTransferResponse { + return new QueryAllFailedLsmTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllFailedLsmTransferResponse | PlainMessage | undefined, b: QueryAllFailedLsmTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllFailedLsmTransferResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllRedeemableLsmRequest + */ +export class QueryAllRedeemableLsmRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllRedeemableLsmRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllRedeemableLsmRequest { + return new QueryAllRedeemableLsmRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllRedeemableLsmRequest { + return new QueryAllRedeemableLsmRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllRedeemableLsmRequest { + return new QueryAllRedeemableLsmRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllRedeemableLsmRequest | PlainMessage | undefined, b: QueryAllRedeemableLsmRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllRedeemableLsmRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllRedeemableLsmResponse + */ +export class QueryAllRedeemableLsmResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.RedeemableLsm redeemable_lsm = 1; + */ + redeemableLsm: RedeemableLsm[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllRedeemableLsmResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "redeemable_lsm", kind: "message", T: RedeemableLsm, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllRedeemableLsmResponse { + return new QueryAllRedeemableLsmResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllRedeemableLsmResponse { + return new QueryAllRedeemableLsmResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllRedeemableLsmResponse { + return new QueryAllRedeemableLsmResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllRedeemableLsmResponse | PlainMessage | undefined, b: QueryAllRedeemableLsmResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllRedeemableLsmResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllSweepTransferRequest + */ +export class QueryAllSweepTransferRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllSweepTransferRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllSweepTransferRequest { + return new QueryAllSweepTransferRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllSweepTransferRequest { + return new QueryAllSweepTransferRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllSweepTransferRequest { + return new QueryAllSweepTransferRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllSweepTransferRequest | PlainMessage | undefined, b: QueryAllSweepTransferRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllSweepTransferRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QueryAllSweepTransferResponse + */ +export class QueryAllSweepTransferResponse extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.SweepTransfer sweep_transfer = 1; + */ + sweepTransfer: SweepTransfer[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QueryAllSweepTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sweep_transfer", kind: "message", T: SweepTransfer, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllSweepTransferResponse { + return new QueryAllSweepTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllSweepTransferResponse { + return new QueryAllSweepTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllSweepTransferResponse { + return new QueryAllSweepTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllSweepTransferResponse | PlainMessage | undefined, b: QueryAllSweepTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllSweepTransferResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QuerySimulateStakeRequest + */ +export class QuerySimulateStakeRequest extends Message { + /** + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 2; + */ + transferChannel = ""; + + /** + * amount_in is the amount of tokens to stake. if this field is set, amount_out must be nil + * + * @generated from field: string amount_in = 3; + */ + amountIn = ""; + + /** + * amount_out is the amount of cAsset tokens to receive. if this field is set, amount_in must be nil + * + * @generated from field: string amount_out = 4; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QuerySimulateStakeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateStakeRequest { + return new QuerySimulateStakeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateStakeRequest { + return new QuerySimulateStakeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateStakeRequest { + return new QuerySimulateStakeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateStakeRequest | PlainMessage | undefined, b: QuerySimulateStakeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateStakeRequest, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.QuerySimulateStakeResponse + */ +export class QuerySimulateStakeResponse extends Message { + /** + * the amount of tokens being staked + * + * @generated from field: cosmos.base.v1beta1.Coin amount_in = 1; + */ + amountIn?: Coin; + + /** + * the amount of cAssets tokens being received + * + * @generated from field: cosmos.base.v1beta1.Coin amount_out = 2; + */ + amountOut?: Coin; + + /** + * the amount of fee deducted from the amount_in before stake + * + * @generated from field: cosmos.base.v1beta1.Coin fee_amount = 3; + */ + feeAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.QuerySimulateStakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount_in", kind: "message", T: Coin }, + { no: 2, name: "amount_out", kind: "message", T: Coin }, + { no: 3, name: "fee_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateStakeResponse { + return new QuerySimulateStakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateStakeResponse { + return new QuerySimulateStakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateStakeResponse { + return new QuerySimulateStakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateStakeResponse | PlainMessage | undefined, b: QuerySimulateStakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateStakeResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/reply_pb.ts b/src/protobufs/pryzm/icstaking/v1/reply_pb.ts new file mode 100644 index 00000000..961054f5 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/reply_pb.ts @@ -0,0 +1,847 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/reply.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { RedeemableLsm } from "./lsm_pb.js"; + +/** + * the stored data for handling the reply of a sent ibc packet + * + * @generated from message pryzm.icstaking.v1.ReplyData + */ +export class ReplyData extends Message { + /** + * the identifier of the bridge + * + * @generated from field: string bridge_id = 1; + */ + bridgeId = ""; + + /** + * this was the identifier of the sent packet and the key for ReplyData, but from icstaking v3 this field is converted to key string + * + * @generated from field: pryzm.icstaking.v1.PacketId packet_id = 2 [deprecated = true]; + * @deprecated + */ + packetId?: PacketId; + + /** + * @generated from field: string host_chain_id = 3; + */ + hostChainId = ""; + + /** + * serialized data shared when handling the packet result + * + * @generated from field: bytes data = 4; + */ + data = new Uint8Array(0); + + /** + * the identifier of the reply data + * + * @generated from field: string key = 5; + */ + key = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.ReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bridge_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "packet_id", kind: "message", T: PacketId }, + { no: 3, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ReplyData { + return new ReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ReplyData { + return new ReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ReplyData { + return new ReplyData().fromJsonString(jsonString, options); + } + + static equals(a: ReplyData | PlainMessage | undefined, b: ReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(ReplyData, a, b); + } +} + +/** + * the id for a sent ibc packet + * + * @generated from message pryzm.icstaking.v1.PacketId + * @deprecated + */ +export class PacketId extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.PacketId"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketId { + return new PacketId().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketId { + return new PacketId().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketId { + return new PacketId().fromJsonString(jsonString, options); + } + + static equals(a: PacketId | PlainMessage | undefined, b: PacketId | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketId, a, b); + } +} + +/** + * The reply data for DelegateTransferBridge + * + * @generated from message pryzm.icstaking.v1.DelegateTransferReplyData + */ +export class DelegateTransferReplyData extends Message { + /** + * the identifier of the transfer session + * + * @generated from field: string transfer_session = 1; + */ + transferSession = ""; + + /** + * the amount being transferred + * + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.DelegateTransferReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "transfer_session", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegateTransferReplyData { + return new DelegateTransferReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegateTransferReplyData { + return new DelegateTransferReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegateTransferReplyData { + return new DelegateTransferReplyData().fromJsonString(jsonString, options); + } + + static equals(a: DelegateTransferReplyData | PlainMessage | undefined, b: DelegateTransferReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegateTransferReplyData, a, b); + } +} + +/** + * A session of token transfer to a host chain from multiple channels, used in DelegateTransferBridge + * + * @generated from message pryzm.icstaking.v1.DelegateTransferSession + */ +export class DelegateTransferSession extends Message { + /** + * a generated id for the session + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * a list of packet states, determining whether the packet is finalized (either succeeded or failed) + * + * @generated from field: repeated pryzm.icstaking.v1.TransferPacketState packet_states = 2; + */ + packetStates: TransferPacketState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.DelegateTransferSession"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "packet_states", kind: "message", T: TransferPacketState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegateTransferSession { + return new DelegateTransferSession().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegateTransferSession { + return new DelegateTransferSession().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegateTransferSession { + return new DelegateTransferSession().fromJsonString(jsonString, options); + } + + static equals(a: DelegateTransferSession | PlainMessage | undefined, b: DelegateTransferSession | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegateTransferSession, a, b); + } +} + +/** + * The state of a delegation transfer + * + * @generated from message pryzm.icstaking.v1.TransferPacketState + */ +export class TransferPacketState extends Message { + /** + * packet identifier + * + * @generated from field: string packet_key = 1; + */ + packetKey = ""; + + /** + * whether the transfer is finalized (either succeeded or failed) + * + * @generated from field: bool finalized = 2; + */ + finalized = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.TransferPacketState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "finalized", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TransferPacketState { + return new TransferPacketState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TransferPacketState { + return new TransferPacketState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TransferPacketState { + return new TransferPacketState().fromJsonString(jsonString, options); + } + + static equals(a: TransferPacketState | PlainMessage | undefined, b: TransferPacketState | PlainMessage | undefined): boolean { + return proto3.util.equals(TransferPacketState, a, b); + } +} + +/** + * The reply data for DelegateBridge + * + * @generated from message pryzm.icstaking.v1.DelegateReplyData + */ +export class DelegateReplyData extends Message { + /** + * a list of delegations to different validators + * + * @generated from field: repeated pryzm.icstaking.v1.DelegationEntry delegations = 1; + */ + delegations: DelegationEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.DelegateReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "delegations", kind: "message", T: DelegationEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegateReplyData { + return new DelegateReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegateReplyData { + return new DelegateReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegateReplyData { + return new DelegateReplyData().fromJsonString(jsonString, options); + } + + static equals(a: DelegateReplyData | PlainMessage | undefined, b: DelegateReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegateReplyData, a, b); + } +} + +/** + * Contains info about delegating an amount of assets to a validator + * + * @generated from message pryzm.icstaking.v1.DelegationEntry + */ +export class DelegationEntry extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.DelegationEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DelegationEntry { + return new DelegationEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DelegationEntry { + return new DelegationEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DelegationEntry { + return new DelegationEntry().fromJsonString(jsonString, options); + } + + static equals(a: DelegationEntry | PlainMessage | undefined, b: DelegationEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(DelegationEntry, a, b); + } +} + +/** + * The reply data for UndelegateBridge + * + * @generated from message pryzm.icstaking.v1.UndelegateReplyData + */ +export class UndelegateReplyData extends Message { + /** + * @generated from field: string total_c_amount = 1; + */ + totalCAmount = ""; + + /** + * @generated from field: repeated pryzm.icstaking.v1.UndelegationEntry undelegations = 2; + */ + undelegations: UndelegationEntry[] = []; + + /** + * @generated from field: repeated uint64 epochs = 3; + */ + epochs: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.UndelegateReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "undelegations", kind: "message", T: UndelegationEntry, repeated: true }, + { no: 3, name: "epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UndelegateReplyData { + return new UndelegateReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UndelegateReplyData { + return new UndelegateReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UndelegateReplyData { + return new UndelegateReplyData().fromJsonString(jsonString, options); + } + + static equals(a: UndelegateReplyData | PlainMessage | undefined, b: UndelegateReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(UndelegateReplyData, a, b); + } +} + +/** + * Contains info about undelegating an amount of assets from a validator + * + * @generated from message pryzm.icstaking.v1.UndelegationEntry + */ +export class UndelegationEntry extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.UndelegationEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UndelegationEntry { + return new UndelegationEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UndelegationEntry { + return new UndelegationEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UndelegationEntry { + return new UndelegationEntry().fromJsonString(jsonString, options); + } + + static equals(a: UndelegationEntry | PlainMessage | undefined, b: UndelegationEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UndelegationEntry, a, b); + } +} + +/** + * The reply data for RedelegateBridge + * + * @generated from message pryzm.icstaking.v1.RedelegateReplyData + */ +export class RedelegateReplyData extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.RedelegationEntry redelegations = 1; + */ + redelegations: RedelegationEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.RedelegateReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "redelegations", kind: "message", T: RedelegationEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RedelegateReplyData { + return new RedelegateReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RedelegateReplyData { + return new RedelegateReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RedelegateReplyData { + return new RedelegateReplyData().fromJsonString(jsonString, options); + } + + static equals(a: RedelegateReplyData | PlainMessage | undefined, b: RedelegateReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(RedelegateReplyData, a, b); + } +} + +/** + * Contains info about redelegating an amount of assets from a validator to another validator + * + * @generated from message pryzm.icstaking.v1.RedelegationEntry + */ +export class RedelegationEntry extends Message { + /** + * @generated from field: string src_validator = 1; + */ + srcValidator = ""; + + /** + * @generated from field: string dst_validator = 2; + */ + dstValidator = ""; + + /** + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.RedelegationEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "src_validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dst_validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RedelegationEntry { + return new RedelegationEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RedelegationEntry { + return new RedelegationEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RedelegationEntry { + return new RedelegationEntry().fromJsonString(jsonString, options); + } + + static equals(a: RedelegationEntry | PlainMessage | undefined, b: RedelegationEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(RedelegationEntry, a, b); + } +} + +/** + * The reply data used in CompoundBridge + * + * @generated from message pryzm.icstaking.v1.CompoundData + */ +export class CompoundData extends Message { + /** + * @generated from field: string fee_amount = 1; + */ + feeAmount = ""; + + /** + * @generated from field: string compound_amount = 2; + */ + compoundAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.CompoundData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "compound_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompoundData { + return new CompoundData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompoundData { + return new CompoundData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompoundData { + return new CompoundData().fromJsonString(jsonString, options); + } + + static equals(a: CompoundData | PlainMessage | undefined, b: CompoundData | PlainMessage | undefined): boolean { + return proto3.util.equals(CompoundData, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.CollectUndelegatedReplyData + */ +export class CollectUndelegatedReplyData extends Message { + /** + * @generated from field: string undelegated_amount = 1; + */ + undelegatedAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.CollectUndelegatedReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "undelegated_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CollectUndelegatedReplyData { + return new CollectUndelegatedReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CollectUndelegatedReplyData { + return new CollectUndelegatedReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CollectUndelegatedReplyData { + return new CollectUndelegatedReplyData().fromJsonString(jsonString, options); + } + + static equals(a: CollectUndelegatedReplyData | PlainMessage | undefined, b: CollectUndelegatedReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(CollectUndelegatedReplyData, a, b); + } +} + +/** + * The reply data used in SweepBridge + * + * @generated from message pryzm.icstaking.v1.SweepData + */ +export class SweepData extends Message { + /** + * a list containing info about the sweep operation through different channel channel + * + * @generated from field: repeated pryzm.icstaking.v1.ChannelSweep channel_sweeps = 1; + */ + channelSweeps: ChannelSweep[] = []; + + /** + * @generated from field: pryzm.icstaking.v1.ChannelSweep fee_sweep = 2; + */ + feeSweep?: ChannelSweep; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.SweepData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel_sweeps", kind: "message", T: ChannelSweep, repeated: true }, + { no: 2, name: "fee_sweep", kind: "message", T: ChannelSweep }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SweepData { + return new SweepData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SweepData { + return new SweepData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SweepData { + return new SweepData().fromJsonString(jsonString, options); + } + + static equals(a: SweepData | PlainMessage | undefined, b: SweepData | PlainMessage | undefined): boolean { + return proto3.util.equals(SweepData, a, b); + } +} + +/** + * Contains info about the sweep operation through a channel + * + * @generated from message pryzm.icstaking.v1.ChannelSweep + */ +export class ChannelSweep extends Message { + /** + * @generated from field: string channel = 1; + */ + channel = ""; + + /** + * a list of epochs that the sweep is related to + * + * @generated from field: repeated uint64 epochs = 2; + */ + epochs: bigint[] = []; + + /** + * the amount being swept from the host chain + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * the timeout timestamp set on the ibc transfer + * + * @generated from field: uint64 timeout = 4; + */ + timeout = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.ChannelSweep"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChannelSweep { + return new ChannelSweep().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChannelSweep { + return new ChannelSweep().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChannelSweep { + return new ChannelSweep().fromJsonString(jsonString, options); + } + + static equals(a: ChannelSweep | PlainMessage | undefined, b: ChannelSweep | PlainMessage | undefined): boolean { + return proto3.util.equals(ChannelSweep, a, b); + } +} + +/** + * Contains info about a single LSM share transfer + * + * @generated from message pryzm.icstaking.v1.LsmTransferData + */ +export class LsmTransferData extends Message { + /** + * which channel is being used to transfer + * + * @generated from field: string channel = 1; + */ + channel = ""; + + /** + * the actual denom of the lsm token + * + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * the amount being transferred + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * the value of the lsm amount in the terms of host chain's bond token + * + * @generated from field: string value = 4; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.LsmTransferData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LsmTransferData { + return new LsmTransferData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LsmTransferData { + return new LsmTransferData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LsmTransferData { + return new LsmTransferData().fromJsonString(jsonString, options); + } + + static equals(a: LsmTransferData | PlainMessage | undefined, b: LsmTransferData | PlainMessage | undefined): boolean { + return proto3.util.equals(LsmTransferData, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.LsmReplyData + */ +export class LsmReplyData extends Message { + /** + * @generated from field: repeated pryzm.icstaking.v1.RedeemableLsm redeemable_lsm_list = 1; + */ + redeemableLsmList: RedeemableLsm[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.LsmReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "redeemable_lsm_list", kind: "message", T: RedeemableLsm, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LsmReplyData { + return new LsmReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LsmReplyData { + return new LsmReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LsmReplyData { + return new LsmReplyData().fromJsonString(jsonString, options); + } + + static equals(a: LsmReplyData | PlainMessage | undefined, b: LsmReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(LsmReplyData, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/sweep_pb.ts b/src/protobufs/pryzm/icstaking/v1/sweep_pb.ts new file mode 100644 index 00000000..91288b74 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/sweep_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/sweep.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Information about an ongoing sweep ibc transfer waiting to be completed + * + * @generated from message pryzm.icstaking.v1.SweepTransfer + */ +export class SweepTransfer extends Message { + /** + * the timeout timestamp set on the ibc transfer + * + * @generated from field: uint64 timeout = 1; + */ + timeout = protoInt64.zero; + + /** + * host chain id + * + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * the channel of the transfer + * + * @generated from field: string channel = 3; + */ + channel = ""; + + /** + * whether the transfer is meant to bring back Pryzm protocol fees, in which case the epochs field is empty + * + * @generated from field: bool fee = 4; + */ + fee = false; + + /** + * list of the epochs that the sweep transfer is related to + * + * @generated from field: repeated uint64 epochs = 5; + */ + epochs: bigint[] = []; + + /** + * the amount of tokens being transferred + * + * @generated from field: string amount = 6; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.SweepTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SweepTransfer { + return new SweepTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SweepTransfer { + return new SweepTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SweepTransfer { + return new SweepTransfer().fromJsonString(jsonString, options); + } + + static equals(a: SweepTransfer | PlainMessage | undefined, b: SweepTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(SweepTransfer, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/tx_cosmes.ts b/src/protobufs/pryzm/icstaking/v1/tx_cosmes.ts new file mode 100644 index 00000000..9050598b --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/tx_cosmes.ts @@ -0,0 +1,201 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/tx.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAcknowledgeMultiSigPacket, MsgAcknowledgeMultiSigPacketResponse, MsgCreateMultiSigConnection, MsgCreateMultiSigConnectionResponse, MsgDelistHostChain, MsgDelistHostChainResponse, MsgInstantUnstake, MsgInstantUnstakeResponse, MsgRebalanceDelegations, MsgRebalanceDelegationsResponse, MsgRedeemDelisted, MsgRedeemDelistedResponse, MsgRedeemUnstaked, MsgRedeemUnstakedResponse, MsgRedelegate, MsgRedelegateResponse, MsgRegisterHostAccounts, MsgRegisterHostAccountsResponse, MsgRegisterHostChain, MsgRegisterHostChainResponse, MsgRegisterInterchainAccount, MsgRegisterInterchainAccountResponse, MsgRetryFailedLsmTransfer, MsgRetryFailedLsmTransferResponse, MsgStake, MsgStakeLsmShares, MsgStakeLsmSharesResponse, MsgStakeResponse, MsgUndelegateDelistedHostChain, MsgUndelegateDelistedHostChainResponse, MsgUnstake, MsgUnstakeResponse, MsgUpdateHostChain, MsgUpdateHostChainResponse, MsgUpdateMultiSigConnection, MsgUpdateMultiSigConnectionResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.icstaking.v1.Msg"; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RegisterHostChain + */ +export const MsgRegisterHostChainService = { + typeName: TYPE_NAME, + method: "RegisterHostChain", + Request: MsgRegisterHostChain, + Response: MsgRegisterHostChainResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.UpdateHostChain + */ +export const MsgUpdateHostChainService = { + typeName: TYPE_NAME, + method: "UpdateHostChain", + Request: MsgUpdateHostChain, + Response: MsgUpdateHostChainResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.Stake + */ +export const MsgStakeService = { + typeName: TYPE_NAME, + method: "Stake", + Request: MsgStake, + Response: MsgStakeResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.StakeLsmShares + */ +export const MsgStakeLsmSharesService = { + typeName: TYPE_NAME, + method: "StakeLsmShares", + Request: MsgStakeLsmShares, + Response: MsgStakeLsmSharesResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.Unstake + */ +export const MsgUnstakeService = { + typeName: TYPE_NAME, + method: "Unstake", + Request: MsgUnstake, + Response: MsgUnstakeResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RedeemUnstaked + */ +export const MsgRedeemUnstakedService = { + typeName: TYPE_NAME, + method: "RedeemUnstaked", + Request: MsgRedeemUnstaked, + Response: MsgRedeemUnstakedResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.InstantUnstake + */ +export const MsgInstantUnstakeService = { + typeName: TYPE_NAME, + method: "InstantUnstake", + Request: MsgInstantUnstake, + Response: MsgInstantUnstakeResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RebalanceDelegations + */ +export const MsgRebalanceDelegationsService = { + typeName: TYPE_NAME, + method: "RebalanceDelegations", + Request: MsgRebalanceDelegations, + Response: MsgRebalanceDelegationsResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.Redelegate + */ +export const MsgRedelegateService = { + typeName: TYPE_NAME, + method: "Redelegate", + Request: MsgRedelegate, + Response: MsgRedelegateResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RegisterInterchainAccount + */ +export const MsgRegisterInterchainAccountService = { + typeName: TYPE_NAME, + method: "RegisterInterchainAccount", + Request: MsgRegisterInterchainAccount, + Response: MsgRegisterInterchainAccountResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.CreateMultiSigConnection + */ +export const MsgCreateMultiSigConnectionService = { + typeName: TYPE_NAME, + method: "CreateMultiSigConnection", + Request: MsgCreateMultiSigConnection, + Response: MsgCreateMultiSigConnectionResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.UpdateMultiSigConnection + */ +export const MsgUpdateMultiSigConnectionService = { + typeName: TYPE_NAME, + method: "UpdateMultiSigConnection", + Request: MsgUpdateMultiSigConnection, + Response: MsgUpdateMultiSigConnectionResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.AcknowledgeMultiSigPacket + */ +export const MsgAcknowledgeMultiSigPacketService = { + typeName: TYPE_NAME, + method: "AcknowledgeMultiSigPacket", + Request: MsgAcknowledgeMultiSigPacket, + Response: MsgAcknowledgeMultiSigPacketResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RegisterHostAccounts + */ +export const MsgRegisterHostAccountsService = { + typeName: TYPE_NAME, + method: "RegisterHostAccounts", + Request: MsgRegisterHostAccounts, + Response: MsgRegisterHostAccountsResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.RetryFailedLsmTransfer + */ +export const MsgRetryFailedLsmTransferService = { + typeName: TYPE_NAME, + method: "RetryFailedLsmTransfer", + Request: MsgRetryFailedLsmTransfer, + Response: MsgRetryFailedLsmTransferResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.DelistHostChain + */ +export const MsgDelistHostChainService = { + typeName: TYPE_NAME, + method: "DelistHostChain", + Request: MsgDelistHostChain, + Response: MsgDelistHostChainResponse, +} as const; + +/** + * @generated from rpc pryzm.icstaking.v1.Msg.UndelegateDelistedHostChain + */ +export const MsgUndelegateDelistedHostChainService = { + typeName: TYPE_NAME, + method: "UndelegateDelistedHostChain", + Request: MsgUndelegateDelistedHostChain, + Response: MsgUndelegateDelistedHostChainResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.icstaking.v1.Msg.RedeemDelisted + */ +export const MsgRedeemDelistedService = { + typeName: TYPE_NAME, + method: "RedeemDelisted", + Request: MsgRedeemDelisted, + Response: MsgRedeemDelistedResponse, +} as const; + diff --git a/src/protobufs/pryzm/icstaking/v1/tx_pb.ts b/src/protobufs/pryzm/icstaking/v1/tx_pb.ts new file mode 100644 index 00000000..7585dcb1 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/tx_pb.ts @@ -0,0 +1,1706 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/tx.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { BoolValue, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params, StakingParams } from "./params_pb.js"; +import { HostChain, Validator } from "./host_chain_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { RedelegationEntry } from "./reply_pb.js"; +import { Acknowledgement } from "./multisig_pb.js"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; + +/** + * @generated from enum pryzm.icstaking.v1.ICARegistrationType + */ +export enum ICARegistrationType { + /** + * register delegation interchain account + * + * @generated from enum value: DELEGATION = 0; + */ + DELEGATION = 0, + + /** + * register reward interchain account + * + * @generated from enum value: REWARD = 1; + */ + REWARD = 1, + + /** + * register sweep interchain account + * + * @generated from enum value: SWEEP = 2; + */ + SWEEP = 2, + + /** + * registration of reward account as the withdraw address on the host chain + * + * @generated from enum value: REWARD_CLAIMING = 3; + */ + REWARD_CLAIMING = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ICARegistrationType) +proto3.util.setEnumType(ICARegistrationType, "pryzm.icstaking.v1.ICARegistrationType", [ + { no: 0, name: "DELEGATION" }, + { no: 1, name: "REWARD" }, + { no: 2, name: "SWEEP" }, + { no: 3, name: "REWARD_CLAIMING" }, +]); + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.icstaking.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterHostChain + */ +export class MsgRegisterHostChain extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: pryzm.icstaking.v1.HostChain host_chain = 2; + */ + hostChain?: HostChain; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterHostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "message", T: HostChain }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterHostChain { + return new MsgRegisterHostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterHostChain { + return new MsgRegisterHostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterHostChain { + return new MsgRegisterHostChain().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterHostChain | PlainMessage | undefined, b: MsgRegisterHostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterHostChain, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterHostChainResponse + */ +export class MsgRegisterHostChainResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterHostChainResponse { + return new MsgRegisterHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterHostChainResponse { + return new MsgRegisterHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterHostChainResponse { + return new MsgRegisterHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterHostChainResponse | PlainMessage | undefined, b: MsgRegisterHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateHostChain + */ +export class MsgUpdateHostChain extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain_id = 2; + */ + hostChainId = ""; + + /** + * @generated from field: repeated pryzm.icstaking.v1.Validator validators = 3; + */ + validators: Validator[] = []; + + /** + * @generated from field: pryzm.icstaking.v1.StakingParams params = 4; + */ + params?: StakingParams; + + /** + * @generated from field: google.protobuf.BoolValue allow_lsm_shares = 5; + */ + allowLsmShares?: boolean; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateHostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "validators", kind: "message", T: Validator, repeated: true }, + { no: 4, name: "params", kind: "message", T: StakingParams }, + { no: 5, name: "allow_lsm_shares", kind: "message", T: BoolValue }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateHostChain { + return new MsgUpdateHostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateHostChain { + return new MsgUpdateHostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateHostChain { + return new MsgUpdateHostChain().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateHostChain | PlainMessage | undefined, b: MsgUpdateHostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateHostChain, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateHostChainResponse + */ +export class MsgUpdateHostChainResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateHostChainResponse { + return new MsgUpdateHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateHostChainResponse { + return new MsgUpdateHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateHostChainResponse { + return new MsgUpdateHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateHostChainResponse | PlainMessage | undefined, b: MsgUpdateHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgStake + */ +export class MsgStake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgStake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStake { + return new MsgStake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStake { + return new MsgStake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStake { + return new MsgStake().fromJsonString(jsonString, options); + } + + static equals(a: MsgStake | PlainMessage | undefined, b: MsgStake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgStakeResponse + */ +export class MsgStakeResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 1; + */ + cAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgStakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "c_amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakeResponse { + return new MsgStakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakeResponse | PlainMessage | undefined, b: MsgStakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakeResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgStakeLsmShares + */ +export class MsgStakeLsmShares extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string lsm_denom = 4; + */ + lsmDenom = ""; + + /** + * @generated from field: string amount = 5; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgStakeLsmShares"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lsm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakeLsmShares { + return new MsgStakeLsmShares().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakeLsmShares { + return new MsgStakeLsmShares().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakeLsmShares { + return new MsgStakeLsmShares().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakeLsmShares | PlainMessage | undefined, b: MsgStakeLsmShares | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakeLsmShares, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgStakeLsmSharesResponse + */ +export class MsgStakeLsmSharesResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 1; + */ + cAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgStakeLsmSharesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "c_amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakeLsmSharesResponse { + return new MsgStakeLsmSharesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakeLsmSharesResponse { + return new MsgStakeLsmSharesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakeLsmSharesResponse { + return new MsgStakeLsmSharesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakeLsmSharesResponse | PlainMessage | undefined, b: MsgStakeLsmSharesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakeLsmSharesResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUnstake + */ +export class MsgUnstake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string c_amount = 4; + */ + cAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstake { + return new MsgUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstake { + return new MsgUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstake { + return new MsgUnstake().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstake | PlainMessage | undefined, b: MsgUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUnstakeResponse + */ +export class MsgUnstakeResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin u_amount = 1; + */ + uAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUnstakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "u_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstakeResponse { + return new MsgUnstakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstakeResponse | PlainMessage | undefined, b: MsgUnstakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstakeResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedeemUnstaked + */ +export class MsgRedeemUnstaked extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string u_amount = 4; + */ + uAmount = ""; + + /** + * @generated from field: uint64 epoch = 5; + */ + epoch = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedeemUnstaked"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "u_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemUnstaked { + return new MsgRedeemUnstaked().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemUnstaked { + return new MsgRedeemUnstaked().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemUnstaked { + return new MsgRedeemUnstaked().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemUnstaked | PlainMessage | undefined, b: MsgRedeemUnstaked | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemUnstaked, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedeemUnstakedResponse + */ +export class MsgRedeemUnstakedResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedeemUnstakedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemUnstakedResponse { + return new MsgRedeemUnstakedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemUnstakedResponse { + return new MsgRedeemUnstakedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemUnstakedResponse { + return new MsgRedeemUnstakedResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemUnstakedResponse | PlainMessage | undefined, b: MsgRedeemUnstakedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemUnstakedResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgInstantUnstake + */ +export class MsgInstantUnstake extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * @generated from field: string min_c_amount = 4; + */ + minCAmount = ""; + + /** + * @generated from field: string max_c_amount = 5; + */ + maxCAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgInstantUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "max_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantUnstake { + return new MsgInstantUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantUnstake { + return new MsgInstantUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantUnstake { + return new MsgInstantUnstake().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantUnstake | PlainMessage | undefined, b: MsgInstantUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantUnstake, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgInstantUnstakeResponse + */ +export class MsgInstantUnstakeResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgInstantUnstakeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantUnstakeResponse { + return new MsgInstantUnstakeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantUnstakeResponse { + return new MsgInstantUnstakeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInstantUnstakeResponse { + return new MsgInstantUnstakeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInstantUnstakeResponse | PlainMessage | undefined, b: MsgInstantUnstakeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInstantUnstakeResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRebalanceDelegations + */ +export class MsgRebalanceDelegations extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRebalanceDelegations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRebalanceDelegations { + return new MsgRebalanceDelegations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRebalanceDelegations { + return new MsgRebalanceDelegations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRebalanceDelegations { + return new MsgRebalanceDelegations().fromJsonString(jsonString, options); + } + + static equals(a: MsgRebalanceDelegations | PlainMessage | undefined, b: MsgRebalanceDelegations | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRebalanceDelegations, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRebalanceDelegationsResponse + */ +export class MsgRebalanceDelegationsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRebalanceDelegationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRebalanceDelegationsResponse { + return new MsgRebalanceDelegationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRebalanceDelegationsResponse { + return new MsgRebalanceDelegationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRebalanceDelegationsResponse { + return new MsgRebalanceDelegationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRebalanceDelegationsResponse | PlainMessage | undefined, b: MsgRebalanceDelegationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRebalanceDelegationsResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedelegate + */ +export class MsgRedelegate extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: repeated pryzm.icstaking.v1.RedelegationEntry redelegations = 3; + */ + redelegations: RedelegationEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "redelegations", kind: "message", T: RedelegationEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedelegate { + return new MsgRedelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedelegate { + return new MsgRedelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedelegate { + return new MsgRedelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedelegate | PlainMessage | undefined, b: MsgRedelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedelegate, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedelegateResponse + */ +export class MsgRedelegateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedelegateResponse { + return new MsgRedelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedelegateResponse { + return new MsgRedelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedelegateResponse { + return new MsgRedelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedelegateResponse | PlainMessage | undefined, b: MsgRedelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedelegateResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterInterchainAccount + */ +export class MsgRegisterInterchainAccount extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: pryzm.icstaking.v1.ICARegistrationType registration_type = 3; + */ + registrationType = ICARegistrationType.DELEGATION; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterInterchainAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "registration_type", kind: "enum", T: proto3.getEnumType(ICARegistrationType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccount { + return new MsgRegisterInterchainAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccount | PlainMessage | undefined, b: MsgRegisterInterchainAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccount, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterInterchainAccountResponse + */ +export class MsgRegisterInterchainAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterInterchainAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccountResponse { + return new MsgRegisterInterchainAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterInterchainAccountResponse | PlainMessage | undefined, b: MsgRegisterInterchainAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterInterchainAccountResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgCreateMultiSigConnection + */ +export class MsgCreateMultiSigConnection extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string operator = 3; + */ + operator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgCreateMultiSigConnection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateMultiSigConnection { + return new MsgCreateMultiSigConnection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateMultiSigConnection { + return new MsgCreateMultiSigConnection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateMultiSigConnection { + return new MsgCreateMultiSigConnection().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateMultiSigConnection | PlainMessage | undefined, b: MsgCreateMultiSigConnection | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateMultiSigConnection, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgCreateMultiSigConnectionResponse + */ +export class MsgCreateMultiSigConnectionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgCreateMultiSigConnectionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateMultiSigConnectionResponse { + return new MsgCreateMultiSigConnectionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateMultiSigConnectionResponse { + return new MsgCreateMultiSigConnectionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateMultiSigConnectionResponse { + return new MsgCreateMultiSigConnectionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateMultiSigConnectionResponse | PlainMessage | undefined, b: MsgCreateMultiSigConnectionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateMultiSigConnectionResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateMultiSigConnection + */ +export class MsgUpdateMultiSigConnection extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string id = 2; + */ + id = ""; + + /** + * @generated from field: string operator = 3; + */ + operator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateMultiSigConnection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMultiSigConnection { + return new MsgUpdateMultiSigConnection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMultiSigConnection { + return new MsgUpdateMultiSigConnection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMultiSigConnection { + return new MsgUpdateMultiSigConnection().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMultiSigConnection | PlainMessage | undefined, b: MsgUpdateMultiSigConnection | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMultiSigConnection, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUpdateMultiSigConnectionResponse + */ +export class MsgUpdateMultiSigConnectionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUpdateMultiSigConnectionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateMultiSigConnectionResponse { + return new MsgUpdateMultiSigConnectionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateMultiSigConnectionResponse { + return new MsgUpdateMultiSigConnectionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateMultiSigConnectionResponse { + return new MsgUpdateMultiSigConnectionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateMultiSigConnectionResponse | PlainMessage | undefined, b: MsgUpdateMultiSigConnectionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateMultiSigConnectionResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgAcknowledgeMultiSigPacket + */ +export class MsgAcknowledgeMultiSigPacket extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string connection_id = 2; + */ + connectionId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + /** + * @generated from field: pryzm.icstaking.v1.Acknowledgement ack = 4; + */ + ack?: Acknowledgement; + + /** + * @generated from field: ibc.core.client.v1.Height height = 5; + */ + height?: Height; + + /** + * @generated from field: string tx_hash = 6; + */ + txHash = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgAcknowledgeMultiSigPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "ack", kind: "message", T: Acknowledgement }, + { no: 5, name: "height", kind: "message", T: Height }, + { no: 6, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgeMultiSigPacket { + return new MsgAcknowledgeMultiSigPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgeMultiSigPacket { + return new MsgAcknowledgeMultiSigPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgeMultiSigPacket { + return new MsgAcknowledgeMultiSigPacket().fromJsonString(jsonString, options); + } + + static equals(a: MsgAcknowledgeMultiSigPacket | PlainMessage | undefined, b: MsgAcknowledgeMultiSigPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAcknowledgeMultiSigPacket, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgAcknowledgeMultiSigPacketResponse + */ +export class MsgAcknowledgeMultiSigPacketResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgAcknowledgeMultiSigPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgeMultiSigPacketResponse { + return new MsgAcknowledgeMultiSigPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgeMultiSigPacketResponse { + return new MsgAcknowledgeMultiSigPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgeMultiSigPacketResponse { + return new MsgAcknowledgeMultiSigPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAcknowledgeMultiSigPacketResponse | PlainMessage | undefined, b: MsgAcknowledgeMultiSigPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAcknowledgeMultiSigPacketResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterHostAccounts + */ +export class MsgRegisterHostAccounts extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string delegation_address = 3; + */ + delegationAddress = ""; + + /** + * @generated from field: string reward_address = 4; + */ + rewardAddress = ""; + + /** + * @generated from field: string sweep_address = 5; + */ + sweepAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterHostAccounts"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reward_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sweep_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterHostAccounts { + return new MsgRegisterHostAccounts().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterHostAccounts { + return new MsgRegisterHostAccounts().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterHostAccounts { + return new MsgRegisterHostAccounts().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterHostAccounts | PlainMessage | undefined, b: MsgRegisterHostAccounts | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterHostAccounts, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRegisterHostAccountsResponse + */ +export class MsgRegisterHostAccountsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRegisterHostAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterHostAccountsResponse { + return new MsgRegisterHostAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterHostAccountsResponse { + return new MsgRegisterHostAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterHostAccountsResponse { + return new MsgRegisterHostAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterHostAccountsResponse | PlainMessage | undefined, b: MsgRegisterHostAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterHostAccountsResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRetryFailedLsmTransfer + */ +export class MsgRetryFailedLsmTransfer extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string lsm_denom = 3; + */ + lsmDenom = ""; + + /** + * @generated from field: string transfer_channel = 4; + */ + transferChannel = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRetryFailedLsmTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lsm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRetryFailedLsmTransfer { + return new MsgRetryFailedLsmTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRetryFailedLsmTransfer { + return new MsgRetryFailedLsmTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRetryFailedLsmTransfer { + return new MsgRetryFailedLsmTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgRetryFailedLsmTransfer | PlainMessage | undefined, b: MsgRetryFailedLsmTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRetryFailedLsmTransfer, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRetryFailedLsmTransferResponse + */ +export class MsgRetryFailedLsmTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRetryFailedLsmTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRetryFailedLsmTransferResponse { + return new MsgRetryFailedLsmTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRetryFailedLsmTransferResponse { + return new MsgRetryFailedLsmTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRetryFailedLsmTransferResponse { + return new MsgRetryFailedLsmTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRetryFailedLsmTransferResponse | PlainMessage | undefined, b: MsgRetryFailedLsmTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRetryFailedLsmTransferResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgDelistHostChain + */ +export class MsgDelistHostChain extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgDelistHostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelistHostChain { + return new MsgDelistHostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelistHostChain { + return new MsgDelistHostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelistHostChain { + return new MsgDelistHostChain().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelistHostChain | PlainMessage | undefined, b: MsgDelistHostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelistHostChain, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgDelistHostChainResponse + */ +export class MsgDelistHostChainResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgDelistHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelistHostChainResponse { + return new MsgDelistHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelistHostChainResponse { + return new MsgDelistHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDelistHostChainResponse { + return new MsgDelistHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDelistHostChainResponse | PlainMessage | undefined, b: MsgDelistHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDelistHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUndelegateDelistedHostChain + */ +export class MsgUndelegateDelistedHostChain extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUndelegateDelistedHostChain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateDelistedHostChain { + return new MsgUndelegateDelistedHostChain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateDelistedHostChain { + return new MsgUndelegateDelistedHostChain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateDelistedHostChain { + return new MsgUndelegateDelistedHostChain().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegateDelistedHostChain | PlainMessage | undefined, b: MsgUndelegateDelistedHostChain | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegateDelistedHostChain, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgUndelegateDelistedHostChainResponse + */ +export class MsgUndelegateDelistedHostChainResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgUndelegateDelistedHostChainResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateDelistedHostChainResponse { + return new MsgUndelegateDelistedHostChainResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateDelistedHostChainResponse { + return new MsgUndelegateDelistedHostChainResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateDelistedHostChainResponse { + return new MsgUndelegateDelistedHostChainResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUndelegateDelistedHostChainResponse | PlainMessage | undefined, b: MsgUndelegateDelistedHostChainResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUndelegateDelistedHostChainResponse, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedeemDelisted + */ +export class MsgRedeemDelisted extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string host_chain = 2; + */ + hostChain = ""; + + /** + * @generated from field: string c_amount = 3; + */ + cAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedeemDelisted"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemDelisted { + return new MsgRedeemDelisted().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemDelisted { + return new MsgRedeemDelisted().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemDelisted { + return new MsgRedeemDelisted().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemDelisted | PlainMessage | undefined, b: MsgRedeemDelisted | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemDelisted, a, b); + } +} + +/** + * @generated from message pryzm.icstaking.v1.MsgRedeemDelistedResponse + */ +export class MsgRedeemDelistedResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.MsgRedeemDelistedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemDelistedResponse { + return new MsgRedeemDelistedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemDelistedResponse { + return new MsgRedeemDelistedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemDelistedResponse { + return new MsgRedeemDelistedResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemDelistedResponse | PlainMessage | undefined, b: MsgRedeemDelistedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemDelistedResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/icstaking/v1/undelegation_pb.ts b/src/protobufs/pryzm/icstaking/v1/undelegation_pb.ts new file mode 100644 index 00000000..e6231ff5 --- /dev/null +++ b/src/protobufs/pryzm/icstaking/v1/undelegation_pb.ts @@ -0,0 +1,212 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/icstaking/v1/undelegation.proto (package pryzm.icstaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; + +/** + * Information about an undelegation in a specific epoch + * + * @generated from message pryzm.icstaking.v1.Undelegation + */ +export class Undelegation extends Message { + /** + * host chain id + * + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * the undelegation epoch id + * + * @generated from field: uint64 epoch = 2; + */ + epoch = protoInt64.zero; + + /** + * the exchange rate of cToken:Token at the end of undelegation epoch + * + * @generated from field: string exchange_rate = 3; + */ + exchangeRate = ""; + + /** + * whether the undelegation request is sent and has started on host chain + * + * @generated from field: bool started = 4; + */ + started = false; + + /** + * whether the undelegation un-bonding period is passed and undelegated assets are available + * + * @generated from field: bool completed = 5; + */ + completed = false; + + /** + * the time in which the undelegation will be completed and the assets are transferred to delegation account + * + * @generated from field: google.protobuf.Timestamp completion_time = 6; + */ + completionTime?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.Undelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "completed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "completion_time", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Undelegation { + return new Undelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Undelegation { + return new Undelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Undelegation { + return new Undelegation().fromJsonString(jsonString, options); + } + + static equals(a: Undelegation | PlainMessage | undefined, b: Undelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(Undelegation, a, b); + } +} + +/** + * ChannelUndelegation contains information about an undelegation epoch for a specific transfer channel + * + * @generated from message pryzm.icstaking.v1.ChannelUndelegation + */ +export class ChannelUndelegation extends Message { + /** + * host chain id + * + * @generated from field: string host_chain = 1; + */ + hostChain = ""; + + /** + * the undelegation epoch id + * + * @generated from field: uint64 epoch = 2; + */ + epoch = protoInt64.zero; + + /** + * the transfer channel on which the undelegated assets must be received + * + * @generated from field: string transfer_channel = 3; + */ + transferChannel = ""; + + /** + * the total amount of cTokens requested to be undelegated + * + * @generated from field: string total_c_amount = 4; + */ + totalCAmount = ""; + + /** + * the total amount of cTokens for which the undelegation message has been sent + * + * @generated from field: string undelegated_c_amount = 5; + */ + undelegatedCAmount = ""; + + /** + * the amount of assets already undelegated + * + * @generated from field: string received_amount = 6; + */ + receivedAmount = ""; + + /** + * the amount of assets waiting to be received + * + * @generated from field: string pending_amount = 7; + */ + pendingAmount = ""; + + /** + * the cAsset equivalent of assets waiting to be received + * + * @generated from field: string pending_c_amount = 8; + */ + pendingCAmount = ""; + + /** + * whether the ibc transfer messages for sweeping assets to PRYZM are sent successfully + * + * @generated from field: bool swept = 9; + */ + swept = false; + + /** + * whether all the undelegation are completely received + * if received is true, pending_amount must be zero + * + * @generated from field: bool received = 10; + */ + received = false; + + /** + * the amount of uAssets redeemed by users. + * a channel undelegation record is deleted when this amount is equal the total_c_amount + * + * @generated from field: string claimed_u_amount = 11; + */ + claimedUAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.icstaking.v1.ChannelUndelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "host_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "transfer_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "total_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "undelegated_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "received_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "pending_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "pending_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "swept", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 10, name: "received", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 11, name: "claimed_u_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChannelUndelegation { + return new ChannelUndelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChannelUndelegation { + return new ChannelUndelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChannelUndelegation { + return new ChannelUndelegation().fromJsonString(jsonString, options); + } + + static equals(a: ChannelUndelegation | PlainMessage | undefined, b: ChannelUndelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(ChannelUndelegation, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/bond_pb.ts b/src/protobufs/pryzm/incentives/v1/bond_pb.ts new file mode 100644 index 00000000..757895ff --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/bond_pb.ts @@ -0,0 +1,107 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/bond.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.incentives.v1.BondRewardToken + */ +export class BondRewardToken extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string pending_amount = 2; + */ + pendingAmount = ""; + + /** + * @generated from field: string user_index = 3; + */ + userIndex = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.BondRewardToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pending_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "user_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BondRewardToken { + return new BondRewardToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BondRewardToken { + return new BondRewardToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BondRewardToken { + return new BondRewardToken().fromJsonString(jsonString, options); + } + + static equals(a: BondRewardToken | PlainMessage | undefined, b: BondRewardToken | PlainMessage | undefined): boolean { + return proto3.util.equals(BondRewardToken, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.Bond + */ +export class Bond extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token = 2; + */ + token?: Coin; + + /** + * @generated from field: repeated pryzm.incentives.v1.BondRewardToken rewards = 3; + */ + rewards: BondRewardToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.Bond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "token", kind: "message", T: Coin }, + { no: 3, name: "rewards", kind: "message", T: BondRewardToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Bond { + return new Bond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Bond { + return new Bond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Bond { + return new Bond().fromJsonString(jsonString, options); + } + + static equals(a: Bond | PlainMessage | undefined, b: Bond | PlainMessage | undefined): boolean { + return proto3.util.equals(Bond, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/event_pb.ts b/src/protobufs/pryzm/incentives/v1/event_pb.ts new file mode 100644 index 00000000..d7cdf8df --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/event_pb.ts @@ -0,0 +1,529 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/event.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Bond } from "./bond_pb.js"; +import { Pool } from "./pool_pb.js"; +import { Unbonding } from "./unbonding_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.incentives.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.incentives.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventSetBond + */ +export class EventSetBond extends Message { + /** + * @generated from field: pryzm.incentives.v1.Bond bond = 1; + */ + bond?: Bond; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventSetBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond", kind: "message", T: Bond }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetBond { + return new EventSetBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetBond { + return new EventSetBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetBond { + return new EventSetBond().fromJsonString(jsonString, options); + } + + static equals(a: EventSetBond | PlainMessage | undefined, b: EventSetBond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetBond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventRemoveBond + */ +export class EventRemoveBond extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventRemoveBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveBond { + return new EventRemoveBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveBond { + return new EventRemoveBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveBond { + return new EventRemoveBond().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveBond | PlainMessage | undefined, b: EventRemoveBond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveBond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventSetPool + */ +export class EventSetPool extends Message { + /** + * @generated from field: pryzm.incentives.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventSetPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPool { + return new EventSetPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPool { + return new EventSetPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPool { + return new EventSetPool().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPool | PlainMessage | undefined, b: EventSetPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPool, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventSetUnbonding + */ +export class EventSetUnbonding extends Message { + /** + * @generated from field: pryzm.incentives.v1.Unbonding unbonding = 1; + */ + unbonding?: Unbonding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventSetUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding", kind: "message", T: Unbonding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetUnbonding { + return new EventSetUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetUnbonding { + return new EventSetUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetUnbonding { + return new EventSetUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: EventSetUnbonding | PlainMessage | undefined, b: EventSetUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventRemoveUnbonding + */ +export class EventRemoveUnbonding extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventRemoveUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveUnbonding { + return new EventRemoveUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveUnbonding { + return new EventRemoveUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveUnbonding { + return new EventRemoveUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveUnbonding | PlainMessage | undefined, b: EventRemoveUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventClaimReward + */ +export class EventClaimReward extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: string treasury = 3; + */ + treasury = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 4; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventClaimReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClaimReward { + return new EventClaimReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClaimReward { + return new EventClaimReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClaimReward { + return new EventClaimReward().fromJsonString(jsonString, options); + } + + static equals(a: EventClaimReward | PlainMessage | undefined, b: EventClaimReward | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClaimReward, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventBond + */ +export class EventBond extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBond { + return new EventBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBond { + return new EventBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventBond { + return new EventBond().fromJsonString(jsonString, options); + } + + static equals(a: EventBond | PlainMessage | undefined, b: EventBond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventBond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventUnbond + */ +export class EventUnbond extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; + */ + rewards: Coin[] = []; + + /** + * @generated from field: pryzm.incentives.v1.Unbonding unbonding = 4; + */ + unbonding?: Unbonding; + + /** + * @generated from field: string reward_treasury = 5; + */ + rewardTreasury = ""; + + /** + * @generated from field: string unbond_treasury = 6; + */ + unbondTreasury = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventUnbond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "unbonding", kind: "message", T: Unbonding }, + { no: 5, name: "reward_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "unbond_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventUnbond { + return new EventUnbond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventUnbond { + return new EventUnbond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventUnbond { + return new EventUnbond().fromJsonString(jsonString, options); + } + + static equals(a: EventUnbond | PlainMessage | undefined, b: EventUnbond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventUnbond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventClaimUnbonding + */ +export class EventClaimUnbonding extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventClaimUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClaimUnbonding { + return new EventClaimUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClaimUnbonding { + return new EventClaimUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClaimUnbonding { + return new EventClaimUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: EventClaimUnbonding | PlainMessage | undefined, b: EventClaimUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClaimUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventCancelUnbonding + */ +export class EventCancelUnbonding extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventCancelUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelUnbonding { + return new EventCancelUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelUnbonding { + return new EventCancelUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCancelUnbonding { + return new EventCancelUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: EventCancelUnbonding | PlainMessage | undefined, b: EventCancelUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCancelUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.EventIncentivizePool + */ +export class EventIncentivizePool extends Message { + /** + * @generated from field: string bond_denom = 1; + */ + bondDenom = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.EventIncentivizePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventIncentivizePool { + return new EventIncentivizePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventIncentivizePool { + return new EventIncentivizePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventIncentivizePool { + return new EventIncentivizePool().fromJsonString(jsonString, options); + } + + static equals(a: EventIncentivizePool | PlainMessage | undefined, b: EventIncentivizePool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventIncentivizePool, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/genesis_pb.ts b/src/protobufs/pryzm/incentives/v1/genesis_pb.ts new file mode 100644 index 00000000..0510ba5d --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/genesis_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/genesis.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Pool } from "./pool_pb.js"; +import { Bond } from "./bond_pb.js"; +import { Unbonding } from "./unbonding_pb.js"; + +/** + * GenesisState defines the incentives module's genesis state. + * + * @generated from message pryzm.incentives.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.incentives.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated pryzm.incentives.v1.Pool pool_list = 2; + */ + poolList: Pool[] = []; + + /** + * @generated from field: repeated pryzm.incentives.v1.Bond bond_list = 3; + */ + bondList: Bond[] = []; + + /** + * @generated from field: repeated pryzm.incentives.v1.Unbonding unbonding_list = 4; + */ + unbondingList: Unbonding[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: uint64 unbonding_count = 5; + */ + unbondingCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pool_list", kind: "message", T: Pool, repeated: true }, + { no: 3, name: "bond_list", kind: "message", T: Bond, repeated: true }, + { no: 4, name: "unbonding_list", kind: "message", T: Unbonding, repeated: true }, + { no: 5, name: "unbonding_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/params_pb.ts b/src/protobufs/pryzm/incentives/v1/params_pb.ts new file mode 100644 index 00000000..3544bb18 --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/params.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.incentives.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: google.protobuf.Duration unbonding_period = 1; + */ + unbondingPeriod?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding_period", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/pool_pb.ts b/src/protobufs/pryzm/incentives/v1/pool_pb.ts new file mode 100644 index 00000000..df91b126 --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/pool_pb.ts @@ -0,0 +1,107 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/pool.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.incentives.v1.PoolRewardToken + */ +export class PoolRewardToken extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string global_index = 3; + */ + globalIndex = ""; + + /** + * @generated from field: string weight = 4; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.PoolRewardToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "global_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolRewardToken { + return new PoolRewardToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolRewardToken { + return new PoolRewardToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolRewardToken { + return new PoolRewardToken().fromJsonString(jsonString, options); + } + + static equals(a: PoolRewardToken | PlainMessage | undefined, b: PoolRewardToken | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolRewardToken, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.Pool + */ +export class Pool extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin bonded_token = 1; + */ + bondedToken?: Coin; + + /** + * @generated from field: repeated pryzm.incentives.v1.PoolRewardToken rewards = 2; + */ + rewards: PoolRewardToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bonded_token", kind: "message", T: Coin }, + { no: 2, name: "rewards", kind: "message", T: PoolRewardToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/query_cosmes.ts b/src/protobufs/pryzm/incentives/v1/query_cosmes.ts new file mode 100644 index 00000000..b7d6210d --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/query.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllBondRequest, QueryAllBondResponse, QueryAllPoolRequest, QueryAllPoolResponse, QueryAllUnbondingRequest, QueryAllUnbondingResponse, QueryGetBondRequest, QueryGetBondResponse, QueryGetPoolRequest, QueryGetPoolResponse, QueryGetUnbondingRequest, QueryGetUnbondingResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.incentives.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.incentives.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Pool by index. + * + * @generated from rpc pryzm.incentives.v1.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryGetPoolRequest, + Response: QueryGetPoolResponse, +} as const; + +/** + * Queries a list of Pool items. + * + * @generated from rpc pryzm.incentives.v1.Query.PoolAll + */ +export const QueryPoolAllService = { + typeName: TYPE_NAME, + method: "PoolAll", + Request: QueryAllPoolRequest, + Response: QueryAllPoolResponse, +} as const; + +/** + * Queries a Bond by index. + * + * @generated from rpc pryzm.incentives.v1.Query.Bond + */ +export const QueryBondService = { + typeName: TYPE_NAME, + method: "Bond", + Request: QueryGetBondRequest, + Response: QueryGetBondResponse, +} as const; + +/** + * Queries a list of Bond items. + * + * @generated from rpc pryzm.incentives.v1.Query.BondAll + */ +export const QueryBondAllService = { + typeName: TYPE_NAME, + method: "BondAll", + Request: QueryAllBondRequest, + Response: QueryAllBondResponse, +} as const; + +/** + * Queries a Unbonding by id. + * + * @generated from rpc pryzm.incentives.v1.Query.Unbonding + */ +export const QueryUnbondingService = { + typeName: TYPE_NAME, + method: "Unbonding", + Request: QueryGetUnbondingRequest, + Response: QueryGetUnbondingResponse, +} as const; + +/** + * Queries a list of Unbonding items. + * + * @generated from rpc pryzm.incentives.v1.Query.UnbondingAll + */ +export const QueryUnbondingAllService = { + typeName: TYPE_NAME, + method: "UnbondingAll", + Request: QueryAllUnbondingRequest, + Response: QueryAllUnbondingResponse, +} as const; + diff --git a/src/protobufs/pryzm/incentives/v1/query_pb.ts b/src/protobufs/pryzm/incentives/v1/query_pb.ts new file mode 100644 index 00000000..fa6baf7f --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/query_pb.ts @@ -0,0 +1,567 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/query.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Pool } from "./pool_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Bond } from "./bond_pb.js"; +import { Unbonding } from "./unbonding_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.incentives.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.incentives.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.incentives.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetPoolRequest + */ +export class QueryGetPoolRequest extends Message { + /** + * @generated from field: string bond_denom = 1; + */ + bondDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolRequest { + return new QueryGetPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolRequest | PlainMessage | undefined, b: QueryGetPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetPoolResponse + */ +export class QueryGetPoolResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Pool pool = 1; + */ + pool?: Pool; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPoolResponse { + return new QueryGetPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetPoolResponse | PlainMessage | undefined, b: QueryGetPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllPoolRequest + */ +export class QueryAllPoolRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolRequest { + return new QueryAllPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolRequest | PlainMessage | undefined, b: QueryAllPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllPoolResponse + */ +export class QueryAllPoolResponse extends Message { + /** + * @generated from field: repeated pryzm.incentives.v1.Pool pool = 1; + */ + pool: Pool[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPoolResponse { + return new QueryAllPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPoolResponse | PlainMessage | undefined, b: QueryAllPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetBondRequest + */ +export class QueryGetBondRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetBondRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetBondRequest { + return new QueryGetBondRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetBondRequest { + return new QueryGetBondRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetBondRequest { + return new QueryGetBondRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetBondRequest | PlainMessage | undefined, b: QueryGetBondRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetBondRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetBondResponse + */ +export class QueryGetBondResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Bond bond = 1; + */ + bond?: Bond; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetBondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond", kind: "message", T: Bond }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetBondResponse { + return new QueryGetBondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetBondResponse { + return new QueryGetBondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetBondResponse { + return new QueryGetBondResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetBondResponse | PlainMessage | undefined, b: QueryGetBondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetBondResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllBondRequest + */ +export class QueryAllBondRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllBondRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBondRequest { + return new QueryAllBondRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBondRequest { + return new QueryAllBondRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBondRequest { + return new QueryAllBondRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBondRequest | PlainMessage | undefined, b: QueryAllBondRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBondRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllBondResponse + */ +export class QueryAllBondResponse extends Message { + /** + * @generated from field: repeated pryzm.incentives.v1.Bond bond = 1; + */ + bond: Bond[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllBondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond", kind: "message", T: Bond, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBondResponse { + return new QueryAllBondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBondResponse { + return new QueryAllBondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBondResponse { + return new QueryAllBondResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBondResponse | PlainMessage | undefined, b: QueryAllBondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBondResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetUnbondingRequest + */ +export class QueryGetUnbondingRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetUnbondingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUnbondingRequest { + return new QueryGetUnbondingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUnbondingRequest { + return new QueryGetUnbondingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUnbondingRequest { + return new QueryGetUnbondingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUnbondingRequest | PlainMessage | undefined, b: QueryGetUnbondingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUnbondingRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryGetUnbondingResponse + */ +export class QueryGetUnbondingResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Unbonding unbonding = 1; + */ + unbonding?: Unbonding; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryGetUnbondingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding", kind: "message", T: Unbonding }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUnbondingResponse { + return new QueryGetUnbondingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUnbondingResponse { + return new QueryGetUnbondingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUnbondingResponse { + return new QueryGetUnbondingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUnbondingResponse | PlainMessage | undefined, b: QueryGetUnbondingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUnbondingResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllUnbondingRequest + */ +export class QueryAllUnbondingRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllUnbondingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUnbondingRequest { + return new QueryAllUnbondingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUnbondingRequest { + return new QueryAllUnbondingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUnbondingRequest { + return new QueryAllUnbondingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUnbondingRequest | PlainMessage | undefined, b: QueryAllUnbondingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUnbondingRequest, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.QueryAllUnbondingResponse + */ +export class QueryAllUnbondingResponse extends Message { + /** + * @generated from field: repeated pryzm.incentives.v1.Unbonding unbonding = 1; + */ + unbonding: Unbonding[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.QueryAllUnbondingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding", kind: "message", T: Unbonding, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUnbondingResponse { + return new QueryAllUnbondingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUnbondingResponse { + return new QueryAllUnbondingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUnbondingResponse { + return new QueryAllUnbondingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUnbondingResponse | PlainMessage | undefined, b: QueryAllUnbondingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUnbondingResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/tx_cosmes.ts b/src/protobufs/pryzm/incentives/v1/tx_cosmes.ts new file mode 100644 index 00000000..238b0216 --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/tx_cosmes.ts @@ -0,0 +1,111 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/tx.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddRewardTokenToPool, MsgAddRewardTokenToPoolResponse, MsgBond, MsgBondResponse, MsgCancelUnbonding, MsgCancelUnbondingResponse, MsgClaimReward, MsgClaimRewardResponse, MsgClaimUnbonding, MsgClaimUnbondingResponse, MsgCreatePool, MsgCreatePoolResponse, MsgIncentivizePool, MsgIncentivizePoolResponse, MsgUnbond, MsgUnbondResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateRewardTokenWeight, MsgUpdateRewardTokenWeightResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.incentives.v1.Msg"; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.CreatePool + */ +export const MsgCreatePoolService = { + typeName: TYPE_NAME, + method: "CreatePool", + Request: MsgCreatePool, + Response: MsgCreatePoolResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.UpdateRewardTokenWeight + */ +export const MsgUpdateRewardTokenWeightService = { + typeName: TYPE_NAME, + method: "UpdateRewardTokenWeight", + Request: MsgUpdateRewardTokenWeight, + Response: MsgUpdateRewardTokenWeightResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.AddRewardTokenToPool + */ +export const MsgAddRewardTokenToPoolService = { + typeName: TYPE_NAME, + method: "AddRewardTokenToPool", + Request: MsgAddRewardTokenToPool, + Response: MsgAddRewardTokenToPoolResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.Bond + */ +export const MsgBondService = { + typeName: TYPE_NAME, + method: "Bond", + Request: MsgBond, + Response: MsgBondResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.Unbond + */ +export const MsgUnbondService = { + typeName: TYPE_NAME, + method: "Unbond", + Request: MsgUnbond, + Response: MsgUnbondResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.ClaimReward + */ +export const MsgClaimRewardService = { + typeName: TYPE_NAME, + method: "ClaimReward", + Request: MsgClaimReward, + Response: MsgClaimRewardResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.ClaimUnbonding + */ +export const MsgClaimUnbondingService = { + typeName: TYPE_NAME, + method: "ClaimUnbonding", + Request: MsgClaimUnbonding, + Response: MsgClaimUnbondingResponse, +} as const; + +/** + * @generated from rpc pryzm.incentives.v1.Msg.CancelUnbonding + */ +export const MsgCancelUnbondingService = { + typeName: TYPE_NAME, + method: "CancelUnbonding", + Request: MsgCancelUnbonding, + Response: MsgCancelUnbondingResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.incentives.v1.Msg.IncentivizePool + */ +export const MsgIncentivizePoolService = { + typeName: TYPE_NAME, + method: "IncentivizePool", + Request: MsgIncentivizePool, + Response: MsgIncentivizePoolResponse, +} as const; + diff --git a/src/protobufs/pryzm/incentives/v1/tx_pb.ts b/src/protobufs/pryzm/incentives/v1/tx_pb.ts new file mode 100644 index 00000000..a3df489d --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/tx_pb.ts @@ -0,0 +1,888 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/tx.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Bond } from "./bond_pb.js"; +import { Unbonding } from "./unbonding_pb.js"; + +/** + * @generated from message pryzm.incentives.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.incentives.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.WeightedRewardToken + */ +export class WeightedRewardToken extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * weight is used for reward portion for each pool, when a reward is + * accrued from dist module, it will be distributed to each pool according to the weights + * + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.WeightedRewardToken"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WeightedRewardToken { + return new WeightedRewardToken().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WeightedRewardToken { + return new WeightedRewardToken().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WeightedRewardToken { + return new WeightedRewardToken().fromJsonString(jsonString, options); + } + + static equals(a: WeightedRewardToken | PlainMessage | undefined, b: WeightedRewardToken | PlainMessage | undefined): boolean { + return proto3.util.equals(WeightedRewardToken, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgCreatePool + */ +export class MsgCreatePool extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: repeated pryzm.incentives.v1.WeightedRewardToken reward_tokens = 3; + */ + rewardTokens: WeightedRewardToken[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgCreatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_tokens", kind: "message", T: WeightedRewardToken, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePool | PlainMessage | undefined, b: MsgCreatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePool, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgCreatePoolResponse + */ +export class MsgCreatePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgCreatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePoolResponse | PlainMessage | undefined, b: MsgCreatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgUpdateRewardTokenWeight + */ +export class MsgUpdateRewardTokenWeight extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: pryzm.incentives.v1.WeightedRewardToken reward_token = 3; + */ + rewardToken?: WeightedRewardToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUpdateRewardTokenWeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_token", kind: "message", T: WeightedRewardToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRewardTokenWeight { + return new MsgUpdateRewardTokenWeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRewardTokenWeight { + return new MsgUpdateRewardTokenWeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRewardTokenWeight { + return new MsgUpdateRewardTokenWeight().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRewardTokenWeight | PlainMessage | undefined, b: MsgUpdateRewardTokenWeight | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRewardTokenWeight, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgUpdateRewardTokenWeightResponse + */ +export class MsgUpdateRewardTokenWeightResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUpdateRewardTokenWeightResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateRewardTokenWeightResponse { + return new MsgUpdateRewardTokenWeightResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateRewardTokenWeightResponse { + return new MsgUpdateRewardTokenWeightResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateRewardTokenWeightResponse { + return new MsgUpdateRewardTokenWeightResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateRewardTokenWeightResponse | PlainMessage | undefined, b: MsgUpdateRewardTokenWeightResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateRewardTokenWeightResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgAddRewardTokenToPool + */ +export class MsgAddRewardTokenToPool extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: pryzm.incentives.v1.WeightedRewardToken reward_token = 3; + */ + rewardToken?: WeightedRewardToken; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgAddRewardTokenToPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_token", kind: "message", T: WeightedRewardToken }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddRewardTokenToPool { + return new MsgAddRewardTokenToPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddRewardTokenToPool { + return new MsgAddRewardTokenToPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddRewardTokenToPool { + return new MsgAddRewardTokenToPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddRewardTokenToPool | PlainMessage | undefined, b: MsgAddRewardTokenToPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddRewardTokenToPool, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgAddRewardTokenToPoolResponse + */ +export class MsgAddRewardTokenToPoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgAddRewardTokenToPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddRewardTokenToPoolResponse { + return new MsgAddRewardTokenToPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddRewardTokenToPoolResponse { + return new MsgAddRewardTokenToPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddRewardTokenToPoolResponse { + return new MsgAddRewardTokenToPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddRewardTokenToPoolResponse | PlainMessage | undefined, b: MsgAddRewardTokenToPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddRewardTokenToPoolResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgBond + */ +export class MsgBond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBond { + return new MsgBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBond { + return new MsgBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBond { + return new MsgBond().fromJsonString(jsonString, options); + } + + static equals(a: MsgBond | PlainMessage | undefined, b: MsgBond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgBondResponse + */ +export class MsgBondResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Bond bond = 1; + */ + bond?: Bond; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgBondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond", kind: "message", T: Bond }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBondResponse | PlainMessage | undefined, b: MsgBondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBondResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgUnbond + */ +export class MsgUnbond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string unbond_treasury = 3; + */ + unbondTreasury = ""; + + /** + * @generated from field: string reward_treasury = 4; + */ + rewardTreasury = ""; + + /** + * @generated from field: bool auto_claim = 5; + */ + autoClaim = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUnbond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "unbond_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reward_treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "auto_claim", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbond { + return new MsgUnbond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbond | PlainMessage | undefined, b: MsgUnbond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbond, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgUnbondResponse + */ +export class MsgUnbondResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Unbonding unbonding = 1; + */ + unbonding?: Unbonding; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 2; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgUnbondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbonding", kind: "message", T: Unbonding }, + { no: 2, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbondResponse | PlainMessage | undefined, b: MsgUnbondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbondResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgClaimReward + */ +export class MsgClaimReward extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: string treasury = 3; + */ + treasury = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgClaimReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimReward | PlainMessage | undefined, b: MsgClaimReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimReward, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgClaimRewardResponse + */ +export class MsgClaimRewardResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 1; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgClaimRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardResponse | PlainMessage | undefined, b: MsgClaimRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgClaimUnbonding + */ +export class MsgClaimUnbonding extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 unbonding_id = 2; + */ + unbondingId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgClaimUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "unbonding_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimUnbonding { + return new MsgClaimUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimUnbonding { + return new MsgClaimUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimUnbonding { + return new MsgClaimUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimUnbonding | PlainMessage | undefined, b: MsgClaimUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgClaimUnbondingResponse + */ +export class MsgClaimUnbondingResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgClaimUnbondingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimUnbondingResponse { + return new MsgClaimUnbondingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimUnbondingResponse { + return new MsgClaimUnbondingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimUnbondingResponse { + return new MsgClaimUnbondingResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimUnbondingResponse | PlainMessage | undefined, b: MsgClaimUnbondingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimUnbondingResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgCancelUnbonding + */ +export class MsgCancelUnbonding extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: uint64 unbonding_id = 2; + */ + unbondingId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgCancelUnbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "unbonding_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUnbonding { + return new MsgCancelUnbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUnbonding { + return new MsgCancelUnbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelUnbonding { + return new MsgCancelUnbonding().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelUnbonding | PlainMessage | undefined, b: MsgCancelUnbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelUnbonding, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgCancelUnbondingResponse + */ +export class MsgCancelUnbondingResponse extends Message { + /** + * @generated from field: pryzm.incentives.v1.Bond bond = 1; + */ + bond?: Bond; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgCancelUnbondingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bond", kind: "message", T: Bond }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUnbondingResponse { + return new MsgCancelUnbondingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUnbondingResponse { + return new MsgCancelUnbondingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCancelUnbondingResponse { + return new MsgCancelUnbondingResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCancelUnbondingResponse | PlainMessage | undefined, b: MsgCancelUnbondingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCancelUnbondingResponse, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgIncentivizePool + */ +export class MsgIncentivizePool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string bond_denom = 2; + */ + bondDenom = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgIncentivizePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncentivizePool { + return new MsgIncentivizePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncentivizePool { + return new MsgIncentivizePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncentivizePool { + return new MsgIncentivizePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncentivizePool | PlainMessage | undefined, b: MsgIncentivizePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncentivizePool, a, b); + } +} + +/** + * @generated from message pryzm.incentives.v1.MsgIncentivizePoolResponse + */ +export class MsgIncentivizePoolResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.MsgIncentivizePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncentivizePoolResponse { + return new MsgIncentivizePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncentivizePoolResponse { + return new MsgIncentivizePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncentivizePoolResponse { + return new MsgIncentivizePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncentivizePoolResponse | PlainMessage | undefined, b: MsgIncentivizePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncentivizePoolResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/incentives/v1/unbonding_pb.ts b/src/protobufs/pryzm/incentives/v1/unbonding_pb.ts new file mode 100644 index 00000000..09d519b2 --- /dev/null +++ b/src/protobufs/pryzm/incentives/v1/unbonding_pb.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/incentives/v1/unbonding.proto (package pryzm.incentives.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.incentives.v1.Unbonding + */ +export class Unbonding extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Timestamp completion_time = 2; + */ + completionTime?: Timestamp; + + /** + * @generated from field: string address = 3; + */ + address = ""; + + /** + * @generated from field: string treasury_address = 4; + */ + treasuryAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 5; + */ + amount?: Coin; + + /** + * @generated from field: bool auto_claim = 6; + */ + autoClaim = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.incentives.v1.Unbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "completion_time", kind: "message", T: Timestamp }, + { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "treasury_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "message", T: Coin }, + { no: 6, name: "auto_claim", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Unbonding { + return new Unbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Unbonding { + return new Unbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Unbonding { + return new Unbonding().fromJsonString(jsonString, options); + } + + static equals(a: Unbonding | PlainMessage | undefined, b: Unbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(Unbonding, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/event_pb.ts b/src/protobufs/pryzm/mint/v1/event_pb.ts new file mode 100644 index 00000000..05250bf8 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/event_pb.ts @@ -0,0 +1,108 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/event.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Minter } from "./minter_pb.js"; +import { DistributionProportions, Params } from "./params_pb.js"; + +/** + * @generated from message pryzm.mint.v1.EventMint + */ +export class EventMint extends Message { + /** + * @generated from field: pryzm.mint.v1.Minter minter = 1; + */ + minter?: Minter; + + /** + * @generated from field: string bonded_ratio = 2; + */ + bondedRatio = ""; + + /** + * @generated from field: string total_minted = 3; + */ + totalMinted = ""; + + /** + * @generated from field: pryzm.mint.v1.DistributionProportions distributed_amounts = 4; + */ + distributedAmounts?: DistributionProportions; + + /** + * @generated from field: int64 epoch_number = 5; + */ + epochNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.EventMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minter", kind: "message", T: Minter }, + { no: 2, name: "bonded_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "total_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "distributed_amounts", kind: "message", T: DistributionProportions }, + { no: 5, name: "epoch_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventMint { + return new EventMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventMint { + return new EventMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventMint { + return new EventMint().fromJsonString(jsonString, options); + } + + static equals(a: EventMint | PlainMessage | undefined, b: EventMint | PlainMessage | undefined): boolean { + return proto3.util.equals(EventMint, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.mint.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/genesis_pb.ts b/src/protobufs/pryzm/mint/v1/genesis_pb.ts new file mode 100644 index 00000000..b82bc7a8 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/genesis.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Minter } from "./minter_pb.js"; + +/** + * GenesisState defines the mint module's genesis state. + * + * @generated from message pryzm.mint.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.mint.v1.Params params = 1; + */ + params?: Params; + + /** + * minter is an abstraction for holding current rewards information. + * + * @generated from field: pryzm.mint.v1.Minter minter = 2; + */ + minter?: Minter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "minter", kind: "message", T: Minter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/minter_pb.ts b/src/protobufs/pryzm/mint/v1/minter_pb.ts new file mode 100644 index 00000000..889c0e60 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/minter_pb.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/minter.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Minter represents the minting state. + * + * @generated from message pryzm.mint.v1.Minter + */ +export class Minter extends Message { + /** + * @generated from field: string inflation = 1; + */ + inflation = ""; + + /** + * current annual expected provisions + * + * @generated from field: string annual_provisions = 2; + */ + annualProvisions = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.Minter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inflation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "annual_provisions", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Minter { + return new Minter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Minter { + return new Minter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Minter { + return new Minter().fromJsonString(jsonString, options); + } + + static equals(a: Minter | PlainMessage | undefined, b: Minter | PlainMessage | undefined): boolean { + return proto3.util.equals(Minter, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/params_pb.ts b/src/protobufs/pryzm/mint/v1/params_pb.ts new file mode 100644 index 00000000..46d46f68 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/params_pb.ts @@ -0,0 +1,215 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/params.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.mint.v1.DistributionProportions + */ +export class DistributionProportions extends Message { + /** + * defines the proportion of the minted mint_denom that is to be + * allocated as staking rewards. + * + * @generated from field: string staking = 1; + */ + staking = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated as pool incentives. + * + * @generated from field: string pool_incentives = 2; + */ + poolIncentives = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated to operations and development account address. + * + * @generated from field: string operations_and_development = 3; + */ + operationsAndDevelopment = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated to the dapp developers. + * + * @generated from field: string dapp = 4; + */ + dapp = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated to the oracle feeders. + * + * @generated from field: string oracle = 5; + */ + oracle = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated to the treasury fee pool. + * + * @generated from field: string treasury = 6; + */ + treasury = ""; + + /** + * defines the proportion of the minted mint_denom that is + * to be allocated to the community pool. + * + * @generated from field: string community = 7; + */ + community = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.DistributionProportions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_incentives", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "operations_and_development", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "dapp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "oracle", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "community", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributionProportions { + return new DistributionProportions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributionProportions { + return new DistributionProportions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributionProportions { + return new DistributionProportions().fromJsonString(jsonString, options); + } + + static equals(a: DistributionProportions | PlainMessage | undefined, b: DistributionProportions | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributionProportions, a, b); + } +} + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.mint.v1.Params + */ +export class Params extends Message { + /** + * type of coin to mint + * + * @generated from field: string mint_denom = 1; + */ + mintDenom = ""; + + /** + * maximum annual change in inflation rate + * + * @generated from field: string inflation_rate_change = 2; + */ + inflationRateChange = ""; + + /** + * maximum inflation rate + * + * @generated from field: string inflation_max = 3; + */ + inflationMax = ""; + + /** + * minimum inflation rate + * + * @generated from field: string inflation_min = 4; + */ + inflationMin = ""; + + /** + * goal of percent bonded upryzms + * + * @generated from field: string goal_bonded = 5; + */ + goalBonded = ""; + + /** + * mint epoch identifier e.g. (day, week). + * + * @generated from field: string epoch_identifier = 6; + */ + epochIdentifier = ""; + + /** + * start epoch to distribute minting rewards + * + * @generated from field: int64 minting_rewards_distribution_start_epoch = 7; + */ + mintingRewardsDistributionStartEpoch = protoInt64.zero; + + /** + * defines the distribution proportions of the minted + * denom, i.e, which stakeholders will receive the minted + * denoms and how much. + * + * @generated from field: pryzm.mint.v1.DistributionProportions distribution_proportions = 8; + */ + distributionProportions?: DistributionProportions; + + /** + * epoch provisions from the first epoch. + * + * @generated from field: string genesis_epoch_provisions = 9; + */ + genesisEpochProvisions = ""; + + /** + * @generated from field: string operations_and_development_account_address = 10; + */ + operationsAndDevelopmentAccountAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mint_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "inflation_rate_change", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "inflation_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "inflation_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "goal_bonded", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "minting_rewards_distribution_start_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "distribution_proportions", kind: "message", T: DistributionProportions }, + { no: 9, name: "genesis_epoch_provisions", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "operations_and_development_account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/query_cosmes.ts b/src/protobufs/pryzm/mint/v1/query_cosmes.ts new file mode 100644 index 00000000..51aa077f --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/query_cosmes.ts @@ -0,0 +1,33 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/mint/v1/query.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryMinterRequest, QueryMinterResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.mint.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.mint.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a list of Minter items. + * + * @generated from rpc pryzm.mint.v1.Query.Minter + */ +export const QueryMinterService = { + typeName: TYPE_NAME, + method: "Minter", + Request: QueryMinterRequest, + Response: QueryMinterResponse, +} as const; + diff --git a/src/protobufs/pryzm/mint/v1/query_pb.ts b/src/protobufs/pryzm/mint/v1/query_pb.ts new file mode 100644 index 00000000..02fe5e93 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/query_pb.ts @@ -0,0 +1,152 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/query.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Minter } from "./minter_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.mint.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.mint.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.mint.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.QueryMinterRequest + */ +export class QueryMinterRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.QueryMinterRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinterRequest { + return new QueryMinterRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinterRequest { + return new QueryMinterRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinterRequest { + return new QueryMinterRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinterRequest | PlainMessage | undefined, b: QueryMinterRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinterRequest, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.QueryMinterResponse + */ +export class QueryMinterResponse extends Message { + /** + * @generated from field: pryzm.mint.v1.Minter minter = 1; + */ + minter?: Minter; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.QueryMinterResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "minter", kind: "message", T: Minter }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMinterResponse { + return new QueryMinterResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMinterResponse { + return new QueryMinterResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryMinterResponse { + return new QueryMinterResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryMinterResponse | PlainMessage | undefined, b: QueryMinterResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryMinterResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/mint/v1/tx_cosmes.ts b/src/protobufs/pryzm/mint/v1/tx_cosmes.ts new file mode 100644 index 00000000..a30c7efa --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/tx_cosmes.ts @@ -0,0 +1,31 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/mint/v1/tx.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDappAccountSpend, MsgDappAccountSpendResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.mint.v1.Msg"; + +/** + * @generated from rpc pryzm.mint.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.mint.v1.Msg.DappAccountSpend + */ +export const MsgDappAccountSpendService = { + typeName: TYPE_NAME, + method: "DappAccountSpend", + Request: MsgDappAccountSpend, + Response: MsgDappAccountSpendResponse, +} as const; + diff --git a/src/protobufs/pryzm/mint/v1/tx_pb.ts b/src/protobufs/pryzm/mint/v1/tx_pb.ts new file mode 100644 index 00000000..303b53b6 --- /dev/null +++ b/src/protobufs/pryzm/mint/v1/tx_pb.ts @@ -0,0 +1,176 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/mint/v1/tx.proto (package pryzm.mint.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.mint.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.mint.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.MsgDappAccountSpend + */ +export class MsgDappAccountSpend extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: string title = 2; + */ + title = ""; + + /** + * @generated from field: string description = 3; + */ + description = ""; + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 5; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.MsgDappAccountSpend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDappAccountSpend { + return new MsgDappAccountSpend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDappAccountSpend { + return new MsgDappAccountSpend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDappAccountSpend { + return new MsgDappAccountSpend().fromJsonString(jsonString, options); + } + + static equals(a: MsgDappAccountSpend | PlainMessage | undefined, b: MsgDappAccountSpend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDappAccountSpend, a, b); + } +} + +/** + * @generated from message pryzm.mint.v1.MsgDappAccountSpendResponse + */ +export class MsgDappAccountSpendResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.mint.v1.MsgDappAccountSpendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDappAccountSpendResponse { + return new MsgDappAccountSpendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDappAccountSpendResponse { + return new MsgDappAccountSpendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDappAccountSpendResponse { + return new MsgDappAccountSpendResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDappAccountSpendResponse | PlainMessage | undefined, b: MsgDappAccountSpendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDappAccountSpendResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/event_pb.ts b/src/protobufs/pryzm/pgov/v1/event_pb.ts new file mode 100644 index 00000000..cc3afa11 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/event_pb.ts @@ -0,0 +1,497 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/event.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Proposal } from "./proposal_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Vote } from "./vote_pb.js"; + +/** + * @generated from message pryzm.pgov.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.pgov.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventSetProposal + */ +export class EventSetProposal extends Message { + /** + * @generated from field: pryzm.pgov.v1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventSetProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetProposal { + return new EventSetProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetProposal { + return new EventSetProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetProposal { + return new EventSetProposal().fromJsonString(jsonString, options); + } + + static equals(a: EventSetProposal | PlainMessage | undefined, b: EventSetProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetProposal, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventPAssetStake + */ +export class EventPAssetStake extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + /** + * @generated from field: string total_staked_p_asset = 4; + */ + totalStakedPAsset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventPAssetStake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "total_staked_p_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPAssetStake { + return new EventPAssetStake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPAssetStake { + return new EventPAssetStake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPAssetStake { + return new EventPAssetStake().fromJsonString(jsonString, options); + } + + static equals(a: EventPAssetStake | PlainMessage | undefined, b: EventPAssetStake | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPAssetStake, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventPAssetUnstake + */ +export class EventPAssetUnstake extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + /** + * @generated from field: string total_staked_p_asset = 4; + */ + totalStakedPAsset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventPAssetUnstake"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 4, name: "total_staked_p_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventPAssetUnstake { + return new EventPAssetUnstake().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventPAssetUnstake { + return new EventPAssetUnstake().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventPAssetUnstake { + return new EventPAssetUnstake().fromJsonString(jsonString, options); + } + + static equals(a: EventPAssetUnstake | PlainMessage | undefined, b: EventPAssetUnstake | PlainMessage | undefined): boolean { + return proto3.util.equals(EventPAssetUnstake, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteSubmit + */ +export class EventVoteSubmit extends Message { + /** + * @generated from field: pryzm.pgov.v1.Vote vote = 1; + */ + vote?: Vote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteSubmit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteSubmit { + return new EventVoteSubmit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteSubmit { + return new EventVoteSubmit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteSubmit { + return new EventVoteSubmit().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteSubmit | PlainMessage | undefined, b: EventVoteSubmit | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteSubmit, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventProposalEnd + */ +export class EventProposalEnd extends Message { + /** + * @generated from field: pryzm.pgov.v1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventProposalEnd"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventProposalEnd { + return new EventProposalEnd().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventProposalEnd { + return new EventProposalEnd().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventProposalEnd { + return new EventProposalEnd().fromJsonString(jsonString, options); + } + + static equals(a: EventProposalEnd | PlainMessage | undefined, b: EventProposalEnd | PlainMessage | undefined): boolean { + return proto3.util.equals(EventProposalEnd, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteTransmit + */ +export class EventVoteTransmit extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteTransmit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteTransmit { + return new EventVoteTransmit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteTransmit { + return new EventVoteTransmit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteTransmit { + return new EventVoteTransmit().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteTransmit | PlainMessage | undefined, b: EventVoteTransmit | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteTransmit, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteTransmitFailure + */ +export class EventVoteTransmitFailure extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: string error = 3; + */ + error = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteTransmitFailure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteTransmitFailure { + return new EventVoteTransmitFailure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteTransmitFailure { + return new EventVoteTransmitFailure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteTransmitFailure { + return new EventVoteTransmitFailure().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteTransmitFailure | PlainMessage | undefined, b: EventVoteTransmitFailure | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteTransmitFailure, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteAckSuccess + */ +export class EventVoteAckSuccess extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteAckSuccess"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteAckSuccess { + return new EventVoteAckSuccess().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteAckSuccess { + return new EventVoteAckSuccess().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteAckSuccess { + return new EventVoteAckSuccess().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteAckSuccess | PlainMessage | undefined, b: EventVoteAckSuccess | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteAckSuccess, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteAckFailure + */ +export class EventVoteAckFailure extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: string error = 3; + */ + error = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteAckFailure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteAckFailure { + return new EventVoteAckFailure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteAckFailure { + return new EventVoteAckFailure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteAckFailure { + return new EventVoteAckFailure().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteAckFailure | PlainMessage | undefined, b: EventVoteAckFailure | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteAckFailure, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.EventVoteTimeout + */ +export class EventVoteTimeout extends Message { + /** + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.EventVoteTimeout"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteTimeout { + return new EventVoteTimeout().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteTimeout { + return new EventVoteTimeout().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteTimeout { + return new EventVoteTimeout().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteTimeout | PlainMessage | undefined, b: EventVoteTimeout | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteTimeout, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/genesis_pb.ts b/src/protobufs/pryzm/pgov/v1/genesis_pb.ts new file mode 100644 index 00000000..cddc7744 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/genesis_pb.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/genesis.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { StakedPAsset } from "./staked_p_asset_pb.js"; +import { Proposal } from "./proposal_pb.js"; +import { Vote } from "./vote_pb.js"; + +/** + * GenesisState defines the pgov module's genesis state. + * + * @generated from message pryzm.pgov.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.pgov.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated pryzm.pgov.v1.StakedPAsset staked_p_asset_list = 2; + */ + stakedPAssetList: StakedPAsset[] = []; + + /** + * @generated from field: repeated pryzm.pgov.v1.Proposal proposal_list = 3; + */ + proposalList: Proposal[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated pryzm.pgov.v1.Vote vote_list = 4; + */ + voteList: Vote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "staked_p_asset_list", kind: "message", T: StakedPAsset, repeated: true }, + { no: 3, name: "proposal_list", kind: "message", T: Proposal, repeated: true }, + { no: 4, name: "vote_list", kind: "message", T: Vote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/params_pb.ts b/src/protobufs/pryzm/pgov/v1/params_pb.ts new file mode 100644 index 00000000..600156c4 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/params_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/params.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.pgov.v1.Params + */ +export class Params extends Message { + /** + * (Host chain proposal end time) - (Pryzm proposal end time) + * + * @generated from field: google.protobuf.Duration voting_result_submission_window = 1; + */ + votingResultSubmissionWindow?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voting_result_submission_window", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/proposal_pb.ts b/src/protobufs/pryzm/pgov/v1/proposal_pb.ts new file mode 100644 index 00000000..d481fc6f --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/proposal_pb.ts @@ -0,0 +1,122 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/proposal.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { WeightedVoteOption } from "../../../cosmos/gov/v1/gov_pb.js"; + +/** + * @generated from enum pryzm.pgov.v1.ProposalStatus + */ +export enum ProposalStatus { + /** + * @generated from enum value: ACTIVE = 0; + */ + ACTIVE = 0, + + /** + * @generated from enum value: SUBMITTING = 1; + */ + SUBMITTING = 1, + + /** + * @generated from enum value: SUBMITTED = 2; + */ + SUBMITTED = 2, + + /** + * @generated from enum value: FAILED = 3; + */ + FAILED = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) +proto3.util.setEnumType(ProposalStatus, "pryzm.pgov.v1.ProposalStatus", [ + { no: 0, name: "ACTIVE" }, + { no: 1, name: "SUBMITTING" }, + { no: 2, name: "SUBMITTED" }, + { no: 3, name: "FAILED" }, +]); + +/** + * Proposal stores information about a replicated proposal + * + * @generated from message pryzm.pgov.v1.Proposal + */ +export class Proposal extends Message { + /** + * the id of proposal on the host chain + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * the asset ID + * + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * the time when the proposal has been started + * + * @generated from field: google.protobuf.Timestamp start_time = 3; + */ + startTime?: Timestamp; + + /** + * the time of proposal ending on PRYZM, this time is sooner than the real end time of proposal on the host chain + * + * @generated from field: google.protobuf.Timestamp end_time = 4; + */ + endTime?: Timestamp; + + /** + * the final aggregation of votes on PRYZM, which is submitted to the host chain + * + * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption final_vote = 5; + */ + finalVote: WeightedVoteOption[] = []; + + /** + * the state of the proposal + * + * @generated from field: pryzm.pgov.v1.ProposalStatus status = 6; + */ + status = ProposalStatus.ACTIVE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.Proposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "message", T: Timestamp }, + { no: 4, name: "end_time", kind: "message", T: Timestamp }, + { no: 5, name: "final_vote", kind: "message", T: WeightedVoteOption, repeated: true }, + { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { + return new Proposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { + return new Proposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Proposal { + return new Proposal().fromJsonString(jsonString, options); + } + + static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { + return proto3.util.equals(Proposal, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/query_cosmes.ts b/src/protobufs/pryzm/pgov/v1/query_cosmes.ts new file mode 100644 index 00000000..5bea6132 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/query_cosmes.ts @@ -0,0 +1,125 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/query.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllProposalRequest, QueryAllProposalResponse, QueryAllStakedPAssetRequest, QueryAllStakedPAssetResponse, QueryAllTotalStakedPAssetRequest, QueryAllTotalStakedPAssetResponse, QueryAllVoteRequest, QueryAllVoteResponse, QueryGetProposalRequest, QueryGetProposalResponse, QueryGetStakedPAssetRequest, QueryGetStakedPAssetResponse, QueryGetTotalStakedPAssetRequest, QueryGetTotalStakedPAssetResponse, QueryGetVoteRequest, QueryGetVoteResponse, QueryParamsRequest, QueryParamsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.pgov.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.pgov.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a StakedPAsset by index. + * + * @generated from rpc pryzm.pgov.v1.Query.StakedPAsset + */ +export const QueryStakedPAssetService = { + typeName: TYPE_NAME, + method: "StakedPAsset", + Request: QueryGetStakedPAssetRequest, + Response: QueryGetStakedPAssetResponse, +} as const; + +/** + * Queries a list of StakedPAsset items. + * + * @generated from rpc pryzm.pgov.v1.Query.StakedPAssetAll + */ +export const QueryStakedPAssetAllService = { + typeName: TYPE_NAME, + method: "StakedPAssetAll", + Request: QueryAllStakedPAssetRequest, + Response: QueryAllStakedPAssetResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Query.TotalStakedPAsset + */ +export const QueryTotalStakedPAssetService = { + typeName: TYPE_NAME, + method: "TotalStakedPAsset", + Request: QueryGetTotalStakedPAssetRequest, + Response: QueryGetTotalStakedPAssetResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Query.TotalStakedPAssetAll + */ +export const QueryTotalStakedPAssetAllService = { + typeName: TYPE_NAME, + method: "TotalStakedPAssetAll", + Request: QueryAllTotalStakedPAssetRequest, + Response: QueryAllTotalStakedPAssetResponse, +} as const; + +/** + * Queries a Vote by index. + * + * @generated from rpc pryzm.pgov.v1.Query.Vote + */ +export const QueryVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: QueryGetVoteRequest, + Response: QueryGetVoteResponse, +} as const; + +/** + * Queries a list of Vote items. + * + * @generated from rpc pryzm.pgov.v1.Query.VoteAll + */ +export const QueryVoteAllService = { + typeName: TYPE_NAME, + method: "VoteAll", + Request: QueryAllVoteRequest, + Response: QueryAllVoteResponse, +} as const; + +/** + * Queries a Proposal by index. + * + * @generated from rpc pryzm.pgov.v1.Query.Proposal + */ +export const QueryProposalService = { + typeName: TYPE_NAME, + method: "Proposal", + Request: QueryGetProposalRequest, + Response: QueryGetProposalResponse, +} as const; + +/** + * Queries a list of Proposal items. + * + * @generated from rpc pryzm.pgov.v1.Query.ProposalAll + */ +export const QueryProposalAllService = { + typeName: TYPE_NAME, + method: "ProposalAll", + Request: QueryAllProposalRequest, + Response: QueryAllProposalResponse, +} as const; + +/** + * Queries a list of Proposal items. + * + * @generated from rpc pryzm.pgov.v1.Query.TallyResult + */ +export const QueryTallyResultService = { + typeName: TYPE_NAME, + method: "TallyResult", + Request: QueryTallyResultRequest, + Response: QueryTallyResultResponse, +} as const; + diff --git a/src/protobufs/pryzm/pgov/v1/query_pb.ts b/src/protobufs/pryzm/pgov/v1/query_pb.ts new file mode 100644 index 00000000..eb690ea6 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/query_pb.ts @@ -0,0 +1,844 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/query.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { StakedPAsset, TotalStakedPAsset } from "./staked_p_asset_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Vote } from "./vote_pb.js"; +import { Proposal } from "./proposal_pb.js"; +import { WeightedVoteOption } from "../../../cosmos/gov/v1/gov_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.pgov.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.pgov.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.pgov.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetStakedPAssetRequest + */ +export class QueryGetStakedPAssetRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string p_asset = 2; + */ + pAsset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetStakedPAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "p_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetStakedPAssetRequest { + return new QueryGetStakedPAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetStakedPAssetRequest { + return new QueryGetStakedPAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetStakedPAssetRequest { + return new QueryGetStakedPAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetStakedPAssetRequest | PlainMessage | undefined, b: QueryGetStakedPAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetStakedPAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetStakedPAssetResponse + */ +export class QueryGetStakedPAssetResponse extends Message { + /** + * @generated from field: pryzm.pgov.v1.StakedPAsset staked_p_asset = 1; + */ + stakedPAsset?: StakedPAsset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetStakedPAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staked_p_asset", kind: "message", T: StakedPAsset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetStakedPAssetResponse { + return new QueryGetStakedPAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetStakedPAssetResponse { + return new QueryGetStakedPAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetStakedPAssetResponse { + return new QueryGetStakedPAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetStakedPAssetResponse | PlainMessage | undefined, b: QueryGetStakedPAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetStakedPAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllStakedPAssetRequest + */ +export class QueryAllStakedPAssetRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllStakedPAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllStakedPAssetRequest { + return new QueryAllStakedPAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllStakedPAssetRequest { + return new QueryAllStakedPAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllStakedPAssetRequest { + return new QueryAllStakedPAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllStakedPAssetRequest | PlainMessage | undefined, b: QueryAllStakedPAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllStakedPAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllStakedPAssetResponse + */ +export class QueryAllStakedPAssetResponse extends Message { + /** + * @generated from field: repeated pryzm.pgov.v1.StakedPAsset staked_p_asset = 1; + */ + stakedPAsset: StakedPAsset[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllStakedPAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "staked_p_asset", kind: "message", T: StakedPAsset, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllStakedPAssetResponse { + return new QueryAllStakedPAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllStakedPAssetResponse { + return new QueryAllStakedPAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllStakedPAssetResponse { + return new QueryAllStakedPAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllStakedPAssetResponse | PlainMessage | undefined, b: QueryAllStakedPAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllStakedPAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllTotalStakedPAssetRequest + */ +export class QueryAllTotalStakedPAssetRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllTotalStakedPAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTotalStakedPAssetRequest { + return new QueryAllTotalStakedPAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTotalStakedPAssetRequest { + return new QueryAllTotalStakedPAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTotalStakedPAssetRequest { + return new QueryAllTotalStakedPAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTotalStakedPAssetRequest | PlainMessage | undefined, b: QueryAllTotalStakedPAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTotalStakedPAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllTotalStakedPAssetResponse + */ +export class QueryAllTotalStakedPAssetResponse extends Message { + /** + * @generated from field: repeated pryzm.pgov.v1.TotalStakedPAsset total_staked_p_asset = 1; + */ + totalStakedPAsset: TotalStakedPAsset[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllTotalStakedPAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_staked_p_asset", kind: "message", T: TotalStakedPAsset, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllTotalStakedPAssetResponse { + return new QueryAllTotalStakedPAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllTotalStakedPAssetResponse { + return new QueryAllTotalStakedPAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllTotalStakedPAssetResponse { + return new QueryAllTotalStakedPAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllTotalStakedPAssetResponse | PlainMessage | undefined, b: QueryAllTotalStakedPAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllTotalStakedPAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetTotalStakedPAssetRequest + */ +export class QueryGetTotalStakedPAssetRequest extends Message { + /** + * @generated from field: string account = 1; + */ + account = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetTotalStakedPAssetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTotalStakedPAssetRequest { + return new QueryGetTotalStakedPAssetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTotalStakedPAssetRequest { + return new QueryGetTotalStakedPAssetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTotalStakedPAssetRequest { + return new QueryGetTotalStakedPAssetRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetTotalStakedPAssetRequest | PlainMessage | undefined, b: QueryGetTotalStakedPAssetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetTotalStakedPAssetRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetTotalStakedPAssetResponse + */ +export class QueryGetTotalStakedPAssetResponse extends Message { + /** + * @generated from field: pryzm.pgov.v1.TotalStakedPAsset total_staked_p_asset = 1; + */ + totalStakedPAsset?: TotalStakedPAsset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetTotalStakedPAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_staked_p_asset", kind: "message", T: TotalStakedPAsset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTotalStakedPAssetResponse { + return new QueryGetTotalStakedPAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTotalStakedPAssetResponse { + return new QueryGetTotalStakedPAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTotalStakedPAssetResponse { + return new QueryGetTotalStakedPAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetTotalStakedPAssetResponse | PlainMessage | undefined, b: QueryGetTotalStakedPAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetTotalStakedPAssetResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetVoteRequest + */ +export class QueryGetVoteRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 2; + */ + proposal = protoInt64.zero; + + /** + * @generated from field: string voter = 3; + */ + voter = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetVoteRequest { + return new QueryGetVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetVoteRequest { + return new QueryGetVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetVoteRequest { + return new QueryGetVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetVoteRequest | PlainMessage | undefined, b: QueryGetVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetVoteRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetVoteResponse + */ +export class QueryGetVoteResponse extends Message { + /** + * @generated from field: pryzm.pgov.v1.Vote vote = 1; + */ + vote?: Vote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetVoteResponse { + return new QueryGetVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetVoteResponse { + return new QueryGetVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetVoteResponse { + return new QueryGetVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetVoteResponse | PlainMessage | undefined, b: QueryGetVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetVoteResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllVoteRequest + */ +export class QueryAllVoteRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 2; + */ + proposal = protoInt64.zero; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllVoteRequest { + return new QueryAllVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllVoteRequest { + return new QueryAllVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllVoteRequest { + return new QueryAllVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllVoteRequest | PlainMessage | undefined, b: QueryAllVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllVoteRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllVoteResponse + */ +export class QueryAllVoteResponse extends Message { + /** + * @generated from field: repeated pryzm.pgov.v1.Vote vote = 1; + */ + vote: Vote[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllVoteResponse { + return new QueryAllVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllVoteResponse { + return new QueryAllVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllVoteResponse { + return new QueryAllVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllVoteResponse | PlainMessage | undefined, b: QueryAllVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllVoteResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetProposalRequest + */ +export class QueryGetProposalRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal_id = 2; + */ + proposalId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetProposalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProposalRequest { + return new QueryGetProposalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProposalRequest { + return new QueryGetProposalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetProposalRequest { + return new QueryGetProposalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetProposalRequest | PlainMessage | undefined, b: QueryGetProposalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetProposalRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryGetProposalResponse + */ +export class QueryGetProposalResponse extends Message { + /** + * @generated from field: pryzm.pgov.v1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryGetProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProposalResponse { + return new QueryGetProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProposalResponse { + return new QueryGetProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetProposalResponse { + return new QueryGetProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetProposalResponse | PlainMessage | undefined, b: QueryGetProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetProposalResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllProposalRequest + */ +export class QueryAllProposalRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllProposalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllProposalRequest { + return new QueryAllProposalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllProposalRequest { + return new QueryAllProposalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllProposalRequest { + return new QueryAllProposalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllProposalRequest | PlainMessage | undefined, b: QueryAllProposalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllProposalRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryAllProposalResponse + */ +export class QueryAllProposalResponse extends Message { + /** + * @generated from field: repeated pryzm.pgov.v1.Proposal proposal = 1; + */ + proposal: Proposal[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryAllProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllProposalResponse { + return new QueryAllProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllProposalResponse { + return new QueryAllProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllProposalResponse { + return new QueryAllProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllProposalResponse | PlainMessage | undefined, b: QueryAllProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllProposalResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryTallyResultRequest + */ +export class QueryTallyResultRequest extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 2; + */ + proposal = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryTallyResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultRequest, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.QueryTallyResultResponse + */ +export class QueryTallyResultResponse extends Message { + /** + * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption options = 1; + */ + options: WeightedVoteOption[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.QueryTallyResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/reply_pb.ts b/src/protobufs/pryzm/pgov/v1/reply_pb.ts new file mode 100644 index 00000000..6f5c6e45 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/reply_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/reply.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * the reply data used in the VoteBridge + * + * @generated from message pryzm.pgov.v1.VoteReplyData + */ +export class VoteReplyData extends Message { + /** + * the id of proposal on the host chain + * + * @generated from field: uint64 proposal_id = 1; + */ + proposalId = protoInt64.zero; + + /** + * the asset ID + * + * @generated from field: string asset = 2; + */ + asset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.VoteReplyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VoteReplyData { + return new VoteReplyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VoteReplyData { + return new VoteReplyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VoteReplyData { + return new VoteReplyData().fromJsonString(jsonString, options); + } + + static equals(a: VoteReplyData | PlainMessage | undefined, b: VoteReplyData | PlainMessage | undefined): boolean { + return proto3.util.equals(VoteReplyData, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/staked_p_asset_pb.ts b/src/protobufs/pryzm/pgov/v1/staked_p_asset_pb.ts new file mode 100644 index 00000000..e7a3ca12 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/staked_p_asset_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/staked_p_asset.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * StakedPAsset stores the amount of pAssets staked for an account + * + * @generated from message pryzm.pgov.v1.StakedPAsset + */ +export class StakedPAsset extends Message { + /** + * the address of owner + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * pAsset denom + * + * @generated from field: string p_asset = 2; + */ + pAsset = ""; + + /** + * staked amount + * + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.StakedPAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "p_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StakedPAsset { + return new StakedPAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StakedPAsset { + return new StakedPAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StakedPAsset { + return new StakedPAsset().fromJsonString(jsonString, options); + } + + static equals(a: StakedPAsset | PlainMessage | undefined, b: StakedPAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(StakedPAsset, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.TotalStakedPAsset + */ +export class TotalStakedPAsset extends Message { + /** + * the address of owner + * + * @generated from field: string account = 1; + */ + account = ""; + + /** + * asset denom + * + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * staked amount + * + * @generated from field: string amount = 3; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.TotalStakedPAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalStakedPAsset { + return new TotalStakedPAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalStakedPAsset { + return new TotalStakedPAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TotalStakedPAsset { + return new TotalStakedPAsset().fromJsonString(jsonString, options); + } + + static equals(a: TotalStakedPAsset | PlainMessage | undefined, b: TotalStakedPAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(TotalStakedPAsset, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/tx_cosmes.ts b/src/protobufs/pryzm/pgov/v1/tx_cosmes.ts new file mode 100644 index 00000000..dc033201 --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/tx_cosmes.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/tx.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgRetryVoteTransmit, MsgRetryVoteTransmitResponse, MsgStakePAssets, MsgStakePAssetsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgSubmitVote, MsgSubmitVoteResponse, MsgUnstakePAssets, MsgUnstakePAssetsResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.pgov.v1.Msg"; + +/** + * @generated from rpc pryzm.pgov.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Msg.StakePAssets + */ +export const MsgStakePAssetsService = { + typeName: TYPE_NAME, + method: "StakePAssets", + Request: MsgStakePAssets, + Response: MsgStakePAssetsResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Msg.UnstakePAssets + */ +export const MsgUnstakePAssetsService = { + typeName: TYPE_NAME, + method: "UnstakePAssets", + Request: MsgUnstakePAssets, + Response: MsgUnstakePAssetsResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Msg.SubmitVote + */ +export const MsgSubmitVoteService = { + typeName: TYPE_NAME, + method: "SubmitVote", + Request: MsgSubmitVote, + Response: MsgSubmitVoteResponse, +} as const; + +/** + * @generated from rpc pryzm.pgov.v1.Msg.SubmitProposal + */ +export const MsgSubmitProposalService = { + typeName: TYPE_NAME, + method: "SubmitProposal", + Request: MsgSubmitProposal, + Response: MsgSubmitProposalResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.pgov.v1.Msg.RetryVoteTransmit + */ +export const MsgRetryVoteTransmitService = { + typeName: TYPE_NAME, + method: "RetryVoteTransmit", + Request: MsgRetryVoteTransmit, + Response: MsgRetryVoteTransmitResponse, +} as const; + diff --git a/src/protobufs/pryzm/pgov/v1/tx_pb.ts b/src/protobufs/pryzm/pgov/v1/tx_pb.ts new file mode 100644 index 00000000..ea6dd2da --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/tx_pb.ts @@ -0,0 +1,511 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/tx.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { WeightedVoteOption } from "../../../cosmos/gov/v1/gov_pb.js"; +import { Height } from "../../../ibc/core/client/v1/client_pb.js"; +import { Proposal } from "./proposal_pb.js"; + +/** + * @generated from message pryzm.pgov.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.pgov.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgStakePAssets + */ +export class MsgStakePAssets extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgStakePAssets"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakePAssets { + return new MsgStakePAssets().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakePAssets { + return new MsgStakePAssets().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakePAssets { + return new MsgStakePAssets().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakePAssets | PlainMessage | undefined, b: MsgStakePAssets | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakePAssets, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgStakePAssetsResponse + */ +export class MsgStakePAssetsResponse extends Message { + /** + * @generated from field: string total_staked_p_assets = 1; + */ + totalStakedPAssets = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgStakePAssetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_staked_p_assets", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStakePAssetsResponse { + return new MsgStakePAssetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStakePAssetsResponse { + return new MsgStakePAssetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStakePAssetsResponse { + return new MsgStakePAssetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStakePAssetsResponse | PlainMessage | undefined, b: MsgStakePAssetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStakePAssetsResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgUnstakePAssets + */ +export class MsgUnstakePAssets extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgUnstakePAssets"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstakePAssets { + return new MsgUnstakePAssets().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstakePAssets { + return new MsgUnstakePAssets().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstakePAssets { + return new MsgUnstakePAssets().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstakePAssets | PlainMessage | undefined, b: MsgUnstakePAssets | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstakePAssets, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgUnstakePAssetsResponse + */ +export class MsgUnstakePAssetsResponse extends Message { + /** + * @generated from field: string total_staked_p_assets = 1; + */ + totalStakedPAssets = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgUnstakePAssetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_staked_p_assets", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnstakePAssetsResponse { + return new MsgUnstakePAssetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnstakePAssetsResponse { + return new MsgUnstakePAssetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnstakePAssetsResponse { + return new MsgUnstakePAssetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnstakePAssetsResponse | PlainMessage | undefined, b: MsgUnstakePAssetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnstakePAssetsResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgSubmitVote + */ +export class MsgSubmitVote extends Message { + /** + * @generated from field: string voter = 1; + */ + voter = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 3; + */ + proposal = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption options = 4; + */ + options: WeightedVoteOption[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgSubmitVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitVote { + return new MsgSubmitVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitVote { + return new MsgSubmitVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitVote { + return new MsgSubmitVote().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitVote | PlainMessage | undefined, b: MsgSubmitVote | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitVote, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgSubmitVoteResponse + */ +export class MsgSubmitVoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgSubmitVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitVoteResponse { + return new MsgSubmitVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitVoteResponse { + return new MsgSubmitVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitVoteResponse { + return new MsgSubmitVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitVoteResponse | PlainMessage | undefined, b: MsgSubmitVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitVoteResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgSubmitProposal + */ +export class MsgSubmitProposal extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: bytes proposal = 3; + */ + proposal = new Uint8Array(0); + + /** + * @generated from field: ibc.core.client.v1.Height height = 4; + */ + height?: Height; + + /** + * @generated from field: bytes proof = 5; + */ + proof = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgSubmitProposal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proposal", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "height", kind: "message", T: Height }, + { no: 5, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { + return new MsgSubmitProposal().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposal, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgSubmitProposalResponse + */ +export class MsgSubmitProposalResponse extends Message { + /** + * @generated from field: pryzm.pgov.v1.Proposal proposal = 1; + */ + proposal?: Proposal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgSubmitProposalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proposal", kind: "message", T: Proposal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { + return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitProposalResponse, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgRetryVoteTransmit + */ +export class MsgRetryVoteTransmit extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string asset = 2; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 3; + */ + proposal = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgRetryVoteTransmit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRetryVoteTransmit { + return new MsgRetryVoteTransmit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRetryVoteTransmit { + return new MsgRetryVoteTransmit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRetryVoteTransmit { + return new MsgRetryVoteTransmit().fromJsonString(jsonString, options); + } + + static equals(a: MsgRetryVoteTransmit | PlainMessage | undefined, b: MsgRetryVoteTransmit | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRetryVoteTransmit, a, b); + } +} + +/** + * @generated from message pryzm.pgov.v1.MsgRetryVoteTransmitResponse + */ +export class MsgRetryVoteTransmitResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.MsgRetryVoteTransmitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRetryVoteTransmitResponse { + return new MsgRetryVoteTransmitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRetryVoteTransmitResponse { + return new MsgRetryVoteTransmitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRetryVoteTransmitResponse { + return new MsgRetryVoteTransmitResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRetryVoteTransmitResponse | PlainMessage | undefined, b: MsgRetryVoteTransmitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRetryVoteTransmitResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/pgov/v1/vote_pb.ts b/src/protobufs/pryzm/pgov/v1/vote_pb.ts new file mode 100644 index 00000000..5a3f2b0a --- /dev/null +++ b/src/protobufs/pryzm/pgov/v1/vote_pb.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/pgov/v1/vote.proto (package pryzm.pgov.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { WeightedVoteOption } from "../../../cosmos/gov/v1/gov_pb.js"; + +/** + * Vote stores the information for a user's vote for a proposal + * + * @generated from message pryzm.pgov.v1.Vote + */ +export class Vote extends Message { + /** + * @generated from field: string asset = 1; + */ + asset = ""; + + /** + * @generated from field: uint64 proposal = 2; + */ + proposal = protoInt64.zero; + + /** + * @generated from field: string voter = 3; + */ + voter = ""; + + /** + * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption options = 4; + */ + options: WeightedVoteOption[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.pgov.v1.Vote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "proposal", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vote { + return new Vote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vote { + return new Vote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vote { + return new Vote().fromJsonString(jsonString, options); + } + + static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { + return proto3.util.equals(Vote, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/asset_state_pb.ts b/src/protobufs/pryzm/refractor/v1/asset_state_pb.ts new file mode 100644 index 00000000..527de303 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/asset_state_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/asset_state.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.refractor.v1.AssetState + */ +export class AssetState extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * deprecated: replaced by total_redeemable_underlying, for delisted assets this will not be a + * correct representation of the redeemable underlying assets + * + * @generated from field: string total_p_amount = 2 [deprecated = true]; + * @deprecated + */ + totalPAmount = ""; + + /** + * @generated from field: string last_seen_exchange_rate = 3; + */ + lastSeenExchangeRate = ""; + + /** + * @generated from field: bool delisted = 4; + */ + delisted = false; + + /** + * this is the total number of pASSET tokens for a refractable asset, however, for delisted assets + * since we allow redemption using yASSETs as well as pASSETS, we won't always have equal number of p/y tokens, + * in that case, this would be a weighted sum of total p, and y tokens. + * + * @generated from field: string total_redeemable_underlying = 5; + */ + totalRedeemableUnderlying = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.AssetState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_p_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "last_seen_exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "delisted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "total_redeemable_underlying", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetState { + return new AssetState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetState { + return new AssetState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetState { + return new AssetState().fromJsonString(jsonString, options); + } + + static equals(a: AssetState | PlainMessage | undefined, b: AssetState | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetState, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/event_pb.ts b/src/protobufs/pryzm/refractor/v1/event_pb.ts new file mode 100644 index 00000000..da712dfa --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/event_pb.ts @@ -0,0 +1,279 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/event.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AssetState } from "./asset_state_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message pryzm.refractor.v1.EventRefract + */ +export class EventRefract extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string c_amount = 2; + */ + cAmount = ""; + + /** + * @generated from field: string maturity = 3; + */ + maturity = ""; + + /** + * @generated from field: string refracted_p_amount = 4; + */ + refractedPAmount = ""; + + /** + * @generated from field: string refracted_y_amount = 5; + */ + refractedYAmount = ""; + + /** + * @generated from field: string fee = 6; + */ + fee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.EventRefract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "refracted_p_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "refracted_y_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRefract { + return new EventRefract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRefract { + return new EventRefract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRefract { + return new EventRefract().fromJsonString(jsonString, options); + } + + static equals(a: EventRefract | PlainMessage | undefined, b: EventRefract | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRefract, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.EventRedeem + */ +export class EventRedeem extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string p_amount = 2; + */ + pAmount = ""; + + /** + * @generated from field: string y_amount = 3; + */ + yAmount = ""; + + /** + * @generated from field: string maturity = 4; + */ + maturity = ""; + + /** + * @generated from field: string redeemed_c_amount = 5; + */ + redeemedCAmount = ""; + + /** + * @generated from field: string fee = 6; + */ + fee = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.EventRedeem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "p_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "y_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "maturity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "redeemed_c_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRedeem { + return new EventRedeem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRedeem { + return new EventRedeem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRedeem { + return new EventRedeem().fromJsonString(jsonString, options); + } + + static equals(a: EventRedeem | PlainMessage | undefined, b: EventRedeem | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRedeem, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.EventRefractorYieldDistribution + */ +export class EventRefractorYieldDistribution extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string total_yield = 2; + */ + totalYield = ""; + + /** + * @generated from field: string protocol_fee = 3; + */ + protocolFee = ""; + + /** + * @generated from field: string stake_yield = 4; + */ + stakeYield = ""; + + /** + * @generated from field: string excess_yield = 5; + */ + excessYield = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.EventRefractorYieldDistribution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "total_yield", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "protocol_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "stake_yield", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "excess_yield", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRefractorYieldDistribution { + return new EventRefractorYieldDistribution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRefractorYieldDistribution { + return new EventRefractorYieldDistribution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRefractorYieldDistribution { + return new EventRefractorYieldDistribution().fromJsonString(jsonString, options); + } + + static equals(a: EventRefractorYieldDistribution | PlainMessage | undefined, b: EventRefractorYieldDistribution | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRefractorYieldDistribution, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.EventSetAssetState + */ +export class EventSetAssetState extends Message { + /** + * @generated from field: pryzm.refractor.v1.AssetState asset_state = 1; + */ + assetState?: AssetState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.EventSetAssetState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_state", kind: "message", T: AssetState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetAssetState { + return new EventSetAssetState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetAssetState { + return new EventSetAssetState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetAssetState { + return new EventSetAssetState().fromJsonString(jsonString, options); + } + + static equals(a: EventSetAssetState | PlainMessage | undefined, b: EventSetAssetState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetAssetState, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.refractor.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/genesis_pb.ts b/src/protobufs/pryzm/refractor/v1/genesis_pb.ts new file mode 100644 index 00000000..c71ac5a6 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/genesis.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AssetState } from "./asset_state_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the refractor module's genesis state. + * + * @generated from message pryzm.refractor.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated pryzm.refractor.v1.AssetState asset_state_list = 1; + */ + assetStateList: AssetState[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: pryzm.refractor.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_state_list", kind: "message", T: AssetState, repeated: true }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/params_pb.ts b/src/protobufs/pryzm/refractor/v1/params_pb.ts new file mode 100644 index 00000000..331af936 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/params_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/params.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.refractor.v1.Params + */ +export class Params extends Message { + /** + * the list of admin addresses, able to deposit cAssets to the refractor module + * + * @generated from field: repeated string admins = 1; + */ + admins: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/query_cosmes.ts b/src/protobufs/pryzm/refractor/v1/query_cosmes.ts new file mode 100644 index 00000000..3e012070 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/query_cosmes.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/query.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryGetAssetStateRequest, QueryGetAssetStateResponse, QueryGetCPExchangeRateRequest, QueryGetCPExchangeRateResponse, QueryParamsRequest, QueryParamsResponse, QuerySimulateRedeemRequest, QuerySimulateRedeemResponse, QuerySimulateRefractRequest, QuerySimulateRefractResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.refractor.v1.Query"; + +/** + * @generated from rpc pryzm.refractor.v1.Query.AssetState + */ +export const QueryAssetStateService = { + typeName: TYPE_NAME, + method: "AssetState", + Request: QueryGetAssetStateRequest, + Response: QueryGetAssetStateResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Query.CPExchangeRate + */ +export const QueryCPExchangeRateService = { + typeName: TYPE_NAME, + method: "CPExchangeRate", + Request: QueryGetCPExchangeRateRequest, + Response: QueryGetCPExchangeRateResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Query.SimulateRefract + */ +export const QuerySimulateRefractService = { + typeName: TYPE_NAME, + method: "SimulateRefract", + Request: QuerySimulateRefractRequest, + Response: QuerySimulateRefractResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Query.SimulateRedeem + */ +export const QuerySimulateRedeemService = { + typeName: TYPE_NAME, + method: "SimulateRedeem", + Request: QuerySimulateRedeemRequest, + Response: QuerySimulateRedeemResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/pryzm/refractor/v1/query_pb.ts b/src/protobufs/pryzm/refractor/v1/query_pb.ts new file mode 100644 index 00000000..a27d1208 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/query_pb.ts @@ -0,0 +1,407 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/query.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AssetState } from "./asset_state_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message pryzm.refractor.v1.QueryGetAssetStateRequest + */ +export class QueryGetAssetStateRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryGetAssetStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetStateRequest { + return new QueryGetAssetStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetStateRequest { + return new QueryGetAssetStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetStateRequest { + return new QueryGetAssetStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetStateRequest | PlainMessage | undefined, b: QueryGetAssetStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QueryGetAssetStateResponse + */ +export class QueryGetAssetStateResponse extends Message { + /** + * @generated from field: pryzm.refractor.v1.AssetState asset_state = 1; + */ + assetState?: AssetState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryGetAssetStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_state", kind: "message", T: AssetState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetStateResponse { + return new QueryGetAssetStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetStateResponse { + return new QueryGetAssetStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetStateResponse { + return new QueryGetAssetStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetStateResponse | PlainMessage | undefined, b: QueryGetAssetStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QueryGetCPExchangeRateRequest + */ +export class QueryGetCPExchangeRateRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryGetCPExchangeRateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCPExchangeRateRequest { + return new QueryGetCPExchangeRateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCPExchangeRateRequest { + return new QueryGetCPExchangeRateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCPExchangeRateRequest { + return new QueryGetCPExchangeRateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetCPExchangeRateRequest | PlainMessage | undefined, b: QueryGetCPExchangeRateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetCPExchangeRateRequest, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QueryGetCPExchangeRateResponse + */ +export class QueryGetCPExchangeRateResponse extends Message { + /** + * @generated from field: string exchange_rate = 1; + */ + exchangeRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryGetCPExchangeRateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exchange_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCPExchangeRateResponse { + return new QueryGetCPExchangeRateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCPExchangeRateResponse { + return new QueryGetCPExchangeRateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCPExchangeRateResponse { + return new QueryGetCPExchangeRateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetCPExchangeRateResponse | PlainMessage | undefined, b: QueryGetCPExchangeRateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetCPExchangeRateResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QuerySimulateRefractRequest + */ +export class QuerySimulateRefractRequest extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + /** + * @generated from field: string maturity = 2; + */ + maturity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QuerySimulateRefractRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + { no: 2, name: "maturity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRefractRequest { + return new QuerySimulateRefractRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRefractRequest { + return new QuerySimulateRefractRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRefractRequest { + return new QuerySimulateRefractRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRefractRequest | PlainMessage | undefined, b: QuerySimulateRefractRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRefractRequest, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QuerySimulateRefractResponse + */ +export class QuerySimulateRefractResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin p_amount = 1; + */ + pAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin y_amount = 2; + */ + yAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QuerySimulateRefractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "p_amount", kind: "message", T: Coin }, + { no: 2, name: "y_amount", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRefractResponse { + return new QuerySimulateRefractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRefractResponse { + return new QuerySimulateRefractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRefractResponse { + return new QuerySimulateRefractResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRefractResponse | PlainMessage | undefined, b: QuerySimulateRefractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRefractResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QuerySimulateRedeemRequest + */ +export class QuerySimulateRedeemRequest extends Message { + /** + * set p_amount to zero coin if you want to redeem only y_amount (for delisted assets) + * + * @generated from field: cosmos.base.v1beta1.Coin p_amount = 1; + */ + pAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin y_amount = 2; + */ + yAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QuerySimulateRedeemRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "p_amount", kind: "message", T: Coin }, + { no: 2, name: "y_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRedeemRequest { + return new QuerySimulateRedeemRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRedeemRequest { + return new QuerySimulateRedeemRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRedeemRequest { + return new QuerySimulateRedeemRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRedeemRequest | PlainMessage | undefined, b: QuerySimulateRedeemRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRedeemRequest, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QuerySimulateRedeemResponse + */ +export class QuerySimulateRedeemResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 1; + */ + cAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QuerySimulateRedeemResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "c_amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySimulateRedeemResponse { + return new QuerySimulateRedeemResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySimulateRedeemResponse { + return new QuerySimulateRedeemResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySimulateRedeemResponse { + return new QuerySimulateRedeemResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySimulateRedeemResponse | PlainMessage | undefined, b: QuerySimulateRedeemResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySimulateRedeemResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * @generated from field: pryzm.refractor.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/refractor/v1/tx_cosmes.ts b/src/protobufs/pryzm/refractor/v1/tx_cosmes.ts new file mode 100644 index 00000000..c5250311 --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/tx_cosmes.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/tx.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgDepositCAsset, MsgDepositCAssetResponse, MsgRedeem, MsgRedeemResponse, MsgRefract, MsgRefractResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.refractor.v1.Msg"; + +/** + * @generated from rpc pryzm.refractor.v1.Msg.Refract + */ +export const MsgRefractService = { + typeName: TYPE_NAME, + method: "Refract", + Request: MsgRefract, + Response: MsgRefractResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Msg.Redeem + */ +export const MsgRedeemService = { + typeName: TYPE_NAME, + method: "Redeem", + Request: MsgRedeem, + Response: MsgRedeemResponse, +} as const; + +/** + * @generated from rpc pryzm.refractor.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.refractor.v1.Msg.DepositCAsset + */ +export const MsgDepositCAssetService = { + typeName: TYPE_NAME, + method: "DepositCAsset", + Request: MsgDepositCAsset, + Response: MsgDepositCAssetResponse, +} as const; + diff --git a/src/protobufs/pryzm/refractor/v1/tx_pb.ts b/src/protobufs/pryzm/refractor/v1/tx_pb.ts new file mode 100644 index 00000000..396d92ed --- /dev/null +++ b/src/protobufs/pryzm/refractor/v1/tx_pb.ts @@ -0,0 +1,350 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/refractor/v1/tx.proto (package pryzm.refractor.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message pryzm.refractor.v1.MsgRefract + */ +export class MsgRefract extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string maturity = 3; + */ + maturity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgRefract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "maturity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRefract { + return new MsgRefract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRefract { + return new MsgRefract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRefract { + return new MsgRefract().fromJsonString(jsonString, options); + } + + static equals(a: MsgRefract | PlainMessage | undefined, b: MsgRefract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRefract, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgRefractResponse + */ +export class MsgRefractResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin p_amount = 1; + */ + pAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin y_amount = 2; + */ + yAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgRefractResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "p_amount", kind: "message", T: Coin }, + { no: 2, name: "y_amount", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRefractResponse { + return new MsgRefractResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRefractResponse { + return new MsgRefractResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRefractResponse { + return new MsgRefractResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRefractResponse | PlainMessage | undefined, b: MsgRefractResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRefractResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgRedeem + */ +export class MsgRedeem extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * set p_amount to zero coin if you want to redeem only y_amount (for delisted assets) + * + * @generated from field: cosmos.base.v1beta1.Coin p_amount = 2; + */ + pAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin y_amount = 3; + */ + yAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgRedeem"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "p_amount", kind: "message", T: Coin }, + { no: 3, name: "y_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeem { + return new MsgRedeem().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeem { + return new MsgRedeem().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeem { + return new MsgRedeem().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeem | PlainMessage | undefined, b: MsgRedeem | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeem, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgRedeemResponse + */ +export class MsgRedeemResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin c_amount = 1; + */ + cAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgRedeemResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "c_amount", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedeemResponse { + return new MsgRedeemResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedeemResponse { + return new MsgRedeemResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRedeemResponse { + return new MsgRedeemResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRedeemResponse | PlainMessage | undefined, b: MsgRedeemResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRedeemResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.refractor.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgDepositCAsset + */ +export class MsgDepositCAsset extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin c_amount = 2; + */ + cAmount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgDepositCAsset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "c_amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositCAsset { + return new MsgDepositCAsset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositCAsset { + return new MsgDepositCAsset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositCAsset { + return new MsgDepositCAsset().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositCAsset | PlainMessage | undefined, b: MsgDepositCAsset | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositCAsset, a, b); + } +} + +/** + * @generated from message pryzm.refractor.v1.MsgDepositCAssetResponse + */ +export class MsgDepositCAssetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.refractor.v1.MsgDepositCAssetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositCAssetResponse { + return new MsgDepositCAssetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositCAssetResponse { + return new MsgDepositCAssetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDepositCAssetResponse { + return new MsgDepositCAssetResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDepositCAssetResponse | PlainMessage | undefined, b: MsgDepositCAssetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDepositCAssetResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/action_pb.ts b/src/protobufs/pryzm/treasury/v1/action_pb.ts new file mode 100644 index 00000000..3d47fbf3 --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/action_pb.ts @@ -0,0 +1,193 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/action.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * FeeType enumerates the valid types for feeType. + * + * @generated from enum pryzm.treasury.v1.ActionType + */ +export enum ActionType { + /** + * @generated from enum value: ACTION_TYPE_HOLD = 0; + */ + HOLD = 0, + + /** + * @generated from enum value: ACTION_TYPE_BURN = 1; + */ + BURN = 1, + + /** + * @generated from enum value: ACTION_TYPE_DISTRIBUTE_TO_STAKERS = 2; + */ + DISTRIBUTE_TO_STAKERS = 2, + + /** + * @generated from enum value: ACTION_TYPE_DISTRIBUTE_TO_COMMUNITY_POOL = 3; + */ + DISTRIBUTE_TO_COMMUNITY_POOL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(ActionType) +proto3.util.setEnumType(ActionType, "pryzm.treasury.v1.ActionType", [ + { no: 0, name: "ACTION_TYPE_HOLD" }, + { no: 1, name: "ACTION_TYPE_BURN" }, + { no: 2, name: "ACTION_TYPE_DISTRIBUTE_TO_STAKERS" }, + { no: 3, name: "ACTION_TYPE_DISTRIBUTE_TO_COMMUNITY_POOL" }, +]); + +/** + * @generated from message pryzm.treasury.v1.ActionFlowTradeSettings + */ +export class ActionFlowTradeSettings extends Message { + /** + * given the occurrence of an action, this is used to compute the start of the flow + * NOTE: the flowtrade library has a parameter for minimum start delay + * + * @generated from field: google.protobuf.Duration start_delay = 1; + */ + startDelay?: Duration; + + /** + * given the start of the flow, this is used to compute the end of the flow + * + * @generated from field: google.protobuf.Duration duration = 2; + */ + duration?: Duration; + + /** + * the interval in which the distribution index is updated and hence tokens are swapped + * if dist_interval is 0, the flow is updated every time in or out tokens are increased or decreased + * if dist_interval is equal to the duration of flow, it means that all of the tokens are swapped once after the flow ends + * + * @generated from field: google.protobuf.Duration dist_interval = 3; + */ + distInterval?: Duration; + + /** + * the minimum price for the token-out in terms of token-in. + * in each swap interval, if the calculated price is less than this limit, the swap doesn't happen in that turn + * + * @generated from field: string limit_price = 4; + */ + limitPrice = ""; + + /** + * the duration of the exit window before swap interval, in which users can only exit the flow and joining is not permitted + * this duration is used to protect joiners from buying the token-out with a higher price when someone joins with a huge amount of token-in + * + * @generated from field: google.protobuf.Duration exit_window_duration = 5; + */ + exitWindowDuration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.ActionFlowTradeSettings"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start_delay", kind: "message", T: Duration }, + { no: 2, name: "duration", kind: "message", T: Duration }, + { no: 3, name: "dist_interval", kind: "message", T: Duration }, + { no: 4, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "exit_window_duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActionFlowTradeSettings { + return new ActionFlowTradeSettings().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActionFlowTradeSettings { + return new ActionFlowTradeSettings().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActionFlowTradeSettings { + return new ActionFlowTradeSettings().fromJsonString(jsonString, options); + } + + static equals(a: ActionFlowTradeSettings | PlainMessage | undefined, b: ActionFlowTradeSettings | PlainMessage | undefined): boolean { + return proto3.util.equals(ActionFlowTradeSettings, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.Action + */ +export class Action extends Message { + /** + * @generated from field: pryzm.treasury.v1.ActionType action_type = 1; + */ + actionType = ActionType.HOLD; + + /** + * @generated from field: google.protobuf.Timestamp occurrence = 2; + */ + occurrence?: Timestamp; + + /** + * if expiration is not set, then the action will never expire and is executed forever unless gov decides to set another action. + * + * @generated from field: google.protobuf.Timestamp expiration = 3; + */ + expiration?: Timestamp; + + /** + * if period is nil, then the action is only executed at the first occurrence and then replaced with a HOLD/NOOP action. + * + * @generated from field: google.protobuf.Duration period = 4; + */ + period?: Duration; + + /** + * this is nil if the action is of type HOLD + * + * @generated from field: pryzm.treasury.v1.ActionFlowTradeSettings flow_trade_settings = 5; + */ + flowTradeSettings?: ActionFlowTradeSettings; + + /** + * denoms in this list will not be affected by the action + * + * @generated from field: repeated string excluded_denoms = 6; + */ + excludedDenoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.Action"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action_type", kind: "enum", T: proto3.getEnumType(ActionType) }, + { no: 2, name: "occurrence", kind: "message", T: Timestamp }, + { no: 3, name: "expiration", kind: "message", T: Timestamp }, + { no: 4, name: "period", kind: "message", T: Duration }, + { no: 5, name: "flow_trade_settings", kind: "message", T: ActionFlowTradeSettings }, + { no: 6, name: "excluded_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Action { + return new Action().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Action { + return new Action().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Action { + return new Action().fromJsonString(jsonString, options); + } + + static equals(a: Action | PlainMessage | undefined, b: Action | PlainMessage | undefined): boolean { + return proto3.util.equals(Action, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/event_pb.ts b/src/protobufs/pryzm/treasury/v1/event_pb.ts new file mode 100644 index 00000000..6ec3c92f --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/event_pb.ts @@ -0,0 +1,307 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/event.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Action, ActionType } from "./action_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { FlowTrade } from "./flow_trade_pb.js"; + +/** + * @generated from message pryzm.treasury.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: pryzm.treasury.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventTreasuryCollectFee + */ +export class EventTreasuryCollectFee extends Message { + /** + * @generated from field: string fee_type = 1; + */ + feeType = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + /** + * @generated from field: string from = 3; + */ + from = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventTreasuryCollectFee"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventTreasuryCollectFee { + return new EventTreasuryCollectFee().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventTreasuryCollectFee { + return new EventTreasuryCollectFee().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventTreasuryCollectFee { + return new EventTreasuryCollectFee().fromJsonString(jsonString, options); + } + + static equals(a: EventTreasuryCollectFee | PlainMessage | undefined, b: EventTreasuryCollectFee | PlainMessage | undefined): boolean { + return proto3.util.equals(EventTreasuryCollectFee, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventCreateFlowForAmount + */ +export class EventCreateFlowForAmount extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: pryzm.treasury.v1.ActionType action_type = 2; + */ + actionType = ActionType.HOLD; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventCreateFlowForAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "action_type", kind: "enum", T: proto3.getEnumType(ActionType) }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateFlowForAmount { + return new EventCreateFlowForAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateFlowForAmount { + return new EventCreateFlowForAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreateFlowForAmount { + return new EventCreateFlowForAmount().fromJsonString(jsonString, options); + } + + static equals(a: EventCreateFlowForAmount | PlainMessage | undefined, b: EventCreateFlowForAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreateFlowForAmount, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventExecuteActionForAmount + */ +export class EventExecuteActionForAmount extends Message { + /** + * @generated from field: pryzm.treasury.v1.ActionType action_type = 1; + */ + actionType = ActionType.HOLD; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventExecuteActionForAmount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action_type", kind: "enum", T: proto3.getEnumType(ActionType) }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExecuteActionForAmount { + return new EventExecuteActionForAmount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExecuteActionForAmount { + return new EventExecuteActionForAmount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExecuteActionForAmount { + return new EventExecuteActionForAmount().fromJsonString(jsonString, options); + } + + static equals(a: EventExecuteActionForAmount | PlainMessage | undefined, b: EventExecuteActionForAmount | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExecuteActionForAmount, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventSetAction + */ +export class EventSetAction extends Message { + /** + * @generated from field: pryzm.treasury.v1.Action action = 1; + */ + action?: Action; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventSetAction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action", kind: "message", T: Action }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetAction { + return new EventSetAction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetAction { + return new EventSetAction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetAction { + return new EventSetAction().fromJsonString(jsonString, options); + } + + static equals(a: EventSetAction | PlainMessage | undefined, b: EventSetAction | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetAction, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventSetFlowTrade + */ +export class EventSetFlowTrade extends Message { + /** + * @generated from field: pryzm.treasury.v1.FlowTrade flow_trade = 1; + */ + flowTrade?: FlowTrade; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventSetFlowTrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_trade", kind: "message", T: FlowTrade }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetFlowTrade { + return new EventSetFlowTrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetFlowTrade { + return new EventSetFlowTrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetFlowTrade { + return new EventSetFlowTrade().fromJsonString(jsonString, options); + } + + static equals(a: EventSetFlowTrade | PlainMessage | undefined, b: EventSetFlowTrade | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetFlowTrade, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.EventRemoveFlowTrade + */ +export class EventRemoveFlowTrade extends Message { + /** + * @generated from field: google.protobuf.Timestamp end_time = 1; + */ + endTime?: Timestamp; + + /** + * @generated from field: uint64 flow_id = 2; + */ + flowId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.EventRemoveFlowTrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "end_time", kind: "message", T: Timestamp }, + { no: 2, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRemoveFlowTrade { + return new EventRemoveFlowTrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRemoveFlowTrade { + return new EventRemoveFlowTrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRemoveFlowTrade { + return new EventRemoveFlowTrade().fromJsonString(jsonString, options); + } + + static equals(a: EventRemoveFlowTrade | PlainMessage | undefined, b: EventRemoveFlowTrade | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRemoveFlowTrade, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/flow_trade_pb.ts b/src/protobufs/pryzm/treasury/v1/flow_trade_pb.ts new file mode 100644 index 00000000..45aece5f --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/flow_trade_pb.ts @@ -0,0 +1,58 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/flow_trade.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { ActionType } from "./action_pb.js"; + +/** + * @generated from message pryzm.treasury.v1.FlowTrade + */ +export class FlowTrade extends Message { + /** + * @generated from field: google.protobuf.Timestamp end_time = 1; + */ + endTime?: Timestamp; + + /** + * @generated from field: uint64 flow_id = 2; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: pryzm.treasury.v1.ActionType action_type = 3; + */ + actionType = ActionType.HOLD; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.FlowTrade"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "end_time", kind: "message", T: Timestamp }, + { no: 2, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "action_type", kind: "enum", T: proto3.getEnumType(ActionType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FlowTrade { + return new FlowTrade().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FlowTrade { + return new FlowTrade().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FlowTrade { + return new FlowTrade().fromJsonString(jsonString, options); + } + + static equals(a: FlowTrade | PlainMessage | undefined, b: FlowTrade | PlainMessage | undefined): boolean { + return proto3.util.equals(FlowTrade, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/genesis_pb.ts b/src/protobufs/pryzm/treasury/v1/genesis_pb.ts new file mode 100644 index 00000000..3d8702c0 --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/genesis_pb.ts @@ -0,0 +1,64 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/genesis.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Action } from "./action_pb.js"; +import { FlowTrade } from "./flow_trade_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the treasury module's genesis state. + * + * @generated from message pryzm.treasury.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: pryzm.treasury.v1.Action action = 1; + */ + action?: Action; + + /** + * @generated from field: repeated pryzm.treasury.v1.FlowTrade flow_trade_list = 2; + */ + flowTradeList: FlowTrade[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: pryzm.treasury.v1.Params params = 3; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action", kind: "message", T: Action }, + { no: 2, name: "flow_trade_list", kind: "message", T: FlowTrade, repeated: true }, + { no: 3, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/params_pb.ts b/src/protobufs/pryzm/treasury/v1/params_pb.ts new file mode 100644 index 00000000..8bd430f5 --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/params.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message pryzm.treasury.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: string gas_fee_take_ratio = 1; + */ + gasFeeTakeRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gas_fee_take_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/query_cosmes.ts b/src/protobufs/pryzm/treasury/v1/query_cosmes.ts new file mode 100644 index 00000000..b8ece51d --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/query.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllFlowTradeRequest, QueryAllFlowTradeResponse, QueryGetActionRequest, QueryGetActionResponse, QueryGetFlowTradeRequest, QueryGetFlowTradeResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.treasury.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc pryzm.treasury.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Action by index. + * + * @generated from rpc pryzm.treasury.v1.Query.Action + */ +export const QueryActionService = { + typeName: TYPE_NAME, + method: "Action", + Request: QueryGetActionRequest, + Response: QueryGetActionResponse, +} as const; + +/** + * Queries a FlowTrade by index. + * + * @generated from rpc pryzm.treasury.v1.Query.FlowTrade + */ +export const QueryFlowTradeService = { + typeName: TYPE_NAME, + method: "FlowTrade", + Request: QueryGetFlowTradeRequest, + Response: QueryGetFlowTradeResponse, +} as const; + +/** + * Queries a list of FlowTrade items. + * + * @generated from rpc pryzm.treasury.v1.Query.FlowTradeAll + */ +export const QueryFlowTradeAllService = { + typeName: TYPE_NAME, + method: "FlowTradeAll", + Request: QueryAllFlowTradeRequest, + Response: QueryAllFlowTradeResponse, +} as const; + diff --git a/src/protobufs/pryzm/treasury/v1/query_pb.ts b/src/protobufs/pryzm/treasury/v1/query_pb.ts new file mode 100644 index 00000000..486f8fc8 --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/query_pb.ts @@ -0,0 +1,308 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/query.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Action } from "./action_pb.js"; +import { FlowTrade } from "./flow_trade_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message pryzm.treasury.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message pryzm.treasury.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: pryzm.treasury.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryGetActionRequest + */ +export class QueryGetActionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryGetActionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetActionRequest { + return new QueryGetActionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetActionRequest { + return new QueryGetActionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetActionRequest { + return new QueryGetActionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetActionRequest | PlainMessage | undefined, b: QueryGetActionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetActionRequest, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryGetActionResponse + */ +export class QueryGetActionResponse extends Message { + /** + * @generated from field: pryzm.treasury.v1.Action action = 1; + */ + action?: Action; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryGetActionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "action", kind: "message", T: Action }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetActionResponse { + return new QueryGetActionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetActionResponse { + return new QueryGetActionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetActionResponse { + return new QueryGetActionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetActionResponse | PlainMessage | undefined, b: QueryGetActionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetActionResponse, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryGetFlowTradeRequest + */ +export class QueryGetFlowTradeRequest extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryGetFlowTradeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetFlowTradeRequest { + return new QueryGetFlowTradeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetFlowTradeRequest { + return new QueryGetFlowTradeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetFlowTradeRequest { + return new QueryGetFlowTradeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetFlowTradeRequest | PlainMessage | undefined, b: QueryGetFlowTradeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetFlowTradeRequest, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryGetFlowTradeResponse + */ +export class QueryGetFlowTradeResponse extends Message { + /** + * @generated from field: pryzm.treasury.v1.FlowTrade flow_trade = 1; + */ + flowTrade?: FlowTrade; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryGetFlowTradeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_trade", kind: "message", T: FlowTrade }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetFlowTradeResponse { + return new QueryGetFlowTradeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetFlowTradeResponse { + return new QueryGetFlowTradeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetFlowTradeResponse { + return new QueryGetFlowTradeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetFlowTradeResponse | PlainMessage | undefined, b: QueryGetFlowTradeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetFlowTradeResponse, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryAllFlowTradeRequest + */ +export class QueryAllFlowTradeRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryAllFlowTradeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllFlowTradeRequest { + return new QueryAllFlowTradeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllFlowTradeRequest { + return new QueryAllFlowTradeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllFlowTradeRequest { + return new QueryAllFlowTradeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllFlowTradeRequest | PlainMessage | undefined, b: QueryAllFlowTradeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllFlowTradeRequest, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.QueryAllFlowTradeResponse + */ +export class QueryAllFlowTradeResponse extends Message { + /** + * @generated from field: repeated pryzm.treasury.v1.FlowTrade flow_trade = 1; + */ + flowTrade: FlowTrade[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.QueryAllFlowTradeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_trade", kind: "message", T: FlowTrade, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllFlowTradeResponse { + return new QueryAllFlowTradeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllFlowTradeResponse { + return new QueryAllFlowTradeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllFlowTradeResponse { + return new QueryAllFlowTradeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllFlowTradeResponse | PlainMessage | undefined, b: QueryAllFlowTradeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllFlowTradeResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/treasury/v1/tx_cosmes.ts b/src/protobufs/pryzm/treasury/v1/tx_cosmes.ts new file mode 100644 index 00000000..a6593960 --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/tx_cosmes.ts @@ -0,0 +1,31 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/tx.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSetAction, MsgSetActionResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.treasury.v1.Msg"; + +/** + * @generated from rpc pryzm.treasury.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.treasury.v1.Msg.SetAction + */ +export const MsgSetActionService = { + typeName: TYPE_NAME, + method: "SetAction", + Request: MsgSetAction, + Response: MsgSetActionResponse, +} as const; + diff --git a/src/protobufs/pryzm/treasury/v1/tx_pb.ts b/src/protobufs/pryzm/treasury/v1/tx_pb.ts new file mode 100644 index 00000000..f20b038c --- /dev/null +++ b/src/protobufs/pryzm/treasury/v1/tx_pb.ts @@ -0,0 +1,158 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/treasury/v1/tx.proto (package pryzm.treasury.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Action } from "./action_pb.js"; + +/** + * @generated from message pryzm.treasury.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.treasury.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.MsgSetAction + */ +export class MsgSetAction extends Message { + /** + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * @generated from field: pryzm.treasury.v1.Action action = 2; + */ + action?: Action; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.MsgSetAction"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "action", kind: "message", T: Action }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetAction { + return new MsgSetAction().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetAction { + return new MsgSetAction().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetAction { + return new MsgSetAction().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetAction | PlainMessage | undefined, b: MsgSetAction | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetAction, a, b); + } +} + +/** + * @generated from message pryzm.treasury.v1.MsgSetActionResponse + */ +export class MsgSetActionResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.treasury.v1.MsgSetActionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActionResponse { + return new MsgSetActionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActionResponse { + return new MsgSetActionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetActionResponse { + return new MsgSetActionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetActionResponse | PlainMessage | undefined, b: MsgSetActionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetActionResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/asset_pool_state_pb.ts b/src/protobufs/pryzm/ystaking/v1/asset_pool_state_pb.ts new file mode 100644 index 00000000..06729eb5 --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/asset_pool_state_pb.ts @@ -0,0 +1,118 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/asset_pool_state.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.ystaking.v1.AssetPoolState + */ +export class AssetPoolState extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string bonded_amount = 2; + */ + bondedAmount = ""; + + /** + * @generated from field: string global_index = 3; + */ + globalIndex = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.AssetPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bonded_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "global_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetPoolState { + return new AssetPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetPoolState { + return new AssetPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetPoolState { + return new AssetPoolState().fromJsonString(jsonString, options); + } + + static equals(a: AssetPoolState | PlainMessage | undefined, b: AssetPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetPoolState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.AssetMaturityPoolState + */ +export class AssetMaturityPoolState extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 2; + */ + maturitySymbol = ""; + + /** + * @generated from field: bool active = 3; + */ + active = false; + + /** + * @generated from field: string bonded_amount = 4; + */ + bondedAmount = ""; + + /** + * @generated from field: string global_index = 5; + */ + globalIndex = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.AssetMaturityPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "bonded_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "global_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetMaturityPoolState { + return new AssetMaturityPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetMaturityPoolState { + return new AssetMaturityPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AssetMaturityPoolState { + return new AssetMaturityPoolState().fromJsonString(jsonString, options); + } + + static equals(a: AssetMaturityPoolState | PlainMessage | undefined, b: AssetMaturityPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(AssetMaturityPoolState, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/event_pb.ts b/src/protobufs/pryzm/ystaking/v1/event_pb.ts new file mode 100644 index 00000000..633de9c8 --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/event_pb.ts @@ -0,0 +1,502 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/event.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { UserStakeState } from "./user_stake_state_pb.js"; +import { AssetMaturityPoolState, AssetPoolState } from "./asset_pool_state_pb.js"; + +/** + * @generated from message pryzm.ystaking.v1.EventYStakingBond + */ +export class EventYStakingBond extends Message { + /** + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventYStakingBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYStakingBond { + return new EventYStakingBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYStakingBond { + return new EventYStakingBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYStakingBond { + return new EventYStakingBond().fromJsonString(jsonString, options); + } + + static equals(a: EventYStakingBond | PlainMessage | undefined, b: EventYStakingBond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYStakingBond, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventYStakingUnbond + */ +export class EventYStakingUnbond extends Message { + /** + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 3; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 4; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventYStakingUnbond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "accrued_reward", kind: "message", T: Coin }, + { no: 4, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYStakingUnbond { + return new EventYStakingUnbond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYStakingUnbond { + return new EventYStakingUnbond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYStakingUnbond { + return new EventYStakingUnbond().fromJsonString(jsonString, options); + } + + static equals(a: EventYStakingUnbond | PlainMessage | undefined, b: EventYStakingUnbond | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYStakingUnbond, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventYStakingExitPool + */ +export class EventYStakingExitPool extends Message { + /** + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 2; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin transferred_y_amount = 4; + */ + transferredYAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventYStakingExitPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "accrued_reward", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + { no: 4, name: "transferred_y_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYStakingExitPool { + return new EventYStakingExitPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYStakingExitPool { + return new EventYStakingExitPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYStakingExitPool { + return new EventYStakingExitPool().fromJsonString(jsonString, options); + } + + static equals(a: EventYStakingExitPool | PlainMessage | undefined, b: EventYStakingExitPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYStakingExitPool, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventYStakingClaimReward + */ +export class EventYStakingClaimReward extends Message { + /** + * @generated from field: string account_address = 1; + */ + accountAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 2; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventYStakingClaimReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "accrued_reward", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventYStakingClaimReward { + return new EventYStakingClaimReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventYStakingClaimReward { + return new EventYStakingClaimReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventYStakingClaimReward { + return new EventYStakingClaimReward().fromJsonString(jsonString, options); + } + + static equals(a: EventYStakingClaimReward | PlainMessage | undefined, b: EventYStakingClaimReward | PlainMessage | undefined): boolean { + return proto3.util.equals(EventYStakingClaimReward, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventDeactivateYStakingMaturityPool + */ +export class EventDeactivateYStakingMaturityPool extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin burnt_bonded_amount = 1; + */ + burntBondedAmount?: Coin; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 3; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventDeactivateYStakingMaturityPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "burnt_bonded_amount", kind: "message", T: Coin }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeactivateYStakingMaturityPool { + return new EventDeactivateYStakingMaturityPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeactivateYStakingMaturityPool { + return new EventDeactivateYStakingMaturityPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeactivateYStakingMaturityPool { + return new EventDeactivateYStakingMaturityPool().fromJsonString(jsonString, options); + } + + static equals(a: EventDeactivateYStakingMaturityPool | PlainMessage | undefined, b: EventDeactivateYStakingMaturityPool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeactivateYStakingMaturityPool, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventSetUserStakeState + */ +export class EventSetUserStakeState extends Message { + /** + * @generated from field: pryzm.ystaking.v1.UserStakeState user_stake_state = 1; + */ + userStakeState?: UserStakeState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventSetUserStakeState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_stake_state", kind: "message", T: UserStakeState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetUserStakeState { + return new EventSetUserStakeState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetUserStakeState { + return new EventSetUserStakeState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetUserStakeState { + return new EventSetUserStakeState().fromJsonString(jsonString, options); + } + + static equals(a: EventSetUserStakeState | PlainMessage | undefined, b: EventSetUserStakeState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetUserStakeState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventSetAssetPoolState + */ +export class EventSetAssetPoolState extends Message { + /** + * @generated from field: pryzm.ystaking.v1.AssetPoolState asset_pool_state = 1; + */ + assetPoolState?: AssetPoolState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventSetAssetPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_pool_state", kind: "message", T: AssetPoolState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetAssetPoolState { + return new EventSetAssetPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetAssetPoolState { + return new EventSetAssetPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetAssetPoolState { + return new EventSetAssetPoolState().fromJsonString(jsonString, options); + } + + static equals(a: EventSetAssetPoolState | PlainMessage | undefined, b: EventSetAssetPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetAssetPoolState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventSetAssetMaturityPoolState + */ +export class EventSetAssetMaturityPoolState extends Message { + /** + * @generated from field: pryzm.ystaking.v1.AssetMaturityPoolState asset_maturity_pool_state = 1; + */ + assetMaturityPoolState?: AssetMaturityPoolState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventSetAssetMaturityPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_maturity_pool_state", kind: "message", T: AssetMaturityPoolState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetAssetMaturityPoolState { + return new EventSetAssetMaturityPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetAssetMaturityPoolState { + return new EventSetAssetMaturityPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetAssetMaturityPoolState { + return new EventSetAssetMaturityPoolState().fromJsonString(jsonString, options); + } + + static equals(a: EventSetAssetMaturityPoolState | PlainMessage | undefined, b: EventSetAssetMaturityPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetAssetMaturityPoolState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventDeleteUserStakeState + */ +export class EventDeleteUserStakeState extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 3; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventDeleteUserStakeState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeleteUserStakeState { + return new EventDeleteUserStakeState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeleteUserStakeState { + return new EventDeleteUserStakeState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeleteUserStakeState { + return new EventDeleteUserStakeState().fromJsonString(jsonString, options); + } + + static equals(a: EventDeleteUserStakeState | PlainMessage | undefined, b: EventDeleteUserStakeState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeleteUserStakeState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventDeleteAssetPoolState + */ +export class EventDeleteAssetPoolState extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventDeleteAssetPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeleteAssetPoolState { + return new EventDeleteAssetPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeleteAssetPoolState { + return new EventDeleteAssetPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeleteAssetPoolState { + return new EventDeleteAssetPoolState().fromJsonString(jsonString, options); + } + + static equals(a: EventDeleteAssetPoolState | PlainMessage | undefined, b: EventDeleteAssetPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeleteAssetPoolState, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.EventDeleteAssetMaturityPoolState + */ +export class EventDeleteAssetMaturityPoolState extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 2; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.EventDeleteAssetMaturityPoolState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDeleteAssetMaturityPoolState { + return new EventDeleteAssetMaturityPoolState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDeleteAssetMaturityPoolState { + return new EventDeleteAssetMaturityPoolState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDeleteAssetMaturityPoolState { + return new EventDeleteAssetMaturityPoolState().fromJsonString(jsonString, options); + } + + static equals(a: EventDeleteAssetMaturityPoolState | PlainMessage | undefined, b: EventDeleteAssetMaturityPoolState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDeleteAssetMaturityPoolState, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/genesis_pb.ts b/src/protobufs/pryzm/ystaking/v1/genesis_pb.ts new file mode 100644 index 00000000..7d25d8d9 --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/genesis_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/genesis.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { AssetMaturityPoolState, AssetPoolState } from "./asset_pool_state_pb.js"; +import { UserStakeState } from "./user_stake_state_pb.js"; + +/** + * GenesisState defines the ystaking module's genesis state. + * + * @generated from message pryzm.ystaking.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated pryzm.ystaking.v1.AssetPoolState asset_pool_state_list = 1; + */ + assetPoolStateList: AssetPoolState[] = []; + + /** + * @generated from field: repeated pryzm.ystaking.v1.AssetMaturityPoolState maturity_pool_state_list = 2; + */ + maturityPoolStateList: AssetMaturityPoolState[] = []; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: repeated pryzm.ystaking.v1.UserStakeState user_stake_state_list = 3; + */ + userStakeStateList: UserStakeState[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_pool_state_list", kind: "message", T: AssetPoolState, repeated: true }, + { no: 2, name: "maturity_pool_state_list", kind: "message", T: AssetMaturityPoolState, repeated: true }, + { no: 3, name: "user_stake_state_list", kind: "message", T: UserStakeState, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/query_cosmes.ts b/src/protobufs/pryzm/ystaking/v1/query_cosmes.ts new file mode 100644 index 00000000..1fd77e75 --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/query.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllAssetMaturityPoolStateRequest, QueryAllAssetMaturityPoolStateResponse, QueryAllAssetPoolStateRequest, QueryAllAssetPoolStateResponse, QueryAllUserStakeStateRequest, QueryAllUserStakeStateResponse, QueryBondedAmountRequest, QueryBondedAmountResponse, QueryGetAssetMaturityPoolStateRequest, QueryGetAssetMaturityPoolStateResponse, QueryGetAssetPoolStateRequest, QueryGetAssetPoolStateResponse, QueryGetUserStakeStateRequest, QueryGetUserStakeStateResponse, QueryRewardRequest, QueryRewardResponse } from "./query_pb.js"; + +const TYPE_NAME = "pryzm.ystaking.v1.Query"; + +/** + * Queries a list of BondedAmount items. + * + * @generated from rpc pryzm.ystaking.v1.Query.BondedAmount + */ +export const QueryBondedAmountService = { + typeName: TYPE_NAME, + method: "BondedAmount", + Request: QueryBondedAmountRequest, + Response: QueryBondedAmountResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.Reward + */ +export const QueryRewardService = { + typeName: TYPE_NAME, + method: "Reward", + Request: QueryRewardRequest, + Response: QueryRewardResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.UserStakeState + */ +export const QueryUserStakeStateService = { + typeName: TYPE_NAME, + method: "UserStakeState", + Request: QueryGetUserStakeStateRequest, + Response: QueryGetUserStakeStateResponse, +} as const; + +/** + * Queries a list of UserStakeState items. + * + * @generated from rpc pryzm.ystaking.v1.Query.UserStakeStateAll + */ +export const QueryUserStakeStateAllService = { + typeName: TYPE_NAME, + method: "UserStakeStateAll", + Request: QueryAllUserStakeStateRequest, + Response: QueryAllUserStakeStateResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.AssetPoolState + */ +export const QueryAssetPoolStateService = { + typeName: TYPE_NAME, + method: "AssetPoolState", + Request: QueryGetAssetPoolStateRequest, + Response: QueryGetAssetPoolStateResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.AssetPoolStateAll + */ +export const QueryAssetPoolStateAllService = { + typeName: TYPE_NAME, + method: "AssetPoolStateAll", + Request: QueryAllAssetPoolStateRequest, + Response: QueryAllAssetPoolStateResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.AssetMaturityPoolState + */ +export const QueryAssetMaturityPoolStateService = { + typeName: TYPE_NAME, + method: "AssetMaturityPoolState", + Request: QueryGetAssetMaturityPoolStateRequest, + Response: QueryGetAssetMaturityPoolStateResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Query.AssetMaturityPoolStateAll + */ +export const QueryAssetMaturityPoolStateAllService = { + typeName: TYPE_NAME, + method: "AssetMaturityPoolStateAll", + Request: QueryAllAssetMaturityPoolStateRequest, + Response: QueryAllAssetMaturityPoolStateResponse, +} as const; + diff --git a/src/protobufs/pryzm/ystaking/v1/query_pb.ts b/src/protobufs/pryzm/ystaking/v1/query_pb.ts new file mode 100644 index 00000000..84b59d22 --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/query_pb.ts @@ -0,0 +1,670 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/query.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { UserStakeState } from "./user_stake_state_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { AssetMaturityPoolState, AssetPoolState } from "./asset_pool_state_pb.js"; + +/** + * @generated from message pryzm.ystaking.v1.QueryBondedAmountRequest + */ +export class QueryBondedAmountRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string maturity = 2; + */ + maturity = ""; + + /** + * @generated from field: string address = 3; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryBondedAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "maturity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBondedAmountRequest { + return new QueryBondedAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBondedAmountRequest { + return new QueryBondedAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBondedAmountRequest { + return new QueryBondedAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBondedAmountRequest | PlainMessage | undefined, b: QueryBondedAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBondedAmountRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryBondedAmountResponse + */ +export class QueryBondedAmountResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryBondedAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBondedAmountResponse { + return new QueryBondedAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBondedAmountResponse { + return new QueryBondedAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBondedAmountResponse { + return new QueryBondedAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBondedAmountResponse | PlainMessage | undefined, b: QueryBondedAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBondedAmountResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryRewardRequest + */ +export class QueryRewardRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryRewardRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardRequest { + return new QueryRewardRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardRequest { + return new QueryRewardRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardRequest { + return new QueryRewardRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardRequest | PlainMessage | undefined, b: QueryRewardRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryRewardResponse + */ +export class QueryRewardResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardResponse { + return new QueryRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardResponse { + return new QueryRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRewardResponse { + return new QueryRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryRewardResponse | PlainMessage | undefined, b: QueryRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRewardResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetUserStakeStateRequest + */ +export class QueryGetUserStakeStateRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 3; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetUserStakeStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUserStakeStateRequest { + return new QueryGetUserStakeStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUserStakeStateRequest { + return new QueryGetUserStakeStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUserStakeStateRequest { + return new QueryGetUserStakeStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUserStakeStateRequest | PlainMessage | undefined, b: QueryGetUserStakeStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUserStakeStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetUserStakeStateResponse + */ +export class QueryGetUserStakeStateResponse extends Message { + /** + * @generated from field: pryzm.ystaking.v1.UserStakeState user_stake_state = 1; + */ + userStakeState?: UserStakeState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetUserStakeStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_stake_state", kind: "message", T: UserStakeState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetUserStakeStateResponse { + return new QueryGetUserStakeStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetUserStakeStateResponse { + return new QueryGetUserStakeStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetUserStakeStateResponse { + return new QueryGetUserStakeStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetUserStakeStateResponse | PlainMessage | undefined, b: QueryGetUserStakeStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetUserStakeStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllUserStakeStateRequest + */ +export class QueryAllUserStakeStateRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: string asset_id = 3; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllUserStakeStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUserStakeStateRequest { + return new QueryAllUserStakeStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUserStakeStateRequest { + return new QueryAllUserStakeStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUserStakeStateRequest { + return new QueryAllUserStakeStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUserStakeStateRequest | PlainMessage | undefined, b: QueryAllUserStakeStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUserStakeStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllUserStakeStateResponse + */ +export class QueryAllUserStakeStateResponse extends Message { + /** + * @generated from field: repeated pryzm.ystaking.v1.UserStakeState user_stake_state = 1; + */ + userStakeState: UserStakeState[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllUserStakeStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_stake_state", kind: "message", T: UserStakeState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllUserStakeStateResponse { + return new QueryAllUserStakeStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllUserStakeStateResponse { + return new QueryAllUserStakeStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllUserStakeStateResponse { + return new QueryAllUserStakeStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllUserStakeStateResponse | PlainMessage | undefined, b: QueryAllUserStakeStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllUserStakeStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetAssetPoolStateRequest + */ +export class QueryGetAssetPoolStateRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetAssetPoolStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetPoolStateRequest { + return new QueryGetAssetPoolStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetPoolStateRequest { + return new QueryGetAssetPoolStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetPoolStateRequest { + return new QueryGetAssetPoolStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetPoolStateRequest | PlainMessage | undefined, b: QueryGetAssetPoolStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetPoolStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetAssetPoolStateResponse + */ +export class QueryGetAssetPoolStateResponse extends Message { + /** + * @generated from field: pryzm.ystaking.v1.AssetPoolState asset_pool_state = 1; + */ + assetPoolState?: AssetPoolState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetAssetPoolStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_pool_state", kind: "message", T: AssetPoolState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetPoolStateResponse { + return new QueryGetAssetPoolStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetPoolStateResponse { + return new QueryGetAssetPoolStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetPoolStateResponse { + return new QueryGetAssetPoolStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetPoolStateResponse | PlainMessage | undefined, b: QueryGetAssetPoolStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetPoolStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllAssetPoolStateRequest + */ +export class QueryAllAssetPoolStateRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllAssetPoolStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetPoolStateRequest { + return new QueryAllAssetPoolStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetPoolStateRequest { + return new QueryAllAssetPoolStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetPoolStateRequest { + return new QueryAllAssetPoolStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetPoolStateRequest | PlainMessage | undefined, b: QueryAllAssetPoolStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetPoolStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllAssetPoolStateResponse + */ +export class QueryAllAssetPoolStateResponse extends Message { + /** + * @generated from field: repeated pryzm.ystaking.v1.AssetPoolState asset_pool_state = 1; + */ + assetPoolState: AssetPoolState[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllAssetPoolStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_pool_state", kind: "message", T: AssetPoolState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetPoolStateResponse { + return new QueryAllAssetPoolStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetPoolStateResponse { + return new QueryAllAssetPoolStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetPoolStateResponse { + return new QueryAllAssetPoolStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetPoolStateResponse | PlainMessage | undefined, b: QueryAllAssetPoolStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetPoolStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetAssetMaturityPoolStateRequest + */ +export class QueryGetAssetMaturityPoolStateRequest extends Message { + /** + * @generated from field: string asset_id = 1; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 2; + */ + maturitySymbol = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetAssetMaturityPoolStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetMaturityPoolStateRequest { + return new QueryGetAssetMaturityPoolStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetMaturityPoolStateRequest { + return new QueryGetAssetMaturityPoolStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetMaturityPoolStateRequest { + return new QueryGetAssetMaturityPoolStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetMaturityPoolStateRequest | PlainMessage | undefined, b: QueryGetAssetMaturityPoolStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetMaturityPoolStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryGetAssetMaturityPoolStateResponse + */ +export class QueryGetAssetMaturityPoolStateResponse extends Message { + /** + * @generated from field: pryzm.ystaking.v1.AssetMaturityPoolState asset_maturity_pool_state = 1; + */ + assetMaturityPoolState?: AssetMaturityPoolState; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryGetAssetMaturityPoolStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_maturity_pool_state", kind: "message", T: AssetMaturityPoolState }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAssetMaturityPoolStateResponse { + return new QueryGetAssetMaturityPoolStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAssetMaturityPoolStateResponse { + return new QueryGetAssetMaturityPoolStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetAssetMaturityPoolStateResponse { + return new QueryGetAssetMaturityPoolStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetAssetMaturityPoolStateResponse | PlainMessage | undefined, b: QueryGetAssetMaturityPoolStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetAssetMaturityPoolStateResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllAssetMaturityPoolStateRequest + */ +export class QueryAllAssetMaturityPoolStateRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllAssetMaturityPoolStateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetMaturityPoolStateRequest { + return new QueryAllAssetMaturityPoolStateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetMaturityPoolStateRequest { + return new QueryAllAssetMaturityPoolStateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetMaturityPoolStateRequest { + return new QueryAllAssetMaturityPoolStateRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetMaturityPoolStateRequest | PlainMessage | undefined, b: QueryAllAssetMaturityPoolStateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetMaturityPoolStateRequest, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.QueryAllAssetMaturityPoolStateResponse + */ +export class QueryAllAssetMaturityPoolStateResponse extends Message { + /** + * @generated from field: repeated pryzm.ystaking.v1.AssetMaturityPoolState asset_maturity_pool_state = 1; + */ + assetMaturityPoolState: AssetMaturityPoolState[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.QueryAllAssetMaturityPoolStateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "asset_maturity_pool_state", kind: "message", T: AssetMaturityPoolState, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllAssetMaturityPoolStateResponse { + return new QueryAllAssetMaturityPoolStateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllAssetMaturityPoolStateResponse { + return new QueryAllAssetMaturityPoolStateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllAssetMaturityPoolStateResponse { + return new QueryAllAssetMaturityPoolStateResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllAssetMaturityPoolStateResponse | PlainMessage | undefined, b: QueryAllAssetMaturityPoolStateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllAssetMaturityPoolStateResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/tx_cosmes.ts b/src/protobufs/pryzm/ystaking/v1/tx_cosmes.ts new file mode 100644 index 00000000..30d9e93a --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/tx_cosmes.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/tx.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBond, MsgBondResponse, MsgClaimReward, MsgClaimRewardResponse, MsgExitPool, MsgExitPoolResponse, MsgUnbond, MsgUnbondResponse } from "./tx_pb.js"; + +const TYPE_NAME = "pryzm.ystaking.v1.Msg"; + +/** + * @generated from rpc pryzm.ystaking.v1.Msg.Bond + */ +export const MsgBondService = { + typeName: TYPE_NAME, + method: "Bond", + Request: MsgBond, + Response: MsgBondResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Msg.Unbond + */ +export const MsgUnbondService = { + typeName: TYPE_NAME, + method: "Unbond", + Request: MsgUnbond, + Response: MsgUnbondResponse, +} as const; + +/** + * @generated from rpc pryzm.ystaking.v1.Msg.ClaimReward + */ +export const MsgClaimRewardService = { + typeName: TYPE_NAME, + method: "ClaimReward", + Request: MsgClaimReward, + Response: MsgClaimRewardResponse, +} as const; + +/** + * this line is used by starport scaffolding # proto/tx/rpc + * + * @generated from rpc pryzm.ystaking.v1.Msg.ExitPool + */ +export const MsgExitPoolService = { + typeName: TYPE_NAME, + method: "ExitPool", + Request: MsgExitPool, + Response: MsgExitPoolResponse, +} as const; + diff --git a/src/protobufs/pryzm/ystaking/v1/tx_pb.ts b/src/protobufs/pryzm/ystaking/v1/tx_pb.ts new file mode 100644 index 00000000..4889eade --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/tx_pb.ts @@ -0,0 +1,359 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/tx.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from message pryzm.ystaking.v1.MsgBond + */ +export class MsgBond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBond { + return new MsgBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBond { + return new MsgBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBond { + return new MsgBond().fromJsonString(jsonString, options); + } + + static equals(a: MsgBond | PlainMessage | undefined, b: MsgBond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBond, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgBondResponse + */ +export class MsgBondResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin total_bonded_amount = 1; + */ + totalBondedAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgBondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_bonded_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBondResponse { + return new MsgBondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBondResponse | PlainMessage | undefined, b: MsgBondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBondResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgUnbond + */ +export class MsgUnbond extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgUnbond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbond { + return new MsgUnbond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbond { + return new MsgUnbond().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbond | PlainMessage | undefined, b: MsgUnbond | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbond, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgUnbondResponse + */ +export class MsgUnbondResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin remainder_bonded_amount = 1; + */ + remainderBondedAmount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 2; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgUnbondResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "remainder_bonded_amount", kind: "message", T: Coin }, + { no: 2, name: "accrued_reward", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnbondResponse { + return new MsgUnbondResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnbondResponse | PlainMessage | undefined, b: MsgUnbondResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnbondResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgClaimReward + */ +export class MsgClaimReward extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgClaimReward"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimReward { + return new MsgClaimReward().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimReward | PlainMessage | undefined, b: MsgClaimReward | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimReward, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgClaimRewardResponse + */ +export class MsgClaimRewardResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 1; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgClaimRewardResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accrued_reward", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardResponse { + return new MsgClaimRewardResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardResponse | PlainMessage | undefined, b: MsgClaimRewardResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardResponse, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgExitPool + */ +export class MsgExitPool extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgExitPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPool { + return new MsgExitPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPool { + return new MsgExitPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitPool { + return new MsgExitPool().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitPool | PlainMessage | undefined, b: MsgExitPool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitPool, a, b); + } +} + +/** + * @generated from message pryzm.ystaking.v1.MsgExitPoolResponse + */ +export class MsgExitPoolResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin accrued_reward = 1; + */ + accruedReward?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 2; + */ + fee?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin transferred_y_amount = 3; + */ + transferredYAmount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.MsgExitPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "accrued_reward", kind: "message", T: Coin }, + { no: 2, name: "fee", kind: "message", T: Coin }, + { no: 3, name: "transferred_y_amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExitPoolResponse { + return new MsgExitPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgExitPoolResponse | PlainMessage | undefined, b: MsgExitPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExitPoolResponse, a, b); + } +} + diff --git a/src/protobufs/pryzm/ystaking/v1/user_stake_state_pb.ts b/src/protobufs/pryzm/ystaking/v1/user_stake_state_pb.ts new file mode 100644 index 00000000..be9c2e1f --- /dev/null +++ b/src/protobufs/pryzm/ystaking/v1/user_stake_state_pb.ts @@ -0,0 +1,75 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file pryzm/ystaking/v1/user_stake_state.proto (package pryzm.ystaking.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message pryzm.ystaking.v1.UserStakeState + */ +export class UserStakeState extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string asset_id = 2; + */ + assetId = ""; + + /** + * @generated from field: string maturity_symbol = 3; + */ + maturitySymbol = ""; + + /** + * @generated from field: string bonded_amount = 4; + */ + bondedAmount = ""; + + /** + * @generated from field: string user_index = 5; + */ + userIndex = ""; + + /** + * @generated from field: string pending_reward = 6; + */ + pendingReward = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "pryzm.ystaking.v1.UserStakeState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "asset_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "maturity_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "bonded_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "user_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "pending_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserStakeState { + return new UserStakeState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserStakeState { + return new UserStakeState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserStakeState { + return new UserStakeState().fromJsonString(jsonString, options); + } + + static equals(a: UserStakeState | PlainMessage | undefined, b: UserStakeState | PlainMessage | undefined): boolean { + return proto3.util.equals(UserStakeState, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/flowtrade/v1/events_pb.ts b/src/protobufs/refractedlabs/flowtrade/v1/events_pb.ts new file mode 100644 index 00000000..498ca7a2 --- /dev/null +++ b/src/protobufs/refractedlabs/flowtrade/v1/events_pb.ts @@ -0,0 +1,540 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/flowtrade/v1/events.proto (package refractedlabs.flowtrade.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Flow } from "./flow_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Position } from "./position_pb.js"; + +/** + * @generated from message refractedlabs.flowtrade.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: refractedlabs.flowtrade.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowCreated + */ +export class EventFlowCreated extends Message { + /** + * @generated from field: refractedlabs.flowtrade.v1.Flow flow = 1; + */ + flow?: Flow; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowCreated"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow", kind: "message", T: Flow }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowCreated { + return new EventFlowCreated().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowCreated { + return new EventFlowCreated().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowCreated { + return new EventFlowCreated().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowCreated | PlainMessage | undefined, b: EventFlowCreated | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowCreated, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowEnded + */ +export class EventFlowEnded extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowEnded"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowEnded { + return new EventFlowEnded().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowEnded { + return new EventFlowEnded().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowEnded { + return new EventFlowEnded().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowEnded | PlainMessage | undefined, b: EventFlowEnded | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowEnded, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowStopped + */ +export class EventFlowStopped extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowStopped"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowStopped { + return new EventFlowStopped().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowStopped { + return new EventFlowStopped().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowStopped { + return new EventFlowStopped().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowStopped | PlainMessage | undefined, b: EventFlowStopped | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowStopped, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowCheckedOut + */ +export class EventFlowCheckedOut extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin returned_deposit = 2; + */ + returnedDeposit?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin returned_token_out = 3; + */ + returnedTokenOut?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowCheckedOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "returned_deposit", kind: "message", T: Coin }, + { no: 3, name: "returned_token_out", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowCheckedOut { + return new EventFlowCheckedOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowCheckedOut { + return new EventFlowCheckedOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowCheckedOut { + return new EventFlowCheckedOut().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowCheckedOut | PlainMessage | undefined, b: EventFlowCheckedOut | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowCheckedOut, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowTokenInClaimed + */ +export class EventFlowTokenInClaimed extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 3; + */ + fee?: Coin; + + /** + * @generated from field: string treasury = 4; + */ + treasury = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowTokenInClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "fee", kind: "message", T: Coin }, + { no: 4, name: "treasury", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowTokenInClaimed { + return new EventFlowTokenInClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowTokenInClaimed { + return new EventFlowTokenInClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowTokenInClaimed { + return new EventFlowTokenInClaimed().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowTokenInClaimed | PlainMessage | undefined, b: EventFlowTokenInClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowTokenInClaimed, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventFlowTokenOutClaimed + */ +export class EventFlowTokenOutClaimed extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin fee = 4; + */ + fee?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventFlowTokenOutClaimed"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "fee", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFlowTokenOutClaimed { + return new EventFlowTokenOutClaimed().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFlowTokenOutClaimed { + return new EventFlowTokenOutClaimed().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFlowTokenOutClaimed { + return new EventFlowTokenOutClaimed().fromJsonString(jsonString, options); + } + + static equals(a: EventFlowTokenOutClaimed | PlainMessage | undefined, b: EventFlowTokenOutClaimed | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFlowTokenOutClaimed, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventJoinFlow + */ +export class EventJoinFlow extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventJoinFlow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventJoinFlow { + return new EventJoinFlow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventJoinFlow { + return new EventJoinFlow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventJoinFlow { + return new EventJoinFlow().fromJsonString(jsonString, options); + } + + static equals(a: EventJoinFlow | PlainMessage | undefined, b: EventJoinFlow | PlainMessage | undefined): boolean { + return proto3.util.equals(EventJoinFlow, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventExitFlow + */ +export class EventExitFlow extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventExitFlow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventExitFlow { + return new EventExitFlow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventExitFlow { + return new EventExitFlow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventExitFlow { + return new EventExitFlow().fromJsonString(jsonString, options); + } + + static equals(a: EventExitFlow | PlainMessage | undefined, b: EventExitFlow | PlainMessage | undefined): boolean { + return proto3.util.equals(EventExitFlow, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventSetOperator + */ +export class EventSetOperator extends Message { + /** + * @generated from field: uint64 flow_id = 1; + */ + flowId = protoInt64.zero; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: string operator = 3; + */ + operator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventSetOperator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetOperator { + return new EventSetOperator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetOperator { + return new EventSetOperator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetOperator { + return new EventSetOperator().fromJsonString(jsonString, options); + } + + static equals(a: EventSetOperator | PlainMessage | undefined, b: EventSetOperator | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetOperator, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventSetFlow + */ +export class EventSetFlow extends Message { + /** + * @generated from field: refractedlabs.flowtrade.v1.Flow flow = 1; + */ + flow?: Flow; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventSetFlow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow", kind: "message", T: Flow }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetFlow { + return new EventSetFlow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetFlow { + return new EventSetFlow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetFlow { + return new EventSetFlow().fromJsonString(jsonString, options); + } + + static equals(a: EventSetFlow | PlainMessage | undefined, b: EventSetFlow | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetFlow, a, b); + } +} + +/** + * @generated from message refractedlabs.flowtrade.v1.EventSetPosition + */ +export class EventSetPosition extends Message { + /** + * @generated from field: refractedlabs.flowtrade.v1.Position position = 1; + */ + position?: Position; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.EventSetPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: Position }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPosition { + return new EventSetPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPosition { + return new EventSetPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetPosition { + return new EventSetPosition().fromJsonString(jsonString, options); + } + + static equals(a: EventSetPosition | PlainMessage | undefined, b: EventSetPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetPosition, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/flowtrade/v1/flow_pb.ts b/src/protobufs/refractedlabs/flowtrade/v1/flow_pb.ts new file mode 100644 index 00000000..24b90ed9 --- /dev/null +++ b/src/protobufs/refractedlabs/flowtrade/v1/flow_pb.ts @@ -0,0 +1,537 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/flowtrade/v1/flow.proto (package refractedlabs.flowtrade.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * @generated from enum refractedlabs.flowtrade.v1.FlowStatus + */ +export enum FlowStatus { + /** + * the flow is waiting to be started + * + * @generated from enum value: WAITING = 0; + */ + WAITING = 0, + + /** + * the flow is active + * + * @generated from enum value: ACTIVE = 1; + */ + ACTIVE = 1, + + /** + * the flow has been ended. this is a final state + * + * @generated from enum value: ENDED = 2; + */ + ENDED = 2, + + /** + * the flow has been stopped. this is a final state + * + * @generated from enum value: STOPPED = 3; + */ + STOPPED = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(FlowStatus) +proto3.util.setEnumType(FlowStatus, "refractedlabs.flowtrade.v1.FlowStatus", [ + { no: 0, name: "WAITING" }, + { no: 1, name: "ACTIVE" }, + { no: 2, name: "ENDED" }, + { no: 3, name: "STOPPED" }, +]); + +/** + * Flow holds information and price calculations for a flow trade + * + * @generated from message refractedlabs.flowtrade.v1.Flow + */ +export class Flow extends Message { + /** + * auto-generated identifier for a flow + * + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * the address of flow creator and owner + * + * @generated from field: string creator = 2; + */ + creator = ""; + + /** + * informational data about the flow + * + * @generated from field: refractedlabs.flowtrade.v1.FlowInfo flow_info = 3; + */ + flowInfo?: FlowInfo; + + /** + * the time that swap distribution starts + * + * @generated from field: google.protobuf.Timestamp start_time = 4; + */ + startTime?: Timestamp; + + /** + * the time that flow is ended + * + * @generated from field: google.protobuf.Timestamp end_time = 5; + */ + endTime?: Timestamp; + + /** + * the interval in which the distribution index is updated and hence tokens are swapped + * if dist_interval is 0, the flow is updated every time in or out tokens are increased or decreased + * if dist_interval is equal to the duration of flow, it means that all of the tokens are swapped once after the flow ends + * + * @generated from field: google.protobuf.Duration dist_interval = 6; + */ + distInterval?: Duration; + + /** + * the address that the swapped tokens are sent to after the flow ends + * + * @generated from field: string treasury_address = 7; + */ + treasuryAddress = ""; + + /** + * total amount creator provided to be swapped + * + * @generated from field: cosmos.base.v1beta1.Coin total_token_out = 8; + */ + totalTokenOut?: Coin; + + /** + * the accepted token to buy the out tokens + * + * @generated from field: string token_in_denom = 9; + */ + tokenInDenom = ""; + + /** + * the time from then the buyers can claim their purchased tokens + * + * @generated from field: google.protobuf.Timestamp token_out_claimable_after = 10; + */ + tokenOutClaimableAfter?: Timestamp; + + /** + * the time from then the flow creator can claim the swapped tokens + * + * @generated from field: google.protobuf.Timestamp token_in_claimable_after = 11; + */ + tokenInClaimableAfter?: Timestamp; + + /** + * whether the flow can be stopped by the flow's creator + * + * @generated from field: bool stoppable = 12; + */ + stoppable = false; + + /** + * whether to allow buyers to claim their tokens immediately after the flow is stopped + * + * @generated from field: bool allow_immediate_token_out_claim_if_stopped = 13; + */ + allowImmediateTokenOutClaimIfStopped = false; + + /** + * whether to allow flow's creator to claim tokens immediately after the flow is stopped + * + * @generated from field: bool allow_immediate_token_in_claim_if_stopped = 14; + */ + allowImmediateTokenInClaimIfStopped = false; + + /** + * a global index for the amount of purchase that has already been applied + * + * @generated from field: string dist_index = 15; + */ + distIndex = ""; + + /** + * the last time the dist index is updated + * + * @generated from field: google.protobuf.Timestamp last_dist_update = 16; + */ + lastDistUpdate?: Timestamp; + + /** + * the amount of remaining out tokens to sell + * + * @generated from field: string token_out_balance = 17; + */ + tokenOutBalance = ""; + + /** + * the current amount of token-in provided to buy token-out + * + * @generated from field: string token_in_balance = 18; + */ + tokenInBalance = ""; + + /** + * the amount of already spent in tokens + * + * @generated from field: string spent_token_in = 19; + */ + spentTokenIn = ""; + + /** + * the total number of users shares + * + * @generated from field: string total_shares = 20; + */ + totalShares = ""; + + /** + * the latest price of token-out in terms of token-in + * + * @generated from field: string live_price = 21; + */ + livePrice = ""; + + /** + * the current status of flow + * + * @generated from field: refractedlabs.flowtrade.v1.FlowStatus status = 22; + */ + status = FlowStatus.WAITING; + + /** + * the amount of creation deposit that should be revenue to the flow creator + * + * @generated from field: cosmos.base.v1beta1.Coin creation_deposit = 23; + */ + creationDeposit?: Coin; + + /** + * the fee ratio taken from token-out, this is copied from module params at the time of flow creation + * + * @generated from field: string token_out_fee_ratio = 24; + */ + tokenOutFeeRatio = ""; + + /** + * the fee ratio taken from token-in, this is copied from module params at the time of flow creation + * + * @generated from field: string token_in_fee_ratio = 25; + */ + tokenInFeeRatio = ""; + + /** + * if true, the swapped tokens are automatically sent to the treasury address when the flow ends + * this option is only available when another module creates a flow using keeper api + * + * @generated from field: bool automatic_treasury_collection = 26; + */ + automaticTreasuryCollection = false; + + /** + * the amount of spent in tokens that have been claimed by the flow's creator + * + * @generated from field: string claimed_token_in = 27; + */ + claimedTokenIn = ""; + + /** + * whether the flow is checked out, meaning the creation deposit and any remaining out tokens are transferred back to the creator + * + * @generated from field: bool checked_out = 28; + */ + checkedOut = false; + + /** + * the minimum price for the token-out in terms of token-in. + * in each swap interval, if the calculated price is less than this limit, the swap doesn't happen in that turn + * Since: v0.4 + * + * @generated from field: string limit_price = 29; + */ + limitPrice = ""; + + /** + * the duration of the exit window before swap interval, in which users can only exit the flow and joining is not permitted + * this duration is used to protect joiners from buying the token-out with a higher price when someone joins with a huge amount of token-in + * Since: v0.4 + * + * @generated from field: google.protobuf.Duration exit_window_duration = 30; + */ + exitWindowDuration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.Flow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "flow_info", kind: "message", T: FlowInfo }, + { no: 4, name: "start_time", kind: "message", T: Timestamp }, + { no: 5, name: "end_time", kind: "message", T: Timestamp }, + { no: 6, name: "dist_interval", kind: "message", T: Duration }, + { no: 7, name: "treasury_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "total_token_out", kind: "message", T: Coin }, + { no: 9, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "token_out_claimable_after", kind: "message", T: Timestamp }, + { no: 11, name: "token_in_claimable_after", kind: "message", T: Timestamp }, + { no: 12, name: "stoppable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "allow_immediate_token_out_claim_if_stopped", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 14, name: "allow_immediate_token_in_claim_if_stopped", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 15, name: "dist_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "last_dist_update", kind: "message", T: Timestamp }, + { no: 17, name: "token_out_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "token_in_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 19, name: "spent_token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 20, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "live_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 22, name: "status", kind: "enum", T: proto3.getEnumType(FlowStatus) }, + { no: 23, name: "creation_deposit", kind: "message", T: Coin }, + { no: 24, name: "token_out_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 25, name: "token_in_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 26, name: "automatic_treasury_collection", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 27, name: "claimed_token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 28, name: "checked_out", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 29, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 30, name: "exit_window_duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Flow { + return new Flow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Flow { + return new Flow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Flow { + return new Flow().fromJsonString(jsonString, options); + } + + static equals(a: Flow | PlainMessage | undefined, b: Flow | PlainMessage | undefined): boolean { + return proto3.util.equals(Flow, a, b); + } +} + +/** + * Informational data about the flow + * + * @generated from message refractedlabs.flowtrade.v1.FlowInfo + */ +export class FlowInfo extends Message { + /** + * a name of the flow + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * a short description about the flow + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * a referring url + * + * @generated from field: string url = 3; + */ + url = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.FlowInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FlowInfo { + return new FlowInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FlowInfo { + return new FlowInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FlowInfo { + return new FlowInfo().fromJsonString(jsonString, options); + } + + static equals(a: FlowInfo | PlainMessage | undefined, b: FlowInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(FlowInfo, a, b); + } +} + +/** + * a structure for requesting a new flow's creation + * + * @generated from message refractedlabs.flowtrade.v1.FlowCreationRequest + */ +export class FlowCreationRequest extends Message { + /** + * informational data about the flow + * + * @generated from field: refractedlabs.flowtrade.v1.FlowInfo flow_info = 1; + */ + flowInfo?: FlowInfo; + + /** + * the time that swap distribution starts + * + * @generated from field: google.protobuf.Timestamp start_time = 2; + */ + startTime?: Timestamp; + + /** + * the time that flow is ended + * + * @generated from field: google.protobuf.Timestamp end_time = 3; + */ + endTime?: Timestamp; + + /** + * the interval in which the distribution index is updated and hence tokens are swapped + * if dist_interval is 0, the flow is updated every time in or out tokens are increased or decreased + * if dist_interval is equal to the duration of flow, it means that all of the tokens are swapped once after the flow ends + * + * @generated from field: google.protobuf.Duration dist_interval = 4; + */ + distInterval?: Duration; + + /** + * the address that the swapped tokens are sent to after the flow ends + * + * @generated from field: string treasury_address = 5; + */ + treasuryAddress = ""; + + /** + * total amount creator provided to be swapped + * + * @generated from field: cosmos.base.v1beta1.Coin tokens_out = 6; + */ + tokensOut?: Coin; + + /** + * the accepted token to buy the out tokens + * + * @generated from field: string token_in_denom = 7; + */ + tokenInDenom = ""; + + /** + * the time from then the flow buyers can claim their purchased tokens + * + * @generated from field: google.protobuf.Timestamp token_out_claimable_after = 8; + */ + tokenOutClaimableAfter?: Timestamp; + + /** + * the time from then the flow creator can claim the swapped tokens + * + * @generated from field: google.protobuf.Timestamp token_in_claimable_after = 9; + */ + tokenInClaimableAfter?: Timestamp; + + /** + * whether the flow can be stopped by the flow's creator + * + * @generated from field: bool stoppable = 10; + */ + stoppable = false; + + /** + * whether to allow buyers to claim their tokens immediately after the flow is stopped + * + * @generated from field: bool allow_immediate_token_out_claim_if_stopped = 11; + */ + allowImmediateTokenOutClaimIfStopped = false; + + /** + * whether to allow flow's creator to claim tokens immediately after the flow is stopped + * + * @generated from field: bool allow_immediate_token_in_claim_if_stopped = 12; + */ + allowImmediateTokenInClaimIfStopped = false; + + /** + * the minimum price for the token-out in terms of token-in. + * in each swap interval, if the calculated price is less than this limit, the swap doesn't happen in that turn + * Since: v0.4 + * + * @generated from field: string limit_price = 13; + */ + limitPrice = ""; + + /** + * the duration of the exit window before swap interval, in which users can only exit the flow and joining is not permitted + * this duration is used to protect joiners from buying the token-out with a higher price when someone joins with a huge amount of token-in + * Since: v0.4 + * + * @generated from field: google.protobuf.Duration exit_window_duration = 14; + */ + exitWindowDuration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.FlowCreationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_info", kind: "message", T: FlowInfo }, + { no: 2, name: "start_time", kind: "message", T: Timestamp }, + { no: 3, name: "end_time", kind: "message", T: Timestamp }, + { no: 4, name: "dist_interval", kind: "message", T: Duration }, + { no: 5, name: "treasury_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "tokens_out", kind: "message", T: Coin }, + { no: 7, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "token_out_claimable_after", kind: "message", T: Timestamp }, + { no: 9, name: "token_in_claimable_after", kind: "message", T: Timestamp }, + { no: 10, name: "stoppable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 11, name: "allow_immediate_token_out_claim_if_stopped", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 12, name: "allow_immediate_token_in_claim_if_stopped", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 13, name: "limit_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "exit_window_duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FlowCreationRequest { + return new FlowCreationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FlowCreationRequest { + return new FlowCreationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FlowCreationRequest { + return new FlowCreationRequest().fromJsonString(jsonString, options); + } + + static equals(a: FlowCreationRequest | PlainMessage | undefined, b: FlowCreationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(FlowCreationRequest, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/flowtrade/v1/genesis_pb.ts b/src/protobufs/refractedlabs/flowtrade/v1/genesis_pb.ts new file mode 100644 index 00000000..4bb15214 --- /dev/null +++ b/src/protobufs/refractedlabs/flowtrade/v1/genesis_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/flowtrade/v1/genesis.proto (package refractedlabs.flowtrade.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Flow } from "./flow_pb.js"; +import { Position } from "./position_pb.js"; + +/** + * GenesisState defines the flowtrade module's genesis state. + * + * @generated from message refractedlabs.flowtrade.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: refractedlabs.flowtrade.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated refractedlabs.flowtrade.v1.Flow flow_list = 2; + */ + flowList: Flow[] = []; + + /** + * @generated from field: uint64 flow_count = 3; + */ + flowCount = protoInt64.zero; + + /** + * @generated from field: repeated refractedlabs.flowtrade.v1.Position position_list = 4; + */ + positionList: Position[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "flow_list", kind: "message", T: Flow, repeated: true }, + { no: 3, name: "flow_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "position_list", kind: "message", T: Position, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/flowtrade/v1/params_pb.ts b/src/protobufs/refractedlabs/flowtrade/v1/params_pb.ts new file mode 100644 index 00000000..db14f495 --- /dev/null +++ b/src/protobufs/refractedlabs/flowtrade/v1/params_pb.ts @@ -0,0 +1,137 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/flowtrade/v1/params.proto (package refractedlabs.flowtrade.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message refractedlabs.flowtrade.v1.Params + */ +export class Params extends Message { + /** + * The deposit amount taken from flow creator and transferred back after the flow ends + * + * @generated from field: cosmos.base.v1beta1.Coin flow_creation_deposit = 1; + */ + flowCreationDeposit?: Coin; + + /** + * The minimum possible duration a flow can have + * + * @generated from field: google.protobuf.Duration min_flow_duration = 2; + */ + minFlowDuration?: Duration; + + /** + * The minimum possible duration from the flow creation time to its start time + * + * @generated from field: google.protobuf.Duration min_duration_to_flow_start = 3; + */ + minDurationToFlowStart?: Duration; + + /** + * the protocol fee ratio taken from token-out + * + * @generated from field: string token_out_fee_ratio = 4; + */ + tokenOutFeeRatio = ""; + + /** + * the protocol fee ratio taken from token-in + * + * @generated from field: string token_in_fee_ratio = 5; + */ + tokenInFeeRatio = ""; + + /** + * @generated from field: refractedlabs.flowtrade.v1.GasParameters gas_parameters = 6; + */ + gasParameters?: GasParameters; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_creation_deposit", kind: "message", T: Coin }, + { no: 2, name: "min_flow_duration", kind: "message", T: Duration }, + { no: 3, name: "min_duration_to_flow_start", kind: "message", T: Duration }, + { no: 4, name: "token_out_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_in_fee_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "gas_parameters", kind: "message", T: GasParameters }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + +/** + * Parameters for consuming gas on certain operations + * + * @generated from message refractedlabs.flowtrade.v1.GasParameters + */ +export class GasParameters extends Message { + /** + * gas for creating a new flow + * + * @generated from field: uint64 flow_create = 1; + */ + flowCreate = protoInt64.zero; + + /** + * gas for stopping a flow + * + * @generated from field: uint64 flow_stop = 2; + */ + flowStop = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.GasParameters"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow_create", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "flow_stop", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GasParameters { + return new GasParameters().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GasParameters { + return new GasParameters().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GasParameters { + return new GasParameters().fromJsonString(jsonString, options); + } + + static equals(a: GasParameters | PlainMessage | undefined, b: GasParameters | PlainMessage | undefined): boolean { + return proto3.util.equals(GasParameters, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/flowtrade/v1/position_pb.ts b/src/protobufs/refractedlabs/flowtrade/v1/position_pb.ts new file mode 100644 index 00000000..bed9bd4b --- /dev/null +++ b/src/protobufs/refractedlabs/flowtrade/v1/position_pb.ts @@ -0,0 +1,120 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/flowtrade/v1/position.proto (package refractedlabs.flowtrade.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message refractedlabs.flowtrade.v1.Position + */ +export class Position extends Message { + /** + * the flow for which this position is created + * + * @generated from field: uint64 flow = 1; + */ + flow = protoInt64.zero; + + /** + * the address of the position's owner + * + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * the address that the owner has delegated position management to. + * the operator is allowed to manage the position + * + * @generated from field: string operator = 3; + */ + operator = ""; + + /** + * an index for the amount of purchase that has already been applied + * + * @generated from field: string dist_index = 4; + */ + distIndex = ""; + + /** + * the current amount of token-in provided to buy token-out + * + * @generated from field: string token_in_balance = 5; + */ + tokenInBalance = ""; + + /** + * the amount of already spent in tokens + * + * @generated from field: string spent_token_in = 6; + */ + spentTokenIn = ""; + + /** + * the shares of this position from the flow + * + * @generated from field: string shares = 7; + */ + shares = ""; + + /** + * the amount of out tokens that has purchased by user + * + * @generated from field: string purchased_token_out = 8; + */ + purchasedTokenOut = ""; + + /** + * the amount of purchased token that are paid for, but not calculated in purchased_token_out because of rounding errors + * + * @generated from field: string pending_purchase = 9; + */ + pendingPurchase = ""; + + /** + * the amount of purchase that has been claimed by user and already transferred to their account + * + * @generated from field: string claimed_amount = 10; + */ + claimedAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.flowtrade.v1.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flow", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "dist_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_in_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "spent_token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "purchased_token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "pending_purchase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "claimed_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/event_pb.ts b/src/protobufs/refractedlabs/oracle/v1/event_pb.ts new file mode 100644 index 00000000..b0ccad8b --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/event_pb.ts @@ -0,0 +1,522 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/event.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { OracleVote } from "./oracle_vote_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from enum refractedlabs.oracle.v1.VoteType + */ +export enum VoteType { + /** + * @generated from enum value: VOTE_TYPE_ABSTAIN_VOTE = 0; + */ + ABSTAIN_VOTE = 0, + + /** + * @generated from enum value: VOTE_TYPE_NO_VOTE = 1; + */ + NO_VOTE = 1, + + /** + * @generated from enum value: VOTE_TYPE_VALID_VOTE = 2; + */ + VALID_VOTE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(VoteType) +proto3.util.setEnumType(VoteType, "refractedlabs.oracle.v1.VoteType", [ + { no: 0, name: "VOTE_TYPE_ABSTAIN_VOTE" }, + { no: 1, name: "VOTE_TYPE_NO_VOTE" }, + { no: 2, name: "VOTE_TYPE_VALID_VOTE" }, +]); + +/** + * @generated from message refractedlabs.oracle.v1.EventDelegateFeedConsent + */ +export class EventDelegateFeedConsent extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string feeder = 2; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventDelegateFeedConsent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDelegateFeedConsent { + return new EventDelegateFeedConsent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDelegateFeedConsent { + return new EventDelegateFeedConsent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDelegateFeedConsent { + return new EventDelegateFeedConsent().fromJsonString(jsonString, options); + } + + static equals(a: EventDelegateFeedConsent | PlainMessage | undefined, b: EventDelegateFeedConsent | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDelegateFeedConsent, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.EventOraclePreVote + */ +export class EventOraclePreVote extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string feeder = 2; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventOraclePreVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOraclePreVote { + return new EventOraclePreVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOraclePreVote { + return new EventOraclePreVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOraclePreVote { + return new EventOraclePreVote().fromJsonString(jsonString, options); + } + + static equals(a: EventOraclePreVote | PlainMessage | undefined, b: EventOraclePreVote | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOraclePreVote, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.EventOracleVote + */ +export class EventOracleVote extends Message { + /** + * @generated from field: string feeder = 1; + */ + feeder = ""; + + /** + * @generated from field: refractedlabs.oracle.v1.OracleVote oracle_vote = 2; + */ + oracleVote?: OracleVote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventOracleVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "oracle_vote", kind: "message", T: OracleVote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOracleVote { + return new EventOracleVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOracleVote { + return new EventOracleVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventOracleVote { + return new EventOracleVote().fromJsonString(jsonString, options); + } + + static equals(a: EventOracleVote | PlainMessage | undefined, b: EventOracleVote | PlainMessage | undefined): boolean { + return proto3.util.equals(EventOracleVote, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.BallotVoteResult + */ +export class BallotVoteResult extends Message { + /** + * @generated from field: string namespace = 1; + */ + namespace = ""; + + /** + * @generated from field: string module = 2; + */ + module = ""; + + /** + * @generated from field: bool quorum_reached = 3; + */ + quorumReached = false; + + /** + * @generated from field: int64 ballot_power = 4; + */ + ballotPower = protoInt64.zero; + + /** + * @generated from field: bool majority_achieved = 5; + */ + majorityAchieved = false; + + /** + * @generated from field: refractedlabs.oracle.v1.VoteType majority_vote_type = 6; + */ + majorityVoteType = VoteType.ABSTAIN_VOTE; + + /** + * @generated from field: string majority_vote_payload = 7; + */ + majorityVotePayload = ""; + + /** + * error returned by a call to the corresponding module's OnMajorityVote callback method + * + * @generated from field: string callback_error = 8; + */ + callbackError = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.BallotVoteResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "quorum_reached", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "ballot_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "majority_achieved", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 6, name: "majority_vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, + { no: 7, name: "majority_vote_payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "callback_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BallotVoteResult { + return new BallotVoteResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BallotVoteResult { + return new BallotVoteResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BallotVoteResult { + return new BallotVoteResult().fromJsonString(jsonString, options); + } + + static equals(a: BallotVoteResult | PlainMessage | undefined, b: BallotVoteResult | PlainMessage | undefined): boolean { + return proto3.util.equals(BallotVoteResult, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.ValidatorVoteIntervalSummary + */ +export class ValidatorVoteIntervalSummary extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: int64 validator_power = 2; + */ + validatorPower = protoInt64.zero; + + /** + * @generated from field: bool voted = 3; + */ + voted = false; + + /** + * @generated from field: int64 vote_interval_miss_counter = 4; + */ + voteIntervalMissCounter = protoInt64.zero; + + /** + * @generated from field: int64 slash_window_miss_counter = 5; + */ + slashWindowMissCounter = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 6; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.ValidatorVoteIntervalSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "voted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "vote_interval_miss_counter", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "slash_window_miss_counter", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorVoteIntervalSummary { + return new ValidatorVoteIntervalSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorVoteIntervalSummary { + return new ValidatorVoteIntervalSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorVoteIntervalSummary { + return new ValidatorVoteIntervalSummary().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorVoteIntervalSummary | PlainMessage | undefined, b: ValidatorVoteIntervalSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorVoteIntervalSummary, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.EventVoteIntervalEnds + */ +export class EventVoteIntervalEnds extends Message { + /** + * @generated from field: int64 time_millis = 1; + */ + timeMillis = protoInt64.zero; + + /** + * @generated from field: int64 block_height = 2; + */ + blockHeight = protoInt64.zero; + + /** + * @generated from field: int64 vote_period = 3; + */ + votePeriod = protoInt64.zero; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.ValidatorVoteIntervalSummary validator_summaries = 4; + */ + validatorSummaries: ValidatorVoteIntervalSummary[] = []; + + /** + * @generated from field: int64 previous_vote_interval_end_time_millis = 5; + */ + previousVoteIntervalEndTimeMillis = protoInt64.zero; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.BallotVoteResult ballot_vote_results = 6; + */ + ballotVoteResults: BallotVoteResult[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventVoteIntervalEnds"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "time_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "vote_period", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "validator_summaries", kind: "message", T: ValidatorVoteIntervalSummary, repeated: true }, + { no: 5, name: "previous_vote_interval_end_time_millis", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "ballot_vote_results", kind: "message", T: BallotVoteResult, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteIntervalEnds { + return new EventVoteIntervalEnds().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteIntervalEnds { + return new EventVoteIntervalEnds().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteIntervalEnds { + return new EventVoteIntervalEnds().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteIntervalEnds | PlainMessage | undefined, b: EventVoteIntervalEnds | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteIntervalEnds, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.ValidatorSlashWindowSummary + */ +export class ValidatorSlashWindowSummary extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: int64 validator_power = 2; + */ + validatorPower = protoInt64.zero; + + /** + * @generated from field: int64 miss_counter = 3; + */ + missCounter = protoInt64.zero; + + /** + * @generated from field: bool jailed = 4; + */ + jailed = false; + + /** + * @generated from field: string slash_amount = 5; + */ + slashAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.ValidatorSlashWindowSummary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "miss_counter", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "jailed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "slash_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSlashWindowSummary { + return new ValidatorSlashWindowSummary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSlashWindowSummary { + return new ValidatorSlashWindowSummary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorSlashWindowSummary { + return new ValidatorSlashWindowSummary().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorSlashWindowSummary | PlainMessage | undefined, b: ValidatorSlashWindowSummary | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorSlashWindowSummary, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.EventSlashWindowEnds + */ +export class EventSlashWindowEnds extends Message { + /** + * @generated from field: int64 slash_window = 1; + */ + slashWindow = protoInt64.zero; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.ValidatorSlashWindowSummary validator_summaries = 2; + */ + validatorSummaries: ValidatorSlashWindowSummary[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventSlashWindowEnds"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "slash_window", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "validator_summaries", kind: "message", T: ValidatorSlashWindowSummary, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSlashWindowEnds { + return new EventSlashWindowEnds().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSlashWindowEnds { + return new EventSlashWindowEnds().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSlashWindowEnds { + return new EventSlashWindowEnds().fromJsonString(jsonString, options); + } + + static equals(a: EventSlashWindowEnds | PlainMessage | undefined, b: EventSlashWindowEnds | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSlashWindowEnds, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.EventSetParams + */ +export class EventSetParams extends Message { + /** + * @generated from field: refractedlabs.oracle.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.EventSetParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSetParams { + return new EventSetParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSetParams { + return new EventSetParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSetParams { + return new EventSetParams().fromJsonString(jsonString, options); + } + + static equals(a: EventSetParams | PlainMessage | undefined, b: EventSetParams | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSetParams, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/feeder_delegation_pb.ts b/src/protobufs/refractedlabs/oracle/v1/feeder_delegation_pb.ts new file mode 100644 index 00000000..1836c94d --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/feeder_delegation_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/feeder_delegation.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message refractedlabs.oracle.v1.FeederDelegation + */ +export class FeederDelegation extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string feeder = 2; + */ + feeder = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.FeederDelegation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "feeder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FeederDelegation { + return new FeederDelegation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FeederDelegation { + return new FeederDelegation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FeederDelegation { + return new FeederDelegation().fromJsonString(jsonString, options); + } + + static equals(a: FeederDelegation | PlainMessage | undefined, b: FeederDelegation | PlainMessage | undefined): boolean { + return proto3.util.equals(FeederDelegation, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/genesis_pb.ts b/src/protobufs/refractedlabs/oracle/v1/genesis_pb.ts new file mode 100644 index 00000000..b92e94f6 --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/genesis_pb.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/genesis.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { FeederDelegation } from "./feeder_delegation_pb.js"; +import { OraclePreVote } from "./oracle_pre_vote_pb.js"; +import { OracleVote } from "./oracle_vote_pb.js"; +import { MissCounter } from "./miss_counter_pb.js"; + +/** + * GenesisState defines the oracle module's genesis state. + * + * @generated from message refractedlabs.oracle.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: refractedlabs.oracle.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.FeederDelegation feeder_delegation_list = 2; + */ + feederDelegationList: FeederDelegation[] = []; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.OraclePreVote oracle_pre_vote_list = 3; + */ + oraclePreVoteList: OraclePreVote[] = []; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.OracleVote oracle_vote_list = 4; + */ + oracleVoteList: OracleVote[] = []; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.MissCounter miss_counter_list = 5; + */ + missCounterList: MissCounter[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "feeder_delegation_list", kind: "message", T: FeederDelegation, repeated: true }, + { no: 3, name: "oracle_pre_vote_list", kind: "message", T: OraclePreVote, repeated: true }, + { no: 4, name: "oracle_vote_list", kind: "message", T: OracleVote, repeated: true }, + { no: 5, name: "miss_counter_list", kind: "message", T: MissCounter, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/miss_counter_pb.ts b/src/protobufs/refractedlabs/oracle/v1/miss_counter_pb.ts new file mode 100644 index 00000000..ff8fbb99 --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/miss_counter_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/miss_counter.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message refractedlabs.oracle.v1.MissCounter + */ +export class MissCounter extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: int64 counter = 2; + */ + counter = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.MissCounter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "counter", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MissCounter { + return new MissCounter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MissCounter { + return new MissCounter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MissCounter { + return new MissCounter().fromJsonString(jsonString, options); + } + + static equals(a: MissCounter | PlainMessage | undefined, b: MissCounter | PlainMessage | undefined): boolean { + return proto3.util.equals(MissCounter, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/oracle_pre_vote_pb.ts b/src/protobufs/refractedlabs/oracle/v1/oracle_pre_vote_pb.ts new file mode 100644 index 00000000..3ef427d4 --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/oracle_pre_vote_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/oracle_pre_vote.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * @generated from message refractedlabs.oracle.v1.OraclePreVote + */ +export class OraclePreVote extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string hash = 2; + */ + hash = ""; + + /** + * @generated from field: int64 submit_block = 3; + */ + submitBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.OraclePreVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "submit_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OraclePreVote { + return new OraclePreVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OraclePreVote { + return new OraclePreVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OraclePreVote { + return new OraclePreVote().fromJsonString(jsonString, options); + } + + static equals(a: OraclePreVote | PlainMessage | undefined, b: OraclePreVote | PlainMessage | undefined): boolean { + return proto3.util.equals(OraclePreVote, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/oracle_vote_pb.ts b/src/protobufs/refractedlabs/oracle/v1/oracle_vote_pb.ts new file mode 100644 index 00000000..485d123c --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/oracle_vote_pb.ts @@ -0,0 +1,137 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/oracle_vote.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message refractedlabs.oracle.v1.NamespaceVote + */ +export class NamespaceVote extends Message { + /** + * @generated from field: string namespace = 1; + */ + namespace = ""; + + /** + * @generated from field: string payload = 2; + */ + payload = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.NamespaceVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamespaceVote { + return new NamespaceVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamespaceVote { + return new NamespaceVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamespaceVote { + return new NamespaceVote().fromJsonString(jsonString, options); + } + + static equals(a: NamespaceVote | PlainMessage | undefined, b: NamespaceVote | PlainMessage | undefined): boolean { + return proto3.util.equals(NamespaceVote, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.ModuleVote + */ +export class ModuleVote extends Message { + /** + * @generated from field: string module = 1; + */ + module = ""; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.NamespaceVote namespace_votes = 2 [json_name = "namespace_votes"]; + */ + namespaceVotes: NamespaceVote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.ModuleVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "namespace_votes", jsonName: "namespace_votes", kind: "message", T: NamespaceVote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ModuleVote { + return new ModuleVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ModuleVote { + return new ModuleVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ModuleVote { + return new ModuleVote().fromJsonString(jsonString, options); + } + + static equals(a: ModuleVote | PlainMessage | undefined, b: ModuleVote | PlainMessage | undefined): boolean { + return proto3.util.equals(ModuleVote, a, b); + } +} + +/** + * @generated from message refractedlabs.oracle.v1.OracleVote + */ +export class OracleVote extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: repeated refractedlabs.oracle.v1.ModuleVote module_votes = 2 [json_name = "module_votes"]; + */ + moduleVotes: ModuleVote[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.OracleVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "module_votes", jsonName: "module_votes", kind: "message", T: ModuleVote, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OracleVote { + return new OracleVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OracleVote { + return new OracleVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OracleVote { + return new OracleVote().fromJsonString(jsonString, options); + } + + static equals(a: OracleVote | PlainMessage | undefined, b: OracleVote | PlainMessage | undefined): boolean { + return proto3.util.equals(OracleVote, a, b); + } +} + diff --git a/src/protobufs/refractedlabs/oracle/v1/params_pb.ts b/src/protobufs/refractedlabs/oracle/v1/params_pb.ts new file mode 100644 index 00000000..2aabe812 --- /dev/null +++ b/src/protobufs/refractedlabs/oracle/v1/params_pb.ts @@ -0,0 +1,91 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file refractedlabs/oracle/v1/params.proto (package refractedlabs.oracle.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message refractedlabs.oracle.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: int64 vote_period = 1; + */ + votePeriod = protoInt64.zero; + + /** + * @generated from field: string quorum = 2; + */ + quorum = ""; + + /** + * @generated from field: string vote_threshold = 3; + */ + voteThreshold = ""; + + /** + * @generated from field: string slash_fraction = 4; + */ + slashFraction = ""; + + /** + * @generated from field: int64 slash_window = 5; + */ + slashWindow = protoInt64.zero; + + /** + * @generated from field: string max_miss_rate_per_slash_window = 6; + */ + maxMissRatePerSlashWindow = ""; + + /** + * @generated from field: string max_miss_rate_per_vote_period = 7; + */ + maxMissRatePerVotePeriod = ""; + + /** + * ratio in range [0, 1] which determines the amount of collected fees that is supposed to be distributed among validators as oracle reward + * + * @generated from field: string fee_collector_reward_ratio = 8; + */ + feeCollectorRewardRatio = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "refractedlabs.oracle.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_period", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "vote_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "slash_fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "slash_window", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "max_miss_rate_per_slash_window", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "max_miss_rate_per_vote_period", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "fee_collector_reward_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/module/v1/module_pb.ts b/src/protobufs/sunrise/cron/module/v1/module_pb.ts new file mode 100644 index 00000000..b73d1e99 --- /dev/null +++ b/src/protobufs/sunrise/cron/module/v1/module_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/module/v1/module.proto (package sunrise.cron.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.cron.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. + * If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/v1/genesis_pb.ts b/src/protobufs/sunrise/cron/v1/genesis_pb.ts new file mode 100644 index 00000000..27c37dbf --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/genesis_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/v1/genesis.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Schedule } from "./schedule_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the cron module's genesis state. + * + * @generated from message sunrise.cron.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * @generated from field: repeated sunrise.cron.v1.Schedule schedule_list = 2; + */ + scheduleList: Schedule[] = []; + + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.cron.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "schedule_list", kind: "message", T: Schedule, repeated: true }, + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/v1/params_pb.ts b/src/protobufs/sunrise/cron/v1/params_pb.ts new file mode 100644 index 00000000..cd64669c --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/params_pb.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/v1/params.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.cron.v1.Params + */ +export class Params extends Message { + /** + * Security address that can remove schedules + * + * @generated from field: string security_address = 1; + */ + securityAddress = ""; + + /** + * Limit of schedules executed in one block + * + * @generated from field: uint64 limit = 2; + */ + limit = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "security_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/v1/query_cosmes.ts b/src/protobufs/sunrise/cron/v1/query_cosmes.ts new file mode 100644 index 00000000..a0bfae5f --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/query_cosmes.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/cron/v1/query.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryGetScheduleRequest, QueryGetScheduleResponse, QueryParamsRequest, QueryParamsResponse, QuerySchedulesRequest, QuerySchedulesResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.cron.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.cron.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Queries a Schedule by name. + * + * @generated from rpc sunrise.cron.v1.Query.Schedule + */ +export const QueryScheduleService = { + typeName: TYPE_NAME, + method: "Schedule", + Request: QueryGetScheduleRequest, + Response: QueryGetScheduleResponse, +} as const; + +/** + * Queries a list of Schedule items. + * + * @generated from rpc sunrise.cron.v1.Query.Schedules + */ +export const QuerySchedulesService = { + typeName: TYPE_NAME, + method: "Schedules", + Request: QuerySchedulesRequest, + Response: QuerySchedulesResponse, +} as const; + diff --git a/src/protobufs/sunrise/cron/v1/query_pb.ts b/src/protobufs/sunrise/cron/v1/query_pb.ts new file mode 100644 index 00000000..6c56345f --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/query_pb.ts @@ -0,0 +1,247 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/v1/query.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Schedule } from "./schedule_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.cron.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.cron.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.cron.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * The request type for the Query/Schedule RPC method. + * + * @generated from message sunrise.cron.v1.QueryGetScheduleRequest + */ +export class QueryGetScheduleRequest extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QueryGetScheduleRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleRequest { + return new QueryGetScheduleRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleRequest | PlainMessage | undefined, b: QueryGetScheduleRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleRequest, a, b); + } +} + +/** + * The response type for the Query/Params RPC method. + * + * @generated from message sunrise.cron.v1.QueryGetScheduleResponse + */ +export class QueryGetScheduleResponse extends Message { + /** + * @generated from field: sunrise.cron.v1.Schedule schedule = 1; + */ + schedule?: Schedule; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QueryGetScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule", kind: "message", T: Schedule }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryGetScheduleResponse { + return new QueryGetScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryGetScheduleResponse | PlainMessage | undefined, b: QueryGetScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryGetScheduleResponse, a, b); + } +} + +/** + * The request type for the Query/Schedules RPC method. + * + * @generated from message sunrise.cron.v1.QuerySchedulesRequest + */ +export class QuerySchedulesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QuerySchedulesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySchedulesRequest { + return new QuerySchedulesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySchedulesRequest | PlainMessage | undefined, b: QuerySchedulesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySchedulesRequest, a, b); + } +} + +/** + * The response type for the Query/Params RPC method. + * + * @generated from message sunrise.cron.v1.QuerySchedulesResponse + */ +export class QuerySchedulesResponse extends Message { + /** + * @generated from field: repeated sunrise.cron.v1.Schedule schedules = 1; + */ + schedules: Schedule[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.QuerySchedulesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedules", kind: "message", T: Schedule, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySchedulesResponse { + return new QuerySchedulesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySchedulesResponse | PlainMessage | undefined, b: QuerySchedulesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySchedulesResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/v1/schedule_pb.ts b/src/protobufs/sunrise/cron/v1/schedule_pb.ts new file mode 100644 index 00000000..a6f034d2 --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/schedule_pb.ts @@ -0,0 +1,197 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/v1/schedule.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Defines when messages will be executed in the block + * + * @generated from enum sunrise.cron.v1.ExecutionStage + */ +export enum ExecutionStage { + /** + * Execution at the end of the block + * + * @generated from enum value: EXECUTION_STAGE_END_BLOCKER = 0; + */ + END_BLOCKER = 0, + + /** + * Execution at the beginning of the block + * + * @generated from enum value: EXECUTION_STAGE_BEGIN_BLOCKER = 1; + */ + BEGIN_BLOCKER = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionStage) +proto3.util.setEnumType(ExecutionStage, "sunrise.cron.v1.ExecutionStage", [ + { no: 0, name: "EXECUTION_STAGE_END_BLOCKER" }, + { no: 1, name: "EXECUTION_STAGE_BEGIN_BLOCKER" }, +]); + +/** + * Defines the schedule for execution + * + * @generated from message sunrise.cron.v1.Schedule + */ +export class Schedule extends Message { + /** + * Name of schedule + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * Period in blocks + * + * @generated from field: uint64 period = 2; + */ + period = protoInt64.zero; + + /** + * Msgs that will be executed every certain number of blocks, specified in the `period` field + * + * @generated from field: repeated sunrise.cron.v1.MsgExecuteContract msgs = 3; + */ + msgs: MsgExecuteContract[] = []; + + /** + * Last execution's block height + * + * @generated from field: uint64 last_execute_height = 4; + */ + lastExecuteHeight = protoInt64.zero; + + /** + * Stage when messages will be executed + * + * @generated from field: sunrise.cron.v1.ExecutionStage execution_stage = 5; + */ + executionStage = ExecutionStage.END_BLOCKER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.Schedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "msgs", kind: "message", T: MsgExecuteContract, repeated: true }, + { no: 4, name: "last_execute_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "execution_stage", kind: "enum", T: proto3.getEnumType(ExecutionStage) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Schedule { + return new Schedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Schedule { + return new Schedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Schedule { + return new Schedule().fromJsonString(jsonString, options); + } + + static equals(a: Schedule | PlainMessage | undefined, b: Schedule | PlainMessage | undefined): boolean { + return proto3.util.equals(Schedule, a, b); + } +} + +/** + * Defines the contract and the message to pass + * + * @generated from message sunrise.cron.v1.MsgExecuteContract + */ +export class MsgExecuteContract extends Message { + /** + * The address of the smart contract + * + * @generated from field: string contract = 1; + */ + contract = ""; + + /** + * JSON encoded message to be passed to the contract + * + * @generated from field: string msg = 2; + */ + msg = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgExecuteContract"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { + return new MsgExecuteContract().fromJsonString(jsonString, options); + } + + static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgExecuteContract, a, b); + } +} + +/** + * Defines the number of current schedules + * + * @generated from message sunrise.cron.v1.ScheduleCount + */ +export class ScheduleCount extends Message { + /** + * The number of current schedules + * + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.ScheduleCount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ScheduleCount { + return new ScheduleCount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ScheduleCount { + return new ScheduleCount().fromJsonString(jsonString, options); + } + + static equals(a: ScheduleCount | PlainMessage | undefined, b: ScheduleCount | PlainMessage | undefined): boolean { + return proto3.util.equals(ScheduleCount, a, b); + } +} + diff --git a/src/protobufs/sunrise/cron/v1/tx_cosmes.ts b/src/protobufs/sunrise/cron/v1/tx_cosmes.ts new file mode 100644 index 00000000..b34c9652 --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/tx_cosmes.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/cron/v1/tx.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgAddSchedule, MsgAddScheduleResponse, MsgRemoveSchedule, MsgRemoveScheduleResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.cron.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.cron.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * Adds new schedule. + * + * @generated from rpc sunrise.cron.v1.Msg.AddSchedule + */ +export const MsgAddScheduleService = { + typeName: TYPE_NAME, + method: "AddSchedule", + Request: MsgAddSchedule, + Response: MsgAddScheduleResponse, +} as const; + +/** + * Removes schedule. + * + * @generated from rpc sunrise.cron.v1.Msg.RemoveSchedule + */ +export const MsgRemoveScheduleService = { + typeName: TYPE_NAME, + method: "RemoveSchedule", + Request: MsgRemoveSchedule, + Response: MsgRemoveScheduleResponse, +} as const; + diff --git a/src/protobufs/sunrise/cron/v1/tx_pb.ts b/src/protobufs/sunrise/cron/v1/tx_pb.ts new file mode 100644 index 00000000..8defa585 --- /dev/null +++ b/src/protobufs/sunrise/cron/v1/tx_pb.ts @@ -0,0 +1,283 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/cron/v1/tx.proto (package sunrise.cron.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ExecutionStage, MsgExecuteContract } from "./schedule_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.cron.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the module parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.cron.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.cron.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * The MsgAddSchedule request type. + * + * @generated from message sunrise.cron.v1.MsgAddSchedule + */ +export class MsgAddSchedule extends Message { + /** + * The address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Name of the schedule + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Period in blocks + * + * @generated from field: uint64 period = 3; + */ + period = protoInt64.zero; + + /** + * Msgs that will be executed every certain number of blocks, specified in the `period` field + * + * @generated from field: repeated sunrise.cron.v1.MsgExecuteContract msgs = 4; + */ + msgs: MsgExecuteContract[] = []; + + /** + * Stage when messages will be executed + * + * @generated from field: sunrise.cron.v1.ExecutionStage execution_stage = 5; + */ + executionStage = ExecutionStage.END_BLOCKER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgAddSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "msgs", kind: "message", T: MsgExecuteContract, repeated: true }, + { no: 5, name: "execution_stage", kind: "enum", T: proto3.getEnumType(ExecutionStage) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddSchedule { + return new MsgAddSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddSchedule | PlainMessage | undefined, b: MsgAddSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddSchedule, a, b); + } +} + +/** + * Defines the response structure for executing a MsgAddSchedule message. + * + * @generated from message sunrise.cron.v1.MsgAddScheduleResponse + */ +export class MsgAddScheduleResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgAddScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgAddScheduleResponse { + return new MsgAddScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgAddScheduleResponse | PlainMessage | undefined, b: MsgAddScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgAddScheduleResponse, a, b); + } +} + +/** + * The MsgRemoveSchedule request type. + * + * @generated from message sunrise.cron.v1.MsgRemoveSchedule + */ +export class MsgRemoveSchedule extends Message { + /** + * The address of the governance account. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * Name of the schedule + * + * @generated from field: string name = 2; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgRemoveSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveSchedule { + return new MsgRemoveSchedule().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveSchedule | PlainMessage | undefined, b: MsgRemoveSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveSchedule, a, b); + } +} + +/** + * Defines the response structure for executing a MsgRemoveSchedule message. + * + * @generated from message sunrise.cron.v1.MsgRemoveScheduleResponse + */ +export class MsgRemoveScheduleResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.cron.v1.MsgRemoveScheduleResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveScheduleResponse { + return new MsgRemoveScheduleResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRemoveScheduleResponse | PlainMessage | undefined, b: MsgRemoveScheduleResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRemoveScheduleResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/module/v1/module_pb.ts b/src/protobufs/sunrise/da/module/v1/module_pb.ts new file mode 100644 index 00000000..065167ac --- /dev/null +++ b/src/protobufs/sunrise/da/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/module/v1/module.proto (package sunrise.da.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.da.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/genesis_pb.ts b/src/protobufs/sunrise/da/v0/genesis_pb.ts new file mode 100644 index 00000000..fa1f26ee --- /dev/null +++ b/src/protobufs/sunrise/da/v0/genesis_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/genesis.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Proof, PublishedData } from "./published_data_pb.js"; + +/** + * GenesisState defines the da module's genesis state. + * + * @generated from message sunrise.da.v0.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.da.v0.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.da.v0.PublishedData published_data = 2; + */ + publishedData: PublishedData[] = []; + + /** + * @generated from field: repeated sunrise.da.v0.Proof proofs = 3; + */ + proofs: Proof[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "published_data", kind: "message", T: PublishedData, repeated: true }, + { no: 3, name: "proofs", kind: "message", T: Proof, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/metadata_pb.ts b/src/protobufs/sunrise/da/v0/metadata_pb.ts new file mode 100644 index 00000000..759013f5 --- /dev/null +++ b/src/protobufs/sunrise/da/v0/metadata_pb.ts @@ -0,0 +1,110 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/metadata.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Metadata + * + * @generated from message sunrise.da.v0.Metadata + */ +export class Metadata extends Message { + /** + * @generated from field: bytes recovered_data_hash = 1; + */ + recoveredDataHash = new Uint8Array(0); + + /** + * @generated from field: uint64 recovered_data_size = 2; + */ + recoveredDataSize = protoInt64.zero; + + /** + * @generated from field: uint64 shard_size = 3; + */ + shardSize = protoInt64.zero; + + /** + * @generated from field: uint64 parity_shard_count = 4; + */ + parityShardCount = protoInt64.zero; + + /** + * @generated from field: repeated string shard_uris = 5; + */ + shardUris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.Metadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recovered_data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "recovered_data_size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "shard_size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "parity_shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "shard_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { + return new Metadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { + return new Metadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Metadata { + return new Metadata().fromJsonString(jsonString, options); + } + + static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { + return proto3.util.equals(Metadata, a, b); + } +} + +/** + * MetadataUriWrapper + * + * @generated from message sunrise.da.v0.MetadataUriWrapper + */ +export class MetadataUriWrapper extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MetadataUriWrapper"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MetadataUriWrapper { + return new MetadataUriWrapper().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MetadataUriWrapper { + return new MetadataUriWrapper().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MetadataUriWrapper { + return new MetadataUriWrapper().fromJsonString(jsonString, options); + } + + static equals(a: MetadataUriWrapper | PlainMessage | undefined, b: MetadataUriWrapper | PlainMessage | undefined): boolean { + return proto3.util.equals(MetadataUriWrapper, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/params_pb.ts b/src/protobufs/sunrise/da/v0/params_pb.ts new file mode 100644 index 00000000..1573f1f2 --- /dev/null +++ b/src/protobufs/sunrise/da/v0/params_pb.ts @@ -0,0 +1,163 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/params.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.da.v0.Params + */ +export class Params extends Message { + /** + * @generated from field: uint64 publish_data_gas = 1; + */ + publishDataGas = protoInt64.zero; + + /** + * Invalid shard threshold required to go to STATUS_CHALLENGING. + * + * @generated from field: string challenge_threshold = 2; + */ + challengeThreshold = ""; + + /** + * https://docs.sunriselayer.io/learn/sunrise/data-availability#the-condition-of-data-availability + * + * @generated from field: string replication_factor = 3; + */ + replicationFactor = ""; + + /** + * How many blocks of slash are done every + * + * @generated from field: uint64 slash_epoch = 4; + */ + slashEpoch = protoInt64.zero; + + /** + * (number of challenges a validator did not submit proof / number of all challenge) is over this threshold in an epoch + * that validator will be slashed + * + * @generated from field: string slash_fault_threshold = 5; + */ + slashFaultThreshold = ""; + + /** + * voting power deducted during slash + * + * @generated from field: string slash_fraction = 6; + */ + slashFraction = ""; + + /** + * @generated from field: google.protobuf.Duration challenge_period = 7; + */ + challengePeriod?: Duration; + + /** + * @generated from field: google.protobuf.Duration proof_period = 8; + */ + proofPeriod?: Duration; + + /** + * @generated from field: google.protobuf.Duration rejected_removal_period = 9; + */ + rejectedRemovalPeriod?: Duration; + + /** + * @generated from field: google.protobuf.Duration verified_removal_period = 10; + */ + verifiedRemovalPeriod?: Duration; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin publish_data_collateral = 11; + */ + publishDataCollateral: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin submit_invalidity_collateral = 12; + */ + submitInvalidityCollateral: Coin[] = []; + + /** + * @generated from field: bytes zkp_verifying_key = 13; + */ + zkpVerifyingKey = new Uint8Array(0); + + /** + * proving key used in sunrise-data + * + * @generated from field: bytes zkp_proving_key = 14; + */ + zkpProvingKey = new Uint8Array(0); + + /** + * min_shard_count used in sunrise-data + * + * @generated from field: uint64 min_shard_count = 15; + */ + minShardCount = protoInt64.zero; + + /** + * max_shard_count used in sunrise-data + * + * @generated from field: uint64 max_shard_count = 16; + */ + maxShardCount = protoInt64.zero; + + /** + * max_shard_size used in sunrise-data + * + * @generated from field: uint64 max_shard_size = 17; + */ + maxShardSize = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "publish_data_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "challenge_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "replication_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "slash_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "slash_fault_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "slash_fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "challenge_period", kind: "message", T: Duration }, + { no: 8, name: "proof_period", kind: "message", T: Duration }, + { no: 9, name: "rejected_removal_period", kind: "message", T: Duration }, + { no: 10, name: "verified_removal_period", kind: "message", T: Duration }, + { no: 11, name: "publish_data_collateral", kind: "message", T: Coin, repeated: true }, + { no: 12, name: "submit_invalidity_collateral", kind: "message", T: Coin, repeated: true }, + { no: 13, name: "zkp_verifying_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 14, name: "zkp_proving_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 15, name: "min_shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 16, name: "max_shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 17, name: "max_shard_size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/published_data_pb.ts b/src/protobufs/sunrise/da/v0/published_data_pb.ts new file mode 100644 index 00000000..1390f9f9 --- /dev/null +++ b/src/protobufs/sunrise/da/v0/published_data_pb.ts @@ -0,0 +1,280 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/published_data.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * PublishedDataStatus + * + * @generated from enum sunrise.da.v0.Status + */ +export enum Status { + /** + * Default value + * + * @generated from enum value: STATUS_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Verified + * + * @generated from enum value: STATUS_VERIFIED = 1; + */ + VERIFIED = 1, + + /** + * Rejected + * + * @generated from enum value: STATUS_REJECTED = 2; + */ + REJECTED = 2, + + /** + * Verified the votes from the validators. Challenge can be received (after preBlocker) + * + * @generated from enum value: STATUS_CHALLENGE_PERIOD = 3; + */ + CHALLENGE_PERIOD = 3, + + /** + * A certain number of SubmitInvalidity received. Validators can send SubmitValidityProof tx. + * + * @generated from enum value: STATUS_CHALLENGING = 4; + */ + CHALLENGING = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(Status) +proto3.util.setEnumType(Status, "sunrise.da.v0.Status", [ + { no: 0, name: "STATUS_UNSPECIFIED" }, + { no: 1, name: "STATUS_VERIFIED" }, + { no: 2, name: "STATUS_REJECTED" }, + { no: 3, name: "STATUS_CHALLENGE_PERIOD" }, + { no: 4, name: "STATUS_CHALLENGING" }, +]); + +/** + * PublishedData + * + * @generated from message sunrise.da.v0.PublishedData + */ +export class PublishedData extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + /** + * @generated from field: uint64 parity_shard_count = 2; + */ + parityShardCount = protoInt64.zero; + + /** + * @generated from field: repeated bytes shard_double_hashes = 3; + */ + shardDoubleHashes: Uint8Array[] = []; + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 4; + */ + timestamp?: Timestamp; + + /** + * @generated from field: sunrise.da.v0.Status status = 5; + */ + status = Status.UNSPECIFIED; + + /** + * @generated from field: string publisher = 6; + */ + publisher = ""; + + /** + * @generated from field: string challenger = 7; + */ + challenger = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin publish_data_collateral = 8; + */ + publishDataCollateral: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin submit_invalidity_collateral = 9; + */ + submitInvalidityCollateral: Coin[] = []; + + /** + * @generated from field: google.protobuf.Timestamp published_timestamp = 10; + */ + publishedTimestamp?: Timestamp; + + /** + * @generated from field: string data_source_info = 11; + */ + dataSourceInfo = ""; + + /** + * @generated from field: int64 verified_height = 12; + */ + verifiedHeight = protoInt64.zero; + + /** + * challenger_validators is the list of validators that were active when the data was challenging. + * + * @generated from field: repeated string challenging_validators = 13; + */ + challengingValidators: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.PublishedData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "parity_shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "shard_double_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 4, name: "timestamp", kind: "message", T: Timestamp }, + { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(Status) }, + { no: 6, name: "publisher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "challenger", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "publish_data_collateral", kind: "message", T: Coin, repeated: true }, + { no: 9, name: "submit_invalidity_collateral", kind: "message", T: Coin, repeated: true }, + { no: 10, name: "published_timestamp", kind: "message", T: Timestamp }, + { no: 11, name: "data_source_info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "verified_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 13, name: "challenging_validators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublishedData { + return new PublishedData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublishedData { + return new PublishedData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublishedData { + return new PublishedData().fromJsonString(jsonString, options); + } + + static equals(a: PublishedData | PlainMessage | undefined, b: PublishedData | PlainMessage | undefined): boolean { + return proto3.util.equals(PublishedData, a, b); + } +} + +/** + * Proof + * + * @generated from message sunrise.da.v0.Proof + */ +export class Proof extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * @generated from field: repeated int64 indices = 3; + */ + indices: bigint[] = []; + + /** + * @generated from field: repeated bytes proofs = 4; + */ + proofs: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.Proof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "indices", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 4, name: "proofs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Proof { + return new Proof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Proof { + return new Proof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Proof { + return new Proof().fromJsonString(jsonString, options); + } + + static equals(a: Proof | PlainMessage | undefined, b: Proof | PlainMessage | undefined): boolean { + return proto3.util.equals(Proof, a, b); + } +} + +/** + * Invalidity + * + * @generated from message sunrise.da.v0.Invalidity + */ +export class Invalidity extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + /** + * @generated from field: string sender = 2; + */ + sender = ""; + + /** + * @generated from field: repeated int64 indices = 3; + */ + indices: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.Invalidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "indices", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Invalidity { + return new Invalidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Invalidity { + return new Invalidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Invalidity { + return new Invalidity().fromJsonString(jsonString, options); + } + + static equals(a: Invalidity | PlainMessage | undefined, b: Invalidity | PlainMessage | undefined): boolean { + return proto3.util.equals(Invalidity, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/query_cosmes.ts b/src/protobufs/sunrise/da/v0/query_cosmes.ts new file mode 100644 index 00000000..92100ebd --- /dev/null +++ b/src/protobufs/sunrise/da/v0/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/da/v0/query.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAllInvalidityRequest, QueryAllInvalidityResponse, QueryAllPublishedDataRequest, QueryAllPublishedDataResponse, QueryAllValidityProofsRequest, QueryAllValidityProofsResponse, QueryInvalidityRequest, QueryInvalidityResponse, QueryParamsRequest, QueryParamsResponse, QueryProofDeputyRequest, QueryProofDeputyResponse, QueryPublishedDataRequest, QueryPublishedDataResponse, QueryValidatorShardIndicesRequest, QueryValidatorShardIndicesResponse, QueryValidityProofRequest, QueryValidityProofResponse, QueryZkpProofThresholdRequest, QueryZkpProofThresholdResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.da.v0.Query"; + +/** + * Params queries the parameters of the module. + * + * @generated from rpc sunrise.da.v0.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * PublishedData queries published data + * + * @generated from rpc sunrise.da.v0.Query.PublishedData + */ +export const QueryPublishedDataService = { + typeName: TYPE_NAME, + method: "PublishedData", + Request: QueryPublishedDataRequest, + Response: QueryPublishedDataResponse, +} as const; + +/** + * AllPublishedData queries published data + * + * @generated from rpc sunrise.da.v0.Query.AllPublishedData + */ +export const QueryAllPublishedDataService = { + typeName: TYPE_NAME, + method: "AllPublishedData", + Request: QueryAllPublishedDataRequest, + Response: QueryAllPublishedDataResponse, +} as const; + +/** + * ValidityProof queries validity proof from the validator + * + * @generated from rpc sunrise.da.v0.Query.ValidityProof + */ +export const QueryValidityProofService = { + typeName: TYPE_NAME, + method: "ValidityProof", + Request: QueryValidityProofRequest, + Response: QueryValidityProofResponse, +} as const; + +/** + * AllValidityProofs queries all validity proofs + * + * @generated from rpc sunrise.da.v0.Query.AllValidityProofs + */ +export const QueryAllValidityProofsService = { + typeName: TYPE_NAME, + method: "AllValidityProofs", + Request: QueryAllValidityProofsRequest, + Response: QueryAllValidityProofsResponse, +} as const; + +/** + * Invalidity queries invalidity report + * + * @generated from rpc sunrise.da.v0.Query.Invalidity + */ +export const QueryInvalidityService = { + typeName: TYPE_NAME, + method: "Invalidity", + Request: QueryInvalidityRequest, + Response: QueryInvalidityResponse, +} as const; + +/** + * AllInvalidity queries all invalidity reports + * + * @generated from rpc sunrise.da.v0.Query.AllInvalidity + */ +export const QueryAllInvalidityService = { + typeName: TYPE_NAME, + method: "AllInvalidity", + Request: QueryAllInvalidityRequest, + Response: QueryAllInvalidityResponse, +} as const; + +/** + * ValidatorShardIndices + * + * @generated from rpc sunrise.da.v0.Query.ValidatorShardIndices + */ +export const QueryValidatorShardIndicesService = { + typeName: TYPE_NAME, + method: "ValidatorShardIndices", + Request: QueryValidatorShardIndicesRequest, + Response: QueryValidatorShardIndicesResponse, +} as const; + +/** + * ZkpProofThreshold + * + * @generated from rpc sunrise.da.v0.Query.ZkpProofThreshold + */ +export const QueryZkpProofThresholdService = { + typeName: TYPE_NAME, + method: "ZkpProofThreshold", + Request: QueryZkpProofThresholdRequest, + Response: QueryZkpProofThresholdResponse, +} as const; + +/** + * ProofDeputy + * + * @generated from rpc sunrise.da.v0.Query.ProofDeputy + */ +export const QueryProofDeputyService = { + typeName: TYPE_NAME, + method: "ProofDeputy", + Request: QueryProofDeputyRequest, + Response: QueryProofDeputyResponse, +} as const; + diff --git a/src/protobufs/sunrise/da/v0/query_pb.ts b/src/protobufs/sunrise/da/v0/query_pb.ts new file mode 100644 index 00000000..4c92e82a --- /dev/null +++ b/src/protobufs/sunrise/da/v0/query_pb.ts @@ -0,0 +1,816 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/query.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Invalidity, Proof, PublishedData } from "./published_data_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.da.v0.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.da.v0.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.da.v0.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryPublishedDataRequest is request type for the Query/PublishedData RPC + * method. + * + * @generated from message sunrise.da.v0.QueryPublishedDataRequest + */ +export class QueryPublishedDataRequest extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryPublishedDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPublishedDataRequest { + return new QueryPublishedDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPublishedDataRequest { + return new QueryPublishedDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPublishedDataRequest { + return new QueryPublishedDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPublishedDataRequest | PlainMessage | undefined, b: QueryPublishedDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPublishedDataRequest, a, b); + } +} + +/** + * QueryPublishedDataResponse is response type for the Query/PublishedData RPC + * method. + * + * @generated from message sunrise.da.v0.QueryPublishedDataResponse + */ +export class QueryPublishedDataResponse extends Message { + /** + * @generated from field: sunrise.da.v0.PublishedData data = 1; + */ + data?: PublishedData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryPublishedDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: PublishedData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPublishedDataResponse { + return new QueryPublishedDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPublishedDataResponse { + return new QueryPublishedDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPublishedDataResponse { + return new QueryPublishedDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPublishedDataResponse | PlainMessage | undefined, b: QueryPublishedDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPublishedDataResponse, a, b); + } +} + +/** + * QueryAllPublishedDataRequest is request type for the + * Query/AllPublishedData RPC method. + * + * @generated from message sunrise.da.v0.QueryAllPublishedDataRequest + */ +export class QueryAllPublishedDataRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllPublishedDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPublishedDataRequest { + return new QueryAllPublishedDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPublishedDataRequest { + return new QueryAllPublishedDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPublishedDataRequest { + return new QueryAllPublishedDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPublishedDataRequest | PlainMessage | undefined, b: QueryAllPublishedDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPublishedDataRequest, a, b); + } +} + +/** + * QueryAllPublishedDataResponse is response type for the + * Query/AllPublishedData RPC method. + * + * @generated from message sunrise.da.v0.QueryAllPublishedDataResponse + */ +export class QueryAllPublishedDataResponse extends Message { + /** + * @generated from field: repeated sunrise.da.v0.PublishedData data = 1; + */ + data: PublishedData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllPublishedDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: PublishedData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPublishedDataResponse { + return new QueryAllPublishedDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPublishedDataResponse { + return new QueryAllPublishedDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPublishedDataResponse { + return new QueryAllPublishedDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllPublishedDataResponse | PlainMessage | undefined, b: QueryAllPublishedDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllPublishedDataResponse, a, b); + } +} + +/** + * QueryValidityProofRequest is request type for the Query/ValidityProof RPC + * method. + * + * @generated from message sunrise.da.v0.QueryValidityProofRequest + */ +export class QueryValidityProofRequest extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryValidityProofRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidityProofRequest { + return new QueryValidityProofRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidityProofRequest { + return new QueryValidityProofRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidityProofRequest { + return new QueryValidityProofRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidityProofRequest | PlainMessage | undefined, b: QueryValidityProofRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidityProofRequest, a, b); + } +} + +/** + * QueryValidityProofResponse is response type for the Query/ValidityProof RPC + * method. + * + * @generated from message sunrise.da.v0.QueryValidityProofResponse + */ +export class QueryValidityProofResponse extends Message { + /** + * @generated from field: sunrise.da.v0.Proof proof = 1; + */ + proof?: Proof; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryValidityProofResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proof", kind: "message", T: Proof }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidityProofResponse { + return new QueryValidityProofResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidityProofResponse { + return new QueryValidityProofResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidityProofResponse { + return new QueryValidityProofResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidityProofResponse | PlainMessage | undefined, b: QueryValidityProofResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidityProofResponse, a, b); + } +} + +/** + * QueryAllValidityProofsRequest is request type for the Query/AllValidityProofs RPC + * method. + * + * @generated from message sunrise.da.v0.QueryAllValidityProofsRequest + */ +export class QueryAllValidityProofsRequest extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllValidityProofsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllValidityProofsRequest { + return new QueryAllValidityProofsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllValidityProofsRequest { + return new QueryAllValidityProofsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllValidityProofsRequest { + return new QueryAllValidityProofsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllValidityProofsRequest | PlainMessage | undefined, b: QueryAllValidityProofsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllValidityProofsRequest, a, b); + } +} + +/** + * QueryAllValidityProofsResponse is response type for the Query/AllValidityProofs RPC + * method. + * + * @generated from message sunrise.da.v0.QueryAllValidityProofsResponse + */ +export class QueryAllValidityProofsResponse extends Message { + /** + * @generated from field: repeated sunrise.da.v0.Proof proofs = 1; + */ + proofs: Proof[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllValidityProofsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "proofs", kind: "message", T: Proof, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllValidityProofsResponse { + return new QueryAllValidityProofsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllValidityProofsResponse { + return new QueryAllValidityProofsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllValidityProofsResponse { + return new QueryAllValidityProofsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllValidityProofsResponse | PlainMessage | undefined, b: QueryAllValidityProofsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllValidityProofsResponse, a, b); + } +} + +/** + * QueryInvalidityProofRequest is request type for the Query/Invalidity RPC + * method. + * + * @generated from message sunrise.da.v0.QueryInvalidityRequest + */ +export class QueryInvalidityRequest extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + /** + * @generated from field: string sender_address = 2; + */ + senderAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryInvalidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvalidityRequest { + return new QueryInvalidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvalidityRequest { + return new QueryInvalidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvalidityRequest { + return new QueryInvalidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvalidityRequest | PlainMessage | undefined, b: QueryInvalidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvalidityRequest, a, b); + } +} + +/** + * QueryInvalidityResponse is response type for the Query/Invalidity RPC + * method. + * + * @generated from message sunrise.da.v0.QueryInvalidityResponse + */ +export class QueryInvalidityResponse extends Message { + /** + * @generated from field: sunrise.da.v0.Invalidity invalidity = 1; + */ + invalidity?: Invalidity; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryInvalidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "invalidity", kind: "message", T: Invalidity }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInvalidityResponse { + return new QueryInvalidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInvalidityResponse { + return new QueryInvalidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryInvalidityResponse { + return new QueryInvalidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryInvalidityResponse | PlainMessage | undefined, b: QueryInvalidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryInvalidityResponse, a, b); + } +} + +/** + * QueryAllInvalidityProofRequest is request type for the Query/AllInvalidity RPC + * method. + * + * @generated from message sunrise.da.v0.QueryAllInvalidityRequest + */ +export class QueryAllInvalidityRequest extends Message { + /** + * @generated from field: string metadata_uri = 1; + */ + metadataUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllInvalidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInvalidityRequest { + return new QueryAllInvalidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInvalidityRequest { + return new QueryAllInvalidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInvalidityRequest { + return new QueryAllInvalidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllInvalidityRequest | PlainMessage | undefined, b: QueryAllInvalidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllInvalidityRequest, a, b); + } +} + +/** + * QueryAllInvalidityResponse is response type for the Query/AllInvalidity RPC + * method. + * + * @generated from message sunrise.da.v0.QueryAllInvalidityResponse + */ +export class QueryAllInvalidityResponse extends Message { + /** + * @generated from field: repeated sunrise.da.v0.Invalidity invalidity = 1; + */ + invalidity: Invalidity[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryAllInvalidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "invalidity", kind: "message", T: Invalidity, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInvalidityResponse { + return new QueryAllInvalidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInvalidityResponse { + return new QueryAllInvalidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInvalidityResponse { + return new QueryAllInvalidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllInvalidityResponse | PlainMessage | undefined, b: QueryAllInvalidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllInvalidityResponse, a, b); + } +} + +/** + * QueryValidatorShardIndicesRequest is request type for the + * Query/ValidatorShardIndices RPC method. + * + * @generated from message sunrise.da.v0.QueryValidatorShardIndicesRequest + */ +export class QueryValidatorShardIndicesRequest extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: uint64 shard_count = 2; + */ + shardCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryValidatorShardIndicesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorShardIndicesRequest { + return new QueryValidatorShardIndicesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorShardIndicesRequest { + return new QueryValidatorShardIndicesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorShardIndicesRequest { + return new QueryValidatorShardIndicesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorShardIndicesRequest | PlainMessage | undefined, b: QueryValidatorShardIndicesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorShardIndicesRequest, a, b); + } +} + +/** + * QueryValidatorShardIndicesResponse is response type for the + * Query/ValidatorShardIndices RPC method. + * + * @generated from message sunrise.da.v0.QueryValidatorShardIndicesResponse + */ +export class QueryValidatorShardIndicesResponse extends Message { + /** + * @generated from field: repeated uint64 shard_indices = 1; + */ + shardIndices: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryValidatorShardIndicesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shard_indices", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorShardIndicesResponse { + return new QueryValidatorShardIndicesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorShardIndicesResponse { + return new QueryValidatorShardIndicesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryValidatorShardIndicesResponse { + return new QueryValidatorShardIndicesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryValidatorShardIndicesResponse | PlainMessage | undefined, b: QueryValidatorShardIndicesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryValidatorShardIndicesResponse, a, b); + } +} + +/** + * QueryZkpProofThresholdRequest is request type for the + * Query/ZkpProofThreshold RPC method. + * + * @generated from message sunrise.da.v0.QueryZkpProofThresholdRequest + */ +export class QueryZkpProofThresholdRequest extends Message { + /** + * @generated from field: uint64 shard_count = 1; + */ + shardCount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryZkpProofThresholdRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZkpProofThresholdRequest { + return new QueryZkpProofThresholdRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZkpProofThresholdRequest { + return new QueryZkpProofThresholdRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryZkpProofThresholdRequest { + return new QueryZkpProofThresholdRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryZkpProofThresholdRequest | PlainMessage | undefined, b: QueryZkpProofThresholdRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryZkpProofThresholdRequest, a, b); + } +} + +/** + * QueryZkpProofThresholdResponse is response type for the + * Query/ZkpProofThreshold RPC method. + * + * @generated from message sunrise.da.v0.QueryZkpProofThresholdResponse + */ +export class QueryZkpProofThresholdResponse extends Message { + /** + * @generated from field: uint64 threshold = 1; + */ + threshold = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryZkpProofThresholdResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZkpProofThresholdResponse { + return new QueryZkpProofThresholdResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZkpProofThresholdResponse { + return new QueryZkpProofThresholdResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryZkpProofThresholdResponse { + return new QueryZkpProofThresholdResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryZkpProofThresholdResponse | PlainMessage | undefined, b: QueryZkpProofThresholdResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryZkpProofThresholdResponse, a, b); + } +} + +/** + * QueryProofDeputyRequest is request type for the + * Query/ProofDeputy RPC method. + * + * @generated from message sunrise.da.v0.QueryProofDeputyRequest + */ +export class QueryProofDeputyRequest extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryProofDeputyRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProofDeputyRequest { + return new QueryProofDeputyRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProofDeputyRequest { + return new QueryProofDeputyRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProofDeputyRequest { + return new QueryProofDeputyRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryProofDeputyRequest | PlainMessage | undefined, b: QueryProofDeputyRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProofDeputyRequest, a, b); + } +} + +/** + * QueryProofDeputyResponse is response type for the + * Query/ProofDeputy RPC method. + * + * @generated from message sunrise.da.v0.QueryProofDeputyResponse + */ +export class QueryProofDeputyResponse extends Message { + /** + * @generated from field: string deputy_address = 1; + */ + deputyAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.QueryProofDeputyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deputy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProofDeputyResponse { + return new QueryProofDeputyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProofDeputyResponse { + return new QueryProofDeputyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryProofDeputyResponse { + return new QueryProofDeputyResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryProofDeputyResponse | PlainMessage | undefined, b: QueryProofDeputyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryProofDeputyResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/tx_cosmes.ts b/src/protobufs/sunrise/da/v0/tx_cosmes.ts new file mode 100644 index 00000000..7218e361 --- /dev/null +++ b/src/protobufs/sunrise/da/v0/tx_cosmes.ts @@ -0,0 +1,95 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/da/v0/tx.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgPublishData, MsgPublishDataResponse, MsgRegisterProofDeputy, MsgRegisterProofDeputyResponse, MsgSubmitInvalidity, MsgSubmitInvalidityResponse, MsgSubmitValidityProof, MsgSubmitValidityProofResponse, MsgUnregisterProofDeputy, MsgUnregisterProofDeputyResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVerifyData, MsgVerifyDataResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.da.v0.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.da.v0.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * PublishData + * + * @generated from rpc sunrise.da.v0.Msg.PublishData + */ +export const MsgPublishDataService = { + typeName: TYPE_NAME, + method: "PublishData", + Request: MsgPublishData, + Response: MsgPublishDataResponse, +} as const; + +/** + * SubmitInvalidity + * + * @generated from rpc sunrise.da.v0.Msg.SubmitInvalidity + */ +export const MsgSubmitInvalidityService = { + typeName: TYPE_NAME, + method: "SubmitInvalidity", + Request: MsgSubmitInvalidity, + Response: MsgSubmitInvalidityResponse, +} as const; + +/** + * SubmitValidityProof + * + * @generated from rpc sunrise.da.v0.Msg.SubmitValidityProof + */ +export const MsgSubmitValidityProofService = { + typeName: TYPE_NAME, + method: "SubmitValidityProof", + Request: MsgSubmitValidityProof, + Response: MsgSubmitValidityProofResponse, +} as const; + +/** + * RegisterProofDeputy + * + * @generated from rpc sunrise.da.v0.Msg.RegisterProofDeputy + */ +export const MsgRegisterProofDeputyService = { + typeName: TYPE_NAME, + method: "RegisterProofDeputy", + Request: MsgRegisterProofDeputy, + Response: MsgRegisterProofDeputyResponse, +} as const; + +/** + * UnregisterProofDeputy + * + * @generated from rpc sunrise.da.v0.Msg.UnregisterProofDeputy + */ +export const MsgUnregisterProofDeputyService = { + typeName: TYPE_NAME, + method: "UnregisterProofDeputy", + Request: MsgUnregisterProofDeputy, + Response: MsgUnregisterProofDeputyResponse, +} as const; + +/** + * VerifyData triggers the verification and lifecycle management of DA data, + * which was previously handled in the EndBlocker. This can be called by anyone. + * + * @generated from rpc sunrise.da.v0.Msg.VerifyData + */ +export const MsgVerifyDataService = { + typeName: TYPE_NAME, + method: "VerifyData", + Request: MsgVerifyData, + Response: MsgVerifyDataResponse, +} as const; + diff --git a/src/protobufs/sunrise/da/v0/tx_pb.ts b/src/protobufs/sunrise/da/v0/tx_pb.ts new file mode 100644 index 00000000..2b3b8309 --- /dev/null +++ b/src/protobufs/sunrise/da/v0/tx_pb.ts @@ -0,0 +1,593 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/tx.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.da.v0.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.da.v0.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.da.v0.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgPublishData + * + * @generated from message sunrise.da.v0.MsgPublishData + */ +export class MsgPublishData extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string metadata_uri = 2; + */ + metadataUri = ""; + + /** + * @generated from field: uint64 parity_shard_count = 3; + */ + parityShardCount = protoInt64.zero; + + /** + * @generated from field: repeated bytes shard_double_hashes = 4; + */ + shardDoubleHashes: Uint8Array[] = []; + + /** + * @generated from field: string data_source_info = 5; + */ + dataSourceInfo = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgPublishData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "parity_shard_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "shard_double_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 5, name: "data_source_info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPublishData { + return new MsgPublishData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPublishData { + return new MsgPublishData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPublishData { + return new MsgPublishData().fromJsonString(jsonString, options); + } + + static equals(a: MsgPublishData | PlainMessage | undefined, b: MsgPublishData | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPublishData, a, b); + } +} + +/** + * MsgPublishDataResponse + * + * @generated from message sunrise.da.v0.MsgPublishDataResponse + */ +export class MsgPublishDataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgPublishDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgPublishDataResponse { + return new MsgPublishDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgPublishDataResponse { + return new MsgPublishDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgPublishDataResponse { + return new MsgPublishDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgPublishDataResponse | PlainMessage | undefined, b: MsgPublishDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgPublishDataResponse, a, b); + } +} + +/** + * MsgSubmitInvalidity + * + * @generated from message sunrise.da.v0.MsgSubmitInvalidity + */ +export class MsgSubmitInvalidity extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string metadata_uri = 2; + */ + metadataUri = ""; + + /** + * @generated from field: repeated int64 indices = 3; + */ + indices: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgSubmitInvalidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "indices", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitInvalidity { + return new MsgSubmitInvalidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitInvalidity { + return new MsgSubmitInvalidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitInvalidity { + return new MsgSubmitInvalidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitInvalidity | PlainMessage | undefined, b: MsgSubmitInvalidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitInvalidity, a, b); + } +} + +/** + * MsgSubmitInvalidityResponse + * + * @generated from message sunrise.da.v0.MsgSubmitInvalidityResponse + */ +export class MsgSubmitInvalidityResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgSubmitInvalidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitInvalidityResponse { + return new MsgSubmitInvalidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitInvalidityResponse { + return new MsgSubmitInvalidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitInvalidityResponse { + return new MsgSubmitInvalidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitInvalidityResponse | PlainMessage | undefined, b: MsgSubmitInvalidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitInvalidityResponse, a, b); + } +} + +/** + * MsgSubmitValidityProof + * + * @generated from message sunrise.da.v0.MsgSubmitValidityProof + */ +export class MsgSubmitValidityProof extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: string metadata_uri = 3; + */ + metadataUri = ""; + + /** + * @generated from field: repeated int64 indices = 4; + */ + indices: bigint[] = []; + + /** + * @generated from field: repeated bytes proofs = 5; + */ + proofs: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgSubmitValidityProof"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "metadata_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "indices", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 5, name: "proofs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitValidityProof { + return new MsgSubmitValidityProof().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitValidityProof { + return new MsgSubmitValidityProof().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitValidityProof { + return new MsgSubmitValidityProof().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitValidityProof | PlainMessage | undefined, b: MsgSubmitValidityProof | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitValidityProof, a, b); + } +} + +/** + * MsgSubmitValidityProofResponse + * + * @generated from message sunrise.da.v0.MsgSubmitValidityProofResponse + */ +export class MsgSubmitValidityProofResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgSubmitValidityProofResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitValidityProofResponse { + return new MsgSubmitValidityProofResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitValidityProofResponse { + return new MsgSubmitValidityProofResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSubmitValidityProofResponse { + return new MsgSubmitValidityProofResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSubmitValidityProofResponse | PlainMessage | undefined, b: MsgSubmitValidityProofResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSubmitValidityProofResponse, a, b); + } +} + +/** + * MsgRegisterProofDeputy + * + * @generated from message sunrise.da.v0.MsgRegisterProofDeputy + */ +export class MsgRegisterProofDeputy extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string deputy_address = 2; + */ + deputyAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgRegisterProofDeputy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deputy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterProofDeputy { + return new MsgRegisterProofDeputy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterProofDeputy { + return new MsgRegisterProofDeputy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterProofDeputy { + return new MsgRegisterProofDeputy().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterProofDeputy | PlainMessage | undefined, b: MsgRegisterProofDeputy | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterProofDeputy, a, b); + } +} + +/** + * MsgRegisterProofDeputyResponse + * + * @generated from message sunrise.da.v0.MsgRegisterProofDeputyResponse + */ +export class MsgRegisterProofDeputyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgRegisterProofDeputyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterProofDeputyResponse { + return new MsgRegisterProofDeputyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterProofDeputyResponse { + return new MsgRegisterProofDeputyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterProofDeputyResponse { + return new MsgRegisterProofDeputyResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterProofDeputyResponse | PlainMessage | undefined, b: MsgRegisterProofDeputyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterProofDeputyResponse, a, b); + } +} + +/** + * MsgUnregisterProofDeputy + * + * @generated from message sunrise.da.v0.MsgUnregisterProofDeputy + */ +export class MsgUnregisterProofDeputy extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgUnregisterProofDeputy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnregisterProofDeputy { + return new MsgUnregisterProofDeputy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnregisterProofDeputy { + return new MsgUnregisterProofDeputy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnregisterProofDeputy { + return new MsgUnregisterProofDeputy().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnregisterProofDeputy | PlainMessage | undefined, b: MsgUnregisterProofDeputy | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnregisterProofDeputy, a, b); + } +} + +/** + * MsgUnregisterProofDeputyResponse + * + * @generated from message sunrise.da.v0.MsgUnregisterProofDeputyResponse + */ +export class MsgUnregisterProofDeputyResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgUnregisterProofDeputyResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnregisterProofDeputyResponse { + return new MsgUnregisterProofDeputyResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnregisterProofDeputyResponse { + return new MsgUnregisterProofDeputyResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUnregisterProofDeputyResponse { + return new MsgUnregisterProofDeputyResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUnregisterProofDeputyResponse | PlainMessage | undefined, b: MsgUnregisterProofDeputyResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUnregisterProofDeputyResponse, a, b); + } +} + +/** + * MsgVerifyData defines the message to trigger the data verification process. + * + * @generated from message sunrise.da.v0.MsgVerifyData + */ +export class MsgVerifyData extends Message { + /** + * sender is the address of the account that triggers the process. + * + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgVerifyData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVerifyData { + return new MsgVerifyData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVerifyData { + return new MsgVerifyData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVerifyData { + return new MsgVerifyData().fromJsonString(jsonString, options); + } + + static equals(a: MsgVerifyData | PlainMessage | undefined, b: MsgVerifyData | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVerifyData, a, b); + } +} + +/** + * MsgVerifyDataResponse defines the response for MsgVerifyData. + * + * @generated from message sunrise.da.v0.MsgVerifyDataResponse + */ +export class MsgVerifyDataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.MsgVerifyDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVerifyDataResponse { + return new MsgVerifyDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVerifyDataResponse { + return new MsgVerifyDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVerifyDataResponse { + return new MsgVerifyDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVerifyDataResponse | PlainMessage | undefined, b: MsgVerifyDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVerifyDataResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/da/v0/vote_extension_pb.ts b/src/protobufs/sunrise/da/v0/vote_extension_pb.ts new file mode 100644 index 00000000..e50928bc --- /dev/null +++ b/src/protobufs/sunrise/da/v0/vote_extension_pb.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/da/v0/vote_extension.proto (package sunrise.da.v0, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { PublishedData } from "./published_data_pb.js"; + +/** + * VoteExtension + * + * @generated from message sunrise.da.v0.VoteExtension + */ +export class VoteExtension extends Message { + /** + * @generated from field: repeated sunrise.da.v0.PublishedData data = 1; + */ + data: PublishedData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.da.v0.VoteExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "data", kind: "message", T: PublishedData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VoteExtension { + return new VoteExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VoteExtension { + return new VoteExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VoteExtension { + return new VoteExtension().fromJsonString(jsonString, options); + } + + static equals(a: VoteExtension | PlainMessage | undefined, b: VoteExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(VoteExtension, a, b); + } +} + diff --git a/src/protobufs/sunrise/fee/module/v1/module_pb.ts b/src/protobufs/sunrise/fee/module/v1/module_pb.ts new file mode 100644 index 00000000..41831c84 --- /dev/null +++ b/src/protobufs/sunrise/fee/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/fee/module/v1/module.proto (package sunrise.fee.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.fee.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/fee/v1/genesis_pb.ts b/src/protobufs/sunrise/fee/v1/genesis_pb.ts new file mode 100644 index 00000000..eed1a380 --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/fee/v1/genesis.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the fee module's genesis state. + * + * @generated from message sunrise.fee.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.fee.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/fee/v1/params_pb.ts b/src/protobufs/sunrise/fee/v1/params_pb.ts new file mode 100644 index 00000000..f892433f --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/params_pb.ts @@ -0,0 +1,71 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/fee/v1/params.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.fee.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: string fee_denom = 1; + */ + feeDenom = ""; + + /** + * @generated from field: string burn_denom = 2; + */ + burnDenom = ""; + + /** + * @generated from field: string burn_ratio = 3; + */ + burnRatio = ""; + + /** + * @generated from field: uint64 burn_pool_id = 4; + */ + burnPoolId = protoInt64.zero; + + /** + * @generated from field: bool burn_enabled = 5; + */ + burnEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fee_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "burn_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "burn_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "burn_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "burn_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/fee/v1/query_cosmes.ts b/src/protobufs/sunrise/fee/v1/query_cosmes.ts new file mode 100644 index 00000000..42e5af99 --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/fee/v1/query.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.fee.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.fee.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/sunrise/fee/v1/query_pb.ts b/src/protobufs/sunrise/fee/v1/query_pb.ts new file mode 100644 index 00000000..b41cc0bb --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/fee/v1/query.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.fee.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.fee.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.fee.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/fee/v1/tx_cosmes.ts b/src/protobufs/sunrise/fee/v1/tx_cosmes.ts new file mode 100644 index 00000000..cac2fa89 --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/tx_cosmes.ts @@ -0,0 +1,22 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/fee/v1/tx.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.fee.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.fee.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + diff --git a/src/protobufs/sunrise/fee/v1/tx_pb.ts b/src/protobufs/sunrise/fee/v1/tx_pb.ts new file mode 100644 index 00000000..de8b19b8 --- /dev/null +++ b/src/protobufs/sunrise/fee/v1/tx_pb.ts @@ -0,0 +1,94 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/fee/v1/tx.proto (package sunrise.fee.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.fee.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the module parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.fee.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.fee.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.fee.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/module/v1/module_pb.ts b/src/protobufs/sunrise/liquidityincentive/module/v1/module_pb.ts new file mode 100644 index 00000000..cd603d22 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/module/v1/module.proto (package sunrise.liquidityincentive.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.liquidityincentive.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/bribe_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/bribe_pb.ts new file mode 100644 index 00000000..06f5c032 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/bribe_pb.ts @@ -0,0 +1,141 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/bribe.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Bribe + * + * @generated from message sunrise.liquidityincentive.v1.Bribe + */ +export class Bribe extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: uint64 epoch_id = 2; + */ + epochId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string address = 4; + */ + address = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 5; + */ + amount: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin claimed_amount = 6; + */ + claimedAmount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.Bribe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "epoch_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount", kind: "message", T: Coin, repeated: true }, + { no: 6, name: "claimed_amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Bribe { + return new Bribe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Bribe { + return new Bribe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Bribe { + return new Bribe().fromJsonString(jsonString, options); + } + + static equals(a: Bribe | PlainMessage | undefined, b: Bribe | PlainMessage | undefined): boolean { + return proto3.util.equals(Bribe, a, b); + } +} + +/** + * BribeAllocation + * + * @generated from message sunrise.liquidityincentive.v1.BribeAllocation + */ +export class BribeAllocation extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 epoch_id = 2; + */ + epochId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string weight = 4; + */ + weight = ""; + + /** + * @generated from field: repeated uint64 claimed_bribe_ids = 5; + */ + claimedBribeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.BribeAllocation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "claimed_bribe_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BribeAllocation { + return new BribeAllocation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BribeAllocation { + return new BribeAllocation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BribeAllocation { + return new BribeAllocation().fromJsonString(jsonString, options); + } + + static equals(a: BribeAllocation | PlainMessage | undefined, b: BribeAllocation | PlainMessage | undefined): boolean { + return proto3.util.equals(BribeAllocation, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/epoch_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/epoch_pb.ts new file mode 100644 index 00000000..4998c0b3 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/epoch_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/epoch.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Gauge } from "./gauge_pb.js"; + +/** + * Epoch + * + * @generated from message sunrise.liquidityincentive.v1.Epoch + */ +export class Epoch extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: int64 start_block = 2; + */ + startBlock = protoInt64.zero; + + /** + * @generated from field: int64 start_time = 3; + */ + startTime = protoInt64.zero; + + /** + * @generated from field: int64 end_block = 4; + */ + endBlock = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Gauge gauges = 5; + */ + gauges: Gauge[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.Epoch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "start_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "end_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "gauges", kind: "message", T: Gauge, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Epoch { + return new Epoch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Epoch { + return new Epoch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Epoch { + return new Epoch().fromJsonString(jsonString, options); + } + + static equals(a: Epoch | PlainMessage | undefined, b: Epoch | PlainMessage | undefined): boolean { + return proto3.util.equals(Epoch, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/events_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/events_pb.ts new file mode 100644 index 00000000..74fbb853 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/events_pb.ts @@ -0,0 +1,220 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/events.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { PoolWeight } from "./gauge_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * EventStartNewEpoch + * + * @generated from message sunrise.liquidityincentive.v1.EventStartNewEpoch + */ +export class EventStartNewEpoch extends Message { + /** + * @generated from field: uint64 epoch_id = 1; + */ + epochId = protoInt64.zero; + + /** + * @generated from field: int64 start_block = 2; + */ + startBlock = protoInt64.zero; + + /** + * @generated from field: int64 end_block = 3; + */ + endBlock = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.EventStartNewEpoch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "start_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "end_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventStartNewEpoch { + return new EventStartNewEpoch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventStartNewEpoch { + return new EventStartNewEpoch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventStartNewEpoch { + return new EventStartNewEpoch().fromJsonString(jsonString, options); + } + + static equals(a: EventStartNewEpoch | PlainMessage | undefined, b: EventStartNewEpoch | PlainMessage | undefined): boolean { + return proto3.util.equals(EventStartNewEpoch, a, b); + } +} + +/** + * EventVoteGauge + * + * @generated from message sunrise.liquidityincentive.v1.EventVoteGauge + */ +export class EventVoteGauge extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.PoolWeight pool_weights = 2; + */ + poolWeights: PoolWeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.EventVoteGauge"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_weights", kind: "message", T: PoolWeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventVoteGauge { + return new EventVoteGauge().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventVoteGauge { + return new EventVoteGauge().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventVoteGauge { + return new EventVoteGauge().fromJsonString(jsonString, options); + } + + static equals(a: EventVoteGauge | PlainMessage | undefined, b: EventVoteGauge | PlainMessage | undefined): boolean { + return proto3.util.equals(EventVoteGauge, a, b); + } +} + +/** + * EventRegisterBribe + * + * @generated from message sunrise.liquidityincentive.v1.EventRegisterBribe + */ +export class EventRegisterBribe extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: uint64 epoch_id = 3; + */ + epochId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 4; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 5; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.EventRegisterBribe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "epoch_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventRegisterBribe { + return new EventRegisterBribe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventRegisterBribe { + return new EventRegisterBribe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventRegisterBribe { + return new EventRegisterBribe().fromJsonString(jsonString, options); + } + + static equals(a: EventRegisterBribe | PlainMessage | undefined, b: EventRegisterBribe | PlainMessage | undefined): boolean { + return proto3.util.equals(EventRegisterBribe, a, b); + } +} + +/** + * EventClaimBribes + * + * @generated from message sunrise.liquidityincentive.v1.EventClaimBribes + */ +export class EventClaimBribes extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 bribe_id = 2; + */ + bribeId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.EventClaimBribes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bribe_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClaimBribes { + return new EventClaimBribes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClaimBribes { + return new EventClaimBribes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClaimBribes { + return new EventClaimBribes().fromJsonString(jsonString, options); + } + + static equals(a: EventClaimBribes | PlainMessage | undefined, b: EventClaimBribes | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClaimBribes, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/gauge_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/gauge_pb.ts new file mode 100644 index 00000000..be4c07d1 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/gauge_pb.ts @@ -0,0 +1,143 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/gauge.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Gauge + * + * @generated from message sunrise.liquidityincentive.v1.Gauge + */ +export class Gauge extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string voting_power = 2; + */ + votingPower = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.Gauge"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "voting_power", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Gauge { + return new Gauge().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Gauge { + return new Gauge().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Gauge { + return new Gauge().fromJsonString(jsonString, options); + } + + static equals(a: Gauge | PlainMessage | undefined, b: Gauge | PlainMessage | undefined): boolean { + return proto3.util.equals(Gauge, a, b); + } +} + +/** + * PoolWeight + * + * @generated from message sunrise.liquidityincentive.v1.PoolWeight + */ +export class PoolWeight extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string weight = 2; + */ + weight = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.PoolWeight"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolWeight { + return new PoolWeight().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolWeight { + return new PoolWeight().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolWeight { + return new PoolWeight().fromJsonString(jsonString, options); + } + + static equals(a: PoolWeight | PlainMessage | undefined, b: PoolWeight | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolWeight, a, b); + } +} + +/** + * Vote + * + * @generated from message sunrise.liquidityincentive.v1.Vote + */ +export class Vote extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.PoolWeight pool_weights = 2; + */ + poolWeights: PoolWeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.Vote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_weights", kind: "message", T: PoolWeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Vote { + return new Vote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Vote { + return new Vote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Vote { + return new Vote().fromJsonString(jsonString, options); + } + + static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { + return proto3.util.equals(Vote, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/genesis_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/genesis_pb.ts new file mode 100644 index 00000000..37deed21 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/genesis_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/genesis.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Epoch } from "./epoch_pb.js"; +import { Vote } from "./gauge_pb.js"; +import { Bribe, BribeAllocation } from "./bribe_pb.js"; + +/** + * GenesisState defines the liquidityincentive module's genesis state. + * + * @generated from message sunrise.liquidityincentive.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.liquidityincentive.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Epoch epochs = 2; + */ + epochs: Epoch[] = []; + + /** + * @generated from field: uint64 epoch_count = 3; + */ + epochCount = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Vote votes = 4; + */ + votes: Vote[] = []; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Bribe bribes = 5; + */ + bribes: Bribe[] = []; + + /** + * @generated from field: uint64 bribe_count = 6; + */ + bribeCount = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.BribeAllocation bribe_allocations = 7; + */ + bribeAllocations: BribeAllocation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "epochs", kind: "message", T: Epoch, repeated: true }, + { no: 3, name: "epoch_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 5, name: "bribes", kind: "message", T: Bribe, repeated: true }, + { no: 6, name: "bribe_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "bribe_allocations", kind: "message", T: BribeAllocation, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/params_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/params_pb.ts new file mode 100644 index 00000000..171734e7 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/params_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/params.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.liquidityincentive.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: int64 epoch_blocks = 1; + */ + epochBlocks = protoInt64.zero; + + /** + * @generated from field: string staking_reward_ratio = 2; + */ + stakingRewardRatio = ""; + + /** + * @generated from field: uint64 bribe_claim_epochs = 3; + */ + bribeClaimEpochs = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "staking_reward_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "bribe_claim_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/query_cosmes.ts b/src/protobufs/sunrise/liquidityincentive/v1/query_cosmes.ts new file mode 100644 index 00000000..cc3a76b5 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/query.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryBribeAllocationRequest, QueryBribeAllocationResponse, QueryBribeAllocationsRequest, QueryBribeAllocationsResponse, QueryBribeRequest, QueryBribeResponse, QueryBribesRequest, QueryBribesResponse, QueryEpochRequest, QueryEpochResponse, QueryEpochsRequest, QueryEpochsResponse, QueryParamsRequest, QueryParamsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.liquidityincentive.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Epoch + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Epoch + */ +export const QueryEpochService = { + typeName: TYPE_NAME, + method: "Epoch", + Request: QueryEpochRequest, + Response: QueryEpochResponse, +} as const; + +/** + * Epochs + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Epochs + */ +export const QueryEpochsService = { + typeName: TYPE_NAME, + method: "Epochs", + Request: QueryEpochsRequest, + Response: QueryEpochsResponse, +} as const; + +/** + * Vote + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Vote + */ +export const QueryVoteService = { + typeName: TYPE_NAME, + method: "Vote", + Request: QueryVoteRequest, + Response: QueryVoteResponse, +} as const; + +/** + * Votes + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Votes + */ +export const QueryVotesService = { + typeName: TYPE_NAME, + method: "Votes", + Request: QueryVotesRequest, + Response: QueryVotesResponse, +} as const; + +/** + * Bribes queries bribes with optional filters for epoch_id and pool_id. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Bribes + */ +export const QueryBribesService = { + typeName: TYPE_NAME, + method: "Bribes", + Request: QueryBribesRequest, + Response: QueryBribesResponse, +} as const; + +/** + * Bribe queries a Bribe by its ID. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.Bribe + */ +export const QueryBribeService = { + typeName: TYPE_NAME, + method: "Bribe", + Request: QueryBribeRequest, + Response: QueryBribeResponse, +} as const; + +/** + * BribeAllocations queries bribe allocations with an optional filter for address. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.BribeAllocations + */ +export const QueryBribeAllocationsService = { + typeName: TYPE_NAME, + method: "BribeAllocations", + Request: QueryBribeAllocationsRequest, + Response: QueryBribeAllocationsResponse, +} as const; + +/** + * BribeAllocation queries a BribeAllocation by address, epoch ID, and pool ID. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.BribeAllocation + */ +export const QueryBribeAllocationService = { + typeName: TYPE_NAME, + method: "BribeAllocation", + Request: QueryBribeAllocationRequest, + Response: QueryBribeAllocationResponse, +} as const; + +/** + * TallyResult queries the tally of next epoch. + * + * @generated from rpc sunrise.liquidityincentive.v1.Query.TallyResult + */ +export const QueryTallyResultService = { + typeName: TYPE_NAME, + method: "TallyResult", + Request: QueryTallyResultRequest, + Response: QueryTallyResultResponse, +} as const; + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/query_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/query_pb.ts new file mode 100644 index 00000000..19216fe9 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/query_pb.ts @@ -0,0 +1,833 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/query.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Epoch } from "./epoch_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Gauge, Vote } from "./gauge_pb.js"; +import { Bribe, BribeAllocation } from "./bribe_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.liquidityincentive.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.liquidityincentive.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.liquidityincentive.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryEpochRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryEpochRequest + */ +export class QueryEpochRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryEpochRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochRequest { + return new QueryEpochRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochRequest { + return new QueryEpochRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochRequest { + return new QueryEpochRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochRequest | PlainMessage | undefined, b: QueryEpochRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochRequest, a, b); + } +} + +/** + * QueryEpochResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryEpochResponse + */ +export class QueryEpochResponse extends Message { + /** + * @generated from field: sunrise.liquidityincentive.v1.Epoch epoch = 1; + */ + epoch?: Epoch; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryEpochResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch", kind: "message", T: Epoch }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochResponse { + return new QueryEpochResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochResponse { + return new QueryEpochResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochResponse { + return new QueryEpochResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochResponse | PlainMessage | undefined, b: QueryEpochResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochResponse, a, b); + } +} + +/** + * QueryEpochsRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryEpochsRequest + */ +export class QueryEpochsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryEpochsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsRequest { + return new QueryEpochsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsRequest { + return new QueryEpochsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsRequest { + return new QueryEpochsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsRequest | PlainMessage | undefined, b: QueryEpochsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsRequest, a, b); + } +} + +/** + * QueryEpochsResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryEpochsResponse + */ +export class QueryEpochsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Epoch epochs = 1; + */ + epochs: Epoch[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryEpochsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epochs", kind: "message", T: Epoch, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsResponse { + return new QueryEpochsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsResponse { + return new QueryEpochsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryEpochsResponse { + return new QueryEpochsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryEpochsResponse | PlainMessage | undefined, b: QueryEpochsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryEpochsResponse, a, b); + } +} + +/** + * QueryVoteRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryVoteRequest + */ +export class QueryVoteRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryVoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { + return new QueryVoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteRequest, a, b); + } +} + +/** + * QueryVoteResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryVoteResponse + */ +export class QueryVoteResponse extends Message { + /** + * @generated from field: sunrise.liquidityincentive.v1.Vote vote = 1; + */ + vote?: Vote; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryVoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote", kind: "message", T: Vote }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { + return new QueryVoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVoteResponse, a, b); + } +} + +/** + * QueryVotesRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryVotesRequest + */ +export class QueryVotesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryVotesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { + return new QueryVotesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesRequest, a, b); + } +} + +/** + * QueryVotesResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryVotesResponse + */ +export class QueryVotesResponse extends Message { + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Vote votes = 1; + */ + votes: Vote[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryVotesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { + return new QueryVotesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryVotesResponse, a, b); + } +} + +/** + * QueryBribesRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribesRequest + */ +export class QueryBribesRequest extends Message { + /** + * Optional filter by epoch_id. If empty, not applied. + * + * @generated from field: string epoch_id = 1; + */ + epochId = ""; + + /** + * Optional filter by pool_id. If empty, not applied. + * + * @generated from field: string pool_id = 2; + */ + poolId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "epoch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribesRequest { + return new QueryBribesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribesRequest { + return new QueryBribesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribesRequest { + return new QueryBribesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribesRequest | PlainMessage | undefined, b: QueryBribesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribesRequest, a, b); + } +} + +/** + * QueryBribesResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribesResponse + */ +export class QueryBribesResponse extends Message { + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Bribe bribes = 1; + */ + bribes: Bribe[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bribes", kind: "message", T: Bribe, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribesResponse { + return new QueryBribesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribesResponse { + return new QueryBribesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribesResponse { + return new QueryBribesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribesResponse | PlainMessage | undefined, b: QueryBribesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribesResponse, a, b); + } +} + +/** + * QueryBribeRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeRequest + */ +export class QueryBribeRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeRequest { + return new QueryBribeRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeRequest { + return new QueryBribeRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeRequest { + return new QueryBribeRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeRequest | PlainMessage | undefined, b: QueryBribeRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeRequest, a, b); + } +} + +/** + * QueryBribeResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeResponse + */ +export class QueryBribeResponse extends Message { + /** + * @generated from field: sunrise.liquidityincentive.v1.Bribe bribe = 1; + */ + bribe?: Bribe; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bribe", kind: "message", T: Bribe }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeResponse { + return new QueryBribeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeResponse { + return new QueryBribeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeResponse { + return new QueryBribeResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeResponse | PlainMessage | undefined, b: QueryBribeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeResponse, a, b); + } +} + +/** + * QueryBribeAllocationsRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeAllocationsRequest + */ +export class QueryBribeAllocationsRequest extends Message { + /** + * Optional filter by address. If empty, not applied. + * + * @generated from field: string address = 1; + */ + address = ""; + + /** + * Optional filter by epoch_id. If empty, not applied. + * + * @generated from field: string epoch_id = 2; + */ + epochId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeAllocationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeAllocationsRequest { + return new QueryBribeAllocationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeAllocationsRequest { + return new QueryBribeAllocationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeAllocationsRequest { + return new QueryBribeAllocationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeAllocationsRequest | PlainMessage | undefined, b: QueryBribeAllocationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeAllocationsRequest, a, b); + } +} + +/** + * QueryBribeAllocationsResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeAllocationsResponse + */ +export class QueryBribeAllocationsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.BribeAllocation bribe_allocations = 1; + */ + bribeAllocations: BribeAllocation[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeAllocationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bribe_allocations", kind: "message", T: BribeAllocation, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeAllocationsResponse { + return new QueryBribeAllocationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeAllocationsResponse { + return new QueryBribeAllocationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeAllocationsResponse { + return new QueryBribeAllocationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeAllocationsResponse | PlainMessage | undefined, b: QueryBribeAllocationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeAllocationsResponse, a, b); + } +} + +/** + * QueryBribeAllocationRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeAllocationRequest + */ +export class QueryBribeAllocationRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string epoch_id = 2; + */ + epochId = ""; + + /** + * @generated from field: string pool_id = 3; + */ + poolId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeAllocationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeAllocationRequest { + return new QueryBribeAllocationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeAllocationRequest { + return new QueryBribeAllocationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeAllocationRequest { + return new QueryBribeAllocationRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeAllocationRequest | PlainMessage | undefined, b: QueryBribeAllocationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeAllocationRequest, a, b); + } +} + +/** + * QueryBribeAllocationResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryBribeAllocationResponse + */ +export class QueryBribeAllocationResponse extends Message { + /** + * @generated from field: sunrise.liquidityincentive.v1.BribeAllocation bribe_allocation = 1; + */ + bribeAllocation?: BribeAllocation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryBribeAllocationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bribe_allocation", kind: "message", T: BribeAllocation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBribeAllocationResponse { + return new QueryBribeAllocationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBribeAllocationResponse { + return new QueryBribeAllocationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBribeAllocationResponse { + return new QueryBribeAllocationResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBribeAllocationResponse | PlainMessage | undefined, b: QueryBribeAllocationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBribeAllocationResponse, a, b); + } +} + +/** + * QueryTallyResultRequest + * + * @generated from message sunrise.liquidityincentive.v1.QueryTallyResultRequest + */ +export class QueryTallyResultRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryTallyResultRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { + return new QueryTallyResultRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultRequest, a, b); + } +} + +/** + * QueryTallyResultResponse + * + * @generated from message sunrise.liquidityincentive.v1.QueryTallyResultResponse + */ +export class QueryTallyResultResponse extends Message { + /** + * @generated from field: int64 total_voting_power = 1; + */ + totalVotingPower = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.Gauge gauges = 2; + */ + gauges: Gauge[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.QueryTallyResultResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "gauges", kind: "message", T: Gauge, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { + return new QueryTallyResultResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryTallyResultResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/tx_cosmes.ts b/src/protobufs/sunrise/liquidityincentive/v1/tx_cosmes.ts new file mode 100644 index 00000000..e3e3028e --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/tx_cosmes.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/tx.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimBribes, MsgClaimBribesResponse, MsgRegisterBribe, MsgRegisterBribeResponse, MsgStartNewEpoch, MsgStartNewEpochResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgVoteGauge, MsgVoteGaugeResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.liquidityincentive.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.liquidityincentive.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * StartNewEpoch + * + * @generated from rpc sunrise.liquidityincentive.v1.Msg.StartNewEpoch + */ +export const MsgStartNewEpochService = { + typeName: TYPE_NAME, + method: "StartNewEpoch", + Request: MsgStartNewEpoch, + Response: MsgStartNewEpochResponse, +} as const; + +/** + * VoteGauge + * + * @generated from rpc sunrise.liquidityincentive.v1.Msg.VoteGauge + */ +export const MsgVoteGaugeService = { + typeName: TYPE_NAME, + method: "VoteGauge", + Request: MsgVoteGauge, + Response: MsgVoteGaugeResponse, +} as const; + +/** + * RegisterBribe + * + * @generated from rpc sunrise.liquidityincentive.v1.Msg.RegisterBribe + */ +export const MsgRegisterBribeService = { + typeName: TYPE_NAME, + method: "RegisterBribe", + Request: MsgRegisterBribe, + Response: MsgRegisterBribeResponse, +} as const; + +/** + * ClaimBribes + * + * @generated from rpc sunrise.liquidityincentive.v1.Msg.ClaimBribes + */ +export const MsgClaimBribesService = { + typeName: TYPE_NAME, + method: "ClaimBribes", + Request: MsgClaimBribes, + Response: MsgClaimBribesResponse, +} as const; + diff --git a/src/protobufs/sunrise/liquidityincentive/v1/tx_pb.ts b/src/protobufs/sunrise/liquidityincentive/v1/tx_pb.ts new file mode 100644 index 00000000..700d34d1 --- /dev/null +++ b/src/protobufs/sunrise/liquidityincentive/v1/tx_pb.ts @@ -0,0 +1,419 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquidityincentive/v1/tx.proto (package sunrise.liquidityincentive.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { PoolWeight } from "./gauge_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.liquidityincentive.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.liquidityincentive.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.liquidityincentive.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgStartNewEpoch + * + * @generated from message sunrise.liquidityincentive.v1.MsgStartNewEpoch + */ +export class MsgStartNewEpoch extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgStartNewEpoch"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStartNewEpoch { + return new MsgStartNewEpoch().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStartNewEpoch { + return new MsgStartNewEpoch().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStartNewEpoch { + return new MsgStartNewEpoch().fromJsonString(jsonString, options); + } + + static equals(a: MsgStartNewEpoch | PlainMessage | undefined, b: MsgStartNewEpoch | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStartNewEpoch, a, b); + } +} + +/** + * MsgStartNewEpochResponse + * + * @generated from message sunrise.liquidityincentive.v1.MsgStartNewEpochResponse + */ +export class MsgStartNewEpochResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgStartNewEpochResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgStartNewEpochResponse { + return new MsgStartNewEpochResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgStartNewEpochResponse { + return new MsgStartNewEpochResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgStartNewEpochResponse { + return new MsgStartNewEpochResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgStartNewEpochResponse | PlainMessage | undefined, b: MsgStartNewEpochResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgStartNewEpochResponse, a, b); + } +} + +/** + * MsgVoteGauge + * + * @generated from message sunrise.liquidityincentive.v1.MsgVoteGauge + */ +export class MsgVoteGauge extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated sunrise.liquidityincentive.v1.PoolWeight pool_weights = 2; + */ + poolWeights: PoolWeight[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgVoteGauge"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_weights", kind: "message", T: PoolWeight, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteGauge { + return new MsgVoteGauge().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteGauge { + return new MsgVoteGauge().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteGauge { + return new MsgVoteGauge().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteGauge | PlainMessage | undefined, b: MsgVoteGauge | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteGauge, a, b); + } +} + +/** + * MsgVoteGaugeResponse + * + * @generated from message sunrise.liquidityincentive.v1.MsgVoteGaugeResponse + */ +export class MsgVoteGaugeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgVoteGaugeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteGaugeResponse { + return new MsgVoteGaugeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteGaugeResponse { + return new MsgVoteGaugeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteGaugeResponse { + return new MsgVoteGaugeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgVoteGaugeResponse | PlainMessage | undefined, b: MsgVoteGaugeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgVoteGaugeResponse, a, b); + } +} + +/** + * MsgRegisterBribe + * + * @generated from message sunrise.liquidityincentive.v1.MsgRegisterBribe + */ +export class MsgRegisterBribe extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 epoch_id = 2; + */ + epochId = protoInt64.zero; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 4; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgRegisterBribe"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "epoch_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterBribe { + return new MsgRegisterBribe().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterBribe { + return new MsgRegisterBribe().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterBribe { + return new MsgRegisterBribe().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterBribe | PlainMessage | undefined, b: MsgRegisterBribe | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterBribe, a, b); + } +} + +/** + * MsgRegisterBribeResponse + * + * @generated from message sunrise.liquidityincentive.v1.MsgRegisterBribeResponse + */ +export class MsgRegisterBribeResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgRegisterBribeResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterBribeResponse { + return new MsgRegisterBribeResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterBribeResponse { + return new MsgRegisterBribeResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRegisterBribeResponse { + return new MsgRegisterBribeResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgRegisterBribeResponse | PlainMessage | undefined, b: MsgRegisterBribeResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRegisterBribeResponse, a, b); + } +} + +/** + * MsgClaimBribes + * + * @generated from message sunrise.liquidityincentive.v1.MsgClaimBribes + */ +export class MsgClaimBribes extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated uint64 bribe_ids = 2; + */ + bribeIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgClaimBribes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bribe_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimBribes { + return new MsgClaimBribes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimBribes { + return new MsgClaimBribes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimBribes { + return new MsgClaimBribes().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimBribes | PlainMessage | undefined, b: MsgClaimBribes | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimBribes, a, b); + } +} + +/** + * MsgClaimBribesResponse + * + * @generated from message sunrise.liquidityincentive.v1.MsgClaimBribesResponse + */ +export class MsgClaimBribesResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquidityincentive.v1.MsgClaimBribesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimBribesResponse { + return new MsgClaimBribesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimBribesResponse { + return new MsgClaimBribesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimBribesResponse { + return new MsgClaimBribesResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimBribesResponse | PlainMessage | undefined, b: MsgClaimBribesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimBribesResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/module/v1/module_pb.ts b/src/protobufs/sunrise/liquiditypool/module/v1/module_pb.ts new file mode 100644 index 00000000..6a67df52 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/module/v1/module.proto (package sunrise.liquiditypool.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.liquiditypool.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/accumulator_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/accumulator_pb.ts new file mode 100644 index 00000000..2bdb25d3 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/accumulator_pb.ts @@ -0,0 +1,123 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/accumulator.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * AccumulatorObject + * + * @generated from message sunrise.liquiditypool.v1.AccumulatorObject + */ +export class AccumulatorObject extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin accum_value = 2; + */ + accumValue: DecCoin[] = []; + + /** + * @generated from field: string total_shares = 3; + */ + totalShares = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.AccumulatorObject"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "accum_value", kind: "message", T: DecCoin, repeated: true }, + { no: 3, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccumulatorObject { + return new AccumulatorObject().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccumulatorObject { + return new AccumulatorObject().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccumulatorObject { + return new AccumulatorObject().fromJsonString(jsonString, options); + } + + static equals(a: AccumulatorObject | PlainMessage | undefined, b: AccumulatorObject | PlainMessage | undefined): boolean { + return proto3.util.equals(AccumulatorObject, a, b); + } +} + +/** + * AccumulatorPosition + * + * @generated from message sunrise.liquiditypool.v1.AccumulatorPosition + */ +export class AccumulatorPosition extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: string index = 2; + */ + index = ""; + + /** + * @generated from field: string num_shares = 3; + */ + numShares = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin accum_value_per_share = 4; + */ + accumValuePerShare: DecCoin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin unclaimed_rewards_total = 5; + */ + unclaimedRewardsTotal: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.AccumulatorPosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "num_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "accum_value_per_share", kind: "message", T: DecCoin, repeated: true }, + { no: 5, name: "unclaimed_rewards_total", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AccumulatorPosition { + return new AccumulatorPosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AccumulatorPosition { + return new AccumulatorPosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AccumulatorPosition { + return new AccumulatorPosition().fromJsonString(jsonString, options); + } + + static equals(a: AccumulatorPosition | PlainMessage | undefined, b: AccumulatorPosition | PlainMessage | undefined): boolean { + return proto3.util.equals(AccumulatorPosition, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/events_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/events_pb.ts new file mode 100644 index 00000000..f49399c5 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/events_pb.ts @@ -0,0 +1,444 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/events.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * EventCreatePool + * + * @generated from message sunrise.liquiditypool.v1.EventCreatePool + */ +export class EventCreatePool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string denom_base = 2; + */ + denomBase = ""; + + /** + * @generated from field: string denom_quote = 3; + */ + denomQuote = ""; + + /** + * @generated from field: string fee_rate = 4; + */ + feeRate = ""; + + /** + * @generated from field: string price_ratio = 5; + */ + priceRatio = ""; + + /** + * @generated from field: string base_offset = 6; + */ + baseOffset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventCreatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "base_offset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreatePool { + return new EventCreatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreatePool { + return new EventCreatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreatePool { + return new EventCreatePool().fromJsonString(jsonString, options); + } + + static equals(a: EventCreatePool | PlainMessage | undefined, b: EventCreatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreatePool, a, b); + } +} + +/** + * EventCreatePosition + * + * @generated from message sunrise.liquiditypool.v1.EventCreatePosition + */ +export class EventCreatePosition extends Message { + /** + * @generated from field: uint64 position_id = 1; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 lower_tick = 4; + */ + lowerTick = protoInt64.zero; + + /** + * @generated from field: int64 upper_tick = 5; + */ + upperTick = protoInt64.zero; + + /** + * @generated from field: string liquidity = 6; + */ + liquidity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventCreatePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCreatePosition { + return new EventCreatePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCreatePosition { + return new EventCreatePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventCreatePosition { + return new EventCreatePosition().fromJsonString(jsonString, options); + } + + static equals(a: EventCreatePosition | PlainMessage | undefined, b: EventCreatePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(EventCreatePosition, a, b); + } +} + +/** + * EventIncreaseLiquidity + * + * @generated from message sunrise.liquiditypool.v1.EventIncreaseLiquidity + */ +export class EventIncreaseLiquidity extends Message { + /** + * @generated from field: uint64 old_position_id = 1; + */ + oldPositionId = protoInt64.zero; + + /** + * @generated from field: uint64 new_position_id = 2; + */ + newPositionId = protoInt64.zero; + + /** + * @generated from field: string address = 3; + */ + address = ""; + + /** + * @generated from field: string amount_base = 4; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 5; + */ + amountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventIncreaseLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "old_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "new_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventIncreaseLiquidity { + return new EventIncreaseLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventIncreaseLiquidity { + return new EventIncreaseLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventIncreaseLiquidity { + return new EventIncreaseLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: EventIncreaseLiquidity | PlainMessage | undefined, b: EventIncreaseLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(EventIncreaseLiquidity, a, b); + } +} + +/** + * EventDecreaseLiquidity + * + * @generated from message sunrise.liquiditypool.v1.EventDecreaseLiquidity + */ +export class EventDecreaseLiquidity extends Message { + /** + * @generated from field: uint64 position_id = 1; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: string amount_base = 3; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 4; + */ + amountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventDecreaseLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventDecreaseLiquidity { + return new EventDecreaseLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventDecreaseLiquidity { + return new EventDecreaseLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventDecreaseLiquidity { + return new EventDecreaseLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: EventDecreaseLiquidity | PlainMessage | undefined, b: EventDecreaseLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(EventDecreaseLiquidity, a, b); + } +} + +/** + * EventClaimRewards + * + * @generated from message sunrise.liquiditypool.v1.EventClaimRewards + */ +export class EventClaimRewards extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 position_id = 2; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventClaimRewards { + return new EventClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventClaimRewards { + return new EventClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventClaimRewards { + return new EventClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: EventClaimRewards | PlainMessage | undefined, b: EventClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(EventClaimRewards, a, b); + } +} + +/** + * EventSwapExactAmountIn + * + * @generated from message sunrise.liquiditypool.v1.EventSwapExactAmountIn + */ +export class EventSwapExactAmountIn extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; + */ + tokenIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 4; + */ + tokenOut?: Coin; + + /** + * @generated from field: bool fee_enabled = 5; + */ + feeEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventSwapExactAmountIn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_in", kind: "message", T: Coin }, + { no: 4, name: "token_out", kind: "message", T: Coin }, + { no: 5, name: "fee_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSwapExactAmountIn { + return new EventSwapExactAmountIn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSwapExactAmountIn { + return new EventSwapExactAmountIn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSwapExactAmountIn { + return new EventSwapExactAmountIn().fromJsonString(jsonString, options); + } + + static equals(a: EventSwapExactAmountIn | PlainMessage | undefined, b: EventSwapExactAmountIn | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSwapExactAmountIn, a, b); + } +} + +/** + * EventSwapExactAmountOut + * + * @generated from message sunrise.liquiditypool.v1.EventSwapExactAmountOut + */ +export class EventSwapExactAmountOut extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; + */ + tokenIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 4; + */ + tokenOut?: Coin; + + /** + * @generated from field: bool fee_enabled = 5; + */ + feeEnabled = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.EventSwapExactAmountOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "token_in", kind: "message", T: Coin }, + { no: 4, name: "token_out", kind: "message", T: Coin }, + { no: 5, name: "fee_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSwapExactAmountOut { + return new EventSwapExactAmountOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSwapExactAmountOut { + return new EventSwapExactAmountOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventSwapExactAmountOut { + return new EventSwapExactAmountOut().fromJsonString(jsonString, options); + } + + static equals(a: EventSwapExactAmountOut | PlainMessage | undefined, b: EventSwapExactAmountOut | PlainMessage | undefined): boolean { + return proto3.util.equals(EventSwapExactAmountOut, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/genesis_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/genesis_pb.ts new file mode 100644 index 00000000..b66bd2c6 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/genesis_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/genesis.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Pool } from "./pool_pb.js"; +import { Position } from "./position_pb.js"; +import { AccumulatorObject, AccumulatorPosition } from "./accumulator_pb.js"; + +/** + * GenesisState defines the liquiditypool module's genesis state. + * + * @generated from message sunrise.liquiditypool.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.liquiditypool.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.liquiditypool.v1.Pool pools = 2; + */ + pools: Pool[] = []; + + /** + * @generated from field: uint64 pool_count = 3; + */ + poolCount = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquiditypool.v1.Position positions = 4; + */ + positions: Position[] = []; + + /** + * @generated from field: uint64 position_count = 5; + */ + positionCount = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.liquiditypool.v1.AccumulatorObject accumulators = 6; + */ + accumulators: AccumulatorObject[] = []; + + /** + * @generated from field: repeated sunrise.liquiditypool.v1.AccumulatorPosition accumulator_positions = 7; + */ + accumulatorPositions: AccumulatorPosition[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "pools", kind: "message", T: Pool, repeated: true }, + { no: 3, name: "pool_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "positions", kind: "message", T: Position, repeated: true }, + { no: 5, name: "position_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "accumulators", kind: "message", T: AccumulatorObject, repeated: true }, + { no: 7, name: "accumulator_positions", kind: "message", T: AccumulatorPosition, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/params_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/params_pb.ts new file mode 100644 index 00000000..b766c545 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/params_pb.ts @@ -0,0 +1,67 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/params.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.liquiditypool.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: uint64 create_pool_gas = 1; + */ + createPoolGas = protoInt64.zero; + + /** + * For reservation, not used yet + * + * @generated from field: string withdraw_fee_rate = 2; + */ + withdrawFeeRate = ""; + + /** + * @generated from field: repeated string allowed_quote_denoms = 3; + */ + allowedQuoteDenoms: string[] = []; + + /** + * @generated from field: repeated string allowed_addresses = 4; + */ + allowedAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "create_pool_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "withdraw_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allowed_quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/pool_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/pool_pb.ts new file mode 100644 index 00000000..7e343b0b --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/pool_pb.ts @@ -0,0 +1,145 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/pool.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Pool + * + * @generated from message sunrise.liquiditypool.v1.Pool + */ +export class Pool extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string denom_base = 2; + */ + denomBase = ""; + + /** + * @generated from field: string denom_quote = 3; + */ + denomQuote = ""; + + /** + * @generated from field: string fee_rate = 4; + */ + feeRate = ""; + + /** + * @generated from field: sunrise.liquiditypool.v1.TickParams tick_params = 5; + */ + tickParams?: TickParams; + + /** + * @generated from field: int64 current_tick = 6; + */ + currentTick = protoInt64.zero; + + /** + * @generated from field: string current_tick_liquidity = 7; + */ + currentTickLiquidity = ""; + + /** + * @generated from field: string current_sqrt_price = 8; + */ + currentSqrtPrice = ""; + + /** + * @generated from field: string creator = 9; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.Pool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "denom_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "tick_params", kind: "message", T: TickParams }, + { no: 6, name: "current_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "current_tick_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "current_sqrt_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Pool { + return new Pool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Pool { + return new Pool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Pool { + return new Pool().fromJsonString(jsonString, options); + } + + static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { + return proto3.util.equals(Pool, a, b); + } +} + +/** + * TickParams + * PriceRatio^(Tick + BaseOffSet) + * + * @generated from message sunrise.liquiditypool.v1.TickParams + */ +export class TickParams extends Message { + /** + * Basically 1.0001 + * + * @generated from field: string price_ratio = 1; + */ + priceRatio = ""; + + /** + * basically 0 and (-1, 0]. In the 1:1 stable pair, -0.5 would work + * + * @generated from field: string base_offset = 2; + */ + baseOffset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.TickParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "base_offset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TickParams { + return new TickParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TickParams { + return new TickParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TickParams { + return new TickParams().fromJsonString(jsonString, options); + } + + static equals(a: TickParams | PlainMessage | undefined, b: TickParams | PlainMessage | undefined): boolean { + return proto3.util.equals(TickParams, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/position_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/position_pb.ts new file mode 100644 index 00000000..46114d15 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/position_pb.ts @@ -0,0 +1,77 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/position.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Position + * + * @generated from message sunrise.liquiditypool.v1.Position + */ +export class Position extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string address = 2; + */ + address = ""; + + /** + * @generated from field: uint64 pool_id = 3; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 lower_tick = 4; + */ + lowerTick = protoInt64.zero; + + /** + * @generated from field: int64 upper_tick = 5; + */ + upperTick = protoInt64.zero; + + /** + * @generated from field: string liquidity = 6; + */ + liquidity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.Position"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Position { + return new Position().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Position { + return new Position().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Position { + return new Position().fromJsonString(jsonString, options); + } + + static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { + return proto3.util.equals(Position, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/query_cosmes.ts b/src/protobufs/sunrise/liquiditypool/v1/query_cosmes.ts new file mode 100644 index 00000000..9df242ba --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/query_cosmes.ts @@ -0,0 +1,129 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/query.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAddressPositionsRequest, QueryAddressPositionsResponse, QueryCalculationCreatePositionRequest, QueryCalculationCreatePositionResponse, QueryCalculationIncreaseLiquidityRequest, QueryCalculationIncreaseLiquidityResponse, QueryParamsRequest, QueryParamsResponse, QueryPoolPositionsRequest, QueryPoolPositionsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPositionFeesRequest, QueryPositionFeesResponse, QueryPositionRequest, QueryPositionResponse, QueryPositionsRequest, QueryPositionsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.liquiditypool.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.liquiditypool.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * Pool + * + * @generated from rpc sunrise.liquiditypool.v1.Query.Pool + */ +export const QueryPoolService = { + typeName: TYPE_NAME, + method: "Pool", + Request: QueryPoolRequest, + Response: QueryPoolResponse, +} as const; + +/** + * Pools + * + * @generated from rpc sunrise.liquiditypool.v1.Query.Pools + */ +export const QueryPoolsService = { + typeName: TYPE_NAME, + method: "Pools", + Request: QueryPoolsRequest, + Response: QueryPoolsResponse, +} as const; + +/** + * Position + * + * @generated from rpc sunrise.liquiditypool.v1.Query.Position + */ +export const QueryPositionService = { + typeName: TYPE_NAME, + method: "Position", + Request: QueryPositionRequest, + Response: QueryPositionResponse, +} as const; + +/** + * Positions + * + * @generated from rpc sunrise.liquiditypool.v1.Query.Positions + */ +export const QueryPositionsService = { + typeName: TYPE_NAME, + method: "Positions", + Request: QueryPositionsRequest, + Response: QueryPositionsResponse, +} as const; + +/** + * PoolPositions + * + * @generated from rpc sunrise.liquiditypool.v1.Query.PoolPositions + */ +export const QueryPoolPositionsService = { + typeName: TYPE_NAME, + method: "PoolPositions", + Request: QueryPoolPositionsRequest, + Response: QueryPoolPositionsResponse, +} as const; + +/** + * AddressPositions + * + * @generated from rpc sunrise.liquiditypool.v1.Query.AddressPositions + */ +export const QueryAddressPositionsService = { + typeName: TYPE_NAME, + method: "AddressPositions", + Request: QueryAddressPositionsRequest, + Response: QueryAddressPositionsResponse, +} as const; + +/** + * Query fees by position id + * + * @generated from rpc sunrise.liquiditypool.v1.Query.PositionFees + */ +export const QueryPositionFeesService = { + typeName: TYPE_NAME, + method: "PositionFees", + Request: QueryPositionFeesRequest, + Response: QueryPositionFeesResponse, +} as const; + +/** + * Query calculation another amount of create position + * + * @generated from rpc sunrise.liquiditypool.v1.Query.CalculationCreatePosition + */ +export const QueryCalculationCreatePositionService = { + typeName: TYPE_NAME, + method: "CalculationCreatePosition", + Request: QueryCalculationCreatePositionRequest, + Response: QueryCalculationCreatePositionResponse, +} as const; + +/** + * Query calculation another amount of increase liquidity + * + * @generated from rpc sunrise.liquiditypool.v1.Query.CalculationIncreaseLiquidity + */ +export const QueryCalculationIncreaseLiquidityService = { + typeName: TYPE_NAME, + method: "CalculationIncreaseLiquidity", + Request: QueryCalculationIncreaseLiquidityRequest, + Response: QueryCalculationIncreaseLiquidityResponse, +} as const; + diff --git a/src/protobufs/sunrise/liquiditypool/v1/query_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/query_pb.ts new file mode 100644 index 00000000..35acbb1a --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/query_pb.ts @@ -0,0 +1,939 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/query.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Pool } from "./pool_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Position } from "./position_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.liquiditypool.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.liquiditypool.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.liquiditypool.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryPoolRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolRequest + */ +export class QueryPoolRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { + return new QueryPoolRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolRequest, a, b); + } +} + +/** + * PoolInfo + * + * @generated from message sunrise.liquiditypool.v1.PoolInfo + */ +export class PoolInfo extends Message { + /** + * @generated from field: sunrise.liquiditypool.v1.Pool pool = 1; + */ + pool?: Pool; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_base = 2; + */ + tokenBase?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_quote = 3; + */ + tokenQuote?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.PoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: Pool }, + { no: 2, name: "token_base", kind: "message", T: Coin }, + { no: 3, name: "token_quote", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PoolInfo { + return new PoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PoolInfo { + return new PoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PoolInfo { + return new PoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: PoolInfo | PlainMessage | undefined, b: PoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PoolInfo, a, b); + } +} + +/** + * QueryPoolResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolResponse + */ +export class QueryPoolResponse extends Message { + /** + * @generated from field: sunrise.liquiditypool.v1.PoolInfo pool = 1; + */ + pool?: PoolInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool", kind: "message", T: PoolInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { + return new QueryPoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolResponse, a, b); + } +} + +/** + * QueryPoolsRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolsRequest + */ +export class QueryPoolsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsRequest { + return new QueryPoolsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsRequest | PlainMessage | undefined, b: QueryPoolsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsRequest, a, b); + } +} + +/** + * QueryPoolsResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolsResponse + */ +export class QueryPoolsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquiditypool.v1.PoolInfo pools = 1; + */ + pools: PoolInfo[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pools", kind: "message", T: PoolInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { + return new QueryPoolsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolsResponse, a, b); + } +} + +/** + * QueryPositionRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionRequest + */ +export class QueryPositionRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionRequest { + return new QueryPositionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionRequest { + return new QueryPositionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionRequest { + return new QueryPositionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionRequest | PlainMessage | undefined, b: QueryPositionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionRequest, a, b); + } +} + +/** + * PositionInfo + * + * @generated from message sunrise.liquiditypool.v1.PositionInfo + */ +export class PositionInfo extends Message { + /** + * @generated from field: sunrise.liquiditypool.v1.Position position = 1; + */ + position?: Position; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_base = 2; + */ + tokenBase?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_quote = 3; + */ + tokenQuote?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.PositionInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: Position }, + { no: 2, name: "token_base", kind: "message", T: Coin }, + { no: 3, name: "token_quote", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PositionInfo { + return new PositionInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PositionInfo { + return new PositionInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PositionInfo { + return new PositionInfo().fromJsonString(jsonString, options); + } + + static equals(a: PositionInfo | PlainMessage | undefined, b: PositionInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(PositionInfo, a, b); + } +} + +/** + * QueryPositionResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionResponse + */ +export class QueryPositionResponse extends Message { + /** + * @generated from field: sunrise.liquiditypool.v1.PositionInfo position = 1; + */ + position?: PositionInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position", kind: "message", T: PositionInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionResponse { + return new QueryPositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionResponse { + return new QueryPositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionResponse { + return new QueryPositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionResponse | PlainMessage | undefined, b: QueryPositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionResponse, a, b); + } +} + +/** + * QueryPositionsRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionsRequest + */ +export class QueryPositionsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsRequest { + return new QueryPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsRequest | PlainMessage | undefined, b: QueryPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsRequest, a, b); + } +} + +/** + * QueryPositionsResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionsResponse + */ +export class QueryPositionsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquiditypool.v1.PositionInfo positions = 1; + */ + positions: PositionInfo[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionInfo, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionsResponse { + return new QueryPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionsResponse | PlainMessage | undefined, b: QueryPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionsResponse, a, b); + } +} + +/** + * QueryPoolPositionsRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolPositionsRequest + */ +export class QueryPoolPositionsRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolPositionsRequest { + return new QueryPoolPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolPositionsRequest { + return new QueryPoolPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolPositionsRequest { + return new QueryPoolPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolPositionsRequest | PlainMessage | undefined, b: QueryPoolPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolPositionsRequest, a, b); + } +} + +/** + * QueryPoolPositionsResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPoolPositionsResponse + */ +export class QueryPoolPositionsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquiditypool.v1.PositionInfo positions = 1; + */ + positions: PositionInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPoolPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolPositionsResponse { + return new QueryPoolPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolPositionsResponse { + return new QueryPoolPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPoolPositionsResponse { + return new QueryPoolPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPoolPositionsResponse | PlainMessage | undefined, b: QueryPoolPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPoolPositionsResponse, a, b); + } +} + +/** + * QueryAddressPositionsRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryAddressPositionsRequest + */ +export class QueryAddressPositionsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryAddressPositionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressPositionsRequest { + return new QueryAddressPositionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressPositionsRequest { + return new QueryAddressPositionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressPositionsRequest { + return new QueryAddressPositionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressPositionsRequest | PlainMessage | undefined, b: QueryAddressPositionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressPositionsRequest, a, b); + } +} + +/** + * QueryAddressPositionsResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryAddressPositionsResponse + */ +export class QueryAddressPositionsResponse extends Message { + /** + * @generated from field: repeated sunrise.liquiditypool.v1.PositionInfo positions = 1; + */ + positions: PositionInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryAddressPositionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "positions", kind: "message", T: PositionInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressPositionsResponse { + return new QueryAddressPositionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressPositionsResponse { + return new QueryAddressPositionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressPositionsResponse { + return new QueryAddressPositionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressPositionsResponse | PlainMessage | undefined, b: QueryAddressPositionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressPositionsResponse, a, b); + } +} + +/** + * QueryPositionFeesRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionFeesRequest + */ +export class QueryPositionFeesRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionFeesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionFeesRequest { + return new QueryPositionFeesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionFeesRequest { + return new QueryPositionFeesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionFeesRequest { + return new QueryPositionFeesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionFeesRequest | PlainMessage | undefined, b: QueryPositionFeesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionFeesRequest, a, b); + } +} + +/** + * QueryPositionFeesResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryPositionFeesResponse + */ +export class QueryPositionFeesResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin fees = 1; + */ + fees: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryPositionFeesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "fees", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPositionFeesResponse { + return new QueryPositionFeesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPositionFeesResponse { + return new QueryPositionFeesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryPositionFeesResponse { + return new QueryPositionFeesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryPositionFeesResponse | PlainMessage | undefined, b: QueryPositionFeesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryPositionFeesResponse, a, b); + } +} + +/** + * QueryCalculationCreatePositionRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryCalculationCreatePositionRequest + */ +export class QueryCalculationCreatePositionRequest extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: string lower_tick = 2; + */ + lowerTick = ""; + + /** + * @generated from field: string upper_tick = 3; + */ + upperTick = ""; + + /** + * @generated from field: string amount = 4; + */ + amount = ""; + + /** + * @generated from field: string denom = 5; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryCalculationCreatePositionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "lower_tick", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "upper_tick", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationCreatePositionRequest { + return new QueryCalculationCreatePositionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationCreatePositionRequest { + return new QueryCalculationCreatePositionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationCreatePositionRequest { + return new QueryCalculationCreatePositionRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationCreatePositionRequest | PlainMessage | undefined, b: QueryCalculationCreatePositionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationCreatePositionRequest, a, b); + } +} + +/** + * QueryCalculationCreatePositionResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryCalculationCreatePositionResponse + */ +export class QueryCalculationCreatePositionResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryCalculationCreatePositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationCreatePositionResponse { + return new QueryCalculationCreatePositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationCreatePositionResponse { + return new QueryCalculationCreatePositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationCreatePositionResponse { + return new QueryCalculationCreatePositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationCreatePositionResponse | PlainMessage | undefined, b: QueryCalculationCreatePositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationCreatePositionResponse, a, b); + } +} + +/** + * QueryCalculationIncreaseLiquidityRequest + * + * @generated from message sunrise.liquiditypool.v1.QueryCalculationIncreaseLiquidityRequest + */ +export class QueryCalculationIncreaseLiquidityRequest extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string amount_in = 2; + */ + amountIn = ""; + + /** + * @generated from field: string denom_in = 3; + */ + denomIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryCalculationIncreaseLiquidityRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationIncreaseLiquidityRequest { + return new QueryCalculationIncreaseLiquidityRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationIncreaseLiquidityRequest { + return new QueryCalculationIncreaseLiquidityRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationIncreaseLiquidityRequest { + return new QueryCalculationIncreaseLiquidityRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationIncreaseLiquidityRequest | PlainMessage | undefined, b: QueryCalculationIncreaseLiquidityRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationIncreaseLiquidityRequest, a, b); + } +} + +/** + * QueryCalculationIncreaseLiquidityResponse + * + * @generated from message sunrise.liquiditypool.v1.QueryCalculationIncreaseLiquidityResponse + */ +export class QueryCalculationIncreaseLiquidityResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin token_required = 1; + */ + tokenRequired?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.QueryCalculationIncreaseLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_required", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationIncreaseLiquidityResponse { + return new QueryCalculationIncreaseLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationIncreaseLiquidityResponse { + return new QueryCalculationIncreaseLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationIncreaseLiquidityResponse { + return new QueryCalculationIncreaseLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationIncreaseLiquidityResponse | PlainMessage | undefined, b: QueryCalculationIncreaseLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationIncreaseLiquidityResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/ticker_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/ticker_pb.ts new file mode 100644 index 00000000..8c024fc8 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/ticker_pb.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/ticker.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * TickInfo + * + * @generated from message sunrise.liquiditypool.v1.TickInfo + */ +export class TickInfo extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 tick_index = 2; + */ + tickIndex = protoInt64.zero; + + /** + * @generated from field: string liquidity_gross = 3; + */ + liquidityGross = ""; + + /** + * @generated from field: string liquidity_net = 4; + */ + liquidityNet = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.DecCoin fee_growth = 5; + */ + feeGrowth: DecCoin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.TickInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "liquidity_gross", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "liquidity_net", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "fee_growth", kind: "message", T: DecCoin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TickInfo { + return new TickInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TickInfo { + return new TickInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TickInfo { + return new TickInfo().fromJsonString(jsonString, options); + } + + static equals(a: TickInfo | PlainMessage | undefined, b: TickInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(TickInfo, a, b); + } +} + diff --git a/src/protobufs/sunrise/liquiditypool/v1/tx_cosmes.ts b/src/protobufs/sunrise/liquiditypool/v1/tx_cosmes.ts new file mode 100644 index 00000000..1a8205cf --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/tx_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/tx.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimRewards, MsgClaimRewardsResponse, MsgCreatePool, MsgCreatePoolResponse, MsgCreatePosition, MsgCreatePositionResponse, MsgDecreaseLiquidity, MsgDecreaseLiquidityResponse, MsgIncreaseLiquidity, MsgIncreaseLiquidityResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.liquiditypool.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * CreatePool + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.CreatePool + */ +export const MsgCreatePoolService = { + typeName: TYPE_NAME, + method: "CreatePool", + Request: MsgCreatePool, + Response: MsgCreatePoolResponse, +} as const; + +/** + * CreatePosition + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.CreatePosition + */ +export const MsgCreatePositionService = { + typeName: TYPE_NAME, + method: "CreatePosition", + Request: MsgCreatePosition, + Response: MsgCreatePositionResponse, +} as const; + +/** + * IncreaseLiquidity + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.IncreaseLiquidity + */ +export const MsgIncreaseLiquidityService = { + typeName: TYPE_NAME, + method: "IncreaseLiquidity", + Request: MsgIncreaseLiquidity, + Response: MsgIncreaseLiquidityResponse, +} as const; + +/** + * DecreaseLiquidity + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.DecreaseLiquidity + */ +export const MsgDecreaseLiquidityService = { + typeName: TYPE_NAME, + method: "DecreaseLiquidity", + Request: MsgDecreaseLiquidity, + Response: MsgDecreaseLiquidityResponse, +} as const; + +/** + * ClaimRewards + * + * @generated from rpc sunrise.liquiditypool.v1.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + diff --git a/src/protobufs/sunrise/liquiditypool/v1/tx_pb.ts b/src/protobufs/sunrise/liquiditypool/v1/tx_pb.ts new file mode 100644 index 00000000..dc9d5b55 --- /dev/null +++ b/src/protobufs/sunrise/liquiditypool/v1/tx_pb.ts @@ -0,0 +1,644 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/liquiditypool/v1/tx.proto (package sunrise.liquiditypool.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.liquiditypool.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless + * overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.liquiditypool.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.liquiditypool.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgCreatePool + * + * @generated from message sunrise.liquiditypool.v1.MsgCreatePool + */ +export class MsgCreatePool extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom_base = 2; + */ + denomBase = ""; + + /** + * @generated from field: string denom_quote = 3; + */ + denomQuote = ""; + + /** + * @generated from field: string fee_rate = 4; + */ + feeRate = ""; + + /** + * Basically 1.0001 + * + * @generated from field: string price_ratio = 5; + */ + priceRatio = ""; + + /** + * basically 0 and (-1, 0]. In the 1:1 stable pair, 0.5 would work + * + * @generated from field: string base_offset = 6; + */ + baseOffset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgCreatePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "price_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "base_offset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePool { + return new MsgCreatePool().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePool | PlainMessage | undefined, b: MsgCreatePool | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePool, a, b); + } +} + +/** + * MsgCreatePoolResponse + * + * @generated from message sunrise.liquiditypool.v1.MsgCreatePoolResponse + */ +export class MsgCreatePoolResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgCreatePoolResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePoolResponse { + return new MsgCreatePoolResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePoolResponse | PlainMessage | undefined, b: MsgCreatePoolResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePoolResponse, a, b); + } +} + +/** + * MsgCreatePosition + * + * @generated from message sunrise.liquiditypool.v1.MsgCreatePosition + */ +export class MsgCreatePosition extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 pool_id = 2; + */ + poolId = protoInt64.zero; + + /** + * @generated from field: int64 lower_tick = 3; + */ + lowerTick = protoInt64.zero; + + /** + * @generated from field: int64 upper_tick = 4; + */ + upperTick = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_base = 5; + */ + tokenBase?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_quote = 6; + */ + tokenQuote?: Coin; + + /** + * @generated from field: string min_amount_base = 7; + */ + minAmountBase = ""; + + /** + * @generated from field: string min_amount_quote = 8; + */ + minAmountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgCreatePosition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "token_base", kind: "message", T: Coin }, + { no: 6, name: "token_quote", kind: "message", T: Coin }, + { no: 7, name: "min_amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "min_amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePosition { + return new MsgCreatePosition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePosition { + return new MsgCreatePosition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePosition { + return new MsgCreatePosition().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePosition | PlainMessage | undefined, b: MsgCreatePosition | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePosition, a, b); + } +} + +/** + * MsgCreatePositionResponse + * + * @generated from message sunrise.liquiditypool.v1.MsgCreatePositionResponse + */ +export class MsgCreatePositionResponse extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string amount_base = 2; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 3; + */ + amountQuote = ""; + + /** + * @generated from field: string liquidity = 4; + */ + liquidity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgCreatePositionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePositionResponse { + return new MsgCreatePositionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePositionResponse { + return new MsgCreatePositionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreatePositionResponse { + return new MsgCreatePositionResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreatePositionResponse | PlainMessage | undefined, b: MsgCreatePositionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreatePositionResponse, a, b); + } +} + +/** + * MsgIncreaseLiquidity + * + * @generated from message sunrise.liquiditypool.v1.MsgIncreaseLiquidity + */ +export class MsgIncreaseLiquidity extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string amount_base = 3; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 4; + */ + amountQuote = ""; + + /** + * @generated from field: string min_amount_base = 5; + */ + minAmountBase = ""; + + /** + * @generated from field: string min_amount_quote = 6; + */ + minAmountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgIncreaseLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "min_amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "min_amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncreaseLiquidity { + return new MsgIncreaseLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncreaseLiquidity { + return new MsgIncreaseLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncreaseLiquidity { + return new MsgIncreaseLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncreaseLiquidity | PlainMessage | undefined, b: MsgIncreaseLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncreaseLiquidity, a, b); + } +} + +/** + * MsgIncreaseLiquidityResponse + * + * @generated from message sunrise.liquiditypool.v1.MsgIncreaseLiquidityResponse + */ +export class MsgIncreaseLiquidityResponse extends Message { + /** + * @generated from field: uint64 position_id = 1; + */ + positionId = protoInt64.zero; + + /** + * @generated from field: string amount_base = 2; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 3; + */ + amountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgIncreaseLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgIncreaseLiquidityResponse { + return new MsgIncreaseLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgIncreaseLiquidityResponse { + return new MsgIncreaseLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgIncreaseLiquidityResponse { + return new MsgIncreaseLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgIncreaseLiquidityResponse | PlainMessage | undefined, b: MsgIncreaseLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgIncreaseLiquidityResponse, a, b); + } +} + +/** + * MsgDecreaseLiquidity + * + * @generated from message sunrise.liquiditypool.v1.MsgDecreaseLiquidity + */ +export class MsgDecreaseLiquidity extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: uint64 id = 2; + */ + id = protoInt64.zero; + + /** + * @generated from field: string liquidity = 3; + */ + liquidity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgDecreaseLiquidity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreaseLiquidity { + return new MsgDecreaseLiquidity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreaseLiquidity { + return new MsgDecreaseLiquidity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreaseLiquidity { + return new MsgDecreaseLiquidity().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreaseLiquidity | PlainMessage | undefined, b: MsgDecreaseLiquidity | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreaseLiquidity, a, b); + } +} + +/** + * MsgDecreaseLiquidityResponse + * + * @generated from message sunrise.liquiditypool.v1.MsgDecreaseLiquidityResponse + */ +export class MsgDecreaseLiquidityResponse extends Message { + /** + * @generated from field: string amount_base = 1; + */ + amountBase = ""; + + /** + * @generated from field: string amount_quote = 2; + */ + amountQuote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgDecreaseLiquidityResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount_base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount_quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDecreaseLiquidityResponse { + return new MsgDecreaseLiquidityResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDecreaseLiquidityResponse { + return new MsgDecreaseLiquidityResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgDecreaseLiquidityResponse { + return new MsgDecreaseLiquidityResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgDecreaseLiquidityResponse | PlainMessage | undefined, b: MsgDecreaseLiquidityResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgDecreaseLiquidityResponse, a, b); + } +} + +/** + * MsgClaimRewards + * + * @generated from message sunrise.liquiditypool.v1.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated uint64 position_ids = 2; + */ + positionIds: bigint[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "position_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * MsgClaimRewardsResponse + * + * @generated from message sunrise.liquiditypool.v1.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.liquiditypool.v1.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/module/v1/module_pb.ts b/src/protobufs/sunrise/lockup/module/v1/module_pb.ts new file mode 100644 index 00000000..b055405c --- /dev/null +++ b/src/protobufs/sunrise/lockup/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/module/v1/module.proto (package sunrise.lockup.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.lockup.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/v1/genesis_pb.ts b/src/protobufs/sunrise/lockup/v1/genesis_pb.ts new file mode 100644 index 00000000..bd6152cc --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/genesis_pb.ts @@ -0,0 +1,64 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/genesis.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { LockupAccount } from "./lockup_account_pb.js"; +import { MsgInitLockupAccount } from "./tx_pb.js"; + +/** + * GenesisState defines the lockup module's genesis state. + * + * @generated from message sunrise.lockup.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.lockup.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.lockup.v1.LockupAccount lockup_accounts = 2; + */ + lockupAccounts: LockupAccount[] = []; + + /** + * @generated from field: repeated sunrise.lockup.v1.MsgInitLockupAccount init_lockup_msgs = 3; + */ + initLockupMsgs: MsgInitLockupAccount[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "lockup_accounts", kind: "message", T: LockupAccount, repeated: true }, + { no: 3, name: "init_lockup_msgs", kind: "message", T: MsgInitLockupAccount, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/v1/lockup_account_pb.ts b/src/protobufs/sunrise/lockup/v1/lockup_account_pb.ts new file mode 100644 index 00000000..6cab3780 --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/lockup_account_pb.ts @@ -0,0 +1,203 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/lockup_account.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * LockupAccount defines the lockup account. + * + * @generated from message sunrise.lockup.v1.LockupAccount + */ +export class LockupAccount extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * @generated from field: uint64 id = 3; + */ + id = protoInt64.zero; + + /** + * @generated from field: int64 start_time = 4; + */ + startTime = protoInt64.zero; + + /** + * @generated from field: int64 end_time = 5; + */ + endTime = protoInt64.zero; + + /** + * @generated from field: string original_locking = 6; + */ + originalLocking = ""; + + /** + * @generated from field: string delegated_free = 7; + */ + delegatedFree = ""; + + /** + * @generated from field: string delegated_locking = 8; + */ + delegatedLocking = ""; + + /** + * @generated from field: sunrise.lockup.v1.UnbondingEntries unbond_entries = 9; + */ + unbondEntries?: UnbondingEntries; + + /** + * @generated from field: string additional_locking = 10; + */ + additionalLocking = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.LockupAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "original_locking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "delegated_free", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "delegated_locking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "unbond_entries", kind: "message", T: UnbondingEntries }, + { no: 10, name: "additional_locking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LockupAccount { + return new LockupAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LockupAccount { + return new LockupAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LockupAccount { + return new LockupAccount().fromJsonString(jsonString, options); + } + + static equals(a: LockupAccount | PlainMessage | undefined, b: LockupAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(LockupAccount, a, b); + } +} + +/** + * UnbondingEntries list of elements + * + * @generated from message sunrise.lockup.v1.UnbondingEntries + */ +export class UnbondingEntries extends Message { + /** + * @generated from field: repeated sunrise.lockup.v1.UnbondingEntry entries = 1; + */ + entries: UnbondingEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.UnbondingEntries"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entries", kind: "message", T: UnbondingEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingEntries { + return new UnbondingEntries().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingEntries { + return new UnbondingEntries().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingEntries { + return new UnbondingEntries().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingEntries | PlainMessage | undefined, b: UnbondingEntries | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingEntries, a, b); + } +} + +/** + * UnbondingEntry defines an entry tracking the lockup account unbonding operation. + * + * @generated from message sunrise.lockup.v1.UnbondingEntry + */ +export class UnbondingEntry extends Message { + /** + * @generated from field: int64 creation_height = 1; + */ + creationHeight = protoInt64.zero; + + /** + * end time of entry + * + * @generated from field: int64 end_time = 2; + */ + endTime = protoInt64.zero; + + /** + * unbond amount + * + * @generated from field: string amount = 3; + */ + amount = ""; + + /** + * validator address + * + * @generated from field: string validator_address = 4; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.UnbondingEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingEntry { + return new UnbondingEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingEntry { + return new UnbondingEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnbondingEntry { + return new UnbondingEntry().fromJsonString(jsonString, options); + } + + static equals(a: UnbondingEntry | PlainMessage | undefined, b: UnbondingEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(UnbondingEntry, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/v1/params_pb.ts b/src/protobufs/sunrise/lockup/v1/params_pb.ts new file mode 100644 index 00000000..9327cd00 --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/params.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.lockup.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: google.protobuf.Duration min_lockup_duration = 1; + */ + minLockupDuration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_lockup_duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/v1/query_cosmes.ts b/src/protobufs/sunrise/lockup/v1/query_cosmes.ts new file mode 100644 index 00000000..a85c936f --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/query_cosmes.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/query.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryLockupAccountRequest, QueryLockupAccountResponse, QueryLockupAccountsRequest, QueryLockupAccountsResponse, QueryParamsRequest, QueryParamsResponse, QuerySpendableAmountRequest, QuerySpendableAmountResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.lockup.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.lockup.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * LockupAccounts queries all lockup accounts for a given owner. + * + * @generated from rpc sunrise.lockup.v1.Query.LockupAccounts + */ +export const QueryLockupAccountsService = { + typeName: TYPE_NAME, + method: "LockupAccounts", + Request: QueryLockupAccountsRequest, + Response: QueryLockupAccountsResponse, +} as const; + +/** + * LockupAccount queries a lockup account for a given owner and id. + * + * @generated from rpc sunrise.lockup.v1.Query.LockupAccount + */ +export const QueryLockupAccountService = { + typeName: TYPE_NAME, + method: "LockupAccount", + Request: QueryLockupAccountRequest, + Response: QueryLockupAccountResponse, +} as const; + +/** + * SpendableAmount queries the spendable amount for a given owner and id. + * + * @generated from rpc sunrise.lockup.v1.Query.SpendableAmount + */ +export const QuerySpendableAmountService = { + typeName: TYPE_NAME, + method: "SpendableAmount", + Request: QuerySpendableAmountRequest, + Response: QuerySpendableAmountResponse, +} as const; + diff --git a/src/protobufs/sunrise/lockup/v1/query_pb.ts b/src/protobufs/sunrise/lockup/v1/query_pb.ts new file mode 100644 index 00000000..9dbf639e --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/query_pb.ts @@ -0,0 +1,342 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/query.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { LockupAccount } from "./lockup_account_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.lockup.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.lockup.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.lockup.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryLockupAccountsRequest is request type for the Query/LockupAccounts RPC method. + * + * @generated from message sunrise.lockup.v1.QueryLockupAccountsRequest + */ +export class QueryLockupAccountsRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryLockupAccountsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockupAccountsRequest { + return new QueryLockupAccountsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockupAccountsRequest { + return new QueryLockupAccountsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockupAccountsRequest { + return new QueryLockupAccountsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockupAccountsRequest | PlainMessage | undefined, b: QueryLockupAccountsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockupAccountsRequest, a, b); + } +} + +/** + * QueryLockupAccountsResponse is response type for the Query/LockupAccounts RPC method. + * + * @generated from message sunrise.lockup.v1.QueryLockupAccountsResponse + */ +export class QueryLockupAccountsResponse extends Message { + /** + * @generated from field: repeated sunrise.lockup.v1.LockupAccount lockup_accounts = 1; + */ + lockupAccounts: LockupAccount[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryLockupAccountsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lockup_accounts", kind: "message", T: LockupAccount, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockupAccountsResponse { + return new QueryLockupAccountsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockupAccountsResponse { + return new QueryLockupAccountsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockupAccountsResponse { + return new QueryLockupAccountsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockupAccountsResponse | PlainMessage | undefined, b: QueryLockupAccountsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockupAccountsResponse, a, b); + } +} + +/** + * QueryLockupAccountRequest is request type for the Query/LockupAccount RPC method. + * + * @generated from message sunrise.lockup.v1.QueryLockupAccountRequest + */ +export class QueryLockupAccountRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryLockupAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockupAccountRequest { + return new QueryLockupAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockupAccountRequest { + return new QueryLockupAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockupAccountRequest { + return new QueryLockupAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockupAccountRequest | PlainMessage | undefined, b: QueryLockupAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockupAccountRequest, a, b); + } +} + +/** + * QueryLockupAccountResponse is response type for the Query/LockupAccount RPC method. + * + * @generated from message sunrise.lockup.v1.QueryLockupAccountResponse + */ +export class QueryLockupAccountResponse extends Message { + /** + * @generated from field: sunrise.lockup.v1.LockupAccount lockup_account = 1; + */ + lockupAccount?: LockupAccount; + + /** + * @generated from field: string locked_amount = 2; + */ + lockedAmount = ""; + + /** + * @generated from field: string unlocked_amount = 3; + */ + unlockedAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QueryLockupAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lockup_account", kind: "message", T: LockupAccount }, + { no: 2, name: "locked_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "unlocked_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockupAccountResponse { + return new QueryLockupAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockupAccountResponse { + return new QueryLockupAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryLockupAccountResponse { + return new QueryLockupAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryLockupAccountResponse | PlainMessage | undefined, b: QueryLockupAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryLockupAccountResponse, a, b); + } +} + +/** + * QuerySpendableAmountRequest is request type for the Query/SpendableAmount RPC method. + * + * @generated from message sunrise.lockup.v1.QuerySpendableAmountRequest + */ +export class QuerySpendableAmountRequest extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QuerySpendableAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableAmountRequest { + return new QuerySpendableAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableAmountRequest { + return new QuerySpendableAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpendableAmountRequest { + return new QuerySpendableAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpendableAmountRequest | PlainMessage | undefined, b: QuerySpendableAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpendableAmountRequest, a, b); + } +} + +/** + * QuerySpendableAmountResponse is response type for the Query/SpendableAmount RPC method. + * + * @generated from message sunrise.lockup.v1.QuerySpendableAmountResponse + */ +export class QuerySpendableAmountResponse extends Message { + /** + * @generated from field: string spendable_amount = 1; + */ + spendableAmount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.QuerySpendableAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "spendable_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableAmountResponse { + return new QuerySpendableAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableAmountResponse { + return new QuerySpendableAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuerySpendableAmountResponse { + return new QuerySpendableAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QuerySpendableAmountResponse | PlainMessage | undefined, b: QuerySpendableAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QuerySpendableAmountResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/lockup/v1/tx_cosmes.ts b/src/protobufs/sunrise/lockup/v1/tx_cosmes.ts new file mode 100644 index 00000000..5b329667 --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/tx_cosmes.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/tx.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimRewards, MsgClaimRewardsResponse, MsgInitLockupAccount, MsgInitLockupAccountResponse, MsgNonVotingDelegate, MsgNonVotingDelegateResponse, MsgNonVotingUndelegate, MsgNonVotingUndelegateResponse, MsgSend, MsgSendResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.lockup.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.lockup.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * InitLockupAccount + * + * @generated from rpc sunrise.lockup.v1.Msg.InitLockupAccount + */ +export const MsgInitLockupAccountService = { + typeName: TYPE_NAME, + method: "InitLockupAccount", + Request: MsgInitLockupAccount, + Response: MsgInitLockupAccountResponse, +} as const; + +/** + * NonVotingDelegate + * + * @generated from rpc sunrise.lockup.v1.Msg.NonVotingDelegate + */ +export const MsgNonVotingDelegateService = { + typeName: TYPE_NAME, + method: "NonVotingDelegate", + Request: MsgNonVotingDelegate, + Response: MsgNonVotingDelegateResponse, +} as const; + +/** + * NonVotingUndelegate + * + * @generated from rpc sunrise.lockup.v1.Msg.NonVotingUndelegate + */ +export const MsgNonVotingUndelegateService = { + typeName: TYPE_NAME, + method: "NonVotingUndelegate", + Request: MsgNonVotingUndelegate, + Response: MsgNonVotingUndelegateResponse, +} as const; + +/** + * ClaimRewards + * + * @generated from rpc sunrise.lockup.v1.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + +/** + * Send + * + * @generated from rpc sunrise.lockup.v1.Msg.Send + */ +export const MsgSendService = { + typeName: TYPE_NAME, + method: "Send", + Request: MsgSend, + Response: MsgSendResponse, +} as const; + diff --git a/src/protobufs/sunrise/lockup/v1/tx_pb.ts b/src/protobufs/sunrise/lockup/v1/tx_pb.ts new file mode 100644 index 00000000..a4bb280f --- /dev/null +++ b/src/protobufs/sunrise/lockup/v1/tx_pb.ts @@ -0,0 +1,547 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/lockup/v1/tx.proto (package sunrise.lockup.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.lockup.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.lockup.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.lockup.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgInitLockupAccount + * + * @generated from message sunrise.lockup.v1.MsgInitLockupAccount + */ +export class MsgInitLockupAccount extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string owner = 2; + */ + owner = ""; + + /** + * start of lockup as unix time (in seconds). + * + * @generated from field: int64 start_time = 3; + */ + startTime = protoInt64.zero; + + /** + * end of lockup as unix time (in seconds). + * + * @generated from field: int64 end_time = 4; + */ + endTime = protoInt64.zero; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 5; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgInitLockupAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitLockupAccount { + return new MsgInitLockupAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitLockupAccount { + return new MsgInitLockupAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitLockupAccount { + return new MsgInitLockupAccount().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitLockupAccount | PlainMessage | undefined, b: MsgInitLockupAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitLockupAccount, a, b); + } +} + +/** + * MsgInitLockupAccountResponse + * + * @generated from message sunrise.lockup.v1.MsgInitLockupAccountResponse + */ +export class MsgInitLockupAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgInitLockupAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitLockupAccountResponse { + return new MsgInitLockupAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitLockupAccountResponse { + return new MsgInitLockupAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgInitLockupAccountResponse { + return new MsgInitLockupAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgInitLockupAccountResponse | PlainMessage | undefined, b: MsgInitLockupAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgInitLockupAccountResponse, a, b); + } +} + +/** + * MsgNonVotingDelegate + * + * @generated from message sunrise.lockup.v1.MsgNonVotingDelegate + */ +export class MsgNonVotingDelegate extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + /** + * @generated from field: string validator_address = 3; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgNonVotingDelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingDelegate | PlainMessage | undefined, b: MsgNonVotingDelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingDelegate, a, b); + } +} + +/** + * MsgNonVotingDelegateResponse + * + * @generated from message sunrise.lockup.v1.MsgNonVotingDelegateResponse + */ +export class MsgNonVotingDelegateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgNonVotingDelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingDelegateResponse | PlainMessage | undefined, b: MsgNonVotingDelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingDelegateResponse, a, b); + } +} + +/** + * MsgNonVotingUndelegate + * + * @generated from message sunrise.lockup.v1.MsgNonVotingUndelegate + */ +export class MsgNonVotingUndelegate extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + /** + * @generated from field: string validator_address = 3; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 4; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgNonVotingUndelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingUndelegate | PlainMessage | undefined, b: MsgNonVotingUndelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingUndelegate, a, b); + } +} + +/** + * MsgNonVotingUndelegateResponse + * + * @generated from message sunrise.lockup.v1.MsgNonVotingUndelegateResponse + */ +export class MsgNonVotingUndelegateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgNonVotingUndelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingUndelegateResponse | PlainMessage | undefined, b: MsgNonVotingUndelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingUndelegateResponse, a, b); + } +} + +/** + * MsgClaimRewards + * + * @generated from message sunrise.lockup.v1.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + /** + * @generated from field: string validator_address = 3; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * MsgClaimRewardsResponse + * + * @generated from message sunrise.lockup.v1.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + +/** + * MsgSend + * + * @generated from message sunrise.lockup.v1.MsgSend + */ +export class MsgSend extends Message { + /** + * @generated from field: string owner = 1; + */ + owner = ""; + + /** + * @generated from field: uint64 lockup_account_id = 2; + */ + lockupAccountId = protoInt64.zero; + + /** + * @generated from field: string recipient = 3; + */ + recipient = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 4; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgSend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "lockup_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend { + return new MsgSend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend { + return new MsgSend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSend { + return new MsgSend().fromJsonString(jsonString, options); + } + + static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSend, a, b); + } +} + +/** + * MsgSendResponse + * + * @generated from message sunrise.lockup.v1.MsgSendResponse + */ +export class MsgSendResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.lockup.v1.MsgSendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSendResponse | PlainMessage | undefined, b: MsgSendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSendResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/module/v1/module_pb.ts b/src/protobufs/sunrise/shareclass/module/v1/module_pb.ts new file mode 100644 index 00000000..ae5516ff --- /dev/null +++ b/src/protobufs/sunrise/shareclass/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/module/v1/module.proto (package sunrise.shareclass.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.shareclass.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/v1/bond_pb.ts b/src/protobufs/sunrise/shareclass/v1/bond_pb.ts new file mode 100644 index 00000000..1d11e94b --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/bond_pb.ts @@ -0,0 +1,123 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/bond.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * ValidatorBond + * + * @generated from message sunrise.shareclass.v1.ValidatorBond + */ +export class ValidatorBond extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.ValidatorBond"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorBond { + return new ValidatorBond().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorBond { + return new ValidatorBond().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ValidatorBond { + return new ValidatorBond().fromJsonString(jsonString, options); + } + + static equals(a: ValidatorBond | PlainMessage | undefined, b: ValidatorBond | PlainMessage | undefined): boolean { + return proto3.util.equals(ValidatorBond, a, b); + } +} + +/** + * Unbonding + * + * @generated from message sunrise.shareclass.v1.Unbonding + */ +export class Unbonding extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id = protoInt64.zero; + + /** + * @generated from field: string recipient_address = 2; + */ + recipientAddress = ""; + + /** + * @generated from field: string delegator_address = 3; + */ + delegatorAddress = ""; + + /** + * @generated from field: string validator_address = 4; + */ + validatorAddress = ""; + + /** + * @generated from field: google.protobuf.Timestamp completion_time = 5; + */ + completionTime?: Timestamp; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 6; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.Unbonding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "recipient_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "completion_time", kind: "message", T: Timestamp }, + { no: 6, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Unbonding { + return new Unbonding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Unbonding { + return new Unbonding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Unbonding { + return new Unbonding().fromJsonString(jsonString, options); + } + + static equals(a: Unbonding | PlainMessage | undefined, b: Unbonding | PlainMessage | undefined): boolean { + return proto3.util.equals(Unbonding, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/v1/genesis_pb.ts b/src/protobufs/sunrise/shareclass/v1/genesis_pb.ts new file mode 100644 index 00000000..41e55fea --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/genesis_pb.ts @@ -0,0 +1,234 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/genesis.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Unbonding } from "./bond_pb.js"; + +/** + * GenesisState defines the shareclass module's genesis state. + * + * @generated from message sunrise.shareclass.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.shareclass.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.shareclass.v1.Unbonding unbondings = 2; + */ + unbondings: Unbonding[] = []; + + /** + * @generated from field: uint64 unbonding_count = 3; + */ + unbondingCount = protoInt64.zero; + + /** + * @generated from field: repeated sunrise.shareclass.v1.GenesisRewardMultiplier reward_multipliers = 4; + */ + rewardMultipliers: GenesisRewardMultiplier[] = []; + + /** + * @generated from field: repeated sunrise.shareclass.v1.GenesisUserLastRewardMultiplier user_last_reward_multipliers = 5; + */ + userLastRewardMultipliers: GenesisUserLastRewardMultiplier[] = []; + + /** + * @generated from field: repeated sunrise.shareclass.v1.GenesisLastRewardHandlingTime last_reward_handling_times = 6; + */ + lastRewardHandlingTimes: GenesisLastRewardHandlingTime[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "unbondings", kind: "message", T: Unbonding, repeated: true }, + { no: 3, name: "unbonding_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "reward_multipliers", kind: "message", T: GenesisRewardMultiplier, repeated: true }, + { no: 5, name: "user_last_reward_multipliers", kind: "message", T: GenesisUserLastRewardMultiplier, repeated: true }, + { no: 6, name: "last_reward_handling_times", kind: "message", T: GenesisLastRewardHandlingTime, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisRewardMultiplier + * + * @generated from message sunrise.shareclass.v1.GenesisRewardMultiplier + */ +export class GenesisRewardMultiplier extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string reward_multiplier = 3; + */ + rewardMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.GenesisRewardMultiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reward_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisRewardMultiplier { + return new GenesisRewardMultiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisRewardMultiplier { + return new GenesisRewardMultiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisRewardMultiplier { + return new GenesisRewardMultiplier().fromJsonString(jsonString, options); + } + + static equals(a: GenesisRewardMultiplier | PlainMessage | undefined, b: GenesisRewardMultiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisRewardMultiplier, a, b); + } +} + +/** + * GenesisUserLastRewardMultiplier + * + * @generated from message sunrise.shareclass.v1.GenesisUserLastRewardMultiplier + */ +export class GenesisUserLastRewardMultiplier extends Message { + /** + * @generated from field: string user = 1; + */ + user = ""; + + /** + * @generated from field: string validator = 2; + */ + validator = ""; + + /** + * @generated from field: string denom = 3; + */ + denom = ""; + + /** + * @generated from field: string reward_multiplier = 4; + */ + rewardMultiplier = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.GenesisUserLastRewardMultiplier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "reward_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisUserLastRewardMultiplier { + return new GenesisUserLastRewardMultiplier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisUserLastRewardMultiplier { + return new GenesisUserLastRewardMultiplier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisUserLastRewardMultiplier { + return new GenesisUserLastRewardMultiplier().fromJsonString(jsonString, options); + } + + static equals(a: GenesisUserLastRewardMultiplier | PlainMessage | undefined, b: GenesisUserLastRewardMultiplier | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisUserLastRewardMultiplier, a, b); + } +} + +/** + * GenesisLastRewardHandlingTime + * + * @generated from message sunrise.shareclass.v1.GenesisLastRewardHandlingTime + */ +export class GenesisLastRewardHandlingTime extends Message { + /** + * @generated from field: string validator = 1; + */ + validator = ""; + + /** + * @generated from field: int64 last_reward_handling_time = 2; + */ + lastRewardHandlingTime = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.GenesisLastRewardHandlingTime"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "last_reward_handling_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisLastRewardHandlingTime { + return new GenesisLastRewardHandlingTime().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisLastRewardHandlingTime { + return new GenesisLastRewardHandlingTime().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisLastRewardHandlingTime { + return new GenesisLastRewardHandlingTime().fromJsonString(jsonString, options); + } + + static equals(a: GenesisLastRewardHandlingTime | PlainMessage | undefined, b: GenesisLastRewardHandlingTime | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisLastRewardHandlingTime, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/v1/params_pb.ts b/src/protobufs/sunrise/shareclass/v1/params_pb.ts new file mode 100644 index 00000000..898eb29c --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/params_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/params.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.shareclass.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: google.protobuf.Duration reward_period = 1; + */ + rewardPeriod?: Duration; + + /** + * @generated from field: uint64 create_validator_gas = 2; + */ + createValidatorGas = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reward_period", kind: "message", T: Duration }, + { no: 2, name: "create_validator_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/v1/query_cosmes.ts b/src/protobufs/sunrise/shareclass/v1/query_cosmes.ts new file mode 100644 index 00000000..9a261676 --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/query_cosmes.ts @@ -0,0 +1,81 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/query.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryAddressBondedRequest, QueryAddressBondedResponse, QueryAddressUnbondingRequest, QueryAddressUnbondingResponse, QueryCalculateBondingAmountRequest, QueryCalculateBondingAmountResponse, QueryCalculateShareRequest, QueryCalculateShareResponse, QueryClaimableRewardsRequest, QueryClaimableRewardsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.shareclass.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.shareclass.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * CalculateBondingAmount + * + * @generated from rpc sunrise.shareclass.v1.Query.CalculateBondingAmount + */ +export const QueryCalculateBondingAmountService = { + typeName: TYPE_NAME, + method: "CalculateBondingAmount", + Request: QueryCalculateBondingAmountRequest, + Response: QueryCalculateBondingAmountResponse, +} as const; + +/** + * CalculateShare + * + * @generated from rpc sunrise.shareclass.v1.Query.CalculateShare + */ +export const QueryCalculateShareService = { + typeName: TYPE_NAME, + method: "CalculateShare", + Request: QueryCalculateShareRequest, + Response: QueryCalculateShareResponse, +} as const; + +/** + * AddressBonded + * + * @generated from rpc sunrise.shareclass.v1.Query.AddressBonded + */ +export const QueryAddressBondedService = { + typeName: TYPE_NAME, + method: "AddressBonded", + Request: QueryAddressBondedRequest, + Response: QueryAddressBondedResponse, +} as const; + +/** + * ClaimableRewards + * + * @generated from rpc sunrise.shareclass.v1.Query.ClaimableRewards + */ +export const QueryClaimableRewardsService = { + typeName: TYPE_NAME, + method: "ClaimableRewards", + Request: QueryClaimableRewardsRequest, + Response: QueryClaimableRewardsResponse, +} as const; + +/** + * AddressUnbonding + * + * @generated from rpc sunrise.shareclass.v1.Query.AddressUnbonding + */ +export const QueryAddressUnbondingService = { + typeName: TYPE_NAME, + method: "AddressUnbonding", + Request: QueryAddressUnbondingRequest, + Response: QueryAddressUnbondingResponse, +} as const; + diff --git a/src/protobufs/sunrise/shareclass/v1/query_pb.ts b/src/protobufs/sunrise/shareclass/v1/query_pb.ts new file mode 100644 index 00000000..98bec148 --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/query_pb.ts @@ -0,0 +1,497 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/query.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Unbonding, ValidatorBond } from "./bond_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.shareclass.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.shareclass.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.shareclass.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryCalculateAmountRequest + * + * @generated from message sunrise.shareclass.v1.QueryCalculateBondingAmountRequest + */ +export class QueryCalculateBondingAmountRequest extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: string share = 2; + */ + share = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryCalculateBondingAmountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateBondingAmountRequest { + return new QueryCalculateBondingAmountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateBondingAmountRequest { + return new QueryCalculateBondingAmountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateBondingAmountRequest { + return new QueryCalculateBondingAmountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateBondingAmountRequest | PlainMessage | undefined, b: QueryCalculateBondingAmountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateBondingAmountRequest, a, b); + } +} + +/** + * QueryCalculateBondingAmountResponse + * + * @generated from message sunrise.shareclass.v1.QueryCalculateBondingAmountResponse + */ +export class QueryCalculateBondingAmountResponse extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 1; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryCalculateBondingAmountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateBondingAmountResponse { + return new QueryCalculateBondingAmountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateBondingAmountResponse { + return new QueryCalculateBondingAmountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateBondingAmountResponse { + return new QueryCalculateBondingAmountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateBondingAmountResponse | PlainMessage | undefined, b: QueryCalculateBondingAmountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateBondingAmountResponse, a, b); + } +} + +/** + * QueryCalculateShareRequest + * + * @generated from message sunrise.shareclass.v1.QueryCalculateShareRequest + */ +export class QueryCalculateShareRequest extends Message { + /** + * @generated from field: string validator_address = 1; + */ + validatorAddress = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryCalculateShareRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateShareRequest { + return new QueryCalculateShareRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateShareRequest { + return new QueryCalculateShareRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateShareRequest { + return new QueryCalculateShareRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateShareRequest | PlainMessage | undefined, b: QueryCalculateShareRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateShareRequest, a, b); + } +} + +/** + * QueryCalculateShareResponse + * + * @generated from message sunrise.shareclass.v1.QueryCalculateShareResponse + */ +export class QueryCalculateShareResponse extends Message { + /** + * @generated from field: string share = 1; + */ + share = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryCalculateShareResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculateShareResponse { + return new QueryCalculateShareResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculateShareResponse { + return new QueryCalculateShareResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculateShareResponse { + return new QueryCalculateShareResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculateShareResponse | PlainMessage | undefined, b: QueryCalculateShareResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculateShareResponse, a, b); + } +} + +/** + * QueryAddressBondedRequest + * + * @generated from message sunrise.shareclass.v1.QueryAddressBondedRequest + */ +export class QueryAddressBondedRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryAddressBondedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressBondedRequest { + return new QueryAddressBondedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressBondedRequest { + return new QueryAddressBondedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressBondedRequest { + return new QueryAddressBondedRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressBondedRequest | PlainMessage | undefined, b: QueryAddressBondedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressBondedRequest, a, b); + } +} + +/** + * QueryAddressBondedResponse + * + * @generated from message sunrise.shareclass.v1.QueryAddressBondedResponse + */ +export class QueryAddressBondedResponse extends Message { + /** + * @generated from field: repeated sunrise.shareclass.v1.ValidatorBond bonds = 1; + */ + bonds: ValidatorBond[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryAddressBondedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bonds", kind: "message", T: ValidatorBond, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressBondedResponse { + return new QueryAddressBondedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressBondedResponse { + return new QueryAddressBondedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressBondedResponse { + return new QueryAddressBondedResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressBondedResponse | PlainMessage | undefined, b: QueryAddressBondedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressBondedResponse, a, b); + } +} + +/** + * QueryClaimableRewardsRequest + * + * @generated from message sunrise.shareclass.v1.QueryClaimableRewardsRequest + */ +export class QueryClaimableRewardsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryClaimableRewardsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClaimableRewardsRequest { + return new QueryClaimableRewardsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClaimableRewardsRequest { + return new QueryClaimableRewardsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClaimableRewardsRequest { + return new QueryClaimableRewardsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryClaimableRewardsRequest | PlainMessage | undefined, b: QueryClaimableRewardsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClaimableRewardsRequest, a, b); + } +} + +/** + * QueryClaimableRewardsResponse + * + * @generated from message sunrise.shareclass.v1.QueryClaimableRewardsResponse + */ +export class QueryClaimableRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryClaimableRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryClaimableRewardsResponse { + return new QueryClaimableRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryClaimableRewardsResponse { + return new QueryClaimableRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryClaimableRewardsResponse { + return new QueryClaimableRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryClaimableRewardsResponse | PlainMessage | undefined, b: QueryClaimableRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryClaimableRewardsResponse, a, b); + } +} + +/** + * QueryAddressUnbondingRequest + * + * @generated from message sunrise.shareclass.v1.QueryAddressUnbondingRequest + */ +export class QueryAddressUnbondingRequest extends Message { + /** + * cosmos.base.query.v1beta1.PageRequest pagination = 2; + * + * @generated from field: string address = 1; + */ + address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryAddressUnbondingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressUnbondingRequest { + return new QueryAddressUnbondingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressUnbondingRequest { + return new QueryAddressUnbondingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressUnbondingRequest { + return new QueryAddressUnbondingRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressUnbondingRequest | PlainMessage | undefined, b: QueryAddressUnbondingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressUnbondingRequest, a, b); + } +} + +/** + * QueryAddressUnbondingResponse + * + * @generated from message sunrise.shareclass.v1.QueryAddressUnbondingResponse + */ +export class QueryAddressUnbondingResponse extends Message { + /** + * cosmos.base.query.v1beta1.PageResponse pagination = 2; + * + * @generated from field: repeated sunrise.shareclass.v1.Unbonding unbondings = 1; + */ + unbondings: Unbonding[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.QueryAddressUnbondingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "unbondings", kind: "message", T: Unbonding, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAddressUnbondingResponse { + return new QueryAddressUnbondingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAddressUnbondingResponse { + return new QueryAddressUnbondingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAddressUnbondingResponse { + return new QueryAddressUnbondingResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAddressUnbondingResponse | PlainMessage | undefined, b: QueryAddressUnbondingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAddressUnbondingResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/shareclass/v1/tx_cosmes.ts b/src/protobufs/sunrise/shareclass/v1/tx_cosmes.ts new file mode 100644 index 00000000..8caf75e8 --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/tx_cosmes.ts @@ -0,0 +1,70 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/tx.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgClaimRewards, MsgClaimRewardsResponse, MsgCreateValidator, MsgCreateValidatorResponse, MsgNonVotingDelegate, MsgNonVotingDelegateResponse, MsgNonVotingUndelegate, MsgNonVotingUndelegateResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.shareclass.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.shareclass.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * NonVotingDelegate + * + * @generated from rpc sunrise.shareclass.v1.Msg.NonVotingDelegate + */ +export const MsgNonVotingDelegateService = { + typeName: TYPE_NAME, + method: "NonVotingDelegate", + Request: MsgNonVotingDelegate, + Response: MsgNonVotingDelegateResponse, +} as const; + +/** + * NonVotingUndelegate + * + * @generated from rpc sunrise.shareclass.v1.Msg.NonVotingUndelegate + */ +export const MsgNonVotingUndelegateService = { + typeName: TYPE_NAME, + method: "NonVotingUndelegate", + Request: MsgNonVotingUndelegate, + Response: MsgNonVotingUndelegateResponse, +} as const; + +/** + * ClaimRewards + * + * @generated from rpc sunrise.shareclass.v1.Msg.ClaimRewards + */ +export const MsgClaimRewardsService = { + typeName: TYPE_NAME, + method: "ClaimRewards", + Request: MsgClaimRewards, + Response: MsgClaimRewardsResponse, +} as const; + +/** + * CreateValidator + * + * @generated from rpc sunrise.shareclass.v1.Msg.CreateValidator + */ +export const MsgCreateValidatorService = { + typeName: TYPE_NAME, + method: "CreateValidator", + Request: MsgCreateValidator, + Response: MsgCreateValidatorResponse, +} as const; + diff --git a/src/protobufs/sunrise/shareclass/v1/tx_pb.ts b/src/protobufs/sunrise/shareclass/v1/tx_pb.ts new file mode 100644 index 00000000..f3253e39 --- /dev/null +++ b/src/protobufs/sunrise/shareclass/v1/tx_pb.ts @@ -0,0 +1,484 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/shareclass/v1/tx.proto (package sunrise.shareclass.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { CommissionRates, Description } from "../../../cosmos/staking/v1beta1/staking_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.shareclass.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.shareclass.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.shareclass.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgNonVotingDelegate + * + * @generated from message sunrise.shareclass.v1.MsgNonVotingDelegate + */ +export class MsgNonVotingDelegate extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgNonVotingDelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingDelegate { + return new MsgNonVotingDelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingDelegate | PlainMessage | undefined, b: MsgNonVotingDelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingDelegate, a, b); + } +} + +/** + * MsgNonVotingDelegateResponse + * + * @generated from message sunrise.shareclass.v1.MsgNonVotingDelegateResponse + */ +export class MsgNonVotingDelegateResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin share = 1; + */ + share: Coin[] = []; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 2; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgNonVotingDelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "share", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingDelegateResponse { + return new MsgNonVotingDelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingDelegateResponse | PlainMessage | undefined, b: MsgNonVotingDelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingDelegateResponse, a, b); + } +} + +/** + * MsgNonVotingUndelegate + * + * @generated from message sunrise.shareclass.v1.MsgNonVotingUndelegate + */ +export class MsgNonVotingUndelegate extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 3; + */ + amount?: Coin; + + /** + * @generated from field: string recipient = 4; + */ + recipient = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgNonVotingUndelegate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin }, + { no: 4, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingUndelegate { + return new MsgNonVotingUndelegate().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingUndelegate | PlainMessage | undefined, b: MsgNonVotingUndelegate | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingUndelegate, a, b); + } +} + +/** + * MsgNonVotingUndelegateResponse + * + * @generated from message sunrise.shareclass.v1.MsgNonVotingUndelegateResponse + */ +export class MsgNonVotingUndelegateResponse extends Message { + /** + * @generated from field: google.protobuf.Timestamp completion_time = 1; + */ + completionTime?: Timestamp; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; + */ + rewards: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgNonVotingUndelegateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "completion_time", kind: "message", T: Timestamp }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgNonVotingUndelegateResponse { + return new MsgNonVotingUndelegateResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgNonVotingUndelegateResponse | PlainMessage | undefined, b: MsgNonVotingUndelegateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgNonVotingUndelegateResponse, a, b); + } +} + +/** + * MsgClaimRewards + * + * @generated from message sunrise.shareclass.v1.MsgClaimRewards + */ +export class MsgClaimRewards extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string validator_address = 2; + */ + validatorAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgClaimRewards"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewards { + return new MsgClaimRewards().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewards | PlainMessage | undefined, b: MsgClaimRewards | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewards, a, b); + } +} + +/** + * MsgClaimRewardsResponse + * + * @generated from message sunrise.shareclass.v1.MsgClaimRewardsResponse + */ +export class MsgClaimRewardsResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgClaimRewardsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgClaimRewardsResponse { + return new MsgClaimRewardsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgClaimRewardsResponse | PlainMessage | undefined, b: MsgClaimRewardsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgClaimRewardsResponse, a, b); + } +} + +/** + * MsgCreateValidator + * + * @generated from message sunrise.shareclass.v1.MsgCreateValidator + */ +export class MsgCreateValidator extends Message { + /** + * @generated from field: cosmos.staking.v1beta1.Description description = 1; + */ + description?: Description; + + /** + * @generated from field: cosmos.staking.v1beta1.CommissionRates commission = 2; + */ + commission?: CommissionRates; + + /** + * @generated from field: string min_self_delegation = 3; + */ + minSelfDelegation = ""; + + /** + * @generated from field: string validator_address = 4; + */ + validatorAddress = ""; + + /** + * @generated from field: google.protobuf.Any pubkey = 5; + */ + pubkey?: Any; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 6; + */ + amount?: Coin; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgCreateValidator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "description", kind: "message", T: Description }, + { no: 2, name: "commission", kind: "message", T: CommissionRates }, + { no: 3, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "pubkey", kind: "message", T: Any }, + { no: 6, name: "amount", kind: "message", T: Coin }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateValidator { + return new MsgCreateValidator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateValidator { + return new MsgCreateValidator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateValidator { + return new MsgCreateValidator().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateValidator | PlainMessage | undefined, b: MsgCreateValidator | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateValidator, a, b); + } +} + +/** + * MsgCreateValidatorResponse + * + * @generated from message sunrise.shareclass.v1.MsgCreateValidatorResponse + */ +export class MsgCreateValidatorResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.shareclass.v1.MsgCreateValidatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateValidatorResponse { + return new MsgCreateValidatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateValidatorResponse { + return new MsgCreateValidatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateValidatorResponse { + return new MsgCreateValidatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateValidatorResponse | PlainMessage | undefined, b: MsgCreateValidatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateValidatorResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/stable/module/v1/module_pb.ts b/src/protobufs/sunrise/stable/module/v1/module_pb.ts new file mode 100644 index 00000000..a03e0938 --- /dev/null +++ b/src/protobufs/sunrise/stable/module/v1/module_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/stable/module/v1/module.proto (package sunrise.stable.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.stable.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. + * If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/stable/v1/genesis_pb.ts b/src/protobufs/sunrise/stable/v1/genesis_pb.ts new file mode 100644 index 00000000..60a11e5d --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/stable/v1/genesis.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the stable module's genesis state. + * + * @generated from message sunrise.stable.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.stable.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/stable/v1/params_pb.ts b/src/protobufs/sunrise/stable/v1/params_pb.ts new file mode 100644 index 00000000..43eb58c2 --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/params_pb.ts @@ -0,0 +1,53 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/stable/v1/params.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.stable.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: string stable_denom = 1; + */ + stableDenom = ""; + + /** + * @generated from field: repeated string allowed_addresses = 2; + */ + allowedAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "stable_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/stable/v1/query_cosmes.ts b/src/protobufs/sunrise/stable/v1/query_cosmes.ts new file mode 100644 index 00000000..b0bb7493 --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/stable/v1/query.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.stable.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.stable.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/sunrise/stable/v1/query_pb.ts b/src/protobufs/sunrise/stable/v1/query_pb.ts new file mode 100644 index 00000000..6e50a7c6 --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/stable/v1/query.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.stable.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.stable.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.stable.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/stable/v1/tx_cosmes.ts b/src/protobufs/sunrise/stable/v1/tx_cosmes.ts new file mode 100644 index 00000000..d334e3bc --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/tx_cosmes.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/stable/v1/tx.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurn, MsgBurnResponse, MsgMint, MsgMintResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.stable.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.stable.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * Mint defines the Mint RPC. + * + * @generated from rpc sunrise.stable.v1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: MsgMintResponse, +} as const; + +/** + * Burn defines the Burn RPC. + * + * @generated from rpc sunrise.stable.v1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: MsgBurnResponse, +} as const; + diff --git a/src/protobufs/sunrise/stable/v1/tx_pb.ts b/src/protobufs/sunrise/stable/v1/tx_pb.ts new file mode 100644 index 00000000..7a11c8b1 --- /dev/null +++ b/src/protobufs/sunrise/stable/v1/tx_pb.ts @@ -0,0 +1,261 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/stable/v1/tx.proto (package sunrise.stable.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.stable.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.stable.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.stable.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgMint defines the MsgMint message. + * + * @generated from message sunrise.stable.v1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * MsgMintResponse defines the MsgMintResponse message. + * + * @generated from message sunrise.stable.v1.MsgMintResponse + */ +export class MsgMintResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgMintResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintResponse, a, b); + } +} + +/** + * MsgBurn defines the MsgBurn message. + * + * @generated from message sunrise.stable.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * MsgBurnResponse defines the MsgBurnResponse message. + * + * @generated from message sunrise.stable.v1.MsgBurnResponse + */ +export class MsgBurnResponse extends Message { + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.stable.v1.MsgBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/module/v1/module_pb.ts b/src/protobufs/sunrise/swap/module/v1/module_pb.ts new file mode 100644 index 00000000..6fcd7889 --- /dev/null +++ b/src/protobufs/sunrise/swap/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/module/v1/module.proto (package sunrise.swap.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.swap.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/extension_pb.ts b/src/protobufs/sunrise/swap/v1/extension_pb.ts new file mode 100644 index 00000000..749f3127 --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/extension_pb.ts @@ -0,0 +1,54 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/extension.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Route } from "./route_pb.js"; + +/** + * SwapBeforeFeeExtension + * + * @generated from message sunrise.swap.v1.SwapBeforeFeeExtension + */ +export class SwapBeforeFeeExtension extends Message { + /** + * @generated from field: sunrise.swap.v1.Route route = 1; + */ + route?: Route; + + /** + * @generated from field: string max_amount_in = 2; + */ + maxAmountIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.SwapBeforeFeeExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "route", kind: "message", T: Route }, + { no: 2, name: "max_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapBeforeFeeExtension { + return new SwapBeforeFeeExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapBeforeFeeExtension { + return new SwapBeforeFeeExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapBeforeFeeExtension { + return new SwapBeforeFeeExtension().fromJsonString(jsonString, options); + } + + static equals(a: SwapBeforeFeeExtension | PlainMessage | undefined, b: SwapBeforeFeeExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapBeforeFeeExtension, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/genesis_pb.ts b/src/protobufs/sunrise/swap/v1/genesis_pb.ts new file mode 100644 index 00000000..64166b4d --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/genesis_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/genesis.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { IncomingInFlightPacket, OutgoingInFlightPacket } from "./in_flight_packet_pb.js"; + +/** + * GenesisState defines the swap module's genesis state. + * + * @generated from message sunrise.swap.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.swap.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.swap.v1.IncomingInFlightPacket incoming_in_flight_packets = 2; + */ + incomingInFlightPackets: IncomingInFlightPacket[] = []; + + /** + * @generated from field: repeated sunrise.swap.v1.OutgoingInFlightPacket outgoing_in_flight_packets = 3; + */ + outgoingInFlightPackets: OutgoingInFlightPacket[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "incoming_in_flight_packets", kind: "message", T: IncomingInFlightPacket, repeated: true }, + { no: 3, name: "outgoing_in_flight_packets", kind: "message", T: OutgoingInFlightPacket, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/in_flight_packet_pb.ts b/src/protobufs/sunrise/swap/v1/in_flight_packet_pb.ts new file mode 100644 index 00000000..b6d76fb5 --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/in_flight_packet_pb.ts @@ -0,0 +1,240 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/in_flight_packet.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { RouteResult } from "./route_pb.js"; + +/** + * PacketIndex + * + * @generated from message sunrise.swap.v1.PacketIndex + */ +export class PacketIndex extends Message { + /** + * @generated from field: string port_id = 1; + */ + portId = ""; + + /** + * @generated from field: string channel_id = 2; + */ + channelId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.PacketIndex"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketIndex { + return new PacketIndex().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketIndex { + return new PacketIndex().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketIndex { + return new PacketIndex().fromJsonString(jsonString, options); + } + + static equals(a: PacketIndex | PlainMessage | undefined, b: PacketIndex | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketIndex, a, b); + } +} + +/** + * IncomingInFlightPacket + * + * @generated from message sunrise.swap.v1.IncomingInFlightPacket + */ +export class IncomingInFlightPacket extends Message { + /** + * @generated from field: sunrise.swap.v1.PacketIndex index = 1; + */ + index?: PacketIndex; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + /** + * @generated from field: string src_port_id = 3; + */ + srcPortId = ""; + + /** + * @generated from field: string src_channel_id = 4; + */ + srcChannelId = ""; + + /** + * @generated from field: string timeout_height = 5; + */ + timeoutHeight = ""; + + /** + * @generated from field: uint64 timeout_timestamp = 6; + */ + timeoutTimestamp = protoInt64.zero; + + /** + * @generated from field: bytes ack = 7; + */ + ack = new Uint8Array(0); + + /** + * @generated from field: sunrise.swap.v1.RouteResult result = 8; + */ + result?: RouteResult; + + /** + * @generated from field: string interface_fee = 9; + */ + interfaceFee = ""; + + /** + * change + * + * @generated from oneof sunrise.swap.v1.IncomingInFlightPacket.change + */ + change: { + /** + * @generated from field: sunrise.swap.v1.PacketIndex outgoing_index_change = 10; + */ + value: PacketIndex; + case: "outgoingIndexChange"; + } | { + /** + * @generated from field: bytes ack_change = 11; + */ + value: Uint8Array; + case: "ackChange"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * forward + * + * @generated from oneof sunrise.swap.v1.IncomingInFlightPacket.forward + */ + forward: { + /** + * @generated from field: sunrise.swap.v1.PacketIndex outgoing_index_forward = 12; + */ + value: PacketIndex; + case: "outgoingIndexForward"; + } | { + /** + * @generated from field: bytes ack_forward = 13; + */ + value: Uint8Array; + case: "ackForward"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.IncomingInFlightPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "message", T: PacketIndex }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "src_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "src_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "timeout_height", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "ack", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "result", kind: "message", T: RouteResult }, + { no: 9, name: "interface_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "outgoing_index_change", kind: "message", T: PacketIndex, oneof: "change" }, + { no: 11, name: "ack_change", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "change" }, + { no: 12, name: "outgoing_index_forward", kind: "message", T: PacketIndex, oneof: "forward" }, + { no: 13, name: "ack_forward", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "forward" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IncomingInFlightPacket { + return new IncomingInFlightPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IncomingInFlightPacket { + return new IncomingInFlightPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IncomingInFlightPacket { + return new IncomingInFlightPacket().fromJsonString(jsonString, options); + } + + static equals(a: IncomingInFlightPacket | PlainMessage | undefined, b: IncomingInFlightPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(IncomingInFlightPacket, a, b); + } +} + +/** + * OutgoingInFlightPacket + * + * @generated from message sunrise.swap.v1.OutgoingInFlightPacket + */ +export class OutgoingInFlightPacket extends Message { + /** + * @generated from field: sunrise.swap.v1.PacketIndex index = 1; + */ + index?: PacketIndex; + + /** + * @generated from field: sunrise.swap.v1.PacketIndex ack_waiting_index = 2; + */ + ackWaitingIndex?: PacketIndex; + + /** + * @generated from field: int32 retries_remaining = 3; + */ + retriesRemaining = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.OutgoingInFlightPacket"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "message", T: PacketIndex }, + { no: 2, name: "ack_waiting_index", kind: "message", T: PacketIndex }, + { no: 3, name: "retries_remaining", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OutgoingInFlightPacket { + return new OutgoingInFlightPacket().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OutgoingInFlightPacket { + return new OutgoingInFlightPacket().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OutgoingInFlightPacket { + return new OutgoingInFlightPacket().fromJsonString(jsonString, options); + } + + static equals(a: OutgoingInFlightPacket | PlainMessage | undefined, b: OutgoingInFlightPacket | PlainMessage | undefined): boolean { + return proto3.util.equals(OutgoingInFlightPacket, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/metadata_pb.ts b/src/protobufs/sunrise/swap/v1/metadata_pb.ts new file mode 100644 index 00000000..8fa195e5 --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/metadata_pb.ts @@ -0,0 +1,273 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/metadata.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; +import { Route } from "./route_pb.js"; + +/** + * PacketMetadata + * + * @generated from message sunrise.swap.v1.PacketMetadata + */ +export class PacketMetadata extends Message { + /** + * @generated from field: sunrise.swap.v1.SwapMetadata swap = 1; + */ + swap?: SwapMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.PacketMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "swap", kind: "message", T: SwapMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PacketMetadata { + return new PacketMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PacketMetadata { + return new PacketMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PacketMetadata { + return new PacketMetadata().fromJsonString(jsonString, options); + } + + static equals(a: PacketMetadata | PlainMessage | undefined, b: PacketMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(PacketMetadata, a, b); + } +} + +/** + * ForwardMetadata + * + * @generated from message sunrise.swap.v1.ForwardMetadata + */ +export class ForwardMetadata extends Message { + /** + * @generated from field: string receiver = 1; + */ + receiver = ""; + + /** + * @generated from field: string port = 2; + */ + port = ""; + + /** + * @generated from field: string channel = 3; + */ + channel = ""; + + /** + * @generated from field: google.protobuf.Duration timeout = 4; + */ + timeout?: Duration; + + /** + * @generated from field: uint32 retries = 5; + */ + retries = 0; + + /** + * @generated from field: string next = 6; + */ + next = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.ForwardMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "timeout", kind: "message", T: Duration }, + { no: 5, name: "retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "next", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ForwardMetadata { + return new ForwardMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ForwardMetadata { + return new ForwardMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ForwardMetadata { + return new ForwardMetadata().fromJsonString(jsonString, options); + } + + static equals(a: ForwardMetadata | PlainMessage | undefined, b: ForwardMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(ForwardMetadata, a, b); + } +} + +/** + * ExactAmountIn + * + * @generated from message sunrise.swap.v1.ExactAmountIn + */ +export class ExactAmountIn extends Message { + /** + * @generated from field: string min_amount_out = 1; + */ + minAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.ExactAmountIn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "min_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExactAmountIn { + return new ExactAmountIn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExactAmountIn { + return new ExactAmountIn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExactAmountIn { + return new ExactAmountIn().fromJsonString(jsonString, options); + } + + static equals(a: ExactAmountIn | PlainMessage | undefined, b: ExactAmountIn | PlainMessage | undefined): boolean { + return proto3.util.equals(ExactAmountIn, a, b); + } +} + +/** + * ExactAmountOut + * + * @generated from message sunrise.swap.v1.ExactAmountOut + */ +export class ExactAmountOut extends Message { + /** + * @generated from field: string amount_out = 1; + */ + amountOut = ""; + + /** + * @generated from field: sunrise.swap.v1.ForwardMetadata change = 2; + */ + change?: ForwardMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.ExactAmountOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "change", kind: "message", T: ForwardMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExactAmountOut { + return new ExactAmountOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExactAmountOut { + return new ExactAmountOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExactAmountOut { + return new ExactAmountOut().fromJsonString(jsonString, options); + } + + static equals(a: ExactAmountOut | PlainMessage | undefined, b: ExactAmountOut | PlainMessage | undefined): boolean { + return proto3.util.equals(ExactAmountOut, a, b); + } +} + +/** + * SwapMetadata + * + * @generated from message sunrise.swap.v1.SwapMetadata + */ +export class SwapMetadata extends Message { + /** + * @generated from field: string interface_provider = 1; + */ + interfaceProvider = ""; + + /** + * @generated from field: sunrise.swap.v1.Route route = 2; + */ + route?: Route; + + /** + * amount_strategy + * + * @generated from oneof sunrise.swap.v1.SwapMetadata.amount_strategy + */ + amountStrategy: { + /** + * @generated from field: sunrise.swap.v1.ExactAmountIn exact_amount_in = 3; + */ + value: ExactAmountIn; + case: "exactAmountIn"; + } | { + /** + * @generated from field: sunrise.swap.v1.ExactAmountOut exact_amount_out = 4; + */ + value: ExactAmountOut; + case: "exactAmountOut"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * @generated from field: sunrise.swap.v1.ForwardMetadata forward = 5; + */ + forward?: ForwardMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.SwapMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interface_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "route", kind: "message", T: Route }, + { no: 3, name: "exact_amount_in", kind: "message", T: ExactAmountIn, oneof: "amount_strategy" }, + { no: 4, name: "exact_amount_out", kind: "message", T: ExactAmountOut, oneof: "amount_strategy" }, + { no: 5, name: "forward", kind: "message", T: ForwardMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SwapMetadata { + return new SwapMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SwapMetadata { + return new SwapMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SwapMetadata { + return new SwapMetadata().fromJsonString(jsonString, options); + } + + static equals(a: SwapMetadata | PlainMessage | undefined, b: SwapMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(SwapMetadata, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/params_pb.ts b/src/protobufs/sunrise/swap/v1/params_pb.ts new file mode 100644 index 00000000..b085a65a --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/params_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/params.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.swap.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: string interface_fee_rate = 1; + */ + interfaceFeeRate = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interface_fee_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/query_cosmes.ts b/src/protobufs/sunrise/swap/v1/query_cosmes.ts new file mode 100644 index 00000000..f6f0e646 --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/query_cosmes.ts @@ -0,0 +1,93 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/swap/v1/query.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryCalculationSwapExactAmountInRequest, QueryCalculationSwapExactAmountInResponse, QueryCalculationSwapExactAmountOutRequest, QueryCalculationSwapExactAmountOutResponse, QueryIncomingInFlightPacketRequest, QueryIncomingInFlightPacketResponse, QueryIncomingInFlightPacketsRequest, QueryIncomingInFlightPacketsResponse, QueryOutgoingInFlightPacketRequest, QueryOutgoingInFlightPacketResponse, QueryOutgoingInFlightPacketsRequest, QueryOutgoingInFlightPacketsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.swap.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.swap.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * IncomingInFlightPacket + * + * @generated from rpc sunrise.swap.v1.Query.IncomingInFlightPacket + */ +export const QueryIncomingInFlightPacketService = { + typeName: TYPE_NAME, + method: "IncomingInFlightPacket", + Request: QueryIncomingInFlightPacketRequest, + Response: QueryIncomingInFlightPacketResponse, +} as const; + +/** + * IncomingInFlightPackets + * + * @generated from rpc sunrise.swap.v1.Query.IncomingInFlightPackets + */ +export const QueryIncomingInFlightPacketsService = { + typeName: TYPE_NAME, + method: "IncomingInFlightPackets", + Request: QueryIncomingInFlightPacketsRequest, + Response: QueryIncomingInFlightPacketsResponse, +} as const; + +/** + * OutgoingInFlightPacket + * + * @generated from rpc sunrise.swap.v1.Query.OutgoingInFlightPacket + */ +export const QueryOutgoingInFlightPacketService = { + typeName: TYPE_NAME, + method: "OutgoingInFlightPacket", + Request: QueryOutgoingInFlightPacketRequest, + Response: QueryOutgoingInFlightPacketResponse, +} as const; + +/** + * OutgoingInFlightPackets + * + * @generated from rpc sunrise.swap.v1.Query.OutgoingInFlightPackets + */ +export const QueryOutgoingInFlightPacketsService = { + typeName: TYPE_NAME, + method: "OutgoingInFlightPackets", + Request: QueryOutgoingInFlightPacketsRequest, + Response: QueryOutgoingInFlightPacketsResponse, +} as const; + +/** + * CalculationSwapExactAmountIn + * + * @generated from rpc sunrise.swap.v1.Query.CalculationSwapExactAmountIn + */ +export const QueryCalculationSwapExactAmountInService = { + typeName: TYPE_NAME, + method: "CalculationSwapExactAmountIn", + Request: QueryCalculationSwapExactAmountInRequest, + Response: QueryCalculationSwapExactAmountInResponse, +} as const; + +/** + * CalculationSwapExactAmountOut + * + * @generated from rpc sunrise.swap.v1.Query.CalculationSwapExactAmountOut + */ +export const QueryCalculationSwapExactAmountOutService = { + typeName: TYPE_NAME, + method: "CalculationSwapExactAmountOut", + Request: QueryCalculationSwapExactAmountOutRequest, + Response: QueryCalculationSwapExactAmountOutResponse, +} as const; + diff --git a/src/protobufs/sunrise/swap/v1/query_pb.ts b/src/protobufs/sunrise/swap/v1/query_pb.ts new file mode 100644 index 00000000..2940a40b --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/query_pb.ts @@ -0,0 +1,638 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/query.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { IncomingInFlightPacket, OutgoingInFlightPacket } from "./in_flight_packet_pb.js"; +import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; +import { Route, RouteResult } from "./route_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.swap.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.swap.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.swap.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryIncomingInFlightPacketRequest + * + * @generated from message sunrise.swap.v1.QueryIncomingInFlightPacketRequest + */ +export class QueryIncomingInFlightPacketRequest extends Message { + /** + * @generated from field: string src_port_id = 1; + */ + srcPortId = ""; + + /** + * @generated from field: string src_channel_id = 2; + */ + srcChannelId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryIncomingInFlightPacketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "src_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "src_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncomingInFlightPacketRequest { + return new QueryIncomingInFlightPacketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncomingInFlightPacketRequest { + return new QueryIncomingInFlightPacketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncomingInFlightPacketRequest { + return new QueryIncomingInFlightPacketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncomingInFlightPacketRequest | PlainMessage | undefined, b: QueryIncomingInFlightPacketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncomingInFlightPacketRequest, a, b); + } +} + +/** + * QueryIncomingInFlightPacketResponse + * + * @generated from message sunrise.swap.v1.QueryIncomingInFlightPacketResponse + */ +export class QueryIncomingInFlightPacketResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.IncomingInFlightPacket packet = 1; + */ + packet?: IncomingInFlightPacket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryIncomingInFlightPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: IncomingInFlightPacket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncomingInFlightPacketResponse { + return new QueryIncomingInFlightPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncomingInFlightPacketResponse { + return new QueryIncomingInFlightPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncomingInFlightPacketResponse { + return new QueryIncomingInFlightPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncomingInFlightPacketResponse | PlainMessage | undefined, b: QueryIncomingInFlightPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncomingInFlightPacketResponse, a, b); + } +} + +/** + * QueryIncomingInFlightPacketsRequest + * + * @generated from message sunrise.swap.v1.QueryIncomingInFlightPacketsRequest + */ +export class QueryIncomingInFlightPacketsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryIncomingInFlightPacketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncomingInFlightPacketsRequest { + return new QueryIncomingInFlightPacketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncomingInFlightPacketsRequest { + return new QueryIncomingInFlightPacketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncomingInFlightPacketsRequest { + return new QueryIncomingInFlightPacketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncomingInFlightPacketsRequest | PlainMessage | undefined, b: QueryIncomingInFlightPacketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncomingInFlightPacketsRequest, a, b); + } +} + +/** + * QueryIncomingInFlightPacketsResponse + * + * @generated from message sunrise.swap.v1.QueryIncomingInFlightPacketsResponse + */ +export class QueryIncomingInFlightPacketsResponse extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.IncomingInFlightPacket packets = 1; + */ + packets: IncomingInFlightPacket[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryIncomingInFlightPacketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packets", kind: "message", T: IncomingInFlightPacket, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncomingInFlightPacketsResponse { + return new QueryIncomingInFlightPacketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncomingInFlightPacketsResponse { + return new QueryIncomingInFlightPacketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryIncomingInFlightPacketsResponse { + return new QueryIncomingInFlightPacketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryIncomingInFlightPacketsResponse | PlainMessage | undefined, b: QueryIncomingInFlightPacketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryIncomingInFlightPacketsResponse, a, b); + } +} + +/** + * QueryOutgoingInFlightPacketRequest + * + * @generated from message sunrise.swap.v1.QueryOutgoingInFlightPacketRequest + */ +export class QueryOutgoingInFlightPacketRequest extends Message { + /** + * @generated from field: string src_port_id = 1; + */ + srcPortId = ""; + + /** + * @generated from field: string src_channel_id = 2; + */ + srcChannelId = ""; + + /** + * @generated from field: uint64 sequence = 3; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryOutgoingInFlightPacketRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "src_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "src_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutgoingInFlightPacketRequest { + return new QueryOutgoingInFlightPacketRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutgoingInFlightPacketRequest { + return new QueryOutgoingInFlightPacketRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutgoingInFlightPacketRequest { + return new QueryOutgoingInFlightPacketRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutgoingInFlightPacketRequest | PlainMessage | undefined, b: QueryOutgoingInFlightPacketRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutgoingInFlightPacketRequest, a, b); + } +} + +/** + * QueryOutgoingInFlightPacketResponse + * + * @generated from message sunrise.swap.v1.QueryOutgoingInFlightPacketResponse + */ +export class QueryOutgoingInFlightPacketResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.OutgoingInFlightPacket packet = 1; + */ + packet?: OutgoingInFlightPacket; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryOutgoingInFlightPacketResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packet", kind: "message", T: OutgoingInFlightPacket }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutgoingInFlightPacketResponse { + return new QueryOutgoingInFlightPacketResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutgoingInFlightPacketResponse { + return new QueryOutgoingInFlightPacketResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutgoingInFlightPacketResponse { + return new QueryOutgoingInFlightPacketResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutgoingInFlightPacketResponse | PlainMessage | undefined, b: QueryOutgoingInFlightPacketResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutgoingInFlightPacketResponse, a, b); + } +} + +/** + * QueryOutgoingInFlightPacketsRequest + * + * @generated from message sunrise.swap.v1.QueryOutgoingInFlightPacketsRequest + */ +export class QueryOutgoingInFlightPacketsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryOutgoingInFlightPacketsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutgoingInFlightPacketsRequest { + return new QueryOutgoingInFlightPacketsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutgoingInFlightPacketsRequest { + return new QueryOutgoingInFlightPacketsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutgoingInFlightPacketsRequest { + return new QueryOutgoingInFlightPacketsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutgoingInFlightPacketsRequest | PlainMessage | undefined, b: QueryOutgoingInFlightPacketsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutgoingInFlightPacketsRequest, a, b); + } +} + +/** + * QueryOutgoingInFlightPacketsResponse + * + * @generated from message sunrise.swap.v1.QueryOutgoingInFlightPacketsResponse + */ +export class QueryOutgoingInFlightPacketsResponse extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.OutgoingInFlightPacket packets = 1; + */ + packets: OutgoingInFlightPacket[] = []; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryOutgoingInFlightPacketsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "packets", kind: "message", T: OutgoingInFlightPacket, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryOutgoingInFlightPacketsResponse { + return new QueryOutgoingInFlightPacketsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryOutgoingInFlightPacketsResponse { + return new QueryOutgoingInFlightPacketsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryOutgoingInFlightPacketsResponse { + return new QueryOutgoingInFlightPacketsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryOutgoingInFlightPacketsResponse | PlainMessage | undefined, b: QueryOutgoingInFlightPacketsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryOutgoingInFlightPacketsResponse, a, b); + } +} + +/** + * QueryCalculationSwapExactAmountInRequest + * + * @generated from message sunrise.swap.v1.QueryCalculationSwapExactAmountInRequest + */ +export class QueryCalculationSwapExactAmountInRequest extends Message { + /** + * @generated from field: bool has_interface_fee = 1; + */ + hasInterfaceFee = false; + + /** + * @generated from field: sunrise.swap.v1.Route route = 2; + */ + route?: Route; + + /** + * @generated from field: string amount_in = 3; + */ + amountIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryCalculationSwapExactAmountInRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has_interface_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "route", kind: "message", T: Route }, + { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationSwapExactAmountInRequest { + return new QueryCalculationSwapExactAmountInRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationSwapExactAmountInRequest { + return new QueryCalculationSwapExactAmountInRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationSwapExactAmountInRequest { + return new QueryCalculationSwapExactAmountInRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationSwapExactAmountInRequest | PlainMessage | undefined, b: QueryCalculationSwapExactAmountInRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationSwapExactAmountInRequest, a, b); + } +} + +/** + * QueryCalculationSwapExactAmountInResponse + * + * @generated from message sunrise.swap.v1.QueryCalculationSwapExactAmountInResponse + */ +export class QueryCalculationSwapExactAmountInResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.RouteResult result = 1; + */ + result?: RouteResult; + + /** + * @generated from field: string interface_provider_fee = 2; + */ + interfaceProviderFee = ""; + + /** + * @generated from field: string amount_out = 3; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryCalculationSwapExactAmountInResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: RouteResult }, + { no: 2, name: "interface_provider_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationSwapExactAmountInResponse { + return new QueryCalculationSwapExactAmountInResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationSwapExactAmountInResponse { + return new QueryCalculationSwapExactAmountInResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationSwapExactAmountInResponse { + return new QueryCalculationSwapExactAmountInResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationSwapExactAmountInResponse | PlainMessage | undefined, b: QueryCalculationSwapExactAmountInResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationSwapExactAmountInResponse, a, b); + } +} + +/** + * QueryCalculationSwapExactAmountOutRequest + * + * @generated from message sunrise.swap.v1.QueryCalculationSwapExactAmountOutRequest + */ +export class QueryCalculationSwapExactAmountOutRequest extends Message { + /** + * @generated from field: bool has_interface_fee = 1; + */ + hasInterfaceFee = false; + + /** + * @generated from field: sunrise.swap.v1.Route route = 2; + */ + route?: Route; + + /** + * @generated from field: string amount_out = 3; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryCalculationSwapExactAmountOutRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has_interface_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "route", kind: "message", T: Route }, + { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationSwapExactAmountOutRequest { + return new QueryCalculationSwapExactAmountOutRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationSwapExactAmountOutRequest { + return new QueryCalculationSwapExactAmountOutRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationSwapExactAmountOutRequest { + return new QueryCalculationSwapExactAmountOutRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationSwapExactAmountOutRequest | PlainMessage | undefined, b: QueryCalculationSwapExactAmountOutRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationSwapExactAmountOutRequest, a, b); + } +} + +/** + * QueryCalculationSwapExactAmountOutResponse + * + * @generated from message sunrise.swap.v1.QueryCalculationSwapExactAmountOutResponse + */ +export class QueryCalculationSwapExactAmountOutResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.RouteResult result = 1; + */ + result?: RouteResult; + + /** + * @generated from field: string interface_provider_fee = 2; + */ + interfaceProviderFee = ""; + + /** + * @generated from field: string amount_in = 3; + */ + amountIn = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.QueryCalculationSwapExactAmountOutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: RouteResult }, + { no: 2, name: "interface_provider_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalculationSwapExactAmountOutResponse { + return new QueryCalculationSwapExactAmountOutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalculationSwapExactAmountOutResponse { + return new QueryCalculationSwapExactAmountOutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryCalculationSwapExactAmountOutResponse { + return new QueryCalculationSwapExactAmountOutResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryCalculationSwapExactAmountOutResponse | PlainMessage | undefined, b: QueryCalculationSwapExactAmountOutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryCalculationSwapExactAmountOutResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/route_pb.ts b/src/protobufs/sunrise/swap/v1/route_pb.ts new file mode 100644 index 00000000..0b21201b --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/route_pb.ts @@ -0,0 +1,395 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/route.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * RoutePool + * + * @generated from message sunrise.swap.v1.RoutePool + */ +export class RoutePool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RoutePool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RoutePool { + return new RoutePool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RoutePool { + return new RoutePool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RoutePool { + return new RoutePool().fromJsonString(jsonString, options); + } + + static equals(a: RoutePool | PlainMessage | undefined, b: RoutePool | PlainMessage | undefined): boolean { + return proto3.util.equals(RoutePool, a, b); + } +} + +/** + * RouteSeries + * + * @generated from message sunrise.swap.v1.RouteSeries + */ +export class RouteSeries extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.Route routes = 1; + */ + routes: Route[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteSeries"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "routes", kind: "message", T: Route, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteSeries { + return new RouteSeries().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteSeries { + return new RouteSeries().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteSeries { + return new RouteSeries().fromJsonString(jsonString, options); + } + + static equals(a: RouteSeries | PlainMessage | undefined, b: RouteSeries | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteSeries, a, b); + } +} + +/** + * RouteParallel + * + * @generated from message sunrise.swap.v1.RouteParallel + */ +export class RouteParallel extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.Route routes = 1; + */ + routes: Route[] = []; + + /** + * @generated from field: repeated string weights = 2; + */ + weights: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteParallel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "routes", kind: "message", T: Route, repeated: true }, + { no: 2, name: "weights", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteParallel { + return new RouteParallel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteParallel { + return new RouteParallel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteParallel { + return new RouteParallel().fromJsonString(jsonString, options); + } + + static equals(a: RouteParallel | PlainMessage | undefined, b: RouteParallel | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteParallel, a, b); + } +} + +/** + * Route + * + * @generated from message sunrise.swap.v1.Route + */ +export class Route extends Message { + /** + * @generated from field: string denom_in = 1; + */ + denomIn = ""; + + /** + * @generated from field: string denom_out = 2; + */ + denomOut = ""; + + /** + * strategy + * + * @generated from oneof sunrise.swap.v1.Route.strategy + */ + strategy: { + /** + * @generated from field: sunrise.swap.v1.RoutePool pool = 3; + */ + value: RoutePool; + case: "pool"; + } | { + /** + * @generated from field: sunrise.swap.v1.RouteSeries series = 4; + */ + value: RouteSeries; + case: "series"; + } | { + /** + * @generated from field: sunrise.swap.v1.RouteParallel parallel = 5; + */ + value: RouteParallel; + case: "parallel"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.Route"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "pool", kind: "message", T: RoutePool, oneof: "strategy" }, + { no: 4, name: "series", kind: "message", T: RouteSeries, oneof: "strategy" }, + { no: 5, name: "parallel", kind: "message", T: RouteParallel, oneof: "strategy" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Route { + return new Route().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Route { + return new Route().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Route { + return new Route().fromJsonString(jsonString, options); + } + + static equals(a: Route | PlainMessage | undefined, b: Route | PlainMessage | undefined): boolean { + return proto3.util.equals(Route, a, b); + } +} + +/** + * RouteResultPool + * + * @generated from message sunrise.swap.v1.RouteResultPool + */ +export class RouteResultPool extends Message { + /** + * @generated from field: uint64 pool_id = 1; + */ + poolId = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteResultPool"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteResultPool { + return new RouteResultPool().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteResultPool { + return new RouteResultPool().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteResultPool { + return new RouteResultPool().fromJsonString(jsonString, options); + } + + static equals(a: RouteResultPool | PlainMessage | undefined, b: RouteResultPool | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteResultPool, a, b); + } +} + +/** + * RouteResultSeries + * + * @generated from message sunrise.swap.v1.RouteResultSeries + */ +export class RouteResultSeries extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.RouteResult route_results = 1; + */ + routeResults: RouteResult[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteResultSeries"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "route_results", kind: "message", T: RouteResult, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteResultSeries { + return new RouteResultSeries().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteResultSeries { + return new RouteResultSeries().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteResultSeries { + return new RouteResultSeries().fromJsonString(jsonString, options); + } + + static equals(a: RouteResultSeries | PlainMessage | undefined, b: RouteResultSeries | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteResultSeries, a, b); + } +} + +/** + * RouteResultParallel + * + * @generated from message sunrise.swap.v1.RouteResultParallel + */ +export class RouteResultParallel extends Message { + /** + * @generated from field: repeated sunrise.swap.v1.RouteResult route_results = 1; + */ + routeResults: RouteResult[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteResultParallel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "route_results", kind: "message", T: RouteResult, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteResultParallel { + return new RouteResultParallel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteResultParallel { + return new RouteResultParallel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteResultParallel { + return new RouteResultParallel().fromJsonString(jsonString, options); + } + + static equals(a: RouteResultParallel | PlainMessage | undefined, b: RouteResultParallel | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteResultParallel, a, b); + } +} + +/** + * RouteResult + * + * @generated from message sunrise.swap.v1.RouteResult + */ +export class RouteResult extends Message { + /** + * @generated from field: cosmos.base.v1beta1.Coin token_in = 1; + */ + tokenIn?: Coin; + + /** + * @generated from field: cosmos.base.v1beta1.Coin token_out = 2; + */ + tokenOut?: Coin; + + /** + * strategy + * + * @generated from oneof sunrise.swap.v1.RouteResult.strategy + */ + strategy: { + /** + * @generated from field: sunrise.swap.v1.RouteResultPool pool = 3; + */ + value: RouteResultPool; + case: "pool"; + } | { + /** + * @generated from field: sunrise.swap.v1.RouteResultSeries series = 4; + */ + value: RouteResultSeries; + case: "series"; + } | { + /** + * @generated from field: sunrise.swap.v1.RouteResultParallel parallel = 5; + */ + value: RouteResultParallel; + case: "parallel"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.RouteResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token_in", kind: "message", T: Coin }, + { no: 2, name: "token_out", kind: "message", T: Coin }, + { no: 3, name: "pool", kind: "message", T: RouteResultPool, oneof: "strategy" }, + { no: 4, name: "series", kind: "message", T: RouteResultSeries, oneof: "strategy" }, + { no: 5, name: "parallel", kind: "message", T: RouteResultParallel, oneof: "strategy" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RouteResult { + return new RouteResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RouteResult { + return new RouteResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RouteResult { + return new RouteResult().fromJsonString(jsonString, options); + } + + static equals(a: RouteResult | PlainMessage | undefined, b: RouteResult | PlainMessage | undefined): boolean { + return proto3.util.equals(RouteResult, a, b); + } +} + diff --git a/src/protobufs/sunrise/swap/v1/tx_cosmes.ts b/src/protobufs/sunrise/swap/v1/tx_cosmes.ts new file mode 100644 index 00000000..3dd1ef9f --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/tx_cosmes.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/swap/v1/tx.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.swap.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.swap.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * SwapExactAmountIn + * + * @generated from rpc sunrise.swap.v1.Msg.SwapExactAmountIn + */ +export const MsgSwapExactAmountInService = { + typeName: TYPE_NAME, + method: "SwapExactAmountIn", + Request: MsgSwapExactAmountIn, + Response: MsgSwapExactAmountInResponse, +} as const; + +/** + * SwapExactAmountOut + * + * @generated from rpc sunrise.swap.v1.Msg.SwapExactAmountOut + */ +export const MsgSwapExactAmountOutService = { + typeName: TYPE_NAME, + method: "SwapExactAmountOut", + Request: MsgSwapExactAmountOut, + Response: MsgSwapExactAmountOutResponse, +} as const; + diff --git a/src/protobufs/sunrise/swap/v1/tx_pb.ts b/src/protobufs/sunrise/swap/v1/tx_pb.ts new file mode 100644 index 00000000..92853fac --- /dev/null +++ b/src/protobufs/sunrise/swap/v1/tx_pb.ts @@ -0,0 +1,321 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/swap/v1/tx.proto (package sunrise.swap.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Route, RouteResult } from "./route_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.swap.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.swap.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.swap.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgSwapExactAmountIn + * + * @generated from message sunrise.swap.v1.MsgSwapExactAmountIn + */ +export class MsgSwapExactAmountIn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string interface_provider = 2; + */ + interfaceProvider = ""; + + /** + * @generated from field: sunrise.swap.v1.Route route = 3; + */ + route?: Route; + + /** + * @generated from field: string amount_in = 4; + */ + amountIn = ""; + + /** + * @generated from field: string min_amount_out = 5; + */ + minAmountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgSwapExactAmountIn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interface_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "route", kind: "message", T: Route }, + { no: 4, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "min_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountIn { + return new MsgSwapExactAmountIn().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountIn | PlainMessage | undefined, b: MsgSwapExactAmountIn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountIn, a, b); + } +} + +/** + * MsgSwapExactAmountInResponse + * + * @generated from message sunrise.swap.v1.MsgSwapExactAmountInResponse + */ +export class MsgSwapExactAmountInResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.RouteResult result = 1; + */ + result?: RouteResult; + + /** + * @generated from field: string interface_provider_fee = 2; + */ + interfaceProviderFee = ""; + + /** + * @generated from field: string amount_out = 3; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgSwapExactAmountInResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: RouteResult }, + { no: 2, name: "interface_provider_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountInResponse { + return new MsgSwapExactAmountInResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountInResponse | PlainMessage | undefined, b: MsgSwapExactAmountInResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountInResponse, a, b); + } +} + +/** + * MsgSwapExactAmountOut + * + * @generated from message sunrise.swap.v1.MsgSwapExactAmountOut + */ +export class MsgSwapExactAmountOut extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string interface_provider = 2; + */ + interfaceProvider = ""; + + /** + * @generated from field: sunrise.swap.v1.Route route = 3; + */ + route?: Route; + + /** + * @generated from field: string max_amount_in = 4; + */ + maxAmountIn = ""; + + /** + * @generated from field: string amount_out = 5; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgSwapExactAmountOut"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "interface_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "route", kind: "message", T: Route }, + { no: 4, name: "max_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOut { + return new MsgSwapExactAmountOut().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountOut | PlainMessage | undefined, b: MsgSwapExactAmountOut | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountOut, a, b); + } +} + +/** + * MsgSwapExactAmountOutResponse + * + * @generated from message sunrise.swap.v1.MsgSwapExactAmountOutResponse + */ +export class MsgSwapExactAmountOutResponse extends Message { + /** + * @generated from field: sunrise.swap.v1.RouteResult result = 1; + */ + result?: RouteResult; + + /** + * @generated from field: string interface_provider_fee = 2; + */ + interfaceProviderFee = ""; + + /** + * @generated from field: string amount_out = 3; + */ + amountOut = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.swap.v1.MsgSwapExactAmountOutResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "message", T: RouteResult }, + { no: 2, name: "interface_provider_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOutResponse { + return new MsgSwapExactAmountOutResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSwapExactAmountOutResponse | PlainMessage | undefined, b: MsgSwapExactAmountOutResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSwapExactAmountOutResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/module/v1/module_pb.ts b/src/protobufs/sunrise/tokenconverter/module/v1/module_pb.ts new file mode 100644 index 00000000..cc3a1e03 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/module/v1/module_pb.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/module/v1/module.proto (package sunrise.tokenconverter.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.tokenconverter.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/v1/events_pb.ts b/src/protobufs/sunrise/tokenconverter/v1/events_pb.ts new file mode 100644 index 00000000..af54ee6e --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/events_pb.ts @@ -0,0 +1,98 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/events.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * EventConvert + * + * @generated from message sunrise.tokenconverter.v1.EventConvert + */ +export class EventConvert extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.EventConvert"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvert { + return new EventConvert().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvert { + return new EventConvert().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvert { + return new EventConvert().fromJsonString(jsonString, options); + } + + static equals(a: EventConvert | PlainMessage | undefined, b: EventConvert | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvert, a, b); + } +} + +/** + * EventConvertreverse + * + * @generated from message sunrise.tokenconverter.v1.EventConvertReverse + */ +export class EventConvertReverse extends Message { + /** + * @generated from field: string address = 1; + */ + address = ""; + + /** + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.EventConvertReverse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventConvertReverse { + return new EventConvertReverse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventConvertReverse { + return new EventConvertReverse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventConvertReverse { + return new EventConvertReverse().fromJsonString(jsonString, options); + } + + static equals(a: EventConvertReverse | PlainMessage | undefined, b: EventConvertReverse | PlainMessage | undefined): boolean { + return proto3.util.equals(EventConvertReverse, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/v1/genesis_pb.ts b/src/protobufs/sunrise/tokenconverter/v1/genesis_pb.ts new file mode 100644 index 00000000..1542c700 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/genesis_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/genesis.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the tokenconverter module's genesis state. + * + * @generated from message sunrise.tokenconverter.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines all the parameters of the module. + * + * @generated from field: sunrise.tokenconverter.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/v1/params_pb.ts b/src/protobufs/sunrise/tokenconverter/v1/params_pb.ts new file mode 100644 index 00000000..cbdedc58 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/params_pb.ts @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/params.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message sunrise.tokenconverter.v1.Params + */ +export class Params extends Message { + /** + * @generated from field: string non_transferable_denom = 1; + */ + nonTransferableDenom = ""; + + /** + * @generated from field: string transferable_denom = 2; + */ + transferableDenom = ""; + + /** + * @generated from field: repeated string allowed_addresses = 3; + */ + allowedAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "non_transferable_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "transferable_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/v1/query_cosmes.ts b/src/protobufs/sunrise/tokenconverter/v1/query_cosmes.ts new file mode 100644 index 00000000..b9d16345 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/query_cosmes.ts @@ -0,0 +1,21 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/query.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.tokenconverter.v1.Query"; + +/** + * Parameters queries the parameters of the module. + * + * @generated from rpc sunrise.tokenconverter.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + diff --git a/src/protobufs/sunrise/tokenconverter/v1/query_pb.ts b/src/protobufs/sunrise/tokenconverter/v1/query_pb.ts new file mode 100644 index 00000000..e8ef5e35 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/query_pb.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/query.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message sunrise.tokenconverter.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message sunrise.tokenconverter.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: sunrise.tokenconverter.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenconverter/v1/tx_cosmes.ts b/src/protobufs/sunrise/tokenconverter/v1/tx_cosmes.ts new file mode 100644 index 00000000..052f68c3 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/tx_cosmes.ts @@ -0,0 +1,46 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/tx.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgConvert, MsgConvertResponse, MsgSend, MsgSendResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.tokenconverter.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.tokenconverter.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * Convert + * + * @generated from rpc sunrise.tokenconverter.v1.Msg.Convert + */ +export const MsgConvertService = { + typeName: TYPE_NAME, + method: "Convert", + Request: MsgConvert, + Response: MsgConvertResponse, +} as const; + +/** + * Send + * + * @generated from rpc sunrise.tokenconverter.v1.Msg.Send + */ +export const MsgSendService = { + typeName: TYPE_NAME, + method: "Send", + Request: MsgSend, + Response: MsgSendResponse, +} as const; + diff --git a/src/protobufs/sunrise/tokenconverter/v1/tx_pb.ts b/src/protobufs/sunrise/tokenconverter/v1/tx_pb.ts new file mode 100644 index 00000000..c98cd5a3 --- /dev/null +++ b/src/protobufs/sunrise/tokenconverter/v1/tx_pb.ts @@ -0,0 +1,257 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenconverter/v1/tx.proto (package sunrise.tokenconverter.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.tokenconverter.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.tokenconverter.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.tokenconverter.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgConvert + * + * @generated from message sunrise.tokenconverter.v1.MsgConvert + */ +export class MsgConvert extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * Amount of bond denom + * + * @generated from field: string amount = 2; + */ + amount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgConvert"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvert { + return new MsgConvert().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvert { + return new MsgConvert().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvert { + return new MsgConvert().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvert | PlainMessage | undefined, b: MsgConvert | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvert, a, b); + } +} + +/** + * MsgConvertResponse + * + * @generated from message sunrise.tokenconverter.v1.MsgConvertResponse + */ +export class MsgConvertResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgConvertResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgConvertResponse { + return new MsgConvertResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgConvertResponse { + return new MsgConvertResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgConvertResponse { + return new MsgConvertResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgConvertResponse | PlainMessage | undefined, b: MsgConvertResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgConvertResponse, a, b); + } +} + +/** + * MsgSend + * + * @generated from message sunrise.tokenconverter.v1.MsgSend + */ +export class MsgSend extends Message { + /** + * @generated from field: string from_address = 1; + */ + fromAddress = ""; + + /** + * @generated from field: string to_address = 2; + */ + toAddress = ""; + + /** + * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgSend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend { + return new MsgSend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend { + return new MsgSend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSend { + return new MsgSend().fromJsonString(jsonString, options); + } + + static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSend, a, b); + } +} + +/** + * MsgSendResponse + * + * @generated from message sunrise.tokenconverter.v1.MsgSendResponse + */ +export class MsgSendResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenconverter.v1.MsgSendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSendResponse { + return new MsgSendResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSendResponse | PlainMessage | undefined, b: MsgSendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSendResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/module/v1/module_pb.ts b/src/protobufs/sunrise/tokenfactory/module/v1/module_pb.ts new file mode 100644 index 00000000..820491be --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/module/v1/module_pb.ts @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/module/v1/module.proto (package sunrise.tokenfactory.module.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Module is the config object for the module. + * + * @generated from message sunrise.tokenfactory.module.v1.Module + */ +export class Module extends Message { + /** + * authority defines the custom module authority. + * If not set, defaults to the governance module. + * + * @generated from field: string authority = 1; + */ + authority = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.module.v1.Module"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Module { + return new Module().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Module { + return new Module().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Module { + return new Module().fromJsonString(jsonString, options); + } + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { + return proto3.util.equals(Module, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/v1/authorityMetadata_pb.ts b/src/protobufs/sunrise/tokenfactory/v1/authorityMetadata_pb.ts new file mode 100644 index 00000000..9b5d94eb --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/authorityMetadata_pb.ts @@ -0,0 +1,51 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/authorityMetadata.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * DenomAuthorityMetadata specifies metadata for addresses that have specific + * capabilities over a token factory denom. Right now there is only one Admin + * permission, but is planned to be extended to the future. + * + * @generated from message sunrise.tokenfactory.v1.DenomAuthorityMetadata + */ +export class DenomAuthorityMetadata extends Message { + /** + * Can be empty for no admin, or a valid osmosis address + * + * @generated from field: string admin = 1; + */ + admin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.DenomAuthorityMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DenomAuthorityMetadata { + return new DenomAuthorityMetadata().fromJsonString(jsonString, options); + } + + static equals(a: DenomAuthorityMetadata | PlainMessage | undefined, b: DenomAuthorityMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(DenomAuthorityMetadata, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/v1/genesis_pb.ts b/src/protobufs/sunrise/tokenfactory/v1/genesis_pb.ts new file mode 100644 index 00000000..6dcbda3f --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/genesis_pb.ts @@ -0,0 +1,104 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/genesis.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; + +/** + * GenesisState defines the tokenfactory module's genesis state. + * + * @generated from message sunrise.tokenfactory.v1.GenesisState + */ +export class GenesisState extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: sunrise.tokenfactory.v1.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated sunrise.tokenfactory.v1.GenesisDenom factory_denoms = 2; + */ + factoryDenoms: GenesisDenom[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.GenesisState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "factory_denoms", kind: "message", T: GenesisDenom, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { + return new GenesisState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { + return new GenesisState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisState { + return new GenesisState().fromJsonString(jsonString, options); + } + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisState, a, b); + } +} + +/** + * GenesisDenom defines a tokenfactory denom that is defined within genesis + * state. The structure contains DenomAuthorityMetadata which defines the + * denom's admin. + * + * @generated from message sunrise.tokenfactory.v1.GenesisDenom + */ +export class GenesisDenom extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: sunrise.tokenfactory.v1.DenomAuthorityMetadata authority_metadata = 2; + */ + authorityMetadata?: DenomAuthorityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.GenesisDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDenom { + return new GenesisDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenesisDenom { + return new GenesisDenom().fromJsonString(jsonString, options); + } + + static equals(a: GenesisDenom | PlainMessage | undefined, b: GenesisDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(GenesisDenom, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/v1/params_pb.ts b/src/protobufs/sunrise/tokenfactory/v1/params_pb.ts new file mode 100644 index 00000000..4170ef0f --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/params_pb.ts @@ -0,0 +1,63 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/params.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; + +/** + * Params defines the parameters for the tokenfactory module. + * + * @generated from message sunrise.tokenfactory.v1.Params + */ +export class Params extends Message { + /** + * DenomCreationFee defines the fee to be charged on the creation of a new + * denom. The fee is drawn from the MsgCreateDenom's sender account, and + * transferred to the community pool. + * + * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; + */ + denomCreationFee: Coin[] = []; + + /** + * DenomCreationGasConsume defines the gas cost for creating a new denom. + * This is intended as a spam deterrence mechanism. + * + * See: https://github.com/CosmWasm/token-factory/issues/11 + * + * @generated from field: uint64 denom_creation_gas_consume = 2; + */ + denomCreationGasConsume = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.Params"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom_creation_fee", kind: "message", T: Coin, repeated: true }, + { no: 2, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Params { + return new Params().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Params { + return new Params().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Params { + return new Params().fromJsonString(jsonString, options); + } + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { + return proto3.util.equals(Params, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/v1/query_cosmes.ts b/src/protobufs/sunrise/tokenfactory/v1/query_cosmes.ts new file mode 100644 index 00000000..c4f07af5 --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/query_cosmes.ts @@ -0,0 +1,48 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/query.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; + +const TYPE_NAME = "sunrise.tokenfactory.v1.Query"; + +/** + * Params defines a gRPC query method that returns the tokenfactory module's + * parameters. + * + * @generated from rpc sunrise.tokenfactory.v1.Query.Params + */ +export const QueryParamsService = { + typeName: TYPE_NAME, + method: "Params", + Request: QueryParamsRequest, + Response: QueryParamsResponse, +} as const; + +/** + * DenomAuthorityMetadata defines a gRPC query method for fetching + * DenomAuthorityMetadata for a particular denom. + * + * @generated from rpc sunrise.tokenfactory.v1.Query.DenomAuthorityMetadata + */ +export const QueryDenomAuthorityMetadataService = { + typeName: TYPE_NAME, + method: "DenomAuthorityMetadata", + Request: QueryDenomAuthorityMetadataRequest, + Response: QueryDenomAuthorityMetadataResponse, +} as const; + +/** + * DenomsFromCreator defines a gRPC query method for fetching all + * denominations created by a specific admin/creator. + * + * @generated from rpc sunrise.tokenfactory.v1.Query.DenomsFromCreator + */ +export const QueryDenomsFromCreatorService = { + typeName: TYPE_NAME, + method: "DenomsFromCreator", + Request: QueryDenomsFromCreatorRequest, + Response: QueryDenomsFromCreatorResponse, +} as const; + diff --git a/src/protobufs/sunrise/tokenfactory/v1/query_pb.ts b/src/protobufs/sunrise/tokenfactory/v1/query_pb.ts new file mode 100644 index 00000000..c57834ef --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/query_pb.ts @@ -0,0 +1,404 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/query.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; + +/** + * QueryParamsRequest is the request type for the Query/Params RPC method. + * + * @generated from message sunrise.tokenfactory.v1.QueryParamsRequest + */ +export class QueryParamsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryParamsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { + return new QueryParamsRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsRequest, a, b); + } +} + +/** + * QueryParamsResponse is the response type for the Query/Params RPC method. + * + * @generated from message sunrise.tokenfactory.v1.QueryParamsResponse + */ +export class QueryParamsResponse extends Message { + /** + * params defines the parameters of the module. + * + * @generated from field: sunrise.tokenfactory.v1.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { + return new QueryParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryParamsResponse, a, b); + } +} + +/** + * QueryDenomAuthorityMetadataRequest defines the request structure for the + * DenomAuthorityMetadata gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryDenomAuthorityMetadataRequest + */ +export class QueryDenomAuthorityMetadataRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryDenomAuthorityMetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataRequest { + return new QueryDenomAuthorityMetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined, b: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomAuthorityMetadataRequest, a, b); + } +} + +/** + * QueryDenomAuthorityMetadataResponse defines the response structure for the + * DenomAuthorityMetadata gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryDenomAuthorityMetadataResponse + */ +export class QueryDenomAuthorityMetadataResponse extends Message { + /** + * @generated from field: sunrise.tokenfactory.v1.DenomAuthorityMetadata authority_metadata = 1; + */ + authorityMetadata?: DenomAuthorityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryDenomAuthorityMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataResponse { + return new QueryDenomAuthorityMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined, b: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomAuthorityMetadataResponse, a, b); + } +} + +/** + * QueryDenomsFromCreatorRequest defines the request structure for the + * DenomsFromCreator gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryDenomsFromCreatorRequest + */ +export class QueryDenomsFromCreatorRequest extends Message { + /** + * @generated from field: string creator = 1; + */ + creator = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryDenomsFromCreatorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorRequest { + return new QueryDenomsFromCreatorRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsFromCreatorRequest | PlainMessage | undefined, b: QueryDenomsFromCreatorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsFromCreatorRequest, a, b); + } +} + +/** + * QueryDenomsFromCreatorRequest defines the response structure for the + * DenomsFromCreator gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryDenomsFromCreatorResponse + */ +export class QueryDenomsFromCreatorResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryDenomsFromCreatorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorResponse { + return new QueryDenomsFromCreatorResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryDenomsFromCreatorResponse | PlainMessage | undefined, b: QueryDenomsFromCreatorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryDenomsFromCreatorResponse, a, b); + } +} + +/** + * QueryBeforeSendHookAddressRequest defines the request structure for the + * BeforeSendHookAddress gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryBeforeSendHookAddressRequest + */ +export class QueryBeforeSendHookAddressRequest extends Message { + /** + * @generated from field: string denom = 1; + */ + denom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryBeforeSendHookAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressRequest { + return new QueryBeforeSendHookAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryBeforeSendHookAddressRequest | PlainMessage | undefined, b: QueryBeforeSendHookAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBeforeSendHookAddressRequest, a, b); + } +} + +/** + * QueryBeforeSendHookAddressResponse defines the response structure for the + * DenomBeforeSendHook gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryBeforeSendHookAddressResponse + */ +export class QueryBeforeSendHookAddressResponse extends Message { + /** + * @generated from field: string cosmwasm_address = 1; + */ + cosmwasmAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryBeforeSendHookAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cosmwasm_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressResponse { + return new QueryBeforeSendHookAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryBeforeSendHookAddressResponse | PlainMessage | undefined, b: QueryBeforeSendHookAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryBeforeSendHookAddressResponse, a, b); + } +} + +/** + * QueryAllBeforeSendHooksAddressesRequest defines the request structure for the + * AllBeforeSendHooksAddresses gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryAllBeforeSendHooksAddressesRequest + */ +export class QueryAllBeforeSendHooksAddressesRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryAllBeforeSendHooksAddressesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { + return new QueryAllBeforeSendHooksAddressesRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesRequest, a, b); + } +} + +/** + * QueryAllBeforeSendHooksAddressesResponse defines the response structure for + * the AllBeforeSendHooksAddresses gRPC query. + * + * @generated from message sunrise.tokenfactory.v1.QueryAllBeforeSendHooksAddressesResponse + */ +export class QueryAllBeforeSendHooksAddressesResponse extends Message { + /** + * @generated from field: repeated string denoms = 1; + */ + denoms: string[] = []; + + /** + * @generated from field: repeated string before_send_hook_addresses = 2; + */ + beforeSendHookAddresses: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.QueryAllBeforeSendHooksAddressesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "before_send_hook_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { + return new QueryAllBeforeSendHooksAddressesResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAllBeforeSendHooksAddressesResponse, a, b); + } +} + diff --git a/src/protobufs/sunrise/tokenfactory/v1/tx_cosmes.ts b/src/protobufs/sunrise/tokenfactory/v1/tx_cosmes.ts new file mode 100644 index 00000000..7824da9d --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/tx_cosmes.ts @@ -0,0 +1,97 @@ +// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/tx.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { MsgBurn, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse, MsgCreateDenom, MsgCreateDenomResponse, MsgForceTransfer, MsgForceTransferResponse, MsgMint, MsgMintResponse, MsgSetDenomMetadata, MsgSetDenomMetadataResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; + +const TYPE_NAME = "sunrise.tokenfactory.v1.Msg"; + +/** + * UpdateParams defines a (governance) operation for updating the module + * parameters. The authority defaults to the x/gov module account. + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.UpdateParams + */ +export const MsgUpdateParamsService = { + typeName: TYPE_NAME, + method: "UpdateParams", + Request: MsgUpdateParams, + Response: MsgUpdateParamsResponse, +} as const; + +/** + * CreateDenom + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.CreateDenom + */ +export const MsgCreateDenomService = { + typeName: TYPE_NAME, + method: "CreateDenom", + Request: MsgCreateDenom, + Response: MsgCreateDenomResponse, +} as const; + +/** + * Mint + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.Mint + */ +export const MsgMintService = { + typeName: TYPE_NAME, + method: "Mint", + Request: MsgMint, + Response: MsgMintResponse, +} as const; + +/** + * Burn + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.Burn + */ +export const MsgBurnService = { + typeName: TYPE_NAME, + method: "Burn", + Request: MsgBurn, + Response: MsgBurnResponse, +} as const; + +/** + * ChangeAdmin + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.ChangeAdmin + */ +export const MsgChangeAdminService = { + typeName: TYPE_NAME, + method: "ChangeAdmin", + Request: MsgChangeAdmin, + Response: MsgChangeAdminResponse, +} as const; + +/** + * SetDenomMetadata + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.SetDenomMetadata + */ +export const MsgSetDenomMetadataService = { + typeName: TYPE_NAME, + method: "SetDenomMetadata", + Request: MsgSetDenomMetadata, + Response: MsgSetDenomMetadataResponse, +} as const; + +/** + * // SetBeforeSendHook + * rpc SetBeforeSendHook(MsgSetBeforeSendHook) + * returns (MsgSetBeforeSendHookResponse); + * ForceTransfer + * + * @generated from rpc sunrise.tokenfactory.v1.Msg.ForceTransfer + */ +export const MsgForceTransferService = { + typeName: TYPE_NAME, + method: "ForceTransfer", + Request: MsgForceTransfer, + Response: MsgForceTransferResponse, +} as const; + diff --git a/src/protobufs/sunrise/tokenfactory/v1/tx_pb.ts b/src/protobufs/sunrise/tokenfactory/v1/tx_pb.ts new file mode 100644 index 00000000..59c4a317 --- /dev/null +++ b/src/protobufs/sunrise/tokenfactory/v1/tx_pb.ts @@ -0,0 +1,710 @@ +// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" +// @generated from file sunrise/tokenfactory/v1/tx.proto (package sunrise.tokenfactory.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; +import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; + +/** + * MsgUpdateParams is the Msg/UpdateParams request type. + * + * @generated from message sunrise.tokenfactory.v1.MsgUpdateParams + */ +export class MsgUpdateParams extends Message { + /** + * authority is the address that controls the module (defaults to x/gov unless overwritten). + * + * @generated from field: string authority = 1; + */ + authority = ""; + + /** + * params defines the module parameters to update. + * + * NOTE: All parameters must be supplied. + * + * @generated from field: sunrise.tokenfactory.v1.Params params = 2; + */ + params?: Params; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgUpdateParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "params", kind: "message", T: Params }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { + return new MsgUpdateParams().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParams, a, b); + } +} + +/** + * MsgUpdateParamsResponse defines the response structure for executing a + * MsgUpdateParams message. + * + * @generated from message sunrise.tokenfactory.v1.MsgUpdateParamsResponse + */ +export class MsgUpdateParamsResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgUpdateParamsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { + return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgUpdateParamsResponse, a, b); + } +} + +/** + * MsgCreateDenom defines the message structure for the CreateDenom gRPC service + * method. It allows an account to create a new denom. It requires a sender + * address and a sub denomination. The (sender_address, sub_denomination) tuple + * must be unique and cannot be reused. + * + * The resulting denom created is defined as + * . The resulting denom's admin is + * originally set to be the creator, but this can be changed later. The token + * denom does not indicate the current admin. + * + * @generated from message sunrise.tokenfactory.v1.MsgCreateDenom + */ +export class MsgCreateDenom extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * subdenom can be up to 44 "alphanumeric" characters long. + * + * @generated from field: string subdenom = 2; + */ + subdenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgCreateDenom"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenom { + return new MsgCreateDenom().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenom | PlainMessage | undefined, b: MsgCreateDenom | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenom, a, b); + } +} + +/** + * MsgCreateDenomResponse is the return value of MsgCreateDenom + * It returns the full string of the newly created denom + * + * @generated from message sunrise.tokenfactory.v1.MsgCreateDenomResponse + */ +export class MsgCreateDenomResponse extends Message { + /** + * @generated from field: string new_token_denom = 1; + */ + newTokenDenom = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgCreateDenomResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenomResponse { + return new MsgCreateDenomResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgCreateDenomResponse | PlainMessage | undefined, b: MsgCreateDenomResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCreateDenomResponse, a, b); + } +} + +/** + * MsgMint is the sdk.Msg type for allowing an admin account to mint + * more of a token. + * Only the admin of the token factory denom has permission to mint unless + * the denom does not have any admin. + * + * @generated from message sunrise.tokenfactory.v1.MsgMint + */ +export class MsgMint extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string mint_to_address = 3; + */ + mintToAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgMint"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "mint_to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { + return new MsgMint().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { + return new MsgMint().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMint { + return new MsgMint().fromJsonString(jsonString, options); + } + + static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMint, a, b); + } +} + +/** + * MsgMintResponse defines the response structure for an executed + * MsgMint message. + * + * @generated from message sunrise.tokenfactory.v1.MsgMintResponse + */ +export class MsgMintResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgMintResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { + return new MsgMintResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgMintResponse, a, b); + } +} + +/** + * MsgBurn is the sdk.Msg type for allowing an admin account to burn + * a token. + * Only the admin of the token factory denom has permission to burn unless + * the denom does not have any admin. + * + * @generated from message sunrise.tokenfactory.v1.MsgBurn + */ +export class MsgBurn extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string burn_from_address = 3; + */ + burnFromAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgBurn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "burn_from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { + return new MsgBurn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { + return new MsgBurn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurn { + return new MsgBurn().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurn, a, b); + } +} + +/** + * MsgBurnResponse defines the response structure for an executed + * MsgBurn message. + * + * @generated from message sunrise.tokenfactory.v1.MsgBurnResponse + */ +export class MsgBurnResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgBurnResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { + return new MsgBurnResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgBurnResponse, a, b); + } +} + +/** + * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign + * adminship of a denom to a new account + * + * @generated from message sunrise.tokenfactory.v1.MsgChangeAdmin + */ +export class MsgChangeAdmin extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string new_admin = 3; + */ + newAdmin = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgChangeAdmin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdmin { + return new MsgChangeAdmin().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdmin | PlainMessage | undefined, b: MsgChangeAdmin | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdmin, a, b); + } +} + +/** + * MsgChangeAdminResponse defines the response structure for an executed + * MsgChangeAdmin message. + * + * @generated from message sunrise.tokenfactory.v1.MsgChangeAdminResponse + */ +export class MsgChangeAdminResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgChangeAdminResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdminResponse { + return new MsgChangeAdminResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgChangeAdminResponse | PlainMessage | undefined, b: MsgChangeAdminResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgChangeAdminResponse, a, b); + } +} + +/** + * MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to + * assign a CosmWasm contract to call with a BeforeSend hook + * + * @generated from message sunrise.tokenfactory.v1.MsgSetBeforeSendHook + */ +export class MsgSetBeforeSendHook extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: string denom = 2; + */ + denom = ""; + + /** + * @generated from field: string cosmwasm_address = 3; + */ + cosmwasmAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgSetBeforeSendHook"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "cosmwasm_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHook { + return new MsgSetBeforeSendHook().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBeforeSendHook | PlainMessage | undefined, b: MsgSetBeforeSendHook | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBeforeSendHook, a, b); + } +} + +/** + * MsgSetBeforeSendHookResponse defines the response structure for an executed + * MsgSetBeforeSendHook message. + * + * @generated from message sunrise.tokenfactory.v1.MsgSetBeforeSendHookResponse + */ +export class MsgSetBeforeSendHookResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgSetBeforeSendHookResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHookResponse { + return new MsgSetBeforeSendHookResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetBeforeSendHookResponse | PlainMessage | undefined, b: MsgSetBeforeSendHookResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetBeforeSendHookResponse, a, b); + } +} + +/** + * MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set + * the denom's bank metadata + * + * @generated from message sunrise.tokenfactory.v1.MsgSetDenomMetadata + */ +export class MsgSetDenomMetadata extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgSetDenomMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata { + return new MsgSetDenomMetadata().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadata | PlainMessage | undefined, b: MsgSetDenomMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadata, a, b); + } +} + +/** + * MsgSetDenomMetadataResponse defines the response structure for an executed + * MsgSetDenomMetadata message. + * + * @generated from message sunrise.tokenfactory.v1.MsgSetDenomMetadataResponse + */ +export class MsgSetDenomMetadataResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgSetDenomMetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadataResponse { + return new MsgSetDenomMetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSetDenomMetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSetDenomMetadataResponse, a, b); + } +} + +/** + * MsgForceTransfer + * + * @generated from message sunrise.tokenfactory.v1.MsgForceTransfer + */ +export class MsgForceTransfer extends Message { + /** + * @generated from field: string sender = 1; + */ + sender = ""; + + /** + * @generated from field: cosmos.base.v1beta1.Coin amount = 2; + */ + amount?: Coin; + + /** + * @generated from field: string transfer_from_address = 3; + */ + transferFromAddress = ""; + + /** + * @generated from field: string transfer_to_address = 4; + */ + transferToAddress = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgForceTransfer"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "message", T: Coin }, + { no: 3, name: "transfer_from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "transfer_to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgForceTransfer { + return new MsgForceTransfer().fromJsonString(jsonString, options); + } + + static equals(a: MsgForceTransfer | PlainMessage | undefined, b: MsgForceTransfer | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgForceTransfer, a, b); + } +} + +/** + * MsgForceTransferResponse defines the response structure for an executed + * MsgForceTransfer message. + * + * @generated from message sunrise.tokenfactory.v1.MsgForceTransferResponse + */ +export class MsgForceTransferResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "sunrise.tokenfactory.v1.MsgForceTransferResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgForceTransferResponse { + return new MsgForceTransferResponse().fromJsonString(jsonString, options); + } + + static equals(a: MsgForceTransferResponse | PlainMessage | undefined, b: MsgForceTransferResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgForceTransferResponse, a, b); + } +} + diff --git a/src/protobufs/tendermint/abci/types_cosmes.ts b/src/protobufs/tendermint/abci/types_cosmes.ts index ca3501b1..9716fcd5 100644 --- a/src/protobufs/tendermint/abci/types_cosmes.ts +++ b/src/protobufs/tendermint/abci/types_cosmes.ts @@ -3,14 +3,14 @@ /* eslint-disable */ // @ts-nocheck -import { RequestApplySnapshotChunk, RequestBeginBlock, RequestCheckTx, RequestCommit, RequestDeliverTx, RequestEcho, RequestEndBlock, RequestFlush, RequestInfo, RequestInitChain, RequestListSnapshots, RequestLoadSnapshotChunk, RequestOfferSnapshot, RequestPrepareProposal, RequestProcessProposal, RequestQuery, ResponseApplySnapshotChunk, ResponseBeginBlock, ResponseCheckTx, ResponseCommit, ResponseDeliverTx, ResponseEcho, ResponseEndBlock, ResponseFlush, ResponseInfo, ResponseInitChain, ResponseListSnapshots, ResponseLoadSnapshotChunk, ResponseOfferSnapshot, ResponsePrepareProposal, ResponseProcessProposal, ResponseQuery } from "./types_pb.js"; +import { RequestApplySnapshotChunk, RequestCheckTx, RequestCommit, RequestEcho, RequestExtendVote, RequestFinalizeBlock, RequestFlush, RequestInfo, RequestInitChain, RequestListSnapshots, RequestLoadSnapshotChunk, RequestOfferSnapshot, RequestPrepareProposal, RequestProcessProposal, RequestQuery, RequestVerifyVoteExtension, ResponseApplySnapshotChunk, ResponseCheckTx, ResponseCommit, ResponseEcho, ResponseExtendVote, ResponseFinalizeBlock, ResponseFlush, ResponseInfo, ResponseInitChain, ResponseListSnapshots, ResponseLoadSnapshotChunk, ResponseOfferSnapshot, ResponsePrepareProposal, ResponseProcessProposal, ResponseQuery, ResponseVerifyVoteExtension } from "./types_pb.js"; -const TYPE_NAME = "tendermint.abci.ABCIApplication"; +const TYPE_NAME = "tendermint.abci.ABCI"; /** - * @generated from rpc tendermint.abci.ABCIApplication.Echo + * @generated from rpc tendermint.abci.ABCI.Echo */ -export const ABCIApplicationEchoService = { +export const ABCIEchoService = { typeName: TYPE_NAME, method: "Echo", Request: RequestEcho, @@ -18,9 +18,9 @@ export const ABCIApplicationEchoService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Flush + * @generated from rpc tendermint.abci.ABCI.Flush */ -export const ABCIApplicationFlushService = { +export const ABCIFlushService = { typeName: TYPE_NAME, method: "Flush", Request: RequestFlush, @@ -28,9 +28,9 @@ export const ABCIApplicationFlushService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Info + * @generated from rpc tendermint.abci.ABCI.Info */ -export const ABCIApplicationInfoService = { +export const ABCIInfoService = { typeName: TYPE_NAME, method: "Info", Request: RequestInfo, @@ -38,19 +38,9 @@ export const ABCIApplicationInfoService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.DeliverTx + * @generated from rpc tendermint.abci.ABCI.CheckTx */ -export const ABCIApplicationDeliverTxService = { - typeName: TYPE_NAME, - method: "DeliverTx", - Request: RequestDeliverTx, - Response: ResponseDeliverTx, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.CheckTx - */ -export const ABCIApplicationCheckTxService = { +export const ABCICheckTxService = { typeName: TYPE_NAME, method: "CheckTx", Request: RequestCheckTx, @@ -58,9 +48,9 @@ export const ABCIApplicationCheckTxService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Query + * @generated from rpc tendermint.abci.ABCI.Query */ -export const ABCIApplicationQueryService = { +export const ABCIQueryService = { typeName: TYPE_NAME, method: "Query", Request: RequestQuery, @@ -68,9 +58,9 @@ export const ABCIApplicationQueryService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.Commit + * @generated from rpc tendermint.abci.ABCI.Commit */ -export const ABCIApplicationCommitService = { +export const ABCICommitService = { typeName: TYPE_NAME, method: "Commit", Request: RequestCommit, @@ -78,9 +68,9 @@ export const ABCIApplicationCommitService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.InitChain + * @generated from rpc tendermint.abci.ABCI.InitChain */ -export const ABCIApplicationInitChainService = { +export const ABCIInitChainService = { typeName: TYPE_NAME, method: "InitChain", Request: RequestInitChain, @@ -88,29 +78,9 @@ export const ABCIApplicationInitChainService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.BeginBlock - */ -export const ABCIApplicationBeginBlockService = { - typeName: TYPE_NAME, - method: "BeginBlock", - Request: RequestBeginBlock, - Response: ResponseBeginBlock, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.EndBlock - */ -export const ABCIApplicationEndBlockService = { - typeName: TYPE_NAME, - method: "EndBlock", - Request: RequestEndBlock, - Response: ResponseEndBlock, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCIApplication.ListSnapshots + * @generated from rpc tendermint.abci.ABCI.ListSnapshots */ -export const ABCIApplicationListSnapshotsService = { +export const ABCIListSnapshotsService = { typeName: TYPE_NAME, method: "ListSnapshots", Request: RequestListSnapshots, @@ -118,9 +88,9 @@ export const ABCIApplicationListSnapshotsService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.OfferSnapshot + * @generated from rpc tendermint.abci.ABCI.OfferSnapshot */ -export const ABCIApplicationOfferSnapshotService = { +export const ABCIOfferSnapshotService = { typeName: TYPE_NAME, method: "OfferSnapshot", Request: RequestOfferSnapshot, @@ -128,9 +98,9 @@ export const ABCIApplicationOfferSnapshotService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.LoadSnapshotChunk + * @generated from rpc tendermint.abci.ABCI.LoadSnapshotChunk */ -export const ABCIApplicationLoadSnapshotChunkService = { +export const ABCILoadSnapshotChunkService = { typeName: TYPE_NAME, method: "LoadSnapshotChunk", Request: RequestLoadSnapshotChunk, @@ -138,9 +108,9 @@ export const ABCIApplicationLoadSnapshotChunkService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.ApplySnapshotChunk + * @generated from rpc tendermint.abci.ABCI.ApplySnapshotChunk */ -export const ABCIApplicationApplySnapshotChunkService = { +export const ABCIApplySnapshotChunkService = { typeName: TYPE_NAME, method: "ApplySnapshotChunk", Request: RequestApplySnapshotChunk, @@ -148,9 +118,9 @@ export const ABCIApplicationApplySnapshotChunkService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.PrepareProposal + * @generated from rpc tendermint.abci.ABCI.PrepareProposal */ -export const ABCIApplicationPrepareProposalService = { +export const ABCIPrepareProposalService = { typeName: TYPE_NAME, method: "PrepareProposal", Request: RequestPrepareProposal, @@ -158,12 +128,42 @@ export const ABCIApplicationPrepareProposalService = { } as const; /** - * @generated from rpc tendermint.abci.ABCIApplication.ProcessProposal + * @generated from rpc tendermint.abci.ABCI.ProcessProposal */ -export const ABCIApplicationProcessProposalService = { +export const ABCIProcessProposalService = { typeName: TYPE_NAME, method: "ProcessProposal", Request: RequestProcessProposal, Response: ResponseProcessProposal, } as const; +/** + * @generated from rpc tendermint.abci.ABCI.ExtendVote + */ +export const ABCIExtendVoteService = { + typeName: TYPE_NAME, + method: "ExtendVote", + Request: RequestExtendVote, + Response: ResponseExtendVote, +} as const; + +/** + * @generated from rpc tendermint.abci.ABCI.VerifyVoteExtension + */ +export const ABCIVerifyVoteExtensionService = { + typeName: TYPE_NAME, + method: "VerifyVoteExtension", + Request: RequestVerifyVoteExtension, + Response: ResponseVerifyVoteExtension, +} as const; + +/** + * @generated from rpc tendermint.abci.ABCI.FinalizeBlock + */ +export const ABCIFinalizeBlockService = { + typeName: TYPE_NAME, + method: "FinalizeBlock", + Request: RequestFinalizeBlock, + Response: ResponseFinalizeBlock, +} as const; + diff --git a/src/protobufs/tendermint/abci/types_pb.ts b/src/protobufs/tendermint/abci/types_pb.ts index ca21ef5c..06e40de5 100644 --- a/src/protobufs/tendermint/abci/types_pb.ts +++ b/src/protobufs/tendermint/abci/types_pb.ts @@ -6,9 +6,9 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { ConsensusParams } from "../types/params_pb.js"; -import { Header } from "../types/types_pb.js"; import { ProofOps } from "../crypto/proof_pb.js"; import { PublicKey } from "../crypto/keys_pb.js"; +import { BlockIDFlag } from "../types/validator_pb.js"; /** * @generated from enum tendermint.abci.CheckTxType @@ -93,30 +93,12 @@ export class Request extends Message { */ value: RequestQuery; case: "query"; - } | { - /** - * @generated from field: tendermint.abci.RequestBeginBlock begin_block = 7; - */ - value: RequestBeginBlock; - case: "beginBlock"; } | { /** * @generated from field: tendermint.abci.RequestCheckTx check_tx = 8; */ value: RequestCheckTx; case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.RequestDeliverTx deliver_tx = 9; - */ - value: RequestDeliverTx; - case: "deliverTx"; - } | { - /** - * @generated from field: tendermint.abci.RequestEndBlock end_block = 10; - */ - value: RequestEndBlock; - case: "endBlock"; } | { /** * @generated from field: tendermint.abci.RequestCommit commit = 11; @@ -159,6 +141,24 @@ export class Request extends Message { */ value: RequestProcessProposal; case: "processProposal"; + } | { + /** + * @generated from field: tendermint.abci.RequestExtendVote extend_vote = 18; + */ + value: RequestExtendVote; + case: "extendVote"; + } | { + /** + * @generated from field: tendermint.abci.RequestVerifyVoteExtension verify_vote_extension = 19; + */ + value: RequestVerifyVoteExtension; + case: "verifyVoteExtension"; + } | { + /** + * @generated from field: tendermint.abci.RequestFinalizeBlock finalize_block = 20; + */ + value: RequestFinalizeBlock; + case: "finalizeBlock"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -174,10 +174,7 @@ export class Request extends Message { { no: 3, name: "info", kind: "message", T: RequestInfo, oneof: "value" }, { no: 5, name: "init_chain", kind: "message", T: RequestInitChain, oneof: "value" }, { no: 6, name: "query", kind: "message", T: RequestQuery, oneof: "value" }, - { no: 7, name: "begin_block", kind: "message", T: RequestBeginBlock, oneof: "value" }, { no: 8, name: "check_tx", kind: "message", T: RequestCheckTx, oneof: "value" }, - { no: 9, name: "deliver_tx", kind: "message", T: RequestDeliverTx, oneof: "value" }, - { no: 10, name: "end_block", kind: "message", T: RequestEndBlock, oneof: "value" }, { no: 11, name: "commit", kind: "message", T: RequestCommit, oneof: "value" }, { no: 12, name: "list_snapshots", kind: "message", T: RequestListSnapshots, oneof: "value" }, { no: 13, name: "offer_snapshot", kind: "message", T: RequestOfferSnapshot, oneof: "value" }, @@ -185,6 +182,9 @@ export class Request extends Message { { no: 15, name: "apply_snapshot_chunk", kind: "message", T: RequestApplySnapshotChunk, oneof: "value" }, { no: 16, name: "prepare_proposal", kind: "message", T: RequestPrepareProposal, oneof: "value" }, { no: 17, name: "process_proposal", kind: "message", T: RequestProcessProposal, oneof: "value" }, + { no: 18, name: "extend_vote", kind: "message", T: RequestExtendVote, oneof: "value" }, + { no: 19, name: "verify_vote_extension", kind: "message", T: RequestVerifyVoteExtension, oneof: "value" }, + { no: 20, name: "finalize_block", kind: "message", T: RequestFinalizeBlock, oneof: "value" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Request { @@ -449,61 +449,6 @@ export class RequestQuery extends Message { } } -/** - * @generated from message tendermint.abci.RequestBeginBlock - */ -export class RequestBeginBlock extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: tendermint.types.Header header = 2; - */ - header?: Header; - - /** - * @generated from field: tendermint.abci.CommitInfo last_commit_info = 3; - */ - lastCommitInfo?: CommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior byzantine_validators = 4; - */ - byzantineValidators: Misbehavior[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestBeginBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "header", kind: "message", T: Header }, - { no: 3, name: "last_commit_info", kind: "message", T: CommitInfo }, - { no: 4, name: "byzantine_validators", kind: "message", T: Misbehavior, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestBeginBlock { - return new RequestBeginBlock().fromJsonString(jsonString, options); - } - - static equals(a: RequestBeginBlock | PlainMessage | undefined, b: RequestBeginBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestBeginBlock, a, b); - } -} - /** * @generated from message tendermint.abci.RequestCheckTx */ @@ -547,80 +492,6 @@ export class RequestCheckTx extends Message { } } -/** - * @generated from message tendermint.abci.RequestDeliverTx - */ -export class RequestDeliverTx extends Message { - /** - * @generated from field: bytes tx = 1; - */ - tx = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestDeliverTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestDeliverTx { - return new RequestDeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: RequestDeliverTx | PlainMessage | undefined, b: RequestDeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestDeliverTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestEndBlock - */ -export class RequestEndBlock extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestEndBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestEndBlock { - return new RequestEndBlock().fromJsonString(jsonString, options); - } - - static equals(a: RequestEndBlock | PlainMessage | undefined, b: RequestEndBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestEndBlock, a, b); - } -} - /** * @generated from message tendermint.abci.RequestCommit */ @@ -1005,6 +876,239 @@ export class RequestProcessProposal extends Message { } } +/** + * Extends a vote with application-injected data + * + * @generated from message tendermint.abci.RequestExtendVote + */ +export class RequestExtendVote extends Message { + /** + * the hash of the block that this vote may be referring to + * + * @generated from field: bytes hash = 1; + */ + hash = new Uint8Array(0); + + /** + * the height of the extended vote + * + * @generated from field: int64 height = 2; + */ + height = protoInt64.zero; + + /** + * info of the block that this vote may be referring to + * + * @generated from field: google.protobuf.Timestamp time = 3; + */ + time?: Timestamp; + + /** + * @generated from field: repeated bytes txs = 4; + */ + txs: Uint8Array[] = []; + + /** + * @generated from field: tendermint.abci.CommitInfo proposed_last_commit = 5; + */ + proposedLastCommit?: CommitInfo; + + /** + * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 6; + */ + misbehavior: Misbehavior[] = []; + + /** + * @generated from field: bytes next_validators_hash = 7; + */ + nextValidatorsHash = new Uint8Array(0); + + /** + * address of the public key of the original proposer of the block. + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestExtendVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "time", kind: "message", T: Timestamp }, + { no: 4, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 5, name: "proposed_last_commit", kind: "message", T: CommitInfo }, + { no: 6, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, + { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestExtendVote { + return new RequestExtendVote().fromJsonString(jsonString, options); + } + + static equals(a: RequestExtendVote | PlainMessage | undefined, b: RequestExtendVote | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestExtendVote, a, b); + } +} + +/** + * Verify the vote extension + * + * @generated from message tendermint.abci.RequestVerifyVoteExtension + */ +export class RequestVerifyVoteExtension extends Message { + /** + * the hash of the block that this received vote corresponds to + * + * @generated from field: bytes hash = 1; + */ + hash = new Uint8Array(0); + + /** + * the validator that signed the vote extension + * + * @generated from field: bytes validator_address = 2; + */ + validatorAddress = new Uint8Array(0); + + /** + * @generated from field: int64 height = 3; + */ + height = protoInt64.zero; + + /** + * @generated from field: bytes vote_extension = 4; + */ + voteExtension = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestVerifyVoteExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestVerifyVoteExtension { + return new RequestVerifyVoteExtension().fromJsonString(jsonString, options); + } + + static equals(a: RequestVerifyVoteExtension | PlainMessage | undefined, b: RequestVerifyVoteExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestVerifyVoteExtension, a, b); + } +} + +/** + * @generated from message tendermint.abci.RequestFinalizeBlock + */ +export class RequestFinalizeBlock extends Message { + /** + * @generated from field: repeated bytes txs = 1; + */ + txs: Uint8Array[] = []; + + /** + * @generated from field: tendermint.abci.CommitInfo decided_last_commit = 2; + */ + decidedLastCommit?: CommitInfo; + + /** + * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 3; + */ + misbehavior: Misbehavior[] = []; + + /** + * hash is the merkle root hash of the fields of the decided block. + * + * @generated from field: bytes hash = 4; + */ + hash = new Uint8Array(0); + + /** + * @generated from field: int64 height = 5; + */ + height = protoInt64.zero; + + /** + * @generated from field: google.protobuf.Timestamp time = 6; + */ + time?: Timestamp; + + /** + * @generated from field: bytes next_validators_hash = 7; + */ + nextValidatorsHash = new Uint8Array(0); + + /** + * proposer_address is the address of the public key of the original proposer of the block. + * + * @generated from field: bytes proposer_address = 8; + */ + proposerAddress = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.RequestFinalizeBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + { no: 2, name: "decided_last_commit", kind: "message", T: CommitInfo }, + { no: 3, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, + { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "time", kind: "message", T: Timestamp }, + { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RequestFinalizeBlock { + return new RequestFinalizeBlock().fromJsonString(jsonString, options); + } + + static equals(a: RequestFinalizeBlock | PlainMessage | undefined, b: RequestFinalizeBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(RequestFinalizeBlock, a, b); + } +} + /** * @generated from message tendermint.abci.Response */ @@ -1048,30 +1152,12 @@ export class Response extends Message { */ value: ResponseQuery; case: "query"; - } | { - /** - * @generated from field: tendermint.abci.ResponseBeginBlock begin_block = 8; - */ - value: ResponseBeginBlock; - case: "beginBlock"; } | { /** * @generated from field: tendermint.abci.ResponseCheckTx check_tx = 9; */ value: ResponseCheckTx; case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.ResponseDeliverTx deliver_tx = 10; - */ - value: ResponseDeliverTx; - case: "deliverTx"; - } | { - /** - * @generated from field: tendermint.abci.ResponseEndBlock end_block = 11; - */ - value: ResponseEndBlock; - case: "endBlock"; } | { /** * @generated from field: tendermint.abci.ResponseCommit commit = 12; @@ -1114,6 +1200,24 @@ export class Response extends Message { */ value: ResponseProcessProposal; case: "processProposal"; + } | { + /** + * @generated from field: tendermint.abci.ResponseExtendVote extend_vote = 19; + */ + value: ResponseExtendVote; + case: "extendVote"; + } | { + /** + * @generated from field: tendermint.abci.ResponseVerifyVoteExtension verify_vote_extension = 20; + */ + value: ResponseVerifyVoteExtension; + case: "verifyVoteExtension"; + } | { + /** + * @generated from field: tendermint.abci.ResponseFinalizeBlock finalize_block = 21; + */ + value: ResponseFinalizeBlock; + case: "finalizeBlock"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -1130,10 +1234,7 @@ export class Response extends Message { { no: 4, name: "info", kind: "message", T: ResponseInfo, oneof: "value" }, { no: 6, name: "init_chain", kind: "message", T: ResponseInitChain, oneof: "value" }, { no: 7, name: "query", kind: "message", T: ResponseQuery, oneof: "value" }, - { no: 8, name: "begin_block", kind: "message", T: ResponseBeginBlock, oneof: "value" }, { no: 9, name: "check_tx", kind: "message", T: ResponseCheckTx, oneof: "value" }, - { no: 10, name: "deliver_tx", kind: "message", T: ResponseDeliverTx, oneof: "value" }, - { no: 11, name: "end_block", kind: "message", T: ResponseEndBlock, oneof: "value" }, { no: 12, name: "commit", kind: "message", T: ResponseCommit, oneof: "value" }, { no: 13, name: "list_snapshots", kind: "message", T: ResponseListSnapshots, oneof: "value" }, { no: 14, name: "offer_snapshot", kind: "message", T: ResponseOfferSnapshot, oneof: "value" }, @@ -1141,6 +1242,9 @@ export class Response extends Message { { no: 16, name: "apply_snapshot_chunk", kind: "message", T: ResponseApplySnapshotChunk, oneof: "value" }, { no: 17, name: "prepare_proposal", kind: "message", T: ResponsePrepareProposal, oneof: "value" }, { no: 18, name: "process_proposal", kind: "message", T: ResponseProcessProposal, oneof: "value" }, + { no: 19, name: "extend_vote", kind: "message", T: ResponseExtendVote, oneof: "value" }, + { no: 20, name: "verify_vote_extension", kind: "message", T: ResponseVerifyVoteExtension, oneof: "value" }, + { no: 21, name: "finalize_block", kind: "message", T: ResponseFinalizeBlock, oneof: "value" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Response { @@ -1463,156 +1567,15 @@ export class ResponseQuery extends Message { return new ResponseQuery().fromJsonString(jsonString, options); } - static equals(a: ResponseQuery | PlainMessage | undefined, b: ResponseQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseQuery, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseBeginBlock - */ -export class ResponseBeginBlock extends Message { - /** - * @generated from field: repeated tendermint.abci.Event events = 1; - */ - events: Event[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseBeginBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "events", kind: "message", T: Event, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseBeginBlock { - return new ResponseBeginBlock().fromJsonString(jsonString, options); - } - - static equals(a: ResponseBeginBlock | PlainMessage | undefined, b: ResponseBeginBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseBeginBlock, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseCheckTx - */ -export class ResponseCheckTx extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; - */ - gasWanted = protoInt64.zero; - - /** - * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; - */ - gasUsed = protoInt64.zero; - - /** - * @generated from field: repeated tendermint.abci.Event events = 7; - */ - events: Event[] = []; - - /** - * @generated from field: string codespace = 8; - */ - codespace = ""; - - /** - * @generated from field: string sender = 9; - */ - sender = ""; - - /** - * @generated from field: int64 priority = 10; - */ - priority = protoInt64.zero; - - /** - * mempool_error is set by CometBFT. - * ABCI applictions creating a ResponseCheckTX should not set mempool_error. - * - * @generated from field: string mempool_error = 11; - */ - mempoolError = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseCheckTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "events", kind: "message", T: Event, repeated: true }, - { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "priority", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 11, name: "mempool_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJsonString(jsonString, options); - } - - static equals(a: ResponseCheckTx | PlainMessage | undefined, b: ResponseCheckTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseCheckTx, a, b); + static equals(a: ResponseQuery | PlainMessage | undefined, b: ResponseQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseQuery, a, b); } } /** - * @generated from message tendermint.abci.ResponseDeliverTx + * @generated from message tendermint.abci.ResponseCheckTx */ -export class ResponseDeliverTx extends Message { +export class ResponseCheckTx extends Message { /** * @generated from field: uint32 code = 1; */ @@ -1648,8 +1611,6 @@ export class ResponseDeliverTx extends Message { gasUsed = protoInt64.zero; /** - * nondeterministic - * * @generated from field: repeated tendermint.abci.Event events = 7; */ events: Event[] = []; @@ -1659,13 +1620,13 @@ export class ResponseDeliverTx extends Message { */ codespace = ""; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseDeliverTx"; + static readonly typeName = "tendermint.abci.ResponseCheckTx"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, @@ -1677,69 +1638,20 @@ export class ResponseDeliverTx extends Message { { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseDeliverTx { - return new ResponseDeliverTx().fromJsonString(jsonString, options); - } - - static equals(a: ResponseDeliverTx | PlainMessage | undefined, b: ResponseDeliverTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseDeliverTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseEndBlock - */ -export class ResponseEndBlock extends Message { - /** - * @generated from field: repeated tendermint.abci.ValidatorUpdate validator_updates = 1; - */ - validatorUpdates: ValidatorUpdate[] = []; - - /** - * @generated from field: tendermint.types.ConsensusParams consensus_param_updates = 2; - */ - consensusParamUpdates?: ConsensusParams; - - /** - * @generated from field: repeated tendermint.abci.Event events = 3; - */ - events: Event[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseEndBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_updates", kind: "message", T: ValidatorUpdate, repeated: true }, - { no: 2, name: "consensus_param_updates", kind: "message", T: ConsensusParams }, - { no: 3, name: "events", kind: "message", T: Event, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): ResponseEndBlock { - return new ResponseEndBlock().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): ResponseCheckTx { + return new ResponseCheckTx().fromJsonString(jsonString, options); } - static equals(a: ResponseEndBlock | PlainMessage | undefined, b: ResponseEndBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseEndBlock, a, b); + static equals(a: ResponseCheckTx | PlainMessage | undefined, b: ResponseCheckTx | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseCheckTx, a, b); } } @@ -1747,13 +1659,6 @@ export class ResponseEndBlock extends Message { * @generated from message tendermint.abci.ResponseCommit */ export class ResponseCommit extends Message { - /** - * reserve 1 - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - /** * @generated from field: int64 retain_height = 3; */ @@ -1767,7 +1672,6 @@ export class ResponseCommit extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "tendermint.abci.ResponseCommit"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "retain_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); @@ -2164,6 +2068,185 @@ proto3.util.setEnumType(ResponseProcessProposal_ProposalStatus, "tendermint.abci { no: 2, name: "REJECT" }, ]); +/** + * @generated from message tendermint.abci.ResponseExtendVote + */ +export class ResponseExtendVote extends Message { + /** + * @generated from field: bytes vote_extension = 1; + */ + voteExtension = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseExtendVote"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseExtendVote { + return new ResponseExtendVote().fromJsonString(jsonString, options); + } + + static equals(a: ResponseExtendVote | PlainMessage | undefined, b: ResponseExtendVote | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseExtendVote, a, b); + } +} + +/** + * @generated from message tendermint.abci.ResponseVerifyVoteExtension + */ +export class ResponseVerifyVoteExtension extends Message { + /** + * @generated from field: tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus status = 1; + */ + status = ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseVerifyVoteExtension"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseVerifyVoteExtension { + return new ResponseVerifyVoteExtension().fromJsonString(jsonString, options); + } + + static equals(a: ResponseVerifyVoteExtension | PlainMessage | undefined, b: ResponseVerifyVoteExtension | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseVerifyVoteExtension, a, b); + } +} + +/** + * @generated from enum tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus + */ +export enum ResponseVerifyVoteExtension_VerifyStatus { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: ACCEPT = 1; + */ + ACCEPT = 1, + + /** + * Rejecting the vote extension will reject the entire precommit by the sender. + * Incorrectly implementing this thus has liveness implications as it may affect + * CometBFT's ability to receive 2/3+ valid votes to finalize the block. + * Honest nodes should never be rejected. + * + * @generated from enum value: REJECT = 2; + */ + REJECT = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) +proto3.util.setEnumType(ResponseVerifyVoteExtension_VerifyStatus, "tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "ACCEPT" }, + { no: 2, name: "REJECT" }, +]); + +/** + * @generated from message tendermint.abci.ResponseFinalizeBlock + */ +export class ResponseFinalizeBlock extends Message { + /** + * set of block events emmitted as part of executing the block + * + * @generated from field: repeated tendermint.abci.Event events = 1; + */ + events: Event[] = []; + + /** + * the result of executing each transaction including the events + * the particular transction emitted. This should match the order + * of the transactions delivered in the block itself + * + * @generated from field: repeated tendermint.abci.ExecTxResult tx_results = 2; + */ + txResults: ExecTxResult[] = []; + + /** + * a list of updates to the validator set. These will reflect the validator set at current height + 2. + * + * @generated from field: repeated tendermint.abci.ValidatorUpdate validator_updates = 3; + */ + validatorUpdates: ValidatorUpdate[] = []; + + /** + * updates to the consensus params, if any. + * + * @generated from field: tendermint.types.ConsensusParams consensus_param_updates = 4; + */ + consensusParamUpdates?: ConsensusParams; + + /** + * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was + * deterministic. It is up to the application to decide which algorithm to use. + * + * @generated from field: bytes app_hash = 5; + */ + appHash = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ResponseFinalizeBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "events", kind: "message", T: Event, repeated: true }, + { no: 2, name: "tx_results", kind: "message", T: ExecTxResult, repeated: true }, + { no: 3, name: "validator_updates", kind: "message", T: ValidatorUpdate, repeated: true }, + { no: 4, name: "consensus_param_updates", kind: "message", T: ConsensusParams }, + { no: 5, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResponseFinalizeBlock { + return new ResponseFinalizeBlock().fromJsonString(jsonString, options); + } + + static equals(a: ResponseFinalizeBlock | PlainMessage | undefined, b: ResponseFinalizeBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(ResponseFinalizeBlock, a, b); + } +} + /** * @generated from message tendermint.abci.CommitInfo */ @@ -2208,6 +2291,10 @@ export class CommitInfo extends Message { } /** + * ExtendedCommitInfo is similar to CommitInfo except that it is only used in + * the PrepareProposal request such that CometBFT can provide vote extensions + * to the application. + * * @generated from message tendermint.abci.ExtendedCommitInfo */ export class ExtendedCommitInfo extends Message { @@ -2257,7 +2344,7 @@ export class ExtendedCommitInfo extends Message { /** * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * ResponseFinalizeBlock and ResponseCheckTx. * Later, transactions may be queried using these events. * * @generated from message tendermint.abci.Event @@ -2355,6 +2442,95 @@ export class EventAttribute extends Message { } } +/** + * ExecTxResult contains results of executing one individual transaction. + * + * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted + * + * @generated from message tendermint.abci.ExecTxResult + */ +export class ExecTxResult extends Message { + /** + * @generated from field: uint32 code = 1; + */ + code = 0; + + /** + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + /** + * nondeterministic + * + * @generated from field: string log = 3; + */ + log = ""; + + /** + * nondeterministic + * + * @generated from field: string info = 4; + */ + info = ""; + + /** + * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; + */ + gasWanted = protoInt64.zero; + + /** + * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; + */ + gasUsed = protoInt64.zero; + + /** + * nondeterministic + * + * @generated from field: repeated tendermint.abci.Event events = 7; + */ + events: Event[] = []; + + /** + * @generated from field: string codespace = 8; + */ + codespace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.abci.ExecTxResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "events", kind: "message", T: Event, repeated: true }, + { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecTxResult { + return new ExecTxResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecTxResult { + return new ExecTxResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecTxResult { + return new ExecTxResult().fromJsonString(jsonString, options); + } + + static equals(a: ExecTxResult | PlainMessage | undefined, b: ExecTxResult | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecTxResult, a, b); + } +} + /** * TxResult contains results of executing the transaction. * @@ -2379,9 +2555,9 @@ export class TxResult extends Message { tx = new Uint8Array(0); /** - * @generated from field: tendermint.abci.ResponseDeliverTx result = 4; + * @generated from field: tendermint.abci.ExecTxResult result = 4; */ - result?: ResponseDeliverTx; + result?: ExecTxResult; constructor(data?: PartialMessage) { super(); @@ -2394,7 +2570,7 @@ export class TxResult extends Message { { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 3, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "result", kind: "message", T: ResponseDeliverTx }, + { no: 4, name: "result", kind: "message", T: ExecTxResult }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { @@ -2415,8 +2591,6 @@ export class TxResult extends Message { } /** - * Validator - * * @generated from message tendermint.abci.Validator */ export class Validator extends Message { @@ -2466,8 +2640,6 @@ export class Validator extends Message { } /** - * ValidatorUpdate - * * @generated from message tendermint.abci.ValidatorUpdate */ export class ValidatorUpdate extends Message { @@ -2511,8 +2683,6 @@ export class ValidatorUpdate extends Message { } /** - * VoteInfo - * * @generated from message tendermint.abci.VoteInfo */ export class VoteInfo extends Message { @@ -2522,9 +2692,9 @@ export class VoteInfo extends Message { validator?: Validator; /** - * @generated from field: bool signed_last_block = 2; + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 3; */ - signedLastBlock = false; + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; constructor(data?: PartialMessage) { super(); @@ -2535,7 +2705,7 @@ export class VoteInfo extends Message { static readonly typeName = "tendermint.abci.VoteInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 2, name: "signed_last_block", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): VoteInfo { @@ -2560,21 +2730,32 @@ export class VoteInfo extends Message { */ export class ExtendedVoteInfo extends Message { /** + * The validator that sent the vote. + * * @generated from field: tendermint.abci.Validator validator = 1; */ validator?: Validator; /** - * @generated from field: bool signed_last_block = 2; + * Non-deterministic extension provided by the sending validator's application. + * + * @generated from field: bytes vote_extension = 3; + */ + voteExtension = new Uint8Array(0); + + /** + * Vote extension signature created by CometBFT + * + * @generated from field: bytes extension_signature = 4; */ - signedLastBlock = false; + extensionSignature = new Uint8Array(0); /** - * Reserved for future use + * block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all * - * @generated from field: bytes vote_extension = 3; + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 5; */ - voteExtension = new Uint8Array(0); + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; constructor(data?: PartialMessage) { super(); @@ -2585,8 +2766,9 @@ export class ExtendedVoteInfo extends Message { static readonly typeName = "tendermint.abci.ExtendedVoteInfo"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 2, name: "signed_last_block", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedVoteInfo { diff --git a/src/protobufs/tendermint/types/params_pb.ts b/src/protobufs/tendermint/types/params_pb.ts index f69ef7ef..368d8f93 100644 --- a/src/protobufs/tendermint/types/params_pb.ts +++ b/src/protobufs/tendermint/types/params_pb.ts @@ -33,6 +33,11 @@ export class ConsensusParams extends Message { */ version?: VersionParams; + /** + * @generated from field: tendermint.types.ABCIParams abci = 5; + */ + abci?: ABCIParams; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -45,6 +50,7 @@ export class ConsensusParams extends Message { { no: 2, name: "evidence", kind: "message", T: EvidenceParams }, { no: 3, name: "validator", kind: "message", T: ValidatorParams }, { no: 4, name: "version", kind: "message", T: VersionParams }, + { no: 5, name: "abci", kind: "message", T: ABCIParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusParams { @@ -307,3 +313,52 @@ export class HashedParams extends Message { } } +/** + * ABCIParams configure functionality specific to the Application Blockchain Interface. + * + * @generated from message tendermint.types.ABCIParams + */ +export class ABCIParams extends Message { + /** + * vote_extensions_enable_height configures the first height during which + * vote extensions will be enabled. During this specified height, and for all + * subsequent heights, precommit messages that do not contain valid extension data + * will be considered invalid. Prior to this height, vote extensions will not + * be used or accepted by validators on the network. + * + * Once enabled, vote extensions will be created by the application in ExtendVote, + * passed to the application for validation in VerifyVoteExtension and given + * to the application to use when proposing a block during PrepareProposal. + * + * @generated from field: int64 vote_extensions_enable_height = 1; + */ + voteExtensionsEnableHeight = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ABCIParams"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "vote_extensions_enable_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ABCIParams { + return new ABCIParams().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ABCIParams { + return new ABCIParams().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ABCIParams { + return new ABCIParams().fromJsonString(jsonString, options); + } + + static equals(a: ABCIParams | PlainMessage | undefined, b: ABCIParams | PlainMessage | undefined): boolean { + return proto3.util.equals(ABCIParams, a, b); + } +} + diff --git a/src/protobufs/tendermint/types/types_pb.ts b/src/protobufs/tendermint/types/types_pb.ts index f380eddb..9451135c 100644 --- a/src/protobufs/tendermint/types/types_pb.ts +++ b/src/protobufs/tendermint/types/types_pb.ts @@ -7,41 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Proof } from "../crypto/proof_pb.js"; import { Consensus } from "../version/types_pb.js"; -import { ValidatorSet } from "./validator_pb.js"; - -/** - * BlockIdFlag indicates which BlcokID the signature is for - * - * @generated from enum tendermint.types.BlockIDFlag - */ -export enum BlockIDFlag { - /** - * @generated from enum value: BLOCK_ID_FLAG_UNKNOWN = 0; - */ - BLOCK_ID_FLAG_UNKNOWN = 0, - - /** - * @generated from enum value: BLOCK_ID_FLAG_ABSENT = 1; - */ - BLOCK_ID_FLAG_ABSENT = 1, - - /** - * @generated from enum value: BLOCK_ID_FLAG_COMMIT = 2; - */ - BLOCK_ID_FLAG_COMMIT = 2, - - /** - * @generated from enum value: BLOCK_ID_FLAG_NIL = 3; - */ - BLOCK_ID_FLAG_NIL = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BlockIDFlag) -proto3.util.setEnumType(BlockIDFlag, "tendermint.types.BlockIDFlag", [ - { no: 0, name: "BLOCK_ID_FLAG_UNKNOWN" }, - { no: 1, name: "BLOCK_ID_FLAG_ABSENT" }, - { no: 2, name: "BLOCK_ID_FLAG_COMMIT" }, - { no: 3, name: "BLOCK_ID_FLAG_NIL" }, -]); +import { BlockIDFlag, ValidatorSet } from "./validator_pb.js"; /** * SignedMsgType is a type of signed message in the consensus. @@ -409,7 +375,7 @@ export class Data extends Message { } /** - * Vote represents a prevote, precommit, or commit vote from validators for + * Vote represents a prevote or precommit vote from validators for * consensus. * * @generated from message tendermint.types.Vote @@ -453,10 +419,30 @@ export class Vote extends Message { validatorIndex = 0; /** + * Vote signature by the validator if they participated in consensus for the + * associated block. + * * @generated from field: bytes signature = 8; */ signature = new Uint8Array(0); + /** + * Vote extension provided by the application. Only valid for precommit + * messages. + * + * @generated from field: bytes extension = 9; + */ + extension = new Uint8Array(0); + + /** + * Vote extension signature by the validator if they participated in + * consensus for the associated block. + * Only valid for precommit messages. + * + * @generated from field: bytes extension_signature = 10; + */ + extensionSignature = new Uint8Array(0); + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -473,6 +459,8 @@ export class Vote extends Message { { no: 6, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 7, name: "validator_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 8, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 9, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 10, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Vote { @@ -606,6 +594,136 @@ export class CommitSig extends Message { } } +/** + * @generated from message tendermint.types.ExtendedCommit + */ +export class ExtendedCommit extends Message { + /** + * @generated from field: int64 height = 1; + */ + height = protoInt64.zero; + + /** + * @generated from field: int32 round = 2; + */ + round = 0; + + /** + * @generated from field: tendermint.types.BlockID block_id = 3; + */ + blockId?: BlockID; + + /** + * @generated from field: repeated tendermint.types.ExtendedCommitSig extended_signatures = 4; + */ + extendedSignatures: ExtendedCommitSig[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ExtendedCommit"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "block_id", kind: "message", T: BlockID }, + { no: 4, name: "extended_signatures", kind: "message", T: ExtendedCommitSig, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtendedCommit { + return new ExtendedCommit().fromJsonString(jsonString, options); + } + + static equals(a: ExtendedCommit | PlainMessage | undefined, b: ExtendedCommit | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtendedCommit, a, b); + } +} + +/** + * ExtendedCommitSig retains all the same fields as CommitSig but adds vote + * extension-related fields. We use two signatures to ensure backwards compatibility. + * That is the digest of the original signature is still the same in prior versions + * + * @generated from message tendermint.types.ExtendedCommitSig + */ +export class ExtendedCommitSig extends Message { + /** + * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 1; + */ + blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; + + /** + * @generated from field: bytes validator_address = 2; + */ + validatorAddress = new Uint8Array(0); + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp?: Timestamp; + + /** + * @generated from field: bytes signature = 4; + */ + signature = new Uint8Array(0); + + /** + * Vote extension data + * + * @generated from field: bytes extension = 5; + */ + extension = new Uint8Array(0); + + /** + * Vote extension signature + * + * @generated from field: bytes extension_signature = 6; + */ + extensionSignature = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "tendermint.types.ExtendedCommitSig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, + { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtendedCommitSig { + return new ExtendedCommitSig().fromJsonString(jsonString, options); + } + + static equals(a: ExtendedCommitSig | PlainMessage | undefined, b: ExtendedCommitSig | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtendedCommitSig, a, b); + } +} + /** * @generated from message tendermint.types.Proposal */ diff --git a/src/protobufs/tendermint/types/validator_pb.ts b/src/protobufs/tendermint/types/validator_pb.ts index 54280223..6dbdf6ae 100644 --- a/src/protobufs/tendermint/types/validator_pb.ts +++ b/src/protobufs/tendermint/types/validator_pb.ts @@ -7,6 +7,48 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PublicKey } from "../crypto/keys_pb.js"; +/** + * BlockIdFlag indicates which BlockID the signature is for + * + * @generated from enum tendermint.types.BlockIDFlag + */ +export enum BlockIDFlag { + /** + * indicates an error condition + * + * @generated from enum value: BLOCK_ID_FLAG_UNKNOWN = 0; + */ + BLOCK_ID_FLAG_UNKNOWN = 0, + + /** + * the vote was not received + * + * @generated from enum value: BLOCK_ID_FLAG_ABSENT = 1; + */ + BLOCK_ID_FLAG_ABSENT = 1, + + /** + * voted for the block that received the majority + * + * @generated from enum value: BLOCK_ID_FLAG_COMMIT = 2; + */ + BLOCK_ID_FLAG_COMMIT = 2, + + /** + * voted for nil + * + * @generated from enum value: BLOCK_ID_FLAG_NIL = 3; + */ + BLOCK_ID_FLAG_NIL = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(BlockIDFlag) +proto3.util.setEnumType(BlockIDFlag, "tendermint.types.BlockIDFlag", [ + { no: 0, name: "BLOCK_ID_FLAG_UNKNOWN" }, + { no: 1, name: "BLOCK_ID_FLAG_ABSENT" }, + { no: 2, name: "BLOCK_ID_FLAG_COMMIT" }, + { no: 3, name: "BLOCK_ID_FLAG_NIL" }, +]); + /** * @generated from message tendermint.types.ValidatorSet */ diff --git a/src/registry/keplr/toKeplrChainInfo.ts b/src/registry/keplr/toKeplrChainInfo.ts index e9371ac2..05963739 100644 --- a/src/registry/keplr/toKeplrChainInfo.ts +++ b/src/registry/keplr/toKeplrChainInfo.ts @@ -125,7 +125,7 @@ export function toKeplrChainInfo( }); return { - chainId: chainRegistryChainInfo.chain_id, + chainId: chainRegistryChainInfo.chain_id ?? "", chainName: chainRegistryChainInfo.chain_name, rpc: (options.getRpcEndpoint ?? getRpcEndpoint)(chainRegistryChainInfo), @@ -135,7 +135,7 @@ export function toKeplrChainInfo( coinType: chainRegistryChainInfo.slip44 ?? 118, }, bech32Config: { - bech32PrefixAccAddr: chainRegistryChainInfo.bech32_prefix, + bech32PrefixAccAddr: chainRegistryChainInfo.bech32_prefix ?? "", bech32PrefixAccPub: `${chainRegistryChainInfo.bech32_prefix}pub`, bech32PrefixValAddr: `${chainRegistryChainInfo.bech32_prefix}valoper`, bech32PrefixValPub: `${chainRegistryChainInfo.bech32_prefix}valoperpub`, diff --git a/src/registry/types/ChainRegistryAssetList.ts b/src/registry/types/ChainRegistryAssetList.ts index ac7f5008..a6ba4ffa 100644 --- a/src/registry/types/ChainRegistryAssetList.ts +++ b/src/registry/types/ChainRegistryAssetList.ts @@ -9,20 +9,39 @@ * Asset lists are a similar mechanism to allow frontends and other UIs to fetch metadata associated with Cosmos SDK denoms, especially for assets sent over IBC. */ export interface ChainRegistryAssetList { - $schema?: string; + $schema: string; chain_name: string; assets: Asset[]; } export interface Asset { + /** + * [OPTIONAL] Whether the asset has been deprecated for use. For readability, it is best to omit this property unless TRUE. + */ + deprecated?: boolean; /** * [OPTIONAL] A short description of the asset */ description?: string; + /** + * [OPTIONAL] A long description of the asset + */ + extended_description?: string; denom_units: DenomUnit[]; /** * [OPTIONAL] The potential options for type of asset. By default, assumes sdk.coin */ - type_asset?: "sdk.coin" | "cw20" | "erc20" | "ics20" | "snip20" | "snip25"; + type_asset: + | "sdk.coin" + | "cw20" + | "erc20" + | "ics20" + | "snip20" + | "snip25" + | "bitcoin-like" + | "evm-base" + | "svm-base" + | "substrate" + | "unknown"; /** * [OPTIONAL] The address of the asset. Only required for type_asset : cw20, snip20 */ @@ -46,7 +65,7 @@ export interface Asset { /** * The origin of the asset, starting with the index, and capturing all transitions in form and location. */ - traces?: (IbcTransition | IbcCw20Transition | NonIbcTransition)[]; + traces?: (IbcTransition | IbcCw20Transition | IbcBridgeTransition | NonIbcTransition)[]; /** * [OPTIONAL] IBC Channel between src and dst between chain */ @@ -68,7 +87,8 @@ export interface Asset { png?: string; svg?: string; theme?: { - primary_color_hex?: string; + circle?: boolean; + dark_mode?: boolean; }; }, ...{ @@ -76,7 +96,8 @@ export interface Asset { png?: string; svg?: string; theme?: { - primary_color_hex?: string; + circle?: boolean; + dark_mode?: boolean; }; }[] ]; @@ -85,6 +106,18 @@ export interface Asset { */ coingecko_id?: string; keywords?: string[]; + socials?: { + website?: string; + /** + * X (formerly Twitter) + */ + x?: string; + telegram?: string; + discord?: string; + github?: string; + medium?: string; + reddit?: string; + }; } export interface DenomUnit { denom: string; @@ -153,8 +186,47 @@ export interface IbcCw20Transition { path: string; }; } +export interface IbcBridgeTransition { + type: "ibc-bridge"; + counterparty: { + /** + * The name of the counterparty chain. (must match exactly the chain name used in the Chain Registry) + */ + chain_name: string; + /** + * The base unit of the asset on its source platform. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. + */ + base_denom: string; + /** + * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. + */ + port?: string; + /** + * The counterparty IBC transfer channel(, e.g., 'channel-1'). + */ + channel_id: string; + }; + chain: { + /** + * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. + */ + port?: string; + /** + * The chain's IBC transfer channel(, e.g., 'channel-1'). + */ + channel_id: string; + /** + * The port/channel/denom input string that generates the 'ibc/...' denom. + */ + path: string; + }; + /** + * The entity offering the service. E.g., 'Gravity Bridge' [Network] or 'Tether' [Company]. + */ + provider: string; +} export interface NonIbcTransition { - type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage"; + type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage" | "legacy-mintage"; counterparty: { /** * The chain or platform from which the asset originates. E.g., 'cosmoshub', 'ethereum', 'forex', or 'nasdaq' diff --git a/src/registry/types/ChainRegistryChainInfo.ts b/src/registry/types/ChainRegistryChainInfo.ts index abbe5172..19e6a071 100644 --- a/src/registry/types/ChainRegistryChainInfo.ts +++ b/src/registry/types/ChainRegistryChainInfo.ts @@ -6,22 +6,62 @@ */ /** - * Cosmos Chain.json is a metadata file that contains information about a cosmos sdk based chain. + * Chain.json is a metadata file that contains information about a blockchain. */ -export interface ChainRegistryChainInfo { - $schema?: string; +export type ChainRegistryChainInfo = ChainRegistryChainInfo1 & ChainRegistryChainInfo2; +export type ChainRegistryChainInfo1 = { + [k: string]: unknown | undefined; +}; +/** + * Git Upgrade Tag + */ +export type Tag = string; +/** + * Simple version string (e.g., 'v1.0.0'). + */ +export type Version = string; +/** + * URL of the code repository. + */ +export type Repo = string; + +export interface ChainRegistryChainInfo2 { + $schema: string; chain_name: string; - chain_id: string; + /** + * The 'type' of chain as the corresponding CAIP-2 Namespace value. E.G., 'cosmos' or 'eip155'. Namespaces cna be found here: https://github.com/ChainAgnostic/namespaces/tree/main. + */ + chain_type: + | "cosmos" + | "eip155" + | "bip122" + | "polkadot" + | "solana" + | "algorand" + | "arweave" + | "ergo" + | "fil" + | "hedera" + | "monero" + | "reef" + | "stacks" + | "starknet" + | "stellar" + | "tezos" + | "vechain" + | "waves" + | "xrpl" + | "unknown"; + chain_id?: string; pre_fork_chain_name?: string; pretty_name?: string; website?: string; - update_link?: string; - status?: "live" | "upcoming" | "killed"; + status: "live" | "upcoming" | "killed"; network_type?: "mainnet" | "testnet" | "devnet"; /** * The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos' */ - bech32_prefix: string; + bech32_prefix?: string; /** * Used to override the bech32_prefix for specific uses. */ @@ -53,7 +93,7 @@ export interface ChainRegistryChainInfo { }; daemon_name?: string; node_home?: string; - key_algos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519")[]; + key_algos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254")[]; slip44?: number; alternative_slip44s?: number[]; fees?: { @@ -76,96 +116,32 @@ export interface ChainRegistryChainInfo { git_repo?: string; recommended_version?: string; compatible_versions?: string[]; - binaries?: { - "linux/amd64"?: string; - "linux/arm64"?: string; - "darwin/amd64"?: string; - "darwin/arm64"?: string; - "windows/amd64"?: string; - "windows/arm64"?: string; - }; - cosmos_sdk_version?: string; - consensus?: { - type: "tendermint" | "cometbft"; - version?: string; - }; - cosmwasm_version?: string; - cosmwasm_enabled?: boolean; - /** - * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm - */ - cosmwasm_path?: string; - ibc_go_version?: string; - /** - * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. - */ - ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; + tag?: Tag; + language?: Language; + binaries?: Binaries; + sdk?: Sdk; + consensus?: Consensus; + cosmwasm?: Cosmwasm; + ibc?: Ibc; genesis?: { name?: string; genesis_url: string; ics_ccv_url?: string; }; - versions?: { - /** - * Official Upgrade Name - */ - name: string; - /** - * Git Upgrade Tag - */ - tag?: string; - /** - * Block Height - */ - height?: number; - /** - * Proposal that will officially signal community acceptance of the upgrade. - */ - proposal?: number; - /** - * [Optional] Name of the following version - */ - next_version_name?: string; - recommended_version?: string; - compatible_versions?: string[]; - cosmos_sdk_version?: string; - consensus?: { - type: "tendermint" | "cometbft"; - version?: string; - }; - cosmwasm_version?: string; - cosmwasm_enabled?: boolean; - /** - * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm - */ - cosmwasm_path?: string; - ibc_go_version?: string; - /** - * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. - */ - ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; - binaries?: { - "linux/amd64"?: string; - "linux/arm64"?: string; - "darwin/amd64"?: string; - "darwin/arm64"?: string; - "windows/amd64"?: string; - "windows/arm64"?: string; - }; - }[]; }; - images?: { - image_sync?: Pointer; - png?: string; - svg?: string; - theme?: { - primary_color_hex?: string; - }; - }[]; + images?: ( + | { + [k: string]: unknown | undefined; + } + | { + [k: string]: unknown | undefined; + } + )[]; logo_URIs?: { png?: string; svg?: string; }; + description?: string; peers?: { seeds?: Peer[]; persistent_peers?: Peer[]; @@ -196,18 +172,51 @@ export interface FeeToken { export interface StakingToken { denom: string; } -/** - * The (primary) key used to identify an object within the Chain Registry. - */ -export interface Pointer { +export interface Language { + type: "go" | "rust" | "solidity" | "other"; + version?: Version; + repo?: Repo; + tag?: Tag; +} +export interface Binaries { + "linux/amd64"?: string; + "linux/arm64"?: string; + "darwin/amd64"?: string; + "darwin/arm64"?: string; + "windows/amd64"?: string; + "windows/arm64"?: string; +} +export interface Sdk { + type: "cosmos" | "penumbra" | "other"; + version?: Version; + repo?: Repo; + tag?: Tag; +} +export interface Consensus { + type: "tendermint" | "cometbft" | "sei-tendermint" | "cometbls"; + version?: Version; + repo?: Repo; + tag?: Tag; +} +export interface Cosmwasm { + version?: Version; + repo?: Repo; + tag?: Tag; + enabled?: boolean; /** - * The chain name or platform from which the object resides. E.g., 'cosmoshub', 'ethereum', 'forex', or 'nasdaq' + * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm */ - chain_name: string; + path?: string; +} +export interface Ibc { + type: "go" | "rust" | "other"; + version?: Version; + repo?: Repo; + tag?: Tag; /** - * The base denom of the asset from which the object originates. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. + * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. */ - base_denom?: string; + ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; } export interface Peer { id: string; @@ -224,4 +233,7 @@ export interface Explorer { url?: string; tx_page?: string; account_page?: string; + validator_page?: string; + proposal_page?: string; + block_page?: string; } diff --git a/src/wallet/walletconnect/WalletConnectV2.ts b/src/wallet/walletconnect/WalletConnectV2.ts index bdcdb636..cc69d24a 100644 --- a/src/wallet/walletconnect/WalletConnectV2.ts +++ b/src/wallet/walletconnect/WalletConnectV2.ts @@ -14,6 +14,7 @@ type StorageSession = { }; type GetAccountResponse = { + name?: string | undefined; address: string; algo: string; pubkey: string; @@ -56,6 +57,11 @@ const Event = { } as const; type Event = (typeof Event)[keyof typeof Event]; +const DEFAULT_SIGN_OPTIONS = { + preferNoSetFee: true, + preferNoSetMemo: true, +}; + export class WalletConnectV2 { private readonly projectId: string; private readonly mobileAppDetails: MobileAppDetails; @@ -191,6 +197,7 @@ export class WalletConnectV2 { { signerAddress, signDoc: stdSignDoc, + signOptions: DEFAULT_SIGN_OPTIONS, } ); return { @@ -210,6 +217,7 @@ export class WalletConnectV2 { { signerAddress, signDoc, + signOptions: DEFAULT_SIGN_OPTIONS, } ); return { diff --git a/src/wallet/wallets/ConnectedWallet.ts b/src/wallet/wallets/ConnectedWallet.ts index 710187ef..3e2febd8 100644 --- a/src/wallet/wallets/ConnectedWallet.ts +++ b/src/wallet/wallets/ConnectedWallet.ts @@ -46,6 +46,8 @@ export abstract class ConnectedWallet { public readonly id: WalletName; /** The type of connection to the wallet. */ public readonly type: WalletType; + /** The user-defined label for this wallet, if any. */ + public readonly label: string | undefined; /** The chain ID this wallet is connected to. */ public readonly chainId: string; /** The public key. */ @@ -62,6 +64,7 @@ export abstract class ConnectedWallet { constructor( id: WalletName, type: WalletType, + label: string | undefined, chainId: string, pubKey: Secp256k1PubKey, address: string, @@ -70,6 +73,7 @@ export abstract class ConnectedWallet { ) { this.id = id; this.type = type; + this.label = label; this.chainId = chainId; this.pubKey = pubKey; this.address = address; diff --git a/src/wallet/wallets/WalletError.ts b/src/wallet/wallets/WalletError.ts index bada7cf5..4215a988 100644 --- a/src/wallet/wallets/WalletError.ts +++ b/src/wallet/wallets/WalletError.ts @@ -27,10 +27,15 @@ export class WalletError extends Error { if (typeof err === "string") { throw new WalletError(err, err); } - if (err instanceof Error) { - throw new WalletError(err.message, err); + if (this.isRecord(err)) { + // Takes into account normal error instances and objects with the 'error' key + throw new WalletError(err.message ?? err.error ?? "unknown error", err); } throw new WalletError("unknown error", err); } } + + private static isRecord(value: unknown): value is Record { + return typeof value === "object" && value != null; + } } diff --git a/src/wallet/wallets/compass/CompassController.ts b/src/wallet/wallets/compass/CompassController.ts index fc46a80e..41a65c23 100644 --- a/src/wallet/wallets/compass/CompassController.ts +++ b/src/wallet/wallets/compass/CompassController.ts @@ -38,9 +38,8 @@ export class CompassController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ chainId, key: pubKey, @@ -49,6 +48,7 @@ export class CompassController extends WalletController { chainId, new CompassExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/cosmostation/CosmostationController.ts b/src/wallet/wallets/cosmostation/CosmostationController.ts index 8c2ab6c9..eabd9454 100644 --- a/src/wallet/wallets/cosmostation/CosmostationController.ts +++ b/src/wallet/wallets/cosmostation/CosmostationController.ts @@ -39,7 +39,7 @@ export class CosmostationController extends WalletController { ); for (let i = 0; i < chains.length; i++) { const { chainId, rpc, gasPrice } = chains[i]; - const { pubkey, address } = await WalletError.wrap( + const { name, pubkey, address } = await WalletError.wrap( this.wc.getAccount(chainId) ); const key = new Secp256k1PubKey({ @@ -50,6 +50,7 @@ export class CosmostationController extends WalletController { chainId, new CosmostationWalletConnectV2( this.id, + name, this.wc, chainId, key, @@ -71,9 +72,8 @@ export class CosmostationController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ chainId, key: pubKey, @@ -82,6 +82,7 @@ export class CosmostationController extends WalletController { chainId, new CosmostationExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/keplr/KeplrController.ts b/src/wallet/wallets/keplr/KeplrController.ts index 7d80b021..3c96948b 100644 --- a/src/wallet/wallets/keplr/KeplrController.ts +++ b/src/wallet/wallets/keplr/KeplrController.ts @@ -39,7 +39,7 @@ export class KeplrController extends WalletController { ); for (let i = 0; i < chains.length; i++) { const { chainId, rpc, gasPrice } = chains[i]; - const { pubkey, address } = await WalletError.wrap( + const { name, pubkey, address } = await WalletError.wrap( this.wc.getAccount(chainId) ); const key = new Secp256k1PubKey({ @@ -50,6 +50,7 @@ export class KeplrController extends WalletController { chainId, new KeplrWalletConnectV2( this.id, + name, this.wc, chainId, key, @@ -71,9 +72,8 @@ export class KeplrController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ key: pubKey, chainId, @@ -82,6 +82,7 @@ export class KeplrController extends WalletController { chainId, new KeplrExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/keplr/KeplrExtension.ts b/src/wallet/wallets/keplr/KeplrExtension.ts index 5438d46f..1cb0fa60 100644 --- a/src/wallet/wallets/keplr/KeplrExtension.ts +++ b/src/wallet/wallets/keplr/KeplrExtension.ts @@ -28,6 +28,7 @@ export class KeplrExtension extends ConnectedWallet { constructor( walletName: WalletName, + label: string | undefined, ext: Keplr, chainId: string, pubKey: Secp256k1PubKey, @@ -39,6 +40,7 @@ export class KeplrExtension extends ConnectedWallet { super( walletName, WalletType.EXTENSION, + label, chainId, pubKey, address, diff --git a/src/wallet/wallets/keplr/KeplrWalletConnectV2.ts b/src/wallet/wallets/keplr/KeplrWalletConnectV2.ts index a8fc564d..822574c2 100644 --- a/src/wallet/wallets/keplr/KeplrWalletConnectV2.ts +++ b/src/wallet/wallets/keplr/KeplrWalletConnectV2.ts @@ -26,6 +26,7 @@ export class KeplrWalletConnectV2 extends ConnectedWallet { constructor( walletName: WalletName, + label: string | undefined, wc: WalletConnectV2, chainId: string, pubKey: Secp256k1PubKey, @@ -37,6 +38,7 @@ export class KeplrWalletConnectV2 extends ConnectedWallet { super( walletName, WalletType.WALLETCONNECT, + label, chainId, pubKey, address, diff --git a/src/wallet/wallets/leap/LeapController.ts b/src/wallet/wallets/leap/LeapController.ts index 855855a2..58578342 100644 --- a/src/wallet/wallets/leap/LeapController.ts +++ b/src/wallet/wallets/leap/LeapController.ts @@ -38,7 +38,7 @@ export class LeapController extends WalletController { ); for (let i = 0; i < chains.length; i++) { const { chainId, rpc, gasPrice } = chains[i]; - const { pubkey, address } = await WalletError.wrap( + const { name, pubkey, address } = await WalletError.wrap( this.wc.getAccount(chainId) ); const key = new Secp256k1PubKey({ @@ -49,6 +49,7 @@ export class LeapController extends WalletController { chainId, new LeapWalletConnectV2( this.id, + name, this.wc, chainId, key, @@ -70,9 +71,8 @@ export class LeapController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ chainId, key: pubKey, @@ -81,6 +81,7 @@ export class LeapController extends WalletController { chainId, new LeapExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/metamask-injective/MetamaskInjectiveController.ts b/src/wallet/wallets/metamask-injective/MetamaskInjectiveController.ts index dff058eb..45378d54 100644 --- a/src/wallet/wallets/metamask-injective/MetamaskInjectiveController.ts +++ b/src/wallet/wallets/metamask-injective/MetamaskInjectiveController.ts @@ -69,6 +69,7 @@ export class MetamaskInjectiveController extends WalletController { chain.chainId, new MetamaskInjectiveExtension( this.id, + undefined, ext, chain.chainId, pubKey, diff --git a/src/wallet/wallets/metamask-injective/MetamaskInjectiveExtension.ts b/src/wallet/wallets/metamask-injective/MetamaskInjectiveExtension.ts index 2f999b75..03f23975 100644 --- a/src/wallet/wallets/metamask-injective/MetamaskInjectiveExtension.ts +++ b/src/wallet/wallets/metamask-injective/MetamaskInjectiveExtension.ts @@ -25,6 +25,7 @@ export class MetamaskInjectiveExtension extends ConnectedWallet { constructor( walletName: WalletName, + label: string | undefined, ext: Ethereum, chainId: string, pubKey: Secp256k1PubKey, @@ -36,6 +37,7 @@ export class MetamaskInjectiveExtension extends ConnectedWallet { super( walletName, WalletType.EXTENSION, + label, chainId, pubKey, bech32Address, diff --git a/src/wallet/wallets/mnemonic/MnemonicWallet.ts b/src/wallet/wallets/mnemonic/MnemonicWallet.ts index 928d6fed..917bd28d 100644 --- a/src/wallet/wallets/mnemonic/MnemonicWallet.ts +++ b/src/wallet/wallets/mnemonic/MnemonicWallet.ts @@ -1,4 +1,4 @@ -import { RpcClient, Secp256k1PubKey, Tx } from "cosmes/client"; +import { RpcClient, Secp256k1PubKey, ToSignDocParams, ToStdSignDocParams, Tx } from "cosmes/client"; import { base64, resolveBech32Address, @@ -19,6 +19,7 @@ import { UnsignedTx, } from "../ConnectedWallet"; import { ChainInfo } from "../WalletController"; +import { TxRaw } from "cosmes/protobufs/cosmos/tx/v1beta1/tx_pb"; export type ConnectMnemonicWalletOptions = Prettify< { @@ -39,6 +40,8 @@ export type ConnectMnemonicWalletOptions = Prettify< * Address index number for HD derivation (default: `0`). */ index?: number | undefined; + + algo?: "secp256k1" | "ethsecp256k1" | undefined; } & ChainInfo >; @@ -78,43 +81,56 @@ export class MnemonicWallet extends ConnectedWallet { public readonly publicKey: string; public readonly privateKey: Uint8Array; public readonly keyType: "secp256k1" | "ethsecp256k1"; + public readonly algo: string | undefined; + private readonly useAmino: boolean; constructor({ mnemonic, bech32Prefix, coinType, index, + algo, chainId, gasPrice, rpc, - }: ConnectMnemonicWalletOptions) { + }: ConnectMnemonicWalletOptions,useAmino?: boolean) { const { publicKey, privateKey } = resolveKeyPair(mnemonic, { coinType, index, }); + const keyType = - chainId.startsWith("injective") || chainId.startsWith("dymension") + algo ? algo : + chainId.startsWith("injective") || chainId.startsWith("dymension") || chainId.startsWith("planq") ? "ethsecp256k1" - : "secp256k1"; + : "secp256k1" + + const address = resolveBech32Address(publicKey, bech32Prefix, keyType); + super( // We typecast here instead of adding "mnemonic" to `WalletName` and // `WalletType` as this wallet is considered a special wallet that is // unlikely to be used by most consumers of CosmES. "mnemonic" as WalletName, "mnemonic" as WalletType, + undefined, chainId, new Secp256k1PubKey({ chainId, + algo, key: publicKey, }), address, rpc, - gasPrice + gasPrice, + ); this.publicKey = base64.encode(publicKey); this.privateKey = privateKey; + this.algo = algo this.keyType = keyType; + this.useAmino = useAmino ?? false; } public async signArbitrary(data: string): Promise { @@ -153,19 +169,29 @@ export class MnemonicWallet extends ConnectedWallet { accountNumber: bigint, sequence: bigint ): Promise { - const tx = new Tx({ - chainId: this.chainId, - pubKey: this.pubKey, - msgs: msgs, - }); - const doc = tx.toSignDoc({ - accountNumber, - sequence, - fee, - memo, - timeoutHeight, - }); - const signature = signDirect(doc, this.privateKey, this.keyType); - return RpcClient.broadcastTx(this.rpc, tx.toSignedDirect(doc, signature)); + const tx = new Tx({ + chainId: this.chainId, + pubKey: this.pubKey, + msgs: msgs, + }); + const params: ToStdSignDocParams | ToSignDocParams = { + accountNumber, + sequence, + fee, + memo, + timeoutHeight, + }; + + let txRaw: TxRaw; + if (this.useAmino) { + const signature = signAmino(tx.toStdSignDoc(params), this.privateKey, this.keyType) + txRaw = tx.toSignedAmino(tx.toStdSignDoc(params), signature); + } + else { + const signature = signDirect(tx.toSignDoc(params), this.privateKey, this.keyType) + txRaw = tx.toSignedDirect(tx.toSignDoc(params), signature); + } + return RpcClient.broadcastTx(this.rpc, txRaw); } + } diff --git a/src/wallet/wallets/ninji/NinjiController.ts b/src/wallet/wallets/ninji/NinjiController.ts index 69631302..3b3d33c8 100644 --- a/src/wallet/wallets/ninji/NinjiController.ts +++ b/src/wallet/wallets/ninji/NinjiController.ts @@ -37,9 +37,8 @@ export class NinjiController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ chainId, key: pubKey, @@ -48,6 +47,7 @@ export class NinjiController extends WalletController { chainId, new NinjiExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/owallet/OWalletController.ts b/src/wallet/wallets/owallet/OWalletController.ts index 99ecedd1..5e16af13 100644 --- a/src/wallet/wallets/owallet/OWalletController.ts +++ b/src/wallet/wallets/owallet/OWalletController.ts @@ -38,9 +38,8 @@ export class OWalletController extends WalletController { } await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ chainId, key: pubKey, @@ -49,6 +48,7 @@ export class OWalletController extends WalletController { chainId, new OWalletExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/station/StationController.ts b/src/wallet/wallets/station/StationController.ts index f8f32390..d3722817 100644 --- a/src/wallet/wallets/station/StationController.ts +++ b/src/wallet/wallets/station/StationController.ts @@ -72,7 +72,15 @@ export class StationController extends WalletController { ); wallets.set( chainId, - new StationWalletConnectV1(wc, chainId, key, address, rpc, gasPrice) + new StationWalletConnectV1( + undefined, + wc, + chainId, + key, + address, + rpc, + gasPrice + ) ); } catch (err) { // We simply log and ignore the error for now @@ -93,9 +101,8 @@ export class StationController extends WalletController { await WalletError.wrap(ext.enable(chains.map(({ chainId }) => chainId))); for (const { chainId, rpc, gasPrice } of Object.values(chains)) { try { - const { bech32Address, pubKey, isNanoLedger } = await WalletError.wrap( - ext.getKey(chainId) - ); + const { name, bech32Address, pubKey, isNanoLedger } = + await WalletError.wrap(ext.getKey(chainId)); const key = new Secp256k1PubKey({ key: pubKey, chainId, @@ -104,6 +111,7 @@ export class StationController extends WalletController { chainId, new StationExtension( this.id, + name, ext, chainId, key, diff --git a/src/wallet/wallets/station/StationWalletConnectV1.ts b/src/wallet/wallets/station/StationWalletConnectV1.ts index 9e80fd35..358a362d 100644 --- a/src/wallet/wallets/station/StationWalletConnectV1.ts +++ b/src/wallet/wallets/station/StationWalletConnectV1.ts @@ -23,6 +23,7 @@ export class StationWalletConnectV1 extends ConnectedWallet { private readonly wc: WalletConnect; constructor( + label: string | undefined, wc: WalletConnect, chainId: string, pubKey: Secp256k1PubKey, @@ -33,6 +34,7 @@ export class StationWalletConnectV1 extends ConnectedWallet { super( WalletName.STATION, WalletType.WALLETCONNECT, + label, chainId, pubKey, address, diff --git a/tsconfig.json b/tsconfig.json index 46dcd8cc..6864539e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,14 @@ { "compilerOptions": { - "lib": ["ES2020", "DOM"], - "target": "ES2020", - "module": "ES2020", + "lib": ["ES2022", "DOM"], + "target": "ES2022", + "module": "ES2022", "baseUrl": ".", "paths": { "cosmes/*": ["./src/*"] }, "outDir": "./dist", + "rootDir": "./src", // `node16` is too strict and causes type errors for imported pkgs. // We use `tsc-alias` to help add the file extensions instead. "moduleResolution": "bundler",